Skip to content

Commit

Permalink
Update - moved emitBuddyBroadcast into decisions structure for when b…
Browse files Browse the repository at this point in the history
…uilder setup not to automatically invoke custom activity
  • Loading branch information
Gaineyj0349 committed Feb 7, 2019
1 parent 2357101 commit 03275a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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();

}

}
Expand Down

0 comments on commit 03275a1

Please # to comment.