|
|
@ -497,8 +497,13 @@ public class FragmentOAuth extends FragmentBase {
|
|
|
|
cbUpdate.setEnabled(true);
|
|
|
|
cbUpdate.setEnabled(true);
|
|
|
|
|
|
|
|
|
|
|
|
AuthorizationResponse auth = AuthorizationResponse.fromIntent(data);
|
|
|
|
AuthorizationResponse auth = AuthorizationResponse.fromIntent(data);
|
|
|
|
if (auth == null)
|
|
|
|
if (auth == null) {
|
|
|
|
throw AuthorizationException.fromIntent(data);
|
|
|
|
AuthorizationException ex = AuthorizationException.fromIntent(data);
|
|
|
|
|
|
|
|
if (ex == null)
|
|
|
|
|
|
|
|
throw new IllegalArgumentException("No response data");
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
throw ex;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
final EmailProvider provider = EmailProvider.getProvider(getContext(), auth.state);
|
|
|
|
final EmailProvider provider = EmailProvider.getProvider(getContext(), auth.state);
|
|
|
|
|
|
|
|
|
|
|
|