Fix empty navigation drawer

pull/935/head
Alex Baker 5 years ago
parent 3344f69012
commit 8cc4e633c0

@ -194,6 +194,18 @@ public class NavigationDrawerFragment extends InjectingFragment {
super.onPause(); super.onPause();
localBroadcastManager.unregisterReceiver(refreshReceiver); localBroadcastManager.unregisterReceiver(refreshReceiver);
}
@Override
public void onStart() {
super.onStart();
disposables = new CompositeDisposable();
}
@Override
public void onStop() {
super.onStop();
disposables.dispose(); disposables.dispose();
} }
@ -230,9 +242,8 @@ public class NavigationDrawerFragment extends InjectingFragment {
@Override @Override
public void onResume() { public void onResume() {
super.onResume(); super.onResume();
disposables = new CompositeDisposable();
localBroadcastManager.registerRefreshListReceiver(refreshReceiver); localBroadcastManager.registerRefreshListReceiver(refreshReceiver);
disposables.add(updateFilters()); disposables.add(updateFilters());
} }

Loading…
Cancel
Save