Merge pull request #5266 from ByteHamster/fix-multi-select-staying
End select mode when page is closed
This commit is contained in:
commit
e45f62c727
|
@ -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