diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/VibrationActivity.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/VibrationActivity.java index e8b85102e..888fabae0 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/VibrationActivity.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/activities/VibrationActivity.java @@ -44,7 +44,9 @@ public class VibrationActivity extends GBActivity { seekBar.setOnSeekBarChangeListener(new SeekBar.OnSeekBarChangeListener() { @Override public void onProgressChanged(SeekBar seekBar, int progress, boolean fromUser) { - LOG.info("changed to:" + progress); + if (progress > 0) { // 1-16 + progress = progress * 16 - 1; // max 255 + } GBApplication.deviceService().onSetConstantVibration(progress); } diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/vibratissimo/VibratissimoSupport.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/vibratissimo/VibratissimoSupport.java index ebe1d5e1b..d72c144e3 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/vibratissimo/VibratissimoSupport.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/service/devices/vibratissimo/VibratissimoSupport.java @@ -215,6 +215,7 @@ public class VibratissimoSupport extends AbstractBTLEDeviceSupport { @Override public void onSetConstantVibration(int intensity) { + getQueue().clear(); BluetoothGattCharacteristic characteristic2 = getCharacteristic(UUID.fromString("00001526-1212-efde-1523-785feabcd123")); BluetoothGattCharacteristic characteristic1 = getCharacteristic(UUID.fromString("00001524-1212-efde-1523-785feabcd123")); diff --git a/app/src/main/res/layout/activity_vibration.xml b/app/src/main/res/layout/activity_vibration.xml index c8e3ee048..4a2a5ac6c 100644 --- a/app/src/main/res/layout/activity_vibration.xml +++ b/app/src/main/res/layout/activity_vibration.xml @@ -10,7 +10,7 @@ \ No newline at end of file