mirror of
https://github.com/M66B/FairEmail.git
synced 2026-03-28 03:46:00 +01:00
Refactoring
This commit is contained in:
@@ -719,8 +719,9 @@ public class FragmentAccount extends FragmentBase {
|
||||
(ex instanceof UnknownHostException ||
|
||||
ex instanceof FileNotFoundException ||
|
||||
ex instanceof IllegalArgumentException))
|
||||
Snackbar.make(view, new ThrowableWrapper(ex).getSafeMessage(), Snackbar.LENGTH_LONG)
|
||||
.setGestureInsetBottomIgnored(true).show();
|
||||
Helper.setSnackbarOptions(
|
||||
Snackbar.make(view, new ThrowableWrapper(ex).getSafeMessage(), Snackbar.LENGTH_LONG))
|
||||
.show();
|
||||
else
|
||||
Log.unexpectedError(getParentFragmentManager(), ex);
|
||||
}
|
||||
@@ -883,8 +884,9 @@ public class FragmentAccount extends FragmentBase {
|
||||
cbIdentity.setVisibility(View.GONE);
|
||||
|
||||
if (ex instanceof IllegalArgumentException)
|
||||
Snackbar.make(view, new ThrowableWrapper(ex).getSafeMessage(), Snackbar.LENGTH_LONG)
|
||||
.setGestureInsetBottomIgnored(true).show();
|
||||
Helper.setSnackbarOptions(
|
||||
Snackbar.make(view, new ThrowableWrapper(ex).getSafeMessage(), Snackbar.LENGTH_LONG))
|
||||
.show();
|
||||
else
|
||||
showError(ex);
|
||||
}
|
||||
@@ -1518,8 +1520,9 @@ public class FragmentAccount extends FragmentBase {
|
||||
@Override
|
||||
protected void onException(Bundle args, Throwable ex) {
|
||||
if (ex instanceof IllegalArgumentException)
|
||||
Snackbar.make(view, new ThrowableWrapper(ex).getSafeMessage(), Snackbar.LENGTH_LONG)
|
||||
.setGestureInsetBottomIgnored(true).show();
|
||||
Helper.setSnackbarOptions(
|
||||
Snackbar.make(view, new ThrowableWrapper(ex).getSafeMessage(), Snackbar.LENGTH_LONG))
|
||||
.show();
|
||||
else
|
||||
showError(ex);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user