File tree Expand file tree Collapse file tree 1 file changed +11
-6
lines changed
android/src/main/java/com/instabug/reactlibrary Expand file tree Collapse file tree 1 file changed +11
-6
lines changed Original file line number Diff line number Diff line change @@ -807,12 +807,17 @@ public void getUnreadMessagesCount(Callback messageCountCallback) {
807
807
* @see InstabugInvocationEvent
808
808
*/
809
809
@ ReactMethod
810
- public void setInvocationEvent (String invocationEventValue ) {
811
- try {
812
- BugReporting .setInvocationEvents (getInvocationEventById (invocationEventValue ));
813
- } catch (Exception e ) {
814
- e .printStackTrace ();
815
- }
810
+ public void setInvocationEvent (final String invocationEventValue ) {
811
+ new Handler (Looper .getMainLooper ()).post (new Runnable () {
812
+ @ Override
813
+ public void run () {
814
+ try {
815
+ BugReporting .setInvocationEvents (getInvocationEventById (invocationEventValue ));
816
+ } catch (Exception e ) {
817
+ e .printStackTrace ();
818
+ }
819
+ }
820
+ });
816
821
}
817
822
818
823
/**
You can’t perform that action at this time.
0 commit comments