mirror of
https://github.com/oxen-io/session-android.git
synced 2024-12-25 09:17:44 +00:00
Fix crash for dynamic permissions + background directory load
This commit is contained in:
parent
81cd20062c
commit
425d6b8adf
@ -213,8 +213,11 @@ public class ContactSelectionListFragment extends Fragment
|
|||||||
|
|
||||||
public void reset() {
|
public void reset() {
|
||||||
selectedContacts.clear();
|
selectedContacts.clear();
|
||||||
|
|
||||||
|
if (!isDetached() && !isRemoving() && getActivity() != null && !getActivity().isFinishing()) {
|
||||||
getLoaderManager().restartLoader(0, null, this);
|
getLoaderManager().restartLoader(0, null, this);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
|
public Loader<Cursor> onCreateLoader(int id, Bundle args) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user