Skip to content

Commit 7b3b07a

Browse files
author
thyttan
committed
android: only emit android STREAM_MUSIC volume, don't store it.
1 parent 4c60d28 commit 7b3b07a

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

apps/android/lib.js

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -44,16 +44,9 @@ exports.gbHandler = (event) => {
4444
"musicinfo" : function() {
4545
require("messages").pushMessage(Object.assign(event, {t:"modify",id:"music",title:"Music"}));
4646
},
47-
// {t:"musicvolume", v:(percentage of max volume)}
47+
// {t:"audio", v:(percentage of max volume for android STREAM_MUSIC)}
4848
"audio" : function() {
49-
if (Bangle.musicVolume === undefined) {
50-
E.on("kill", ()=>{
51-
require("Storage").writeJSON("setting.json", Object.assign({}, require("Storage").readJSON("setting.json"), {musicVolume:Bangle.musicVolume}));
52-
});
53-
}
54-
Bangle.musicVolume = event.v;
5549
Bangle.emit("musicVolume", event.v);
56-
print(event.v);
5750
},
5851
// {"t":"call","cmd":"incoming/end/start/outgoing","name":"Bob","number":"12421312"})
5952
"call" : function() {

0 commit comments

Comments
 (0)