Skip to content

Commit

Permalink
Make widget play well with other Gadgetbridge widgets/apps
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Apr 16, 2020
1 parent c9a3a0b commit a4ec996
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion apps.json
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@
{ "id": "gbridge",
"name": "Gadgetbridge",
"icon": "app.png",
"version":"0.09",
"version":"0.10",
"description": "The default notification handler for Gadgetbridge notifications from Android",
"tags": "tool,system,android,widget",
"type":"widget",
Expand Down
1 change: 1 addition & 0 deletions apps/gbridge/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,4 @@
0.07: Move configuration to settings menu
0.08: Don't turn on LCD at start of every song
0.09: Update Bluetooth connection state automatically
0.10: Make widget play well with other Gadgetbridge widgets/apps
2 changes: 2 additions & 0 deletions apps/gbridge/widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,7 @@
}
}

var _GB = global.GB;
global.GB = (event) => {
switch (event.t) {
case "notify":
Expand All @@ -160,6 +161,7 @@
handleCallEvent(event);
break;
}
if(_GB)setTimeout(_GB,0,event);
};

// Touch control
Expand Down

0 comments on commit a4ec996

Please sign in to comment.