From a4fe911521c3b76fe0df4dda50ea6d0048c2e21b Mon Sep 17 00:00:00 2001 From: dkanada Date: Sun, 2 Jun 2019 21:36:05 -0700 Subject: [PATCH] fix volume manager until it can be toggled --- src/NativeShell/src/RemotePlayerService.java | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/NativeShell/src/RemotePlayerService.java b/src/NativeShell/src/RemotePlayerService.java index 69f25bc3d..4729a62a6 100644 --- a/src/NativeShell/src/RemotePlayerService.java +++ b/src/NativeShell/src/RemotePlayerService.java @@ -305,18 +305,6 @@ private void initMediaSessions() { mediaSession.setActive(true); mediaSession.setFlags(MediaSession.FLAG_HANDLES_TRANSPORT_CONTROLS | MediaSession.FLAG_HANDLES_MEDIA_BUTTONS); - // handle volume button presses from i.e. wear notifications, this will only generate up/down events, so the absolute values do not matter - mediaSession.setPlaybackToRemote(new VolumeProvider(VolumeProvider.VOLUME_CONTROL_RELATIVE, 100, 50) { - @Override - public void onAdjustVolume(int direction) { - if (direction > 0) { - sendCommand("volumeup"); - } - else { - sendCommand("volumedown"); - } - } - }); mediaSession.setCallback(new Callback() { @Override public void onPlay() {