diff --git a/apps/spotrem/ChangeLog b/apps/spotrem/ChangeLog index 56ded4e5cec..5817191abe9 100644 --- a/apps/spotrem/ChangeLog +++ b/apps/spotrem/ChangeLog @@ -9,3 +9,4 @@ when fastloading. 0.08: Issue newline before GB commands (solves issue with console.log and ignored commands) 0.09: Don't send the gadgetbridge wake command twice. Once should do since we issue newline before GB commands. +0.10: Use new slider library for changing the volume. diff --git a/apps/spotrem/app.js b/apps/spotrem/app.js index 48274df440f..4a36af2f414 100644 --- a/apps/spotrem/app.js +++ b/apps/spotrem/app.js @@ -111,7 +111,16 @@ let setUI = function() { } }, ud => { - if (ud) Bangle.musicControl(ud>0 ? "volumedown" : "volumeup"); + //if (ud) Bangle.musicControl(ud>0 ? "volumedown" : "volumeup"); + + if (ud) { + + let callback = (mode, fb)=>{ + if (mode == "map") Bangle.musicControl({cmd:"volumesetlevel", extra:Math.round(100*fb/30)}); + if (mode == "incr") Bangle.musicControl(fb>0 ? "volumedown" : "volumeup"); + }; + require("SliderInput").interface(callback, true, true); + } } ); Bangle.on("touch", touchHandler); diff --git a/apps/spotrem/metadata.json b/apps/spotrem/metadata.json index 4e64630835d..531a4e5c4d0 100644 --- a/apps/spotrem/metadata.json +++ b/apps/spotrem/metadata.json @@ -1,7 +1,7 @@ { "id": "spotrem", "name": "Remote for Spotify", - "version": "0.09", + "version": "0.10", "description": "Control spotify on your android device.", "readme": "README.md", "type": "app",