Avoid useless posts reloading on LatestPostsFragment pauses

This commit is contained in:
Pierre HUBERT 2018-08-23 11:06:54 +02:00
parent ac96c8f4d0
commit 686379b015

View File

@ -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();
}
/**