Skip to content
Browse files
CB-10645 The battery status handler doesn't reinitialize on Android a…
…fter window.location.reload(). Instead of throwing an error, rather remove the status handler and re-initialize.
  • Loading branch information
aaront committed Jun 20, 2016
1 parent f8bf8e0 commit 7d04d6dbaa0b67686facd460458f42a991b66ffb
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;
this.batteryCallbackContext = callbackContext;

0 comments on commit 7d04d6d

Please sign in to comment.