Fix crash in ContactSelectionListFragment.

fork-5.53.8
Greyson Parrelli 2021-01-09 23:36:57 -05:00
rodzic 0ac56ca571
commit 9838b2cf0a
1 zmienionych plików z 5 dodań i 2 usunięć

Wyświetl plik

@ -448,8 +448,11 @@ public final class ContactSelectionListFragment extends LoggingFragment
swipeRefresh.setVisibility(View.VISIBLE); swipeRefresh.setVisibility(View.VISIBLE);
reset(); reset();
} else { } else {
Toast.makeText(getContext(), R.string.ContactSelectionListFragment_error_retrieving_contacts_check_your_network_connection, Toast.LENGTH_LONG).show(); Context context = getContext();
initializeNoContactsPermission(); if (context != null) {
Toast.makeText(getContext(), R.string.ContactSelectionListFragment_error_retrieving_contacts_check_your_network_connection, Toast.LENGTH_LONG).show();
initializeNoContactsPermission();
}
} }
} }
}.execute(); }.execute();