Commit a1f7d250 by Sebastián Katzer

Fixes #569 getScheduled returns two items

parent 6d85bd69
...@@ -14,6 +14,7 @@ Please also read the [Upgrade Guide](https://github.com/katzer/cordova-plugin-lo ...@@ -14,6 +14,7 @@ Please also read the [Upgrade Guide](https://github.com/katzer/cordova-plugin-lo
- Fixed #682 crash while resuming app from notification (Android 6) - Fixed #682 crash while resuming app from notification (Android 6)
- Fixed #612 cannot update icon or sound (Android) - Fixed #612 cannot update icon or sound (Android)
- Fixed crashing `get(ID)` if notification doesn't exist - Fixed crashing `get(ID)` if notification doesn't exist
- Fixed #569 `getScheduled` returns two items per notification
#### Version 0.8.2 (08.11.2015) #### Version 0.8.2 (08.11.2015)
- Submitted to npm - Submitted to npm
......
...@@ -324,9 +324,12 @@ proxy.core = { ...@@ -324,9 +324,12 @@ proxy.core = {
ids = []; ids = [];
for (var i = 0; i < toasts.length; i++) { for (var i = 0; i < toasts.length; i++) {
var toast = toasts[i]; var toast = toasts[i],
toastId = this.getToastId(toast);
ids.push(this.getToastId(toast)); if (ids.indexOf(toastId) == -1) {
ids.push(toastId);
}
} }
return ids; return ids;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment