File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -406,13 +406,13 @@ If a user is not currently signed in, then a silent sign-in process can be start
406
406
displaying any UI to provide a seamless experience. Silent sign-in uses saved Smart Lock credentials
407
407
and returns a successful ` Task ` only if the user has been fully signed in with Firebase.
408
408
409
- Here's an example of how you would use silent sign-in paired with anonymous users to get your users
410
- up and running as fast as possible:
409
+ Here's an example of how you could use silent sign-in paired with Firebase anonymous sign-in to get
410
+ your users up and running as fast as possible:
411
411
412
412
``` java
413
413
List<IdpConfig > providers = getSelectedProviders();
414
414
AuthUI . getInstance(). silentSignIn(this , providers)
415
- .continueWithTask(new Continuation<AuthResult , Task<AuthResult > > () {
415
+ .continueWithTask(this , new Continuation<AuthResult , Task<AuthResult > > () {
416
416
@Override
417
417
public Task<AuthResult > then (@NonNull Task<AuthResult > task ) {
418
418
if (task. isSuccessful()) {
@@ -422,7 +422,7 @@ AuthUI.getInstance().silentSignIn(this, providers)
422
422
return FirebaseAuth . getInstance(). signInAnonymously();
423
423
}
424
424
}
425
- }). addOnCompleteListener(new OnCompleteListener<AuthResult > () {
425
+ }). addOnCompleteListener(this , new OnCompleteListener<AuthResult > () {
426
426
@Override
427
427
public void onComplete (@NonNull Task<AuthResult > task ) {
428
428
if (task. isSuccessful()) {
You can’t perform that action at this time.
0 commit comments