diff options
author | ByteHamster <info@bytehamster.com> | 2019-09-29 12:55:27 +0200 |
---|---|---|
committer | ByteHamster <info@bytehamster.com> | 2019-09-29 12:55:27 +0200 |
commit | 510f00e2047ec9a6a2690f77709bea6269bcc28f (patch) | |
tree | 0259762429c9ec9898364eaab0045af3118d0b85 | |
parent | 466e6a9b7ee56419332e4860b4824b8b873958cc (diff) | |
download | AntennaPod-510f00e2047ec9a6a2690f77709bea6269bcc28f.zip |
Making sure that we don't miss updates
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java index f5290bd85..5c70a5973 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/FeedItemlistFragment.java @@ -409,8 +409,9 @@ public class FeedItemlistFragment extends ListFragment { } - private void onFragmentLoaded() { - if(!isVisible()) { + private void displayList() { + if (getView() == null) { + Log.e(TAG, "Required root view is not yet created. Stop binding data to UI."); return; } if (adapter == null) { @@ -612,7 +613,7 @@ public class FeedItemlistFragment extends ListFragment { .observeOn(AndroidSchedulers.mainThread()) .subscribe(result -> { feed = result.orElse(null); - onFragmentLoaded(); + displayList(); }, error -> Log.e(TAG, Log.getStackTraceString(error))); } |