Change "Archived" notifications to "Read" notifications (#3554)

* Change archived to read

* Change string names
This commit is contained in:
Anmol Gupta 2020-03-20 19:50:20 +05:30 committed by GitHub
parent fb51fc618a
commit a63a3580de
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
51 changed files with 130 additions and 130 deletions

View file

@ -186,7 +186,7 @@ public class NotificationActivity extends NavigationBaseActivity {
// Handle item selection
switch (item.getItemId()) {
case R.id.archived:
if (item.getTitle().equals(getString(R.string.menu_option_archived))) {
if (item.getTitle().equals(getString(R.string.menu_option_read))) {
NotificationActivity.startYourself(NotificationActivity.this, "read");
}else if (item.getTitle().equals(getString(R.string.menu_option_unread))) {
onBackPressed();
@ -252,7 +252,7 @@ public class NotificationActivity extends NavigationBaseActivity {
private void setPageTitle() {
if (getSupportActionBar() != null) {
if (getIntent().getStringExtra("title").equals("read")) {
getSupportActionBar().setTitle(R.string.archived_notifications);
getSupportActionBar().setTitle(R.string.read_notifications);
} else {
getSupportActionBar().setTitle(R.string.notifications);
}
@ -261,7 +261,7 @@ public class NotificationActivity extends NavigationBaseActivity {
private void setEmptyView() {
if (getIntent().getStringExtra("title").equals("read")) {
noNotificationText.setText(R.string.no_archived_notification);
noNotificationText.setText(R.string.no_read_notification);
}else {
noNotificationText.setText(R.string.no_notification);
}
@ -272,7 +272,7 @@ public class NotificationActivity extends NavigationBaseActivity {
notificationMenuItem.setTitle(R.string.menu_option_unread);
}else {
notificationMenuItem.setTitle(R.string.menu_option_archived);
notificationMenuItem.setTitle(R.string.menu_option_read);
}
}