Skip to content

Commit

Permalink
Merge branch 'master' into fix/plugin-package-id-sync
Browse files Browse the repository at this point in the history
  • Loading branch information
guyromb committed Jul 15, 2017
2 parents 1377a52 + 20dfea7 commit 8f4d6b5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ You can use any constant from the following list:
"application_development", // android
"application", // android
"autolock", // ios
"battery_optimization", // android
"bluetooth", // ios, android
"castle", // ios
"captioning", // android
Expand Down
7 changes: 5 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "net.gsrweb.cordova.plugins.cordovaopennativesettings",
"version": "1.4.0",
"version": "1.4.1",
"description": "Native settings opener for Cordova",
"cordova": {
"id": "net.gsrweb.cordova.plugins.cordovaopennativesettings",
Expand All @@ -22,7 +22,7 @@
"engines": [
{
"name": "cordova",
"version": ">=3.0.0"
"version": ">=4.0.0"
}
],
"author": "Guy Rombaut <[email protected]>",
Expand All @@ -41,6 +41,9 @@
},
{
"username": "perlish"
},
{
"username": "emcniece"
}
],
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion src/android/NativeSettings.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,9 @@ public boolean execute(String action, JSONArray args, CallbackContext callbackCo
//else if (action.equals("battery_saver")) {
// intent = new Intent(android.provider.Settings.ACTION_BATTERY_SAVER_SETTINGS);
//}
else if (action.equals("bluetooth")) {
else if (action.equals("battery_optimization")) {
intent = new Intent(android.provider.Settings.ACTION_IGNORE_BATTERY_OPTIMIZATION_SETTINGS);
} else if (action.equals("bluetooth")) {
intent = new Intent(android.provider.Settings.ACTION_BLUETOOTH_SETTINGS);
} else if (action.equals("captioning")) {
intent = new Intent(android.provider.Settings.ACTION_CAPTIONING_SETTINGS);
Expand Down

0 comments on commit 8f4d6b5

Please sign in to comment.