Vibrate more at the end of timers
This commit is contained in:
parent
b681aa82d6
commit
6ad7091503
|
@ -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() {
|
||||||
|
|
Loading…
Reference in New Issue