End select mode when page is closed
This commit is contained in:
parent
81ea42a2a4
commit
96e34c319d
|
@ -120,6 +120,7 @@ public class CompletedDownloadsFragment extends Fragment implements
|
|||
@Override
|
||||
public void onDestroyView() {
|
||||
EventBus.getDefault().unregister(this);
|
||||
adapter.endSelectMode();
|
||||
super.onDestroyView();
|
||||
}
|
||||
|
||||
|
|
|
@ -267,6 +267,9 @@ public class FeedItemlistFragment extends Fragment implements AdapterView.OnItem
|
|||
if (disposable != null) {
|
||||
disposable.dispose();
|
||||
}
|
||||
if (adapter != null) {
|
||||
adapter.endSelectMode();
|
||||
}
|
||||
adapter = null;
|
||||
}
|
||||
|
||||
|
|
|
@ -232,14 +232,13 @@ public class QueueFragment extends Fragment implements Toolbar.OnMenuItemClickLi
|
|||
}
|
||||
}
|
||||
|
||||
private void resetViewState() {
|
||||
recyclerAdapter = null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onDestroyView() {
|
||||
super.onDestroyView();
|
||||
resetViewState();
|
||||
if (recyclerAdapter != null) {
|
||||
recyclerAdapter.endSelectMode();
|
||||
}
|
||||
recyclerAdapter = null;
|
||||
}
|
||||
|
||||
private final MenuItemUtils.UpdateRefreshMenuItemChecker updateRefreshMenuItemChecker =
|
||||
|
|
Loading…
Reference in New Issue