mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-23 13:59:29 +00:00
Display error if groups information can not be retrieved.
This commit is contained in:
parent
9a2520efd5
commit
9901337f86
@ -263,6 +263,12 @@ public class NotificationsFragment extends Fragment implements View.OnCreateCont
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Check if we could not get information about related gropus
|
||||||
|
if(notifs.getGroupsInfo() == null){
|
||||||
|
Toast.makeText(getActivity(), R.string.err_get_groups_info, Toast.LENGTH_SHORT).show();
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
//Save the list of notifications and display it
|
//Save the list of notifications and display it
|
||||||
mNotificationsList = notifs;
|
mNotificationsList = notifs;
|
||||||
displayNotificationsList();
|
displayNotificationsList();
|
||||||
|
@ -201,4 +201,5 @@
|
|||||||
<string name="navigation_drawer_close">Close navigation drawer</string>
|
<string name="navigation_drawer_close">Close navigation drawer</string>
|
||||||
<string name="action_personal_page">My Page</string>
|
<string name="action_personal_page">My Page</string>
|
||||||
<string name="notif_on_group_page">on the page of the group %1$s</string>
|
<string name="notif_on_group_page">on the page of the group %1$s</string>
|
||||||
|
<string name="err_get_groups_info">Could not get information about groups!</string>
|
||||||
</resources>
|
</resources>
|
||||||
|
Loading…
Reference in New Issue
Block a user