mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-07 23:48:41 +01:00
show the new warning at events with reminders too
This commit is contained in:
parent
f7ee3feaec
commit
f0b610c9d9
@ -138,9 +138,13 @@ fun Context.scheduleEventIn(notifTS: Long, event: Event, showToasts: Boolean) {
|
|||||||
|
|
||||||
val newNotifTS = notifTS + 1000
|
val newNotifTS = notifTS + 1000
|
||||||
if (showToasts) {
|
if (showToasts) {
|
||||||
val secondsTillNotification = (newNotifTS - System.currentTimeMillis()) / 1000
|
if (config.displayEventTypes.contains(event.eventType.toString())) {
|
||||||
val msg = String.format(getString(R.string.reminder_triggers_in), formatSecondsToTimeString(secondsTillNotification.toInt()))
|
val secondsTillNotification = (newNotifTS - System.currentTimeMillis()) / 1000
|
||||||
toast(msg)
|
val msg = String.format(getString(R.string.reminder_triggers_in), formatSecondsToTimeString(secondsTillNotification.toInt()))
|
||||||
|
toast(msg)
|
||||||
|
} else {
|
||||||
|
toast(R.string.saving_filtered_out, Toast.LENGTH_LONG)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
val pendingIntent = getNotificationIntent(event)
|
val pendingIntent = getNotificationIntent(event)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user