Fixed binding of dismiss button in AlarmVH when cancelling snoozed alarm

This commit is contained in:
Phillip Hsu
2016-06-07 13:43:00 -07:00
parent 9f151fa9cc
commit 5eb52ee510
2 changed files with 8 additions and 1 deletions
@@ -67,6 +67,9 @@ public final class AlarmUtils {
removeUpcomingAlarmNotification(c, a);
// If service is not running, nothing happens
// TODO: Since RingtoneService is a bound service, will this destroy the service after returning?
// Note that if a stopped service still has ServiceConnection objects bound to it with the
// BIND_AUTO_CREATE set, it will not be destroyed until all of these bindings are removed.
c.stopService(new Intent(c, RingtoneService.class));
}