Do not use ExceptionHandler on debug builds

Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
This commit is contained in:
tobiasKaminsky 2022-04-07 11:47:42 +02:00
parent 69234dec5f
commit df7e70a3f1
No known key found for this signature in database
GPG key ID: 0E00D4D47D0C5AF7

View file

@ -232,7 +232,7 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
// let the platform deal with those
final boolean isCrashReportingProcess = getAppProcessName().endsWith(":crash");
if (!isCrashReportingProcess) {
if (!isCrashReportingProcess && !appInfo.isDebugBuild()) {
Thread.UncaughtExceptionHandler defaultPlatformHandler = Thread.getDefaultUncaughtExceptionHandler();
final ExceptionHandler crashReporter = new ExceptionHandler(this,
defaultPlatformHandler);