From 81df586fbd15a218c681b8f4c908b43fcc6e567b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andreas=20B=C3=B6hler?= Date: Fri, 28 Dec 2018 21:05:12 +0100 Subject: [PATCH] Fix music controls --- .../service/devices/casiogb6900/CasioGATTServer.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casiogb6900/CasioGATTServer.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casiogb6900/CasioGATTServer.java index d76402b8a..79f03b8ee 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casiogb6900/CasioGATTServer.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/casiogb6900/CasioGATTServer.java @@ -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);