Skip to content

Commit 8977670

Browse files
committed
fixed error activity bug (shows in release)
1 parent 5afd954 commit 8977670

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build/project-template-gradle/src/main/java/com/tns/ErrorReport.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,14 @@ static Intent getIntent(Context context)
114114
{
115115
Class<?> errorActivityClass = ErrorReportActivity.class;
116116

117+
if (JsDebugger.isDebuggableApp(context))
118+
{
119+
errorActivityClass = ErrorReportActivity.class;
120+
}
121+
else {
122+
return null;
123+
}
124+
117125
Intent intent = new Intent(context, errorActivityClass);
118126

119127
intent.putExtra(EXTRA_NATIVESCRIPT_ERROR_REPORT, EXTRA_ERROR_REPORT_VALUE);

0 commit comments

Comments
 (0)