mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-06-05 22:19:17 +02:00
calculate the vibration duration more dynamically
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user