Skip to content

Conversation

bobrippling
Copy link

@bobrippling bobrippling commented Jun 4, 2025

This shows the next alert time (if setting enabled, and if there is a next alert time), in the notification

Closes #89

Todo:

  • Pass through EventRecord to EventFormatter.formatNotificationSecondaryText()
  • Add setting UI

@bobrippling
Copy link
Author

Does this look like the right approach?

@williscool
Copy link
Owner

Just wanted to say thanks for the PR!

I'll wait to fully review until your marked ready for review.

But could you add a screenshot and some tests for the message generation?

val duration = nextAlertTime - clock.currentTimeMillis()
if (duration > 0) {
sb.append(" (")
sb.append(ctx.getString(R.string.next_alert_in))
Copy link
Owner

@williscool williscool Jun 5, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this R string exist yet?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Display next alert time

2 participants