OSDN Git Service

Do not add a new alarm if the user cancels the time picker.
authorPatrick Scott <phanna@android.com>
Fri, 26 Feb 2010 13:18:46 +0000 (08:18 -0500)
committerPatrick Scott <phanna@android.com>
Mon, 1 Mar 2010 14:16:48 +0000 (09:16 -0500)
commit69b223ae3de87f19b1f4762bd5980a82766c5dc4
tree4a56dc0c7102cb6e5b4b4eaf8c8332cc59ea9898
parentc4ea134306d99982051c8d88f98e15a7fbbf8548
Do not add a new alarm if the user cancels the time picker.

TimePickerDialog calls onTimeSet only if the user hits the "Set" button. In the
case of a new alarm, keep track of the call to onTimeSet and check it when the
user presses back.

Bug: 2338234
src/com/android/deskclock/SetAlarm.java