From 03275a1a39d70047ffce2fccfb7f8006fc22a8b2 Mon Sep 17 00:00:00 2001 From: Josh Date: Thu, 7 Feb 2019 02:08:52 -0500 Subject: [PATCH] Update - moved emitBuddyBroadcast into decisions structure for when builder setup not to automatically invoke custom activity --- .../gainwise/exceptionbuddy/ExceptionBuddyDirective.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/exceptionbuddy/src/main/java/com/gainwise/exceptionbuddy/ExceptionBuddyDirective.java b/exceptionbuddy/src/main/java/com/gainwise/exceptionbuddy/ExceptionBuddyDirective.java index a948543..a28bacb 100644 --- a/exceptionbuddy/src/main/java/com/gainwise/exceptionbuddy/ExceptionBuddyDirective.java +++ b/exceptionbuddy/src/main/java/com/gainwise/exceptionbuddy/ExceptionBuddyDirective.java @@ -140,18 +140,18 @@ public void uncaughtException(final Thread thread, final Throwable throwable) { ExceptionBuddyUtils.LOGI("App exception details: " + appReport); ExceptionBuddyUtils.setDevCustomCodeExecution(context, completed); - Thread.setDefaultUncaughtExceptionHandler(defaultExceptionHandler); - if(immediatelyInvoke){ emitBuddyBroadCastNow(); + Thread.setDefaultUncaughtExceptionHandler(defaultExceptionHandler); ExceptionBuddyUtils.LOGI("Current thread ID#: "+ thread.getId()); ExceptionBuddyUtils.LOGI("Killing process Pid#: "+ android.os.Process.myPid()); android.os.Process.killProcess(android.os.Process.myPid()); System.exit(1); }else{ + Thread.setDefaultUncaughtExceptionHandler(defaultExceptionHandler); ExceptionBuddyUtils.LOGI("Rethrowing exception to main handler.."); defaultExceptionHandler.uncaughtException(thread,throwable); - Looper.loop(); + } }