OSDN Git Service

Fix a couple race conditions with expired alarms.
authorPatrick Scott <phanna@android.com>
Fri, 18 Sep 2009 20:02:09 +0000 (16:02 -0400)
committerPatrick Scott <phanna@android.com>
Fri, 18 Sep 2009 20:35:48 +0000 (16:35 -0400)
commit98948f9ce1dabcc79350a847baf220635b0c087a
treebb7c5fb0d0e4905f7805d7f7796adf21ab434155
parente58c886fcb0f1593a71e81ec5f28d610ac297700
Fix a couple race conditions with expired alarms.

Log the alarm time in a pretty format for easier debugging. Disable expired
alarms when calculating the next alert. This solves 2 problems: an expired alarm
remains checked in the UI and the expired alarm is sent to the alarm manager. I
believe the second problem is causing bug 2080160.
src/com/android/alarmclock/AlarmReceiver.java
src/com/android/alarmclock/Alarms.java