notifyfs 0.10: Ensure dismissing a notification dismissal doesn't enter launcher if in clock mode

pull/791/head
Gordon Williams 2021-08-16 12:27:26 +01:00
parent 7e93e639e5
commit 6afd7ae7f6
3 changed files with 3 additions and 2 deletions

View File

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

View File

@ -7,3 +7,4 @@
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: Add onHide callback 0.09: Add onHide callback
0.10: Ensure dismissing a notification dismissal doesn't enter launcher if in clock mode

View File

@ -127,7 +127,7 @@ exports.hide = function(options) {
Bangle.setLCDPower(1); Bangle.setLCDPower(1);
} }
// hack for E.showMenu/showAlert/showPrompt - can force a redraw by faking next/back // hack for E.showMenu/showAlert/showPrompt - can force a redraw by faking next/back
if (Bangle.btnWatches) { if (!Bangle.CLOCK && Bangle.btnWatches && Bangle.btnWatches.length==3) {
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();
} }