calculate the vibration duration more dynamically
This commit is contained in:
parent
94757ae38a
commit
a21ba3852c
1 changed files with 1 additions and 1 deletions
|
@ -73,7 +73,7 @@ class AlarmReceiver : BroadcastReceiver() {
|
|||
}
|
||||
|
||||
if (alarm.vibrate) {
|
||||
val vibrateArray = LongArray(1200) { 500 }
|
||||
val vibrateArray = LongArray((NOTIFICATION_DISAPPEAR_MS / 500).toInt()) { 500 }
|
||||
builder.setVibrate(vibrateArray)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue