diff --git a/apps.json b/apps.json index 4857d4750..3cee8606c 100644 --- a/apps.json +++ b/apps.json @@ -282,7 +282,7 @@ { "id": "gbridge", "name": "Gadgetbridge", - "version": "0.24", + "version": "0.25", "description": "(NOT RECOMMENDED) Handles Gadgetbridge notifications from Android. This is now replaced by the 'Android' app.", "icon": "app.png", "type": "widget", diff --git a/apps/gbridge/ChangeLog b/apps/gbridge/ChangeLog index fddb1eb80..67d421f33 100644 --- a/apps/gbridge/ChangeLog +++ b/apps/gbridge/ChangeLog @@ -24,3 +24,5 @@ 0.22: Respect Quiet Mode 0.23: Allow notification dismiss to remove from phone too 0.24: tag HRM power requests to allow this to work alongside other widgets/apps (fix #799) +0.25: workaround call notification + Fix inflated step number diff --git a/apps/gbridge/widget.js b/apps/gbridge/widget.js index 53f832b07..7cb7147ec 100644 --- a/apps/gbridge/widget.js +++ b/apps/gbridge/widget.js @@ -184,7 +184,7 @@ case "call": var note = { size: 55, title: event.name, id: "call", body: event.number, icon:require("heatshrink").decompress(atob("jEYwIMJj4CCwACJh4CCCIMOAQMGAQMHAQMDAQMBCIMB4PwgHz/EAn4CBj4CBg4CBgACCAAw="))} - if (event.cmd === "incoming") { + if (event.cmd === "incoming" || event.cmd === "") { require("notify").show(note); if (!(require('Storage').readJSON('setting.json',1)||{}).quiet) { Bangle.buzz(); @@ -262,7 +262,7 @@ // Send a summary of activity to Gadgetbridge function sendActivity(hrm) { var steps = currentSteps - lastSentSteps; - lastSentSteps = 0; + lastSentSteps = currentSteps; gbSend({ t: "act", stp: steps, hrm:hrm }); }