Log unexpected errors

pull/162/head
M66B 5 years ago
parent 91dba221f6
commit 7b7b7a4189

@ -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);
}
}

@ -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);
}
}

@ -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 {

@ -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);
}
}

@ -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);
}
}
}
},

@ -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);

Loading…
Cancel
Save