1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-06-29 00:10:26 +02: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);
switch(button)
{
case 3:
musicCmd.event = GBDeviceEventMusicControl.Event.NEXT;
break;
case 2:
musicCmd.event = GBDeviceEventMusicControl.Event.PREVIOUS;
break;
@ -116,7 +119,7 @@ class CasioGATTServer extends BluetoothGattServerCallback {
musicCmd.event = GBDeviceEventMusicControl.Event.PLAYPAUSE;
break;
case 0:
musicCmd.event = GBDeviceEventMusicControl.Event.NEXT;
break;
}
mDeviceSupport.evaluateGBDeviceEvent(musicCmd);