mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2025-01-27 18:17:33 +01:00
Fix music controls
This commit is contained in:
parent
2c2d07067d
commit
81df586fbd
@ -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);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user