1
0
Fork 0

Removed emit from notifyfs as lcdPower event works

master
peeweek 2021-07-27 13:44:50 +02:00
parent 827e1538a8
commit ba10201442
4 changed files with 3 additions and 8 deletions

View File

@ -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",

View File

@ -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(); } );

View File

@ -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
0.08: Don't turn on screen during Quiet Mode

View File

@ -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');
};