File tree 1 file changed +3
-5
lines changed
android/src/main/java/com/masteratul/exceptionhandler
1 file changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -29,18 +29,16 @@ public String getName() {
29
29
30
30
@ ReactMethod
31
31
public void setHandlerforNativeException (Callback customHandler , final boolean forceToQuit ){
32
- this . callbackHolder = customHandler ;
32
+ callbackHolder = customHandler ;
33
33
34
34
Thread .setDefaultUncaughtExceptionHandler (new Thread .UncaughtExceptionHandler () {
35
35
@ Override
36
36
public void uncaughtException (Thread thread , Throwable throwable ) {
37
37
activity = getCurrentActivity ();
38
38
String stackTraceString = Log .getStackTraceString (throwable );
39
39
callbackHolder .invoke (stackTraceString );
40
-
41
- if (BuildConfig .DEBUG ) {
42
- Log .d ("ERROR" ,stackTraceString );
43
- }
40
+ Log .d ("ERROR" ,stackTraceString );
41
+
44
42
45
43
Intent i = new Intent ();
46
44
i .setClass (activity , errorIntentTargetClass );
You can’t perform that action at this time.
0 commit comments