Skip to content
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

alarm service #597

Merged
merged 21 commits into from
May 15, 2022
Merged

alarm service #597

merged 21 commits into from
May 15, 2022

Conversation

forrestguice
Copy link
Owner

pass the service startId to alarm receiver listeners
stopSelf( id )
skip stopSelf if showing a foreground notification (the service should live on with the notification)
fix NullPointerException on undo 'clear alarms' (empty list)
adds AlarmNotificationsTest; implements AlarmNotifications local binder (so the test can bind to the service), and static `t_hasCalledStopSelf` (so the test can verify calls to stopSelf).
NotificationService calls stopSelf() if the context is null, alarm item is null (not found). action is unrecognized, or alarm transitions fail (invalid state).
AlarmNotifications
test AlarmNotifications media player
@forrestguice forrestguice added this to the v0.14.5 milestone May 12, 2022
reject alarm sounds that aren't content:/, file:/ or android.resource:/ .. replace these with the default or fallback.
If playing the default sound fails, make a final attempt using the fallback sound (rtttl).
@forrestguice forrestguice merged commit e33848c into master May 15, 2022
@forrestguice forrestguice deleted the alarm-service branch November 11, 2022 22:48
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant