Skip to content

Commit 3d4448b

Browse files
committed
Merge branch 'release'
2 parents 9956784 + 8977670 commit 3d4448b

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)