File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
main/java/com/firebase/ui/auth
test/java/com/firebase/ui/auth/ui Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 21
21
import android .support .annotation .NonNull ;
22
22
import android .support .annotation .Nullable ;
23
23
import android .support .annotation .StyleRes ;
24
+ import android .support .annotation .VisibleForTesting ;
24
25
25
26
import com .facebook .FacebookSdk ;
26
27
import com .facebook .login .LoginManager ;
@@ -416,6 +417,11 @@ public SignInIntentBuilder setIsSmartLockEnabled(boolean enabled) {
416
417
417
418
public Intent build () {
418
419
Context context = mApp .getApplicationContext ();
420
+ return build (context );
421
+ }
422
+
423
+ @ VisibleForTesting
424
+ public Intent build (Context context ) {
419
425
List <IDPProviderParcel > providerInfo =
420
426
ProviderHelper .getProviderParcels (context , mProviders );
421
427
return ChooseAccountActivity .createIntent (
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ private Intent createStartIntent() {
73
73
.createSignInIntentBuilder ()
74
74
.setProviders (AuthUI .EMAIL_PROVIDER , AuthUI .GOOGLE_PROVIDER )
75
75
.setIsSmartLockEnabled (true )
76
- .build ();
76
+ .build (RuntimeEnvironment . application );
77
77
}
78
78
79
79
@ Test
You can’t perform that action at this time.
0 commit comments