OSDN Git Service

Cancel the snooze if the user sets an alarm for before the snooze fires.
authorPatrick Scott <phanna@android.com>
Mon, 9 Nov 2009 19:59:05 +0000 (14:59 -0500)
committerPatrick Scott <phanna@android.com>
Mon, 9 Nov 2009 20:00:31 +0000 (15:00 -0500)
commitc7edd6ea840e25cb04d090b6c29dc96c04d2be40
treed3e4b8f5081c04d10b0f9bb700f8496bab020487
parent4e8ad3a40141d05ced3279c6a0296b71ffc5117d
Cancel the snooze if the user sets an alarm for before the snooze fires.

If the alarm is enabled, check the snooze time to see if it needs to be
cancelled. Remove the preference and notification if cancelled. Return the
calculated time from setAlarm to avoid another calculation.

Bug: 2139162
src/com/android/deskclock/Alarms.java
src/com/android/deskclock/SetAlarm.java