File tree 1 file changed +2
-7
lines changed
auth/src/main/java/com/firebase/ui/auth
1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 16
16
17
17
import android .app .Activity ;
18
18
import android .content .Intent ;
19
- import android .os .Build ;
20
19
import android .os .Bundle ;
21
20
import android .os .Parcel ;
22
21
import android .os .Parcelable ;
58
57
import java .util .HashSet ;
59
58
import java .util .IdentityHashMap ;
60
59
import java .util .List ;
61
- import java .util .Locale ;
62
60
import java .util .Set ;
63
61
64
62
/**
@@ -148,11 +146,8 @@ public class AuthUI {
148
146
private AuthUI (FirebaseApp app ) {
149
147
mApp = app ;
150
148
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 ();
156
151
}
157
152
158
153
/**
You can’t perform that action at this time.
0 commit comments