diff --git a/apps/chargent/ChangeLog b/apps/chargent/ChangeLog index fb3eaa780..349618315 100644 --- a/apps/chargent/ChangeLog +++ b/apps/chargent/ChangeLog @@ -4,3 +4,4 @@ 0.04: Added notification 0.05: Fixed boot 0.06: Allow tap to silence notification/buzzing +0.07: Fix notification-tap silencing and notification length diff --git a/apps/chargent/boot.js b/apps/chargent/boot.js index 198e36f18..42c384711 100644 --- a/apps/chargent/boot.js +++ b/apps/chargent/boot.js @@ -24,8 +24,8 @@ lim = sum / cnt; require('Storage').writeJSON('chargent.json', {limit: lim}); } - const onHide = () => { id = clearInterval(id) }; - require('notify').show({id: 'chargent', title: 'Fully charged', onHide }); + const onHide = () => { if(id) id = clearInterval(id) }; + require('notify').show({id: 'chargent', title: 'Charged', onHide }); // TODO ? customizable Bangle.buzz(500); setTimeout(() => Bangle.buzz(500), 1000); diff --git a/apps/chargent/metadata.json b/apps/chargent/metadata.json index bae35b361..75366ff59 100644 --- a/apps/chargent/metadata.json +++ b/apps/chargent/metadata.json @@ -1,6 +1,6 @@ { "id": "chargent", "name": "Charge Gently", - "version": "0.06", + "version": "0.07", "description": "When charging, reminds you to disconnect the watch to prolong battery life.", "icon": "icon.png", "type": "bootloader", diff --git a/apps/notify/notify_bjs2.js b/apps/notify/notify_bjs2.js index 456c4e929..40de7a271 100644 --- a/apps/notify/notify_bjs2.js +++ b/apps/notify/notify_bjs2.js @@ -157,6 +157,7 @@ exports.hide = function(options) { hideCallback = undefined; id = null; Bangle.removeListener("touch", exports.hide); + E.stopEventPropagation && E.stopEventPropagation(); function anim() { pos += 4; if (pos > 0) {