Merge pull request #3104 from ByteHamster/queue-loading

Fix displaying progress indicator in multi window
This commit is contained in:
H. Lehmann 2019-04-12 10:34:47 +02:00 committed by GitHub
commit 244aeeedcd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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) {