shortening the message showing the time till the event

This commit is contained in:
tibbi 2022-02-26 22:39:22 +01:00
parent 1ce4c88ac2
commit daf7f8cd70

View File

@ -145,7 +145,7 @@ fun Context.scheduleEventIn(notifTS: Long, event: Event, showToasts: Boolean) {
if (showToasts) {
if (config.displayEventTypes.contains(event.eventType.toString())) {
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)
} else {
toast(R.string.saving_filtered_out, Toast.LENGTH_LONG)