File tree Expand file tree Collapse file tree 1 file changed +2
-7
lines changed
auth/src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 1 file changed +2
-7
lines changed Original file line number Diff line number Diff line change 1616
1717import android .app .Activity ;
1818import android .content .Intent ;
19- import android .os .Build ;
2019import android .os .Bundle ;
2120import android .os .Parcel ;
2221import android .os .Parcelable ;
5857import java .util .HashSet ;
5958import java .util .IdentityHashMap ;
6059import java .util .List ;
61- import java .util .Locale ;
6260import 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 /**
You can’t perform that action at this time.
0 commit comments