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