1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2025-01-27 18:17:33 +01:00

Fix music controls

This commit is contained in:
Andreas Böhler 2018-12-28 21:05:12 +01:00 committed by Carsten Pfeiffer
parent 2c2d07067d
commit 81df586fbd

View File

@ -109,6 +109,9 @@ class CasioGATTServer extends BluetoothGattServerCallback {
LOG.info("Button pressed: " + button); LOG.info("Button pressed: " + button);
switch(button) switch(button)
{ {
case 3:
musicCmd.event = GBDeviceEventMusicControl.Event.NEXT;
break;
case 2: case 2:
musicCmd.event = GBDeviceEventMusicControl.Event.PREVIOUS; musicCmd.event = GBDeviceEventMusicControl.Event.PREVIOUS;
break; break;
@ -116,7 +119,7 @@ class CasioGATTServer extends BluetoothGattServerCallback {
musicCmd.event = GBDeviceEventMusicControl.Event.PLAYPAUSE; musicCmd.event = GBDeviceEventMusicControl.Event.PLAYPAUSE;
break; break;
case 0: case 0:
musicCmd.event = GBDeviceEventMusicControl.Event.NEXT;
break; break;
} }
mDeviceSupport.evaluateGBDeviceEvent(musicCmd); mDeviceSupport.evaluateGBDeviceEvent(musicCmd);