Merge pull request #4655 from nextcloud/revertDisableException

Revert disabling of exception handler
This commit is contained in:
Andy Scherzinger 2019-10-11 08:11:59 +02:00 committed by GitHub
commit 45f5b384db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -219,7 +219,7 @@ public class MainApp extends MultiDexApplication implements HasAndroidInjector {
final boolean isCrashReportingProcess = getAppProcessName().endsWith(":crash");
final boolean useExceptionHandler = !appInfo.isDebugBuild();
if (!isCrashReportingProcess) {
if (!isCrashReportingProcess && useExceptionHandler) {
Thread.UncaughtExceptionHandler defaultPlatformHandler = Thread.getDefaultUncaughtExceptionHandler();
final ExceptionHandler crashReporter = new ExceptionHandler(this,
defaultPlatformHandler);