From 89120de6d97f7121e1a74f53696902c369d7c4fc Mon Sep 17 00:00:00 2001 From: Pierrot Date: Mon, 11 Feb 2019 10:47:27 +0100 Subject: [PATCH] Use a second build config switch for the unhandled exception catcher --- app/llx/app/build.gradle | 1 + .../net/pierrox/lightning_launcher/activities/Dashboard.java | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/llx/app/build.gradle b/app/llx/app/build.gradle index ea6a781..369a79f 100644 --- a/app/llx/app/build.gradle +++ b/app/llx/app/build.gradle @@ -48,6 +48,7 @@ android { versionCode 326 versionName "14.3-beta5 (x)" buildConfigField "boolean", "IS_BETA", "true" // change in core too + buildConfigField "boolean", "HAS_UEC", "false" minSdkVersion 14 targetSdkVersion 28 diff --git a/app/llx/app/src/main/java/net/pierrox/lightning_launcher/activities/Dashboard.java b/app/llx/app/src/main/java/net/pierrox/lightning_launcher/activities/Dashboard.java index 8225055..4581f38 100644 --- a/app/llx/app/src/main/java/net/pierrox/lightning_launcher/activities/Dashboard.java +++ b/app/llx/app/src/main/java/net/pierrox/lightning_launcher/activities/Dashboard.java @@ -526,7 +526,7 @@ public class Dashboard extends ResourceWrapperActivity implements OnLongClickLis mUndoStack.setUndoListener(this); - if(BuildConfig.IS_BETA) { + if(BuildConfig.HAS_UEC) { Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() { @Override public void uncaughtException(Thread paramThread, Throwable paramThrowable) {