Skip to content

Commit 15b2240

Browse files
committed
Revert the old code
1 parent 7423a1f commit 15b2240

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

android/src/main/java/com/masteratul/exceptionhandler/ReactNativeExceptionHandlerModule.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -29,18 +29,16 @@ public String getName() {
2929

3030
@ReactMethod
3131
public void setHandlerforNativeException(Callback customHandler, final boolean forceToQuit){
32-
this.callbackHolder = customHandler;
32+
callbackHolder = customHandler;
3333

3434
Thread.setDefaultUncaughtExceptionHandler(new Thread.UncaughtExceptionHandler() {
3535
@Override
3636
public void uncaughtException(Thread thread, Throwable throwable) {
3737
activity = getCurrentActivity();
3838
String stackTraceString = Log.getStackTraceString(throwable);
3939
callbackHolder.invoke(stackTraceString);
40-
41-
if (BuildConfig.DEBUG) {
42-
Log.d("ERROR",stackTraceString);
43-
}
40+
Log.d("ERROR",stackTraceString);
41+
4442

4543
Intent i = new Intent();
4644
i.setClass(activity, errorIntentTargetClass);

0 commit comments

Comments
 (0)