mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-02-21 22:27:50 +01:00
calculate the vibration duration more dynamically
This commit is contained in:
parent
94757ae38a
commit
a21ba3852c
@ -73,7 +73,7 @@ class AlarmReceiver : BroadcastReceiver() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (alarm.vibrate) {
|
if (alarm.vibrate) {
|
||||||
val vibrateArray = LongArray(1200) { 500 }
|
val vibrateArray = LongArray((NOTIFICATION_DISAPPEAR_MS / 500).toInt()) { 500 }
|
||||||
builder.setVibrate(vibrateArray)
|
builder.setVibrate(vibrateArray)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user