From dadb64dbff265fc2bca3ccb0310d6179b5990065 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Sat, 2 Mar 2019 10:48:07 +0100 Subject: [PATCH] Improved conversations list refresh frequency --- .../client/ui/fragments/ConversationsListFragment.java | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/ConversationsListFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/ConversationsListFragment.java index 6af418b..29b0f72 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/ConversationsListFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/ConversationsListFragment.java @@ -124,9 +124,6 @@ public class ConversationsListFragment extends AbstractFragment implements Adapt mNoConversationNotice = view.findViewById(R.id.no_conversation_notice); mNoConversationNotice.setVisibility(View.GONE); - //Refresh conversations list - refresh_conversations_list(false); - //Set the open and update conversation listener try { openConvListener = (openConversationListener) getActivity(); @@ -148,6 +145,9 @@ public class ConversationsListFragment extends AbstractFragment implements Adapt //Update activity title Objects.requireNonNull(getActivity()).setTitle(R.string.fragment_conversationslist_title); MainActivity.SetNavbarSelectedOption(getActivity(), R.id.action_conversations); + + //Refresh conversations list + refresh_conversations_list(false); } /** @@ -156,6 +156,7 @@ public class ConversationsListFragment extends AbstractFragment implements Adapt private void refresh_conversations_list(boolean online){ //Display loading wheel + mGotFirstList = online; mProgressBar.setVisibility(View.VISIBLE); //Get the list of conversations