mirror of https://github.com/espruino/BangleApps
Navigation messages no longer launch the Maps view unless they're new
parent
93b40bb6b5
commit
f680be51d5
|
@ -26,3 +26,4 @@
|
|||
0.25: Added option to 'ignore' an app from the message
|
||||
0.26: Change handling of GPS status to depend on GPS events instead of connection events
|
||||
0.27: Issue newline before GB commands (solves issue with console.log and ignored commands)
|
||||
0.28: Navigation messages no longer launch the Maps view unless they're new
|
|
@ -203,6 +203,8 @@
|
|||
event.t="add";
|
||||
event.src="maps"; // for the icon
|
||||
event.title="Navigation";
|
||||
if (require("messages").getMessages().find(m=>m.id=="nav"))
|
||||
event.t = "modify";
|
||||
} else {
|
||||
event.t="remove";
|
||||
}
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"id": "android",
|
||||
"name": "Android Integration",
|
||||
"shortName": "Android",
|
||||
"version": "0.27",
|
||||
"version": "0.28",
|
||||
"description": "Display notifications/music/etc sent from the Gadgetbridge app on Android. This replaces the old 'Gadgetbridge' Bangle.js widget.",
|
||||
"icon": "app.png",
|
||||
"tags": "tool,system,messages,notifications,gadgetbridge",
|
||||
|
|
|
@ -98,3 +98,4 @@
|
|||
If we receive a 'music' message and we're in the messages app (but not showing a message) show music (#2814)
|
||||
0.71: Cancel buzzing when watch unlocked, or when different messages viewed
|
||||
On 2v18.64+ firmware, 'No Messages' now has a 'back' button
|
||||
0.72: Nav message updastes don't automatically launch navigation menu unless they're new
|
|
@ -70,6 +70,8 @@ var onMessagesModified = function(type,msg) {
|
|||
if (msg.state && msg.state!="play") openMusic = false; // no longer playing music to go back to
|
||||
if ((active!=undefined) && (active!="list") && (active!="music")) return; // don't open music over other screens (but do if we're in the main menu)
|
||||
}
|
||||
if (msg && msg.id=="nav" && msg.t=="modify" && active!="map")
|
||||
return; // don't show an updated nav message if we're just in the menu
|
||||
showMessage(msg&&msg.id);
|
||||
};
|
||||
Bangle.on("message", onMessagesModified);
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"id": "messagegui",
|
||||
"name": "Message UI",
|
||||
"shortName": "Messages",
|
||||
"version": "0.71",
|
||||
"version": "0.72",
|
||||
"description": "Default app to display notifications from iOS and Gadgetbridge/Android",
|
||||
"icon": "app.png",
|
||||
"type": "app",
|
||||
|
|
Loading…
Reference in New Issue