Skip to content

Commit

Permalink
function onactivate does no longer exist (katzer#423)
Browse files Browse the repository at this point in the history
I got the error message that "onactivate" does not exist with the latest HEAD Version. I therefore investigated and found out that since the on() function has been changed, I think this has been forgotten to also be changed in the Java file.
  • Loading branch information
christophersax-at authored and katzer committed Aug 7, 2019
1 parent 919fbb1 commit 597b7f0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/android/BackgroundMode.java
Original file line number Diff line number Diff line change
Expand Up @@ -284,7 +284,7 @@ private void fireEvent (Event event, String params)
String str = String.format("%s._setActive(%b)",
JS_NAMESPACE, active);

str = String.format("%s;%s.on%s(%s)",
str = String.format("%s;%s.on('%s', %s)",
str, JS_NAMESPACE, eventName, params);

str = String.format("%s;%s.fireEvent('%s',%s);",
Expand Down

0 comments on commit 597b7f0

Please sign in to comment.