mirror of
https://github.com/SimpleMobileTools/Simple-Clock.git
synced 2025-03-05 20:18:16 +01:00
vibrate at elapsed timers only if needed
This commit is contained in:
parent
38d6665286
commit
c601febfaa
@ -307,7 +307,7 @@ fun Context.getTimerNotification(timer: Timer, pendingIntent: PendingIntent, add
|
||||
vibrationPattern = longArrayOf(0L)
|
||||
}
|
||||
|
||||
enableVibration(true)
|
||||
enableVibration(timer.vibrate)
|
||||
notificationManager.createNotificationChannel(this)
|
||||
}
|
||||
|
||||
@ -326,7 +326,11 @@ fun Context.getTimerNotification(timer: Timer, pendingIntent: PendingIntent, add
|
||||
.addAction(
|
||||
R.drawable.ic_cross_vector,
|
||||
getString(R.string.dismiss),
|
||||
if (addDeleteIntent) reminderActivityIntent else getHideTimerPendingIntent(timer.id!!)
|
||||
if (addDeleteIntent) {
|
||||
reminderActivityIntent
|
||||
} else {
|
||||
getHideTimerPendingIntent(timer.id!!)
|
||||
}
|
||||
)
|
||||
|
||||
if (addDeleteIntent) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user