From db9b453276932004b9c60844593cab1fa946274e Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Tue, 31 Dec 2019 12:01:15 +0100 Subject: [PATCH] remove setDefaultUncaughtExceptionHandler temporary --- app/build.gradle | 2 +- app/src/main/java/info/nightscout/androidaps/MainApp.java | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/build.gradle b/app/build.gradle index 3ed4ced0b1..dd5e62f00f 100644 --- a/app/build.gradle +++ b/app/build.gradle @@ -110,7 +110,7 @@ android { targetSdkVersion 28 multiDexEnabled true versionCode 1500 - version "2.6-dev" + version "2.6-dev-dagger3" buildConfigField "String", "VERSION", '"' + version + '"' buildConfigField "String", "BUILDVERSION", '"' + generateGitBuild() + '-' + generateDate() + '"' buildConfigField "String", "REMOTE", '"' + generateGitRemote() + '"' diff --git a/app/src/main/java/info/nightscout/androidaps/MainApp.java b/app/src/main/java/info/nightscout/androidaps/MainApp.java index 2a61c07f21..ea330f613b 100644 --- a/app/src/main/java/info/nightscout/androidaps/MainApp.java +++ b/app/src/main/java/info/nightscout/androidaps/MainApp.java @@ -174,14 +174,15 @@ public class MainApp extends DaggerApplication { LocaleHelper.INSTANCE.update(this); sDatabaseHelper = OpenHelperManager.getHelper(sInstance, DatabaseHelper.class); +/* TODO: put back Thread.setDefaultUncaughtExceptionHandler((thread, ex) -> { if (ex instanceof InternalError) { // usually the app trying to spawn a thread while being killed return; } - log.error("Uncaught exception crashing app", ex); }); +*/ try { if (FabricPrivacy.fabricEnabled()) {