Skip to content

Alarm can display previous events instead of current ones #1494

Description

@BlankEclair

Describe the bug
When an alarm is firing, it can display an alarm for the previous set of events instead of the current set of events that fired the alarm.

To Reproduce

  1. Enable "Exact reminders" (for easier debugging), and "Combine same time notifications"
  2. Add a medicine titled "test main", set its priority to High + Alarm, and add two reminders (one for 8:00 AM, and the other for 8:01 AM)
  3. Duplicate "test main", rename to "test1", and delete the 8:01 AM reminder
  4. Duplicate "test1", rename to "test2", and set the sole reminder to 8:01 AM
  5. Lock the device, and wait until 8:00 AM
  6. Press the home button to hide the alarm, and mark the "test main" and "test1" reminders as taken via the notifications
  7. Lock the device, and wait until 8:01 AM
  8. Notice that the alarm displays reminders for "test main" and "test1", not "test main" and "test2"

Expected behavior
The alarm to display for the current set of events, not for the previous ones.

Screenshots

1.webm

Smartphone

  • Device: Google Pixel 8a, Android Emulator
  • Android version: Android 16

Additional context
I sometimes "silence" the alarm by pressing on the home button, to avoid marking the alarm as taken while I'm walking to take my meds, but without the alarm blaring until I do so.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions