mirror of
https://github.com/M66B/FairEmail.git
synced 2025-01-31 19:41:19 +00:00
OAuth cancel
This commit is contained in:
parent
a118b12645
commit
cf6fa8e7d7
1 changed files with 7 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue