diff options
author | Martin Fietz <Martin.Fietz@gmail.com> | 2015-12-28 21:52:39 +0100 |
---|---|---|
committer | Martin Fietz <Martin.Fietz@gmail.com> | 2016-01-07 23:16:01 +0100 |
commit | d8de15bdabf3ab02c41529c5fd0fb67ce826f5c4 (patch) | |
tree | 3d6624981233bb7f4e3d5f5c99dbee28acd1d5d1 | |
parent | 33c55f0afac7d1dad95258f0843e43cf33bef3f7 (diff) | |
download | AntennaPod-d8de15bdabf3ab02c41529c5fd0fb67ce826f5c4.zip |
Prevents EventBusException
-rw-r--r-- | app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java b/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java index 1a40b3532..bc5024426 100644 --- a/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java +++ b/app/src/main/java/de/danoeh/antennapod/fragment/ItemlistFragment.java @@ -144,8 +144,6 @@ public class ItemlistFragment extends ListFragment { @Override public void onStart() { super.onStart(); - EventDistributor.getInstance().register(contentUpdate); - EventBus.getDefault().registerSticky(this); if (viewsCreated && itemsLoaded) { onFragmentLoaded(); } @@ -154,7 +152,8 @@ public class ItemlistFragment extends ListFragment { @Override public void onResume() { super.onResume(); - Log.d(TAG, "onResume()"); + EventDistributor.getInstance().register(contentUpdate); + EventBus.getDefault().registerSticky(this); ((MainActivity)getActivity()).getSupportActionBar().setTitle(""); updateProgressBarVisibility(); loadItems(); |