Commit 84267c09 by Sebastián Katzer

Fixes #612 cannot update icon or sound

parent 0fee1447
...@@ -11,6 +11,7 @@ Please also read the [Upgrade Guide](https://github.com/katzer/cordova-plugin-lo ...@@ -11,6 +11,7 @@ Please also read the [Upgrade Guide](https://github.com/katzer/cordova-plugin-lo
- Fixed #732 loop between update and trigger (Android) - Fixed #732 loop between update and trigger (Android)
- Fixed #710 crash due to >500 notifications (Android) - Fixed #710 crash due to >500 notifications (Android)
- 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 crashing `get(ID)` if notification doesn't exist - Fixed crashing `get(ID)` if notification doesn't exist
#### Version 0.8.2 (08.11.2015) #### Version 0.8.2 (08.11.2015)
......
...@@ -120,7 +120,7 @@ public class Manager { ...@@ -120,7 +120,7 @@ public class Manager {
notification.getOptions().getDict(), updates); notification.getOptions().getDict(), updates);
try { try {
options.putOpt("updated", true); options.put("updated", true);
} catch (JSONException ignore) {} } catch (JSONException ignore) {}
return schedule(options, receiver); return schedule(options, receiver);
......
...@@ -129,7 +129,7 @@ public class Options { ...@@ -129,7 +129,7 @@ public class Options {
*/ */
private void parseAssets() { private void parseAssets() {
if (options.has("iconUri")) if (options.has("iconUri") && !options.optBoolean("updated"))
return; return;
Uri iconUri = assets.parse(options.optString("icon", "icon")); Uri iconUri = assets.parse(options.optString("icon", "icon"));
......
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