Browse Source

Merge pull request #10059 from nextcloud/exceptionHandling

Do not use ExceptionHandler on debug builds
Álvaro Brey 3 năm trước cách đây
mục cha
commit
ace6b49786
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      app/src/main/java/com/owncloud/android/MainApp.java

+ 1 - 1
app/src/main/java/com/owncloud/android/MainApp.java

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