mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-30 06:13:54 +01:00
* Replace Hard-Coded strings with those from strings.xml.
This commit is contained in:
parent
0349e3e069
commit
864ecad2e7
6 changed files with 15 additions and 8 deletions
|
|
@ -87,7 +87,7 @@ public class NotificationActivity extends NavigationBaseActivity {
|
|||
setAdapter(notificationList);
|
||||
adapter.notifyDataSetChanged();
|
||||
Snackbar snackbar = Snackbar
|
||||
.make(relativeLayout,"Notification marked as read", Snackbar.LENGTH_LONG);
|
||||
.make(relativeLayout, getString(R.string.notification_mark_read), Snackbar.LENGTH_LONG);
|
||||
|
||||
snackbar.show();
|
||||
if (notificationList.size()==0){
|
||||
|
|
@ -99,7 +99,7 @@ public class NotificationActivity extends NavigationBaseActivity {
|
|||
else {
|
||||
adapter.notifyDataSetChanged();
|
||||
setAdapter(notificationList);
|
||||
Toast.makeText(NotificationActivity.this, "There was some error!", Toast.LENGTH_SHORT).show();
|
||||
Toast.makeText(NotificationActivity.this, getString(R.string.some_error), Toast.LENGTH_SHORT).show();
|
||||
}
|
||||
}, throwable -> {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue