From ea6ffa6f6efbb5594ba8051ae83b5dcbb1c6372d Mon Sep 17 00:00:00 2001 From: Pierre Date: Sat, 28 Apr 2018 14:40:50 +0200 Subject: [PATCH] Display error message when unable to get older message for a conversation. --- .../comunic/client/ui/fragments/ConversationFragment.java | 2 ++ app/src/main/res/values/strings.xml | 1 + 2 files changed, 3 insertions(+) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/ConversationFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/ConversationFragment.java index 9c34287..52eb61f 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/ConversationFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/ConversationFragment.java @@ -692,6 +692,8 @@ public class ConversationFragment extends Fragment //Check if the list is null (in case of error) if(list == null) { + Toast.makeText(getActivity(), R.string.err_get_older_conversation_messages, + Toast.LENGTH_SHORT).show(); return; } diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index 1211134..ed2fcf9 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -177,4 +177,5 @@ There is not any post on this page yet. You do not have any conversation yet. You do not have any friend yet. + An error occurred while trying to get older messages for the conversation!