Fix displaying progress indicator in multi window

This commit is contained in:
ByteHamster 2019-04-11 20:54:48 +02:00
parent 97d08f3b00
commit d4c87facaf
1 changed files with 5 additions and 5 deletions

View File

@ -102,11 +102,6 @@ public class QueueFragment extends Fragment {
if (queue != null) {
onFragmentLoaded(true);
}
}
@Override
public void onResume() {
super.onResume();
loadItems(true);
EventDistributor.getInstance().register(contentUpdate);
EventBus.getDefault().registerSticky(this);
@ -116,6 +111,11 @@ public class QueueFragment extends Fragment {
public void onPause() {
super.onPause();
saveScrollPosition();
}
@Override
public void onStop() {
super.onStop();
EventDistributor.getInstance().unregister(contentUpdate);
EventBus.getDefault().unregister(this);
if(disposable != null) {