Skip to content

Commit

Permalink
#6 Does not compile for Cordova 5 (Cordova-Android 4)
Browse files Browse the repository at this point in the history
  • Loading branch information
EddyVerbruggen committed Jun 6, 2015
1 parent 46cef10 commit e584221
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
2 changes: 1 addition & 1 deletion plugin.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plugin xmlns="http://apache.org/cordova/ns/plugins/1.0"
xmlns:android="http://schemas.android.com/apk/res/android"
id="de.appplant.cordova.plugin.local-notification"
version="0.8.2dev">
version="0.8.2dev2">

<name>LocalNotification</name>

Expand Down
10 changes: 1 addition & 9 deletions src/android/LocalNotification.java
Original file line number Diff line number Diff line change
Expand Up @@ -558,15 +558,7 @@ private static synchronized void sendJavascript(final String js) {
return;
}

webView.post(new Runnable(){
public void run(){
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
webView.evaluateJavascript(js, null);
} else {
webView.loadUrl("javascript:" + js);
}
}
});
webView.sendJavascript(js);
}

/**
Expand Down

0 comments on commit e584221

Please sign in to comment.