Fix crash for dynamic permissions + background directory load

fork-5.53.8
Moxie Marlinspike 2017-12-20 11:10:12 -08:00
rodzic 81cd20062c
commit 425d6b8adf
1 zmienionych plików z 4 dodań i 1 usunięć

Wyświetl plik

@ -213,7 +213,10 @@ public class ContactSelectionListFragment extends Fragment
public void reset() {
selectedContacts.clear();
getLoaderManager().restartLoader(0, null, this);
if (!isDetached() && !isRemoving() && getActivity() != null && !getActivity().isFinishing()) {
getLoaderManager().restartLoader(0, null, this);
}
}
@Override