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 1616
1717import android .app .Activity ;
1818import android .content .Intent ;
19+ import android .os .Build ;
1920import android .os .Bundle ;
2021import android .os .Parcel ;
2122import android .os .Parcelable ;
5758import java .util .HashSet ;
5859import java .util .IdentityHashMap ;
5960import java .util .List ;
61+ import java .util .Locale ;
6062import java .util .Set ;
6163
6264/**
@@ -146,6 +148,11 @@ public class AuthUI {
146148 private AuthUI (FirebaseApp app ) {
147149 mApp = app ;
148150 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+ }
149156 }
150157
151158 /**
You can’t perform that action at this time.
0 commit comments