Use a second build config switch for the unhandled exception catcher

This commit is contained in:
Pierrot 2019-02-11 10:47:27 +01:00
parent c2ac9e3469
commit 89120de6d9
2 changed files with 2 additions and 1 deletions

View file

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

View file

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