Skip to content

Commit f085a6a

Browse files
committed
Fix warning vibrate using shock intensity even when vibrate slider exists
1 parent a4d6df1 commit f085a6a

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

fastlane/metadata/android/en-US/changelogs/42.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,7 @@
33
- Updated safety dialog
44
- Started experimenting with vibrations in the ui for haptic feedback
55
- Fixed shock confirmation not correctly working in non grouped shocker view
6+
- Make sure vibration warning uses vibration level of vibrate slider
7+
8+
This is still ToDo before the next release!!!!!!!!!1
69
- Updated shock confirmation handling on random intensities

lib/screens/shockers/shocker_item.dart

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -783,7 +783,13 @@ class ShockingControlsState extends State<ShockingControls>
783783
// Get random delay based on range
784784
if (widget.manager.delayVibrationEnabled) {
785785
// ToDo: make this duration adjustable
786-
widget.onDelayAction(ControlType.vibrate, selectedIntensity, 500);
786+
int vibrationIntensity = selectedIntensity;
787+
// Make sure to use the intensity from the vibrate slider if it's enabled
788+
if(type != ControlType.vibrate && AlarmListManager.getInstance().settings.useSeperateSliders) {
789+
vibrationIntensity = widget.controlsContainer.getRandomVibrateIntensity();
790+
}
791+
792+
widget.onDelayAction(ControlType.vibrate, vibrationIntensity, 500);
787793
}
788794
delayDuration = widget.controlsContainer.delayRange.start +
789795
Random().nextDouble() *

0 commit comments

Comments
 (0)