Skip to content

Commit

Permalink
Adding battery optimization setting page for Android
Browse files Browse the repository at this point in the history
  • Loading branch information
emcniece committed Jul 15, 2017
1 parent fc6f5a5 commit 8dc6436
Showing 1 changed file with 3 additions and 1 deletion.
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 8dc6436

Please sign in to comment.