File tree Expand file tree Collapse file tree 1 file changed +9
-1
lines changed
auth/src/main/java/com/firebase/ui/auth Expand file tree Collapse file tree 1 file changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -281,12 +281,20 @@ public Task<Void> then(@NonNull Task<Void> task) {
281
281
private Task <Void > signOutIdps (@ NonNull Context context ) {
282
282
try {
283
283
LoginManager .getInstance ().logOut ();
284
- TwitterProvider .signOut (context );
285
284
} catch (NoClassDefFoundError e ) {
286
285
// Do nothing: this is perfectly fine if the dev doesn't include Facebook/Twitter
287
286
// support
288
287
}
289
288
289
+ try {
290
+ TwitterProvider .signOut (context );
291
+ } catch (NoClassDefFoundError e ) {
292
+ // See comment above
293
+ // Note: we need to have speperate try/catch statements since devs can include
294
+ // _either_ one of the providers. If one crashes, we still need to sign out of
295
+ // the other one.
296
+ }
297
+
290
298
return GoogleSignIn .getClient (context , GoogleSignInOptions .DEFAULT_SIGN_IN ).signOut ();
291
299
}
292
300
You can’t perform that action at this time.
0 commit comments