From 6ad7091503d310ab70cc8079df911a376d073dc8 Mon Sep 17 00:00:00 2001 From: Brandon Presley Date: Wed, 21 Feb 2024 14:48:55 +1300 Subject: [PATCH] Vibrate more at the end of timers --- android/app/src/main/java/com/massive/TimerService.kt | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/android/app/src/main/java/com/massive/TimerService.kt b/android/app/src/main/java/com/massive/TimerService.kt index 0cbe5c9..9d2e606 100644 --- a/android/app/src/main/java/com/massive/TimerService.kt +++ b/android/app/src/main/java/com/massive/TimerService.kt @@ -241,10 +241,7 @@ class TimerService : Service() { @Suppress("DEPRECATION") getSystemService(VIBRATOR_SERVICE) as Vibrator } - vibrator!!.vibrate(VibrationEffect.createWaveform(pattern, -1)) - - val handler = Handler(Looper.getMainLooper()) - handler.postDelayed({ vibrator!!.cancel() }, 10000) + vibrator!!.vibrate(VibrationEffect.createWaveform(pattern, 2)) } private fun notifyFinished() {