mirror of
https://github.com/clangen/musikcube.git
synced 2025-01-04 17:38:05 +00:00
Fixed volume up / down key not working for remote playback, caused by
recent refactors.
This commit is contained in:
parent
eeafa9d7e8
commit
c41e89367c
@ -42,7 +42,7 @@ class PlaybackMixin(var listener: (() -> Unit)? = null): MixinBase() {
|
|||||||
val streaming = prefs.getBoolean(
|
val streaming = prefs.getBoolean(
|
||||||
Prefs.Key.STREAMING_PLAYBACK, Prefs.Default.STREAMING_PLAYBACK)
|
Prefs.Key.STREAMING_PLAYBACK, Prefs.Default.STREAMING_PLAYBACK)
|
||||||
|
|
||||||
if (streaming) {
|
if (!streaming) {
|
||||||
if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
|
if (keyCode == KeyEvent.KEYCODE_VOLUME_DOWN) {
|
||||||
service.volumeDown()
|
service.volumeDown()
|
||||||
return true
|
return true
|
||||||
|
Loading…
Reference in New Issue
Block a user