mirror of
https://github.com/oxen-io/session-android.git
synced 2025-08-26 04:38:03 +00:00
Fix crash in ContactSelectionListFragment.
This commit is contained in:
@@ -448,10 +448,13 @@ public final class ContactSelectionListFragment extends LoggingFragment
|
|||||||
swipeRefresh.setVisibility(View.VISIBLE);
|
swipeRefresh.setVisibility(View.VISIBLE);
|
||||||
reset();
|
reset();
|
||||||
} else {
|
} else {
|
||||||
|
Context context = getContext();
|
||||||
|
if (context != null) {
|
||||||
Toast.makeText(getContext(), R.string.ContactSelectionListFragment_error_retrieving_contacts_check_your_network_connection, Toast.LENGTH_LONG).show();
|
Toast.makeText(getContext(), R.string.ContactSelectionListFragment_error_retrieving_contacts_check_your_network_connection, Toast.LENGTH_LONG).show();
|
||||||
initializeNoContactsPermission();
|
initializeNoContactsPermission();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}.execute();
|
}.execute();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user