calculate the vibration duration more dynamically

This commit is contained in:
tibbi 2018-03-09 23:12:20 +01:00
parent 94757ae38a
commit a21ba3852c

View file

@ -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)
}