OSDN Git Service

Add a setting to change the snooze duration.
authorPatrick Scott <phanna@android.com>
Tue, 28 Apr 2009 20:37:04 +0000 (16:37 -0400)
committerPatrick Scott <phanna@android.com>
Wed, 29 Apr 2009 12:01:55 +0000 (08:01 -0400)
commitabbdb5687b2f4505b16d3f8fad3efbab3ea1cf90
tree4c38f5b74eed73bf3c776fc8f0f7b6ffca1b9853
parent247bfb878f0f6a4eaf297f37261e9b88ed04bd0f
Add a setting to change the snooze duration.

Add a ListPreference to the SettingsActivity that has entries for 5, 10, 15, 20,
25, and 30 minutes. Use the entry value as the summary so the user knows the
current setting. Use the preference value or the default of 10 in AlarmAlert.
res/values/strings.xml
res/xml/settings.xml
src/com/android/alarmclock/AlarmAlert.java
src/com/android/alarmclock/SettingsActivity.java