Migrated notification module from Java to Kotlin (#5955)

* Rename .java to .kt

* Migration of notification module from Java to Kotlin
This commit is contained in:
Saifuddin Adenwala 2024-11-26 17:59:31 +05:30 committed by GitHub
parent 874773b881
commit 381f9eca0c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
13 changed files with 401 additions and 456 deletions

View file

@ -289,7 +289,7 @@ public class ContributionsFragment
});
}
notification.setOnClickListener(view -> {
NotificationActivity.startYourself(getContext(), "unread");
NotificationActivity.Companion.startYourself(getContext(), "unread");
});
}

View file

@ -414,7 +414,7 @@ public class MainActivity extends BaseActivity
return true;
case R.id.notifications:
// Starts notification activity on click to notification icon
NotificationActivity.startYourself(this, "unread");
NotificationActivity.Companion.startYourself(this, "unread");
return true;
default:
return super.onOptionsItemSelected(item);