0.53: Messages now uses Bangle.load() to load messages app faster (if possible)
parent
9827415380
commit
28d8f7c57e
|
|
@ -73,3 +73,4 @@
|
|||
Move WIDGETS.messages.buzz() to require("messages").buzz()
|
||||
0.52: Fix require("messages").buzz() regression
|
||||
Fix background color in messages list after one unread message is shown
|
||||
0.53: Messages now uses Bangle.load() to load messages app faster (if possible)
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ exports.pushMessage = function(event) {
|
|||
// ok, saved now
|
||||
if (event.id=="music" && Bangle.CLOCK && messages[mIdx].new && openMusic()) {
|
||||
// just load the app to display music: no buzzing
|
||||
load("messages.app.js");
|
||||
Bangle.load("messages.app.js");
|
||||
} else if (event.t!="add") {
|
||||
// we only care if it's new
|
||||
return;
|
||||
|
|
@ -81,7 +81,7 @@ exports.pushMessage = function(event) {
|
|||
Bangle.setLCDPower(1); // turn screen on
|
||||
}
|
||||
// we will buzz when we enter the messages app
|
||||
return load("messages.new.js");
|
||||
return Bangle.load("messages.new.js");
|
||||
}
|
||||
if (global.WIDGETS && WIDGETS.messages) WIDGETS.messages.update(messages);
|
||||
exports.buzz(message.src);
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
{
|
||||
"id": "messages",
|
||||
"name": "Messages",
|
||||
"version": "0.52",
|
||||
"version": "0.53",
|
||||
"description": "App to display notifications from iOS and Gadgetbridge/Android",
|
||||
"icon": "app.png",
|
||||
"type": "app",
|
||||
|
|
|
|||
Loading…
Reference in New Issue