Merge pull request #10059 from nextcloud/exceptionHandling

Do not use ExceptionHandler on debug builds
This commit is contained in:
Álvaro Brey 2022-04-07 12:18:50 +02:00 committed by GitHub
commit ace6b49786
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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