mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-02 11:01:23 +01:00
Simplification/fix
This commit is contained in:
@@ -240,8 +240,6 @@ public class FragmentOAuth extends FragmentBase {
|
||||
startActivityForResult(authIntent, ActivitySetup.REQUEST_OAUTH);
|
||||
} catch (Throwable ex) {
|
||||
showError(ex);
|
||||
btnOAuth.setEnabled(true);
|
||||
pbOAuth.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -300,8 +298,6 @@ public class FragmentOAuth extends FragmentBase {
|
||||
});
|
||||
} catch (Throwable ex) {
|
||||
showError(ex);
|
||||
btnOAuth.setEnabled(true);
|
||||
pbOAuth.setVisibility(View.GONE);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -520,8 +516,6 @@ public class FragmentOAuth extends FragmentBase {
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
showError(ex);
|
||||
btnOAuth.setEnabled(true);
|
||||
pbOAuth.setVisibility(View.GONE);
|
||||
}
|
||||
}.execute(this, args, "oauth:configure");
|
||||
}
|
||||
@@ -541,6 +535,9 @@ public class FragmentOAuth extends FragmentBase {
|
||||
if ("gmail".equals(id))
|
||||
tvGmailDraftsHint.setVisibility(View.VISIBLE);
|
||||
|
||||
btnOAuth.setEnabled(true);
|
||||
pbOAuth.setVisibility(View.GONE);
|
||||
|
||||
new Handler().post(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
|
||||
Reference in New Issue
Block a user