|
|
@ -606,8 +606,8 @@ public class FragmentGmail extends FragmentBase {
|
|
|
|
protected void onExecuted(Bundle args, Void data) {
|
|
|
|
protected void onExecuted(Bundle args, Void data) {
|
|
|
|
boolean updated = args.getBoolean("updated");
|
|
|
|
boolean updated = args.getBoolean("updated");
|
|
|
|
if (updated) {
|
|
|
|
if (updated) {
|
|
|
|
finish();
|
|
|
|
|
|
|
|
ToastEx.makeText(getContext(), R.string.title_setup_oauth_updated, Toast.LENGTH_LONG).show();
|
|
|
|
ToastEx.makeText(getContext(), R.string.title_setup_oauth_updated, Toast.LENGTH_LONG).show();
|
|
|
|
|
|
|
|
finish();
|
|
|
|
} else {
|
|
|
|
} else {
|
|
|
|
FragmentDialogAccount fragment = new FragmentDialogAccount();
|
|
|
|
FragmentDialogAccount fragment = new FragmentDialogAccount();
|
|
|
|
fragment.setArguments(args);
|
|
|
|
fragment.setArguments(args);
|
|
|
@ -620,6 +620,9 @@ public class FragmentGmail extends FragmentBase {
|
|
|
|
protected void onException(Bundle args, Throwable ex) {
|
|
|
|
protected void onException(Bundle args, Throwable ex) {
|
|
|
|
Log.e(ex);
|
|
|
|
Log.e(ex);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (!getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
|
|
|
|
if (ex instanceof IllegalArgumentException)
|
|
|
|
if (ex instanceof IllegalArgumentException)
|
|
|
|
tvError.setText(ex.getMessage());
|
|
|
|
tvError.setText(ex.getMessage());
|
|
|
|
else
|
|
|
|
else
|
|
|
|