1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2025-01-01 04:35:57 +00:00

Log unexpected errors

This commit is contained in:
M66B 2019-09-20 14:35:26 +02:00
parent 91dba221f6
commit 7b7b7a4189
6 changed files with 4 additions and 9 deletions

View file

@ -236,7 +236,6 @@ public class ActivityBilling extends ActivityBase implements PurchasesUpdatedLis
view.setData(Uri.parse(BuildConfig.PRO_FEATURES_URI + "?challenge=" + getChallenge(this)));
Helper.view(this, view);
} catch (NoSuchAlgorithmException ex) {
Log.e(ex);
Helper.unexpectedError(getSupportFragmentManager(), ex);
}
}

View file

@ -378,7 +378,6 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
try {
askPassword(true);
} catch (Throwable ex) {
Log.e(ex);
Helper.unexpectedError(getSupportFragmentManager(), ex);
}
} else
@ -389,7 +388,6 @@ public class ActivitySetup extends ActivityBase implements FragmentManager.OnBac
try {
askPassword(false);
} catch (Throwable ex) {
Log.e(ex);
Helper.unexpectedError(getSupportFragmentManager(), ex);
}
}

View file

@ -2737,7 +2737,6 @@ public class AdapterMessage extends RecyclerView.Adapter<AdapterMessage.ViewHold
else
ToastEx.makeText(context, R.string.title_pro_invalid, Toast.LENGTH_LONG).show();
} catch (NoSuchAlgorithmException ex) {
Log.e(ex);
Helper.unexpectedError(parentFragment.getFragmentManager(), ex);
}
} else {

View file

@ -4107,7 +4107,6 @@ public class FragmentMessages extends FragmentBase implements SharedPreferences.
REQUEST_DECRYPT,
null, 0, 0, 0, null);
} catch (IntentSender.SendIntentException ex) {
Log.e(ex);
Helper.unexpectedError(getFragmentManager(), ex);
}
}

View file

@ -529,10 +529,8 @@ public class FragmentSetup extends FragmentBase {
Log.w(ex);
if (getLifecycle().getCurrentState().isAtLeast(Lifecycle.State.STARTED))
Snackbar.make(view, Helper.formatThrowable(ex), Snackbar.LENGTH_LONG).show();
} else {
Log.e(ex);
} else
Helper.unexpectedError(getFragmentManager(), ex);
}
}
}
},

View file

@ -465,7 +465,9 @@ public class Helper {
return sb.toString();
}
static void unexpectedError(FragmentManager manager, final Throwable ex) {
static void unexpectedError(FragmentManager manager, Throwable ex) {
Log.e(ex);
Bundle args = new Bundle();
args.putSerializable("ex", ex);