1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-31 19:41:19 +00:00

OAuth cancel

This commit is contained in:
M66B 2019-12-21 20:00:06 +01:00
parent a118b12645
commit cf6fa8e7d7

View file

@ -175,6 +175,8 @@ public class FragmentOAuth extends FragmentBase {
case ActivitySetup.REQUEST_OAUTH:
if (resultCode == RESULT_OK && data != null)
onHandleOAuth(data);
else
onHandleCancel();
break;
case ActivitySetup.REQUEST_DONE:
finish();
@ -521,6 +523,11 @@ public class FragmentOAuth extends FragmentBase {
}.execute(this, args, "oauth:configure");
}
private void onHandleCancel() {
btnOAuth.setEnabled(true);
pbOAuth.setVisibility(View.GONE);
}
void showError(Throwable ex) {
Log.e(ex);