mirror of
https://github.com/pierre42100/ComunicAndroid
synced 2024-11-23 22:09:30 +00:00
Fix an IllegalStateException
This commit is contained in:
parent
8fa5e32f23
commit
c1093931d4
@ -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();
|
||||||
|
Loading…
Reference in New Issue
Block a user