Skip to content

Show next alert time in notification #90

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

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