fix urgent NS alarm preference

This commit is contained in:
Milos Kozak 2020-05-16 22:43:18 +02:00
parent ca94e6cc67
commit 8729fe18bd

View file

@ -57,7 +57,7 @@ class NotificationWithAction constructor(
id = NSURGENTALARM id = NSURGENTALARM
level = URGENT level = URGENT
text = nsAlarm.title() text = nsAlarm.title()
if (nsAlarm.low() && sp.getBoolean(R.string.key_nsalarm_low, false) || nsAlarm.high() && sp.getBoolean(R.string.key_nsalarm_high, false) || nsAlarm.timeago() && sp.getBoolean(R.string.key_nsalarm_staledata, false)) soundId = R.raw.urgentalarm if (nsAlarm.low() && sp.getBoolean(R.string.key_nsalarm_urgent_low, false) || nsAlarm.high() && sp.getBoolean(R.string.key_nsalarm_urgent_high, false) || nsAlarm.timeago() && sp.getBoolean(R.string.key_nsalarm_staledata, false)) soundId = R.raw.urgentalarm
} }
} }
buttonText = R.string.snooze buttonText = R.string.snooze