Fix an IllegalStateException

This commit is contained in:
Pierre HUBERT 2018-08-30 15:31:40 +02:00
parent 8fa5e32f23
commit c1093931d4

View File

@ -187,6 +187,9 @@ public class UserPostsFragment extends Fragment
@UiThread @UiThread
private void display_posts(){ private void display_posts(){
if(isStateSaved())
return;
//Check for errors //Check for errors
if(mPostsList == null){ if(mPostsList == null){
Toast.makeText(getActivity(), R.string.err_get_user_posts, Toast.LENGTH_SHORT).show(); Toast.makeText(getActivity(), R.string.err_get_user_posts, Toast.LENGTH_SHORT).show();