From c1093931d4aab8c91c38aa3a78e256de89a57167 Mon Sep 17 00:00:00 2001 From: Pierre HUBERT Date: Thu, 30 Aug 2018 15:31:40 +0200 Subject: [PATCH] Fix an IllegalStateException --- .../android/comunic/client/ui/fragments/UserPostsFragment.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPostsFragment.java b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPostsFragment.java index 55d1f3f..322d856 100644 --- a/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPostsFragment.java +++ b/app/src/main/java/org/communiquons/android/comunic/client/ui/fragments/UserPostsFragment.java @@ -187,6 +187,9 @@ public class UserPostsFragment extends Fragment @UiThread private void display_posts(){ + if(isStateSaved()) + return; + //Check for errors if(mPostsList == null){ Toast.makeText(getActivity(), R.string.err_get_user_posts, Toast.LENGTH_SHORT).show();