History log of /packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
4642e848a91180f6ff87acbfa54de1d0b945f19a 04-Oct-2012 Chiao Cheng <chiaocheng@google.com> Properly handle orientation change for alarm display/edit.

Normally activities are destroyed and re-created during an orientation change.
But many of the existing alarm activities have configChanges set in the
AndroidManifest file. This causes the framework to re-size instead of
re-creating the activity on orientation change. In turn, this prevents the
properly layouts and styles from being applied even though there are size
specific resources.

This caused a problem where the dialogs were too big after rotating from
portrait to landscape. Fixed the problem by removing configChanges and properly
handling orientation changes.

Bug: 7201797
Change-Id: I03ab20ce416db0bb8aeb0500dad2a08e7d015b52
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
5c3795c271bc6160f0ae2056627e9e96ffdc335c 02-Oct-2012 Chiao Cheng <chiaocheng@google.com> Completely new alarm list with in-place editing.

- No longer using separate dialog for setting alarms in the normal workflow.
Set alarm dialog is still needed to handle external extends. Fate of old
set alarm activity is still to be decided.
- Removed dialog theme for sw600dp screens.
- Added label edit dialog.
- Added custom on/off button to improve smoothness of clicks by increasing
hit box of clickable area.

Bug: 6164920
Change-Id: I19567658535f3ec78755328a147376a81d5363a8
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
bed1a89f743ec8b343803a44b938aad97ba0f16e 25-Sep-2012 Isaac Katzenelson <isaack@android.com> New time picker

Change-Id: I805316cc11f6a8b3e4dd40f1368f386df536d612
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
7b13ff0a3e1e71b27f7ef5ef749b602ff17a40d3 17-May-2012 Steve Levis <stevenl@google.com> Fix SetAlarm preferences for Tablets

- Reinstated Cancel/Delete/Ok buttons and onClickListeners

Bug: 6508419
Change-Id: If042197c0b1892efc654f477c8822c753ea1e3f0
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
748e9ada696912c262a097d4211fde528f1cc0b8 14-May-2012 Steve Levis <stevenl@google.com> Update DeskClock ActionBar to Contacts Edit style

- onBackPressed() identical behavior to pressing "Done"

Bug: 5954622
Change-Id: I94dd67ddcbaa11a082a14a04cee0807ad4deec6b
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
99d5e7fe75ca2b1d831fa902c50be35b4065ebfa 27-Apr-2012 Daniel Sandler <dsandler@android.com> Fix NPE.

Bug: 6292834
Change-Id: I06b05a02e4b0c45bcf8eed61dbb7a4bdd320d918
/packages/apps/DeskClock/src/com/android/deskclock/SetAlarm.java
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