notifyfs: fix custom render callback
parent
45c8d7a49f
commit
e2b7fc8541
|
|
@ -93,7 +93,7 @@
|
|||
"name": "Fullscreen Notifications",
|
||||
"shortName":"Notifications",
|
||||
"icon": "notify.png",
|
||||
"version":"0.02",
|
||||
"version":"0.03",
|
||||
"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",
|
||||
|
|
|
|||
|
|
@ -1,2 +1,3 @@
|
|||
0.01: New Library!
|
||||
0.02: Add notification ID option
|
||||
0.03: Fix custom render callback
|
||||
|
|
@ -68,7 +68,7 @@ exports.show = function(options) {
|
|||
g.setColor(-1).setFont("6x8", 2).setFontAlign(-1, -1, 0).drawString(body, x-4, y+4);
|
||||
}
|
||||
|
||||
if (options.render) options.render(320 - h);
|
||||
if (options.render) options.render(120-h/2);
|
||||
|
||||
if (options.on) Bangle.setLCDPower(1); // light up
|
||||
Bangle.on("touch", exports.hide);
|
||||
|
|
|
|||
Loading…
Reference in New Issue