mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-06-05 21:59:17 +02:00
shortening the message showing the time till the event
This commit is contained in:
@ -145,7 +145,7 @@ fun Context.scheduleEventIn(notifTS: Long, event: Event, showToasts: Boolean) {
|
|||||||
if (showToasts) {
|
if (showToasts) {
|
||||||
if (config.displayEventTypes.contains(event.eventType.toString())) {
|
if (config.displayEventTypes.contains(event.eventType.toString())) {
|
||||||
val secondsTillNotification = (newNotifTS - System.currentTimeMillis()) / 1000
|
val secondsTillNotification = (newNotifTS - System.currentTimeMillis()) / 1000
|
||||||
val msg = String.format(getString(R.string.reminder_triggers_in), formatSecondsToTimeString(secondsTillNotification.toInt()))
|
val msg = String.format(getString(R.string.time_remaining), formatSecondsToTimeString(secondsTillNotification.toInt()))
|
||||||
toast(msg)
|
toast(msg)
|
||||||
} else {
|
} else {
|
||||||
toast(R.string.saving_filtered_out, Toast.LENGTH_LONG)
|
toast(R.string.saving_filtered_out, Toast.LENGTH_LONG)
|
||||||
|
Reference in New Issue
Block a user