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 2121import android .support .annotation .NonNull ;
2222import android .support .annotation .Nullable ;
2323import android .support .annotation .StyleRes ;
24+ import android .support .annotation .VisibleForTesting ;
2425
2526import com .facebook .FacebookSdk ;
2627import com .facebook .login .LoginManager ;
@@ -416,6 +417,11 @@ public SignInIntentBuilder setIsSmartLockEnabled(boolean enabled) {
416417
417418 public Intent build () {
418419 Context context = mApp .getApplicationContext ();
420+ return build (context );
421+ }
422+
423+ @ VisibleForTesting
424+ public Intent build (Context context ) {
419425 List <IDPProviderParcel > providerInfo =
420426 ProviderHelper .getProviderParcels (context , mProviders );
421427 return ChooseAccountActivity .createIntent (
Original file line number Diff line number Diff line change @@ -73,7 +73,7 @@ private Intent createStartIntent() {
7373 .createSignInIntentBuilder ()
7474 .setProviders (AuthUI .EMAIL_PROVIDER , AuthUI .GOOGLE_PROVIDER )
7575 .setIsSmartLockEnabled (true )
76- .build ();
76+ .build (RuntimeEnvironment . application );
7777 }
7878
7979 @ Test
You can’t perform that action at this time.
0 commit comments