Skip to content

Commit e7cb356

Browse files
SUPERCILEXsamtstern
authored andcommitted
Phone utils rewrite (#1023)
1 parent 87fd3bc commit e7cb356

File tree

3 files changed

+297
-1226
lines changed

3 files changed

+297
-1226
lines changed

auth/src/main/java/com/firebase/ui/auth/ui/phone/VerifyPhoneNumberFragment.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ public void onActivityResult(int requestCode, int resultCode, Intent data) {
174174
// To accommodate either case, we normalize to e164 with best effort
175175
final String unformattedPhone = cred.getId();
176176
final String formattedPhone =
177-
PhoneNumberUtils.formatPhoneNumberUsingCurrentCountry(unformattedPhone,
177+
PhoneNumberUtils.formatUsingCurrentCountry(unformattedPhone,
178178
mAppContext);
179179
if (formattedPhone == null) {
180180
Log.e(TAG, "Unable to normalize phone number from hint selector:"
@@ -214,7 +214,7 @@ private String getPseudoValidPhoneNumber() {
214214
return null;
215215
}
216216

217-
return PhoneNumberUtils.formatPhoneNumber(everythingElse, countryInfo);
217+
return PhoneNumberUtils.format(everythingElse, countryInfo);
218218
}
219219

220220
private void setupCountrySpinner() {

0 commit comments

Comments
 (0)