File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
auth/src/main/java/com/firebase/ui/auth/util/signincontainer Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 24
24
import com .firebase .ui .auth .ui .email .RegisterEmailActivity ;
25
25
import com .firebase .ui .auth .ui .idp .AuthMethodPickerActivity ;
26
26
import com .firebase .ui .auth .util .GoogleApiHelper ;
27
+ import com .firebase .ui .auth .util .GoogleSignInHelper ;
27
28
import com .google .android .gms .auth .api .Auth ;
28
29
import com .google .android .gms .auth .api .credentials .Credential ;
29
30
import com .google .android .gms .auth .api .credentials .CredentialRequest ;
@@ -298,11 +299,11 @@ private void deleteCredentialAndRedirect() {
298
299
return ;
299
300
}
300
301
301
- AuthUI .getInstance ()
302
- .delete (getActivity () )
303
- .addOnCompleteListener (new OnCompleteListener <Void >() {
302
+ GoogleSignInHelper .getInstance (getActivity () )
303
+ .delete (mCredential )
304
+ .addOnCompleteListener (new OnCompleteListener <Status >() {
304
305
@ Override
305
- public void onComplete (@ NonNull Task <Void > task ) {
306
+ public void onComplete (@ NonNull Task <Status > task ) {
306
307
if (!task .isSuccessful ()) {
307
308
Log .w (TAG , "deleteCredential:failure" , task .getException ());
308
309
}
You can’t perform that action at this time.
0 commit comments