Fix music controls

This commit is contained in:
Andreas Böhler
2019-01-06 11:31:50 +01:00
committed by Carsten Pfeiffer
parent 2c2d07067d
commit 81df586fbd
@@ -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);