From ff078e9550342e7f40d2800b65ff39fb8d491cd1 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Wed, 22 Aug 2018 10:51:54 +0200 Subject: [PATCH] Add workaround messagesList to remove on fragment resume progressbar --- .../comunic/client/ui/fragments/ConversationFragment.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 f6ead57..b72453f 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 @@ -354,6 +354,11 @@ public class ConversationFragment extends Fragment } else onGotConversationInfo(conversationInfo); + + //Remove progress if we already have messages + if(messagesList != null) + if(messagesList.size() > 0) + display_main_progress_bar(false); } @Override @@ -450,7 +455,7 @@ public class ConversationFragment extends Fragment } } - //Inform about dataset update + //Inform about data set update convMessAdapter.notifyDataSetChanged(); }