Skip to content
This repository has been archived by the owner on Apr 29, 2021. It is now read-only.

Commit

Permalink
Merge pull request #1239 from veloek/patch-1
Browse files Browse the repository at this point in the history
Cancel notications before unpersisting
  • Loading branch information
devgeeks committed Sep 2, 2013
2 parents cbde5ad + 75e2607 commit b4a04ad
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Android/LocalNotification/LocalNotification.java
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ public PluginResult execute(String action, JSONArray optionsArr, String callBack
unpersistAlarm(alarmId);
return this.cancelNotification(alarmId);
} else if (action.equalsIgnoreCase("cancelall")) {
PluginResult result = this.cancelAllNotifications();
unpersistAlarmAll();
return this.cancelAllNotifications();
return result;
}

return result;
Expand Down

0 comments on commit b4a04ad

Please sign in to comment.