File tree Expand file tree Collapse file tree 1 file changed +3
-5
lines changed
android/src/main/java/com/masteratul/exceptionhandler Expand file tree Collapse file tree 1 file changed +3
-5
lines changed Original file line number Diff line number Diff 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 );
You can’t perform that action at this time.
0 commit comments