From 686379b015ed696c8cc2fd6d608235808eb8bada Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 23 Aug 2018 11:06:54 +0200 Subject: [PATCH] Avoid useless posts reloading on LatestPostsFragment pauses --- .../comunic/client/ui/fragments/LatestPostsFragment.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/LatestPostsFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/LatestPostsFragment.java index 16ecf56..ab302dc 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/LatestPostsFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/LatestPostsFragment.java @@ -112,7 +112,8 @@ public class LatestPostsFragment extends Fragment MainActivity.SetNavbarSelectedOption(getActivity(), R.id.action_latest_posts); //Refresh the list of posts of the user - refresh_posts_list(); + if(mPostsList == null) + refresh_posts_list(); } /**