Removed emit from notifyfs as lcdPower event works
parent
827e1538a8
commit
ba10201442
|
|
@ -107,7 +107,7 @@
|
||||||
"name": "Fullscreen Notifications",
|
"name": "Fullscreen Notifications",
|
||||||
"shortName":"Notifications",
|
"shortName":"Notifications",
|
||||||
"icon": "notify.png",
|
"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.",
|
"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",
|
"tags": "widget",
|
||||||
"type": "notify",
|
"type": "notify",
|
||||||
|
|
|
||||||
|
|
@ -206,7 +206,5 @@ setInterval(updateTime, interval);
|
||||||
setWatch(flipColors, BTN1, true);
|
setWatch(flipColors, BTN1, true);
|
||||||
setWatch(Bangle.showLauncher, BTN2, false);
|
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(); });
|
Bangle.on('lcdPower', (on) => { if(on) redraw(); });
|
||||||
// Handle redraw on Dismissed Notifications
|
|
||||||
// Bangle.on('notifyHide', () => { redraw(); } );
|
|
||||||
|
|
|
||||||
|
|
@ -6,4 +6,3 @@
|
||||||
0.06: Adjust position of notification src text and notifications without title
|
0.06: Adjust position of notification src text and notifications without title
|
||||||
0.07: Support background color
|
0.07: Support background color
|
||||||
0.08: Don't turn on screen during Quiet Mode
|
0.08: Don't turn on screen during Quiet Mode
|
||||||
0.09: Emits a 'notifyHide' event when dismissing notifications
|
|
||||||
|
|
@ -126,6 +126,4 @@ exports.hide = function(options) {
|
||||||
global["\xff"].watches[Bangle.btnWatches[0]].callback();
|
global["\xff"].watches[Bangle.btnWatches[0]].callback();
|
||||||
global["\xff"].watches[Bangle.btnWatches[1]].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');
|
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue