Skip to content

Commit abec517

Browse files
committed
fix(android): report current view change
1 parent 03309e4 commit abec517

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

android/src/main/java/com/instabug/flutter/modules/InstabugApi.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -358,6 +358,12 @@ public void reportScreenChange(@NonNull String screenName) {
358358
if (method != null) {
359359
method.invoke(null, null, screenName);
360360
}
361+
Method reportView = Reflection.getMethod(Class.forName("com.instabug.library.Instabug"), "reportCurrentViewChange",
362+
String.class);
363+
364+
if (reportView != null) {
365+
reportView.invoke(null, screenName);
366+
}
361367
} catch (Exception e) {
362368
e.printStackTrace();
363369
}

0 commit comments

Comments
 (0)