@Override public void onPause() { super.onPause(); savePreviouslyCheckedFileDescriptors(); savePreviousFilter(); getActivity().unregisterReceiver(broadcastReceiver); }
private void browseFilesButtonClick(byte fileType) { if (adapter != null) { savePreviouslyCheckedFileDescriptors(); savePreviousFilter(); saveListViewVisiblePosition(adapter.getFileType()); adapter.clear(); } filesBar.clearCheckAll(); reloadFiles(fileType); }