mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-31 14:17:03 +02:00
OAuth cancel
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user