Vibrate more at the end of timers

This commit is contained in:
Brandon Presley 2024-02-21 14:48:55 +13:00
parent b681aa82d6
commit 6ad7091503
1 changed files with 1 additions and 4 deletions

View File

@ -241,10 +241,7 @@ class TimerService : Service() {
@Suppress("DEPRECATION") @Suppress("DEPRECATION")
getSystemService(VIBRATOR_SERVICE) as Vibrator getSystemService(VIBRATOR_SERVICE) as Vibrator
} }
vibrator!!.vibrate(VibrationEffect.createWaveform(pattern, -1)) vibrator!!.vibrate(VibrationEffect.createWaveform(pattern, 2))
val handler = Handler(Looper.getMainLooper())
handler.postDelayed({ vibrator!!.cancel() }, 10000)
} }
private fun notifyFinished() { private fun notifyFinished() {