mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge.git
synced 2025-01-10 17:11:56 +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);
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user