mirror of
https://github.com/signalapp/Signal-Android.git
synced 2025-12-24 13:08:46 +00:00
Fix country code sorting in reg v2.
This commit is contained in:
committed by
Cody Henthorne
parent
d88016669b
commit
870aa8e7b0
@@ -32,7 +32,7 @@ class EnterPhoneNumberV2ViewModel : ViewModel() {
|
||||
|
||||
val supportedCountryPrefixes: List<CountryPrefix> = PhoneNumberUtil.getInstance().supportedCallingCodes
|
||||
.map { CountryPrefix(it, PhoneNumberUtil.getInstance().getRegionCodeForCountryCode(it)) }
|
||||
.sortedBy { it.digits.toString() }
|
||||
.sortedBy { it.digits }
|
||||
|
||||
fun countryPrefix(): CountryPrefix {
|
||||
return supportedCountryPrefixes[store.value.countryPrefixIndex]
|
||||
|
||||
Reference in New Issue
Block a user