Skip to content
Draft
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions apps/messagegui/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -119,3 +119,5 @@
0.87: Make choosing of font size more repeatable
0.88: Adjust padding calculation so messages are spaced out properly even when using international fonts
0.89: Fix bugs related to empty titles and bodies
0.90: Interrupt unread timeout if the user has unlocked the screen, resume on
screen locked (fix #3941)
14 changes: 12 additions & 2 deletions apps/messagegui/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -646,8 +646,18 @@ setTimeout(() => {
}, 10); // if checkMessages wants to 'load', do that

/* If the Bangle is unlocked by the user, treat that
as a queue to stop repeated buzzing */
as a queue to stop repeated buzzing.
Also suspend the reload timeout while the watch is unlocked. */
let isTimeoutSuspended;
Bangle.on('lock',locked => {
if (!locked)
if (!locked) {
require("messages").stopBuzz();
isTimeoutSuspended = !!unreadTimeout;
cancelReloadTimeout();
}
if (locked)
if (isTimeoutSuspended) {
resetReloadTimeout();
isTimeoutSuspended = false;
}
});
2 changes: 1 addition & 1 deletion apps/messagegui/metadata.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"id": "messagegui",
"name": "Message UI",
"shortName": "Messages",
"version": "0.89",
"version": "0.90",
"description": "Default app to display notifications from iOS and Gadgetbridge/Android",
"icon": "app.png",
"type": "app",
Expand Down