Skip to content

Commit

Permalink
#9 [Android] Calendar.findEvents missing id-filter (permission fix fo…
Browse files Browse the repository at this point in the history
…r Android)
  • Loading branch information
EddyVerbruggen committed Oct 29, 2016
1 parent 557041b commit 94184d4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions calendar.android.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ Calendar._hasPermission = function(perms) {
};

Calendar._hasReadPermission = function() {
return Calendar._hasPermission(android.Manifest.permission.READ_CALENDAR);
return Calendar._hasPermission([android.Manifest.permission.READ_CALENDAR]);
};

Calendar._hasWritePermission = function() {
return Calendar._hasPermission(android.Manifest.permission.WRITE_CALENDAR);
return Calendar._hasPermission([android.Manifest.permission.WRITE_CALENDAR]);
};

Calendar._requestPermission = function(permissions, onPermissionGranted, reject) {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "nativescript-calendar",
"version": "1.1.1",
"version": "1.1.2",
"description": "Interact with the native calendar. Add, Update, Read, you name it.",
"main": "calendar.js",
"nativescript": {
Expand Down

0 comments on commit 94184d4

Please sign in to comment.