mirror of https://github.com/espruino/BangleApps
Fix music notifications
parent
b7b5d6764b
commit
33a88627d9
|
@ -153,10 +153,10 @@
|
||||||
if (state.music == gb.musicState.PLAY) {
|
if (state.music == gb.musicState.PLAY) {
|
||||||
|
|
||||||
var content = {
|
var content = {
|
||||||
title: "Now playing",
|
title: state.musicInfo.artist,
|
||||||
icon: "gbridge-music-ico.img",
|
icon: "gbridge-music-ico.img",
|
||||||
header: state.musicInfo.artist,
|
header: state.musicInfo.track,
|
||||||
body: state.musicInfo.track
|
body:""
|
||||||
};
|
};
|
||||||
|
|
||||||
notification.show(40, content);
|
notification.show(40, content);
|
||||||
|
@ -194,7 +194,7 @@
|
||||||
state.musicInfo = event;
|
state.musicInfo = event;
|
||||||
break;
|
break;
|
||||||
case "musicstate":
|
case "musicstate":
|
||||||
state.musicInfo = event.state;
|
state.music = event.state;
|
||||||
updateMusicInfo();
|
updateMusicInfo();
|
||||||
break;
|
break;
|
||||||
case "call":
|
case "call":
|
||||||
|
|
Loading…
Reference in New Issue