From ba10201442cf1b44f54cb50db9c7271f90b04e98 Mon Sep 17 00:00:00 2001 From: peeweek <4037271+peeweek@users.noreply.github.com> Date: Tue, 27 Jul 2021 13:44:50 +0200 Subject: [PATCH] Removed emit from notifyfs as lcdPower event works --- apps.json | 2 +- apps/hcclock/hcclock.app.js | 4 +--- apps/notifyfs/ChangeLog | 3 +-- apps/notifyfs/notify.js | 2 -- 4 files changed, 3 insertions(+), 8 deletions(-) diff --git a/apps.json b/apps.json index 0d5c8c563..7c97c326a 100644 --- a/apps.json +++ b/apps.json @@ -107,7 +107,7 @@ "name": "Fullscreen Notifications", "shortName":"Notifications", "icon": "notify.png", - "version":"0.09", + "version":"0.08", "description": "A handler for displaying notifications that displays them fullscreen. This may not fully restore the screen after on some apps. See `Notifications (default)` for more information about the notifications library.", "tags": "widget", "type": "notify", diff --git a/apps/hcclock/hcclock.app.js b/apps/hcclock/hcclock.app.js index 45295d5a7..98abbc6f3 100644 --- a/apps/hcclock/hcclock.app.js +++ b/apps/hcclock/hcclock.app.js @@ -206,7 +206,5 @@ setInterval(updateTime, interval); setWatch(flipColors, BTN1, true); setWatch(Bangle.showLauncher, BTN2, false); -// Handle redraw on LCD on +// Handle redraw on LCD on / fullscreen notifications dismissed Bangle.on('lcdPower', (on) => { if(on) redraw(); }); -// Handle redraw on Dismissed Notifications -// Bangle.on('notifyHide', () => { redraw(); } ); diff --git a/apps/notifyfs/ChangeLog b/apps/notifyfs/ChangeLog index b49b7dab4..125a9fab5 100644 --- a/apps/notifyfs/ChangeLog +++ b/apps/notifyfs/ChangeLog @@ -5,5 +5,4 @@ 0.05: Fix `g` corruption issue if .hide gets called twice 0.06: Adjust position of notification src text and notifications without title 0.07: Support background color -0.08: Don't turn on screen during Quiet Mode -0.09: Emits a 'notifyHide' event when dismissing notifications \ No newline at end of file +0.08: Don't turn on screen during Quiet Mode \ No newline at end of file diff --git a/apps/notifyfs/notify.js b/apps/notifyfs/notify.js index 6d3501b8c..07801cedb 100644 --- a/apps/notifyfs/notify.js +++ b/apps/notifyfs/notify.js @@ -126,6 +126,4 @@ exports.hide = function(options) { global["\xff"].watches[Bangle.btnWatches[0]].callback(); global["\xff"].watches[Bangle.btnWatches[1]].callback(); } - // Emits a notifyHide event that other apps can catch in order to redraw, if previous statements were unsuccessful. - Bangle.emit('notifyHide'); };