History log of /packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9c8f420c5d715d1b3923e7c15a38df0df23f7a39 06-Sep-2011 Erik <epastern@google.com> b/5262767 Make label an inline text field

Also don't display toast about when the alarm is set for if the
alarm is not enabled.

Change-Id: I02e7b9171cec7cad847d0e41d7a7327c53d1b21c
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
c4c4a127ab49e01cd520808c74f43940f61f467f 02-Sep-2011 Michael Chan <mchan@android.com> Change the time picker back to a dialog.
The time picker was take up too much space on phone landscape.
The time picker can't be scrolled since it takes drag and flick input... same as the list view.

BUG:5239061

Change-Id: If139301e33d4ef99e24edfc678a17fc6b492d352
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
31e21c3131212079a5735bfce949560b03a09a82 25-Aug-2011 Michael Chan <mchan@android.com> Fixed a bunch of issues in the add/edit alarm.
Some of the issues are triggered after a rotation

5239061 Remove time item (there's already a time picker on screen)
5239214 Show correct time in time picker when editing
5102407 Do not save a new alarm on rotate
Do not show toast when enable alarm is checked or time changed
Show toast only when the user clicks OK
Revert properly after rotate
Revert on back

Change-Id: I4ed66abafbe13f172eb1c6a4fc34782ab309dea8
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
d2ee3ef01076138f0ac7b3e0acc580238ffea160 30-Aug-2011 Mindy Pereira <mindyp@google.com> Reconfigure how alarms are setup.

Fixes bug:3368780 Canceling in the Middle of Adding an Alarm Flow is Confusing on Tablet

now:
On existing alarm: can delete, cancel, save(ok)
on new alarm: can cancel or save(ok)
time picker is in the first dialog

Change-Id: I3fa86fc8de4b73ee422e78790a796bad14e404e7
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
73327b39cf35c8f2f4e5ba1ac30c6fd41a99d10f 24-Aug-2011 Erik <epastern@google.com> b/5076132 Work on matching clock redlines

Also rips out a lot of now unused code.

Change-Id: Idd3f9dd0d3a1395897ea7c8b0926d09da5cb1794
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
77f14bd0ce48db935911da5d0a92b6348e6197fb 15-Dec-2010 Patrick Scott <phanna@android.com> Implement EXTRA_SKIP_UI.

Change SetAlarm to take an alarm object instead of just the id. Have
HandleSetAlarm pass the new Alarm object to the activity if EXTRA_SKIP_UI is
false.

Update TestAddAlarm to toggle the UI.

Bumped version number.

Bug: 3284120
Change-Id: Ie84ac8e3d7a63bfd64e40c626e577ce8b1f371b9
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
bed2fe9bfd0e952c29b5ff90f70350ef8d0a65e4 07-Dec-2010 Patrick Scott <phanna@android.com> Remove the vibrate pref if there is no vibrator.

Bug: 3203033
Change-Id: I1baf0c0289cfc59b89f519e95df06bc56ec1a582
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
5ad9026a54e8d025154ac644c6d938b1ff118ef1 28-Sep-2010 Patrick Scott <phanna@android.com> Pop a toast when handling the set alarm intent.

If the intent does not contain extras, start the AlarmClock activity to show the
list of alarms.

When checking for an alarm that already exists, make sure the repeat setting is
0.

Change-Id: If257b0d3bd591cddf7ff92b56bb240af8cb621a3
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
585d4e43e87b3cc95763bd4342a3997acb55de8b 08-Mar-2010 Patrick Scott <phanna@android.com> Enable the alarm when preferences change and not when hitting done.

The original intent was to enable the alarm when hitting done after making edits
but this caused the alarm to always turn on even if the user turned the alarm
off and hit done.

Bug: 2441762
Change-Id: I9f37ec2477ddced26df1c1fb4444cd5e5121e7d5
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
6064d3f7aabcb073dc3f917e049bc04c67fb6b29 03-Mar-2010 Patrick Scott <phanna@android.com> Have "Revert" go back to the original state of the alarm.

Keep the original alarm state so that revert will reload the preferences from
the original state. Have all preferences immediately take effect. When adding a
new alarm, add the alarm if preferences change and then delete the alarm when
reverting.

Pop the set alarm toast only when changing the time or the enabled setting and
the result is that the alarm is enabled. Otherwise there can be a lot of toasts
showing while editing an alarm.
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
69b223ae3de87f19b1f4762bd5980a82766c5dc4 26-Feb-2010 Patrick Scott <phanna@android.com> 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
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
c9c1acdc0d4a2e7ec3335b9efa4499c92304091d 17-Feb-2010 Patrick Scott <phanna@android.com> Disable "Delete" button when adding a new alarm.

Bug: 2440197
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
e46be904bd76dff5a13aeef12e9bfeddac7bbe81 27-Jan-2010 Patrick Scott <phanna@android.com> Moving alarm creation into SetAlarm.

This change allows the user to create a new alarm and then press "Revert"
without having already created the alarm.

Refactor a few methods to take an Alarm object rather than all the alarm fields.
The static method in AlarmClock to create a new alarm is no longer needed. Do
some cleanup in AlarmProvider around intial values.

Bug: 2338234
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
fe8dd39ee5e173f15337d09c36aa453a55364e98 20-Jan-2010 Patrick Scott <phanna@android.com> Unbundle the DeskClock.

- Copy some framework resources into the app.
- Add a new layout to SetAlarm to avoid using an internal id to obtain the
content view.
- Use a string literal to identify the ALARM_CHANGED intent. This is not ideal
but is better than exposing the actual intent string for now.
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
bf25a2cc3b00c085b8207443e9a0419108536aef 09-Jan-2010 Romain Guy <romainguy@android.com> Deprecate fill_parent and introduce match_parent.
Bug: #2361749.
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
c3f77cc16633551c4daf1c160f4655762dda9a3b 02-Dec-2009 Patrick Scott <phanna@android.com> resolved conflicts for merge of 90c4833f to eclair-mr2
90c4833f94f4775f747333f8bd67107364a1d9c1 23-Nov-2009 Patrick Scott <phanna@android.com> UI changes based on feedback from Jeff and Amar.

Bug: 2278206
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
123538f398bec9e425aee6fd427aa4ad7a11fb28 12-Nov-2009 Patrick Scott <phanna@android.com> am bafd4638: Merge change Ic7edd6ea into eclair

Merge commit 'bafd4638a5f7f5ea1663e13caee2e1e7ae7e75c9' into eclair-mr2

* commit 'bafd4638a5f7f5ea1663e13caee2e1e7ae7e75c9':
Cancel the snooze if the user sets an alarm for before the snooze fires.
c7edd6ea840e25cb04d090b6c29dc96c04d2be40 09-Nov-2009 Patrick Scott <phanna@android.com> 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
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
3dbaa9d07abf3133024bac468e452a071f270fac 17-Oct-2009 Daniel Sandler <dsandler@google.com> am fa954248: Moving things around a little in the new DeskClock.

Merge commit 'fa954248b41b567dfa2ddd7bd063d3936a51758e' into eclair-mr2

* commit 'fa954248b41b567dfa2ddd7bd063d3936a51758e':
Moving things around a little in the new DeskClock.
fa954248b41b567dfa2ddd7bd063d3936a51758e 16-Oct-2009 Daniel Sandler <dsandler@google.com> Moving things around a little in the new DeskClock.

- Package is now com.android.deskclock
- Launches in response to insertion in desk dock or
DESK dialercode

TODO next: split the AlarmClock activity into a DeskClock
and AlarmList (or similar).
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java