Simplification/fix

pull/170/head
M66B 6 years ago
parent fd7e4ff420
commit f080d34297

@ -240,8 +240,6 @@ public class FragmentOAuth extends FragmentBase {
startActivityForResult(authIntent, ActivitySetup.REQUEST_OAUTH); startActivityForResult(authIntent, ActivitySetup.REQUEST_OAUTH);
} catch (Throwable ex) { } catch (Throwable ex) {
showError(ex); showError(ex);
btnOAuth.setEnabled(true);
pbOAuth.setVisibility(View.GONE);
} }
} }
@ -300,8 +298,6 @@ public class FragmentOAuth extends FragmentBase {
}); });
} catch (Throwable ex) { } catch (Throwable ex) {
showError(ex); showError(ex);
btnOAuth.setEnabled(true);
pbOAuth.setVisibility(View.GONE);
} }
} }
@ -520,8 +516,6 @@ public class FragmentOAuth extends FragmentBase {
@Override @Override
protected void onException(Bundle args, Throwable ex) { protected void onException(Bundle args, Throwable ex) {
showError(ex); showError(ex);
btnOAuth.setEnabled(true);
pbOAuth.setVisibility(View.GONE);
} }
}.execute(this, args, "oauth:configure"); }.execute(this, args, "oauth:configure");
} }
@ -541,6 +535,9 @@ public class FragmentOAuth extends FragmentBase {
if ("gmail".equals(id)) if ("gmail".equals(id))
tvGmailDraftsHint.setVisibility(View.VISIBLE); tvGmailDraftsHint.setVisibility(View.VISIBLE);
btnOAuth.setEnabled(true);
pbOAuth.setVisibility(View.GONE);
new Handler().post(new Runnable() { new Handler().post(new Runnable() {
@Override @Override
public void run() { public void run() {

Loading…
Cancel
Save