mirror of
https://github.com/M66B/FairEmail.git
synced 2026-01-05 20:34:49 +01:00
Small improvements
This commit is contained in:
@@ -378,6 +378,7 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
|
||||
try {
|
||||
askPassword(true);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
Helper.unexpectedError(getSupportFragmentManager(), ex);
|
||||
}
|
||||
}
|
||||
@@ -386,6 +387,7 @@ public class ActivitySetup extends ActivityBilling implements FragmentManager.On
|
||||
try {
|
||||
askPassword(false);
|
||||
} catch (Throwable ex) {
|
||||
Log.e(ex);
|
||||
Helper.unexpectedError(getSupportFragmentManager(), ex);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -604,7 +604,8 @@ public class ActivityView extends ActivityBilling implements FragmentManager.OnB
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Toast.makeText(ActivityView.this, Helper.formatThrowable(ex, false), Toast.LENGTH_LONG).show();
|
||||
Toast.makeText(ActivityView.this,
|
||||
Helper.formatThrowable(ex, false), Toast.LENGTH_LONG).show();
|
||||
}
|
||||
}.execute(this, new Bundle(), "crash:log");
|
||||
}
|
||||
|
||||
@@ -1078,8 +1078,10 @@ public class FragmentCompose extends FragmentBase {
|
||||
} catch (Throwable ex) {
|
||||
if (ex instanceof IllegalArgumentException)
|
||||
Snackbar.make(view, ex.getMessage(), Snackbar.LENGTH_LONG).show();
|
||||
else
|
||||
else {
|
||||
Log.e(ex);
|
||||
Helper.unexpectedError(getFragmentManager(), ex);
|
||||
}
|
||||
}
|
||||
else {
|
||||
Snackbar snackbar = Snackbar.make(view, R.string.title_no_openpgp, Snackbar.LENGTH_LONG);
|
||||
|
||||
@@ -478,7 +478,6 @@ public class Helper {
|
||||
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
Log.e(ex);
|
||||
if (ex instanceof IllegalArgumentException)
|
||||
Toast.makeText(context, ex.getMessage(), Toast.LENGTH_LONG).show();
|
||||
else
|
||||
|
||||
Reference in New Issue
Block a user