mirror of
https://github.com/signalapp/Signal-Android.git
synced 2026-02-27 13:13:43 +00:00
Allow searching with + prefix.
This commit is contained in:
committed by
Greyson Parrelli
parent
48cac37914
commit
02d4b1897e
@@ -35,7 +35,7 @@ class CountryCodeViewModel : ViewModel() {
|
||||
query = filterBy,
|
||||
filteredList = state.value.countryList.filter { country: Country ->
|
||||
country.name.contains(filterBy, ignoreCase = true) ||
|
||||
country.countryCode.toString().contains(filterBy) ||
|
||||
country.countryCode.toString().contains(filterBy.removePrefix("+")) ||
|
||||
(filterBy.equals("usa", ignoreCase = true) && country.name.equals("United States", ignoreCase = true))
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user