Skip to content
Permalink
Browse files
Merge pull request #31 from Geotab/CB-10645cordova-plugin-battery-status
CB-10645 The battery status handler doesn't reinitialize on Android after window.location.reload()
  • Loading branch information
jcesarmobile committed Feb 22, 2018
2 parents 91010ae + 7d04d6d commit c2a526e673a793f07a5a5341bcc1b03c0121f476
Showing 1 changed file with 1 addition and 2 deletions.
@@ -57,8 +57,7 @@ public BatteryListener() {
public boolean execute(String action, JSONArray args, CallbackContext callbackContext) {
if (action.equals("start")) {
if (this.batteryCallbackContext != null) {
callbackContext.error( "Battery listener already running.");
return true;
removeBatteryListener();
}
this.batteryCallbackContext = callbackContext;

0 comments on commit c2a526e

Please sign in to comment.