Fix NPE when find by phone row not supported.

This commit is contained in:
Cody Henthorne
2024-02-15 19:36:26 -05:00
parent 31e872a34e
commit dd9c65012b

View File

@@ -896,10 +896,9 @@ public final class ContactSelectionListFragment extends LoggingFragment {
if (findByCallback != null && FeatureFlags.usernames()) {
builder.arbitrary(ContactSelectionListAdapter.ArbitraryRepository.ArbitraryRow.FIND_BY_USERNAME.getCode());
builder.arbitrary(ContactSelectionListAdapter.ArbitraryRepository.ArbitraryRow.FIND_BY_PHONE_NUMBER.getCode());
}
builder.arbitrary(ContactSelectionListAdapter.ArbitraryRepository.ArbitraryRow.FIND_BY_PHONE_NUMBER.getCode());
if (transportType != null) {
if (!hasQuery && includeRecents) {
builder.addSection(new ContactSearchConfiguration.Section.Recents(