Skip to content

Commit de21aae

Browse files
SUPERCILEXsamtstern
authored andcommitted
Simplify setting auth locale (#950)
1 parent 15d839d commit de21aae

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

auth/src/main/java/com/firebase/ui/auth/AuthUI.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616

1717
import android.app.Activity;
1818
import android.content.Intent;
19-
import android.os.Build;
2019
import android.os.Bundle;
2120
import android.os.Parcel;
2221
import android.os.Parcelable;
@@ -58,7 +57,6 @@
5857
import java.util.HashSet;
5958
import java.util.IdentityHashMap;
6059
import java.util.List;
61-
import java.util.Locale;
6260
import java.util.Set;
6361

6462
/**
@@ -148,11 +146,8 @@ public class AuthUI {
148146
private AuthUI(FirebaseApp app) {
149147
mApp = app;
150148
mAuth = FirebaseAuth.getInstance(mApp);
151-
if (Build.VERSION.SDK_INT < Build.VERSION_CODES.LOLLIPOP) {
152-
mAuth.setLanguageCode(Locale.getDefault().getLanguage());
153-
} else {
154-
mAuth.setLanguageCode(Locale.getDefault().toLanguageTag());
155-
}
149+
150+
mAuth.useAppLanguage();
156151
}
157152

158153
/**

0 commit comments

Comments
 (0)