Skip to content

Commit 2b1d322

Browse files
draetonsalmamali
authored andcommitted
parse screenshot invocation event type (#256)
Fix the Android implementation is missing a branch in the `parseInvocationEvent` loop for the `InstabugInvocationEvent.SCREENSHOT` type. It prevents users from using the screenshot invocation on Android React Native apps.
1 parent fcf39b0 commit 2b1d322

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

android/src/main/java/com/instabug/reactlibrary/RNInstabugReactnativePackage.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,9 @@ private void parseInvocationEvent(String[] invocationEventValues) {
7878
} else if (invocationEventValues[i].equals("shake")) {
7979
this.invocationEvents.add(InstabugInvocationEvent.SHAKE);
8080

81+
} else if (invocationEventValues[i].equals("screenshot")) {
82+
this.invocationEvents.add(InstabugInvocationEvent.SCREENSHOT);
83+
8184
} else if (invocationEventValues[i].equals("none")) {
8285
this.invocationEvents.add(InstabugInvocationEvent.NONE);
8386
}

0 commit comments

Comments
 (0)