History log of /packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
cd321f65f1e50409812976380ad1f0fdb3fa35cb 28-Oct-2013 Yorke Lee <yorkelee@google.com> Move ContactLoader related code to ContactsCommon

This CL simply moves classes from Contacts into ContactsCommon.

This is needed so that Dialer can use ContactLoader related code
for b/11294679. A ContactLoader will also be needed in the future
to allow InCallUI to download hi-res photos while in call.
Bug: 11294679

Change-Id: Ia033f3ea2406a907a4e71290c9ce810a5583dab8
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
ec6bfa0ce4a94edbafb97c7ae2b573abf2aa4a85 20-Dec-2012 Yorke Lee <yorkelee@google.com> Add intent to view calendar for event data item

Refactor parseDate and formatDate code in DateUtils to reduce
duplicate code.

Bug: 7876289
Change-Id: I0463c21942ab825e23146a485789795891726c3f
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
4b294d6c96c4865b64338e5d222ff9dc87bad5b9 19-Dec-2012 Yorke Lee <yorkelee@google.com> Standardize event date formatting in People app

Refactor formatDate in DateUtils to allow it to return long and short
date formats.
Use full localized dates similar to dates in Calendar in
ContactDetailFragment.
Use short localized dates only in EventFieldEditorView to avoid overflow.
Bug: 5042674
Change-Id: Iaff340046c84d7ce474757367454358c47d73a08
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
78253a9e7e8dc5724333fa6a61e537249adac90b 04-Dec-2012 Yorke Lee <yorkelee@google.com> Show the current date when creating a new event.

Bug: 6460956
Change-Id: I48752c6b133cd05c49e9b418724eb905963d5d8a
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
738ff8623dc77dd91a1b9023861e924ba5e4c27e 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move ValuesDelta to ContactsCommon.

Bug: 6993891
Change-Id: I8b065c55100a152f72cccea5b62f10a8e30161c2
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
aa690d4949b8105e5bcf10569b7cf4fae36741de 29-Nov-2012 Chiao Cheng <chiaocheng@google.com> Prefactor RawContactDelta.ValuesDelta into top level class.

Making ValuesDelta into top level class so we do not have to move
RawContactDelta into ContactsCommon. ValuesDelta is used by
CustomContactListFilterActivity which needs to be moved.

Bug: 6993891
Change-Id: If7371cf08ac0e14218fb790c96856e971fa613ec
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
428f008513d1591cc08fcfe2cf0c9237fb313241 14-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move dependencies of AccountTypeManager into ContactsCommon.

Moving dependencies in preparation to move AccountTypeManager.

Bug: 6993891
Change-Id: I804cdbe64b9b8111ed286037943d593e11dc4044
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
5a7a26962cc781d675280c790789e2dea28a7b34 04-Aug-2012 Daniel Lehmann <lehmannd@google.com> Fix support for birthday on February 29th with year omitted

Bug:6260151
Change-Id: Ib78e8bfc30dd5d9554c1f82f9617f7abacb5ce78
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
851222a96b5d68602fb361ea3527101e893f67e3 21-Jun-2012 Maurice Chu <mochu@google.com> Added thin object layer around contact data

This refactoring abstracts out the need to directly
refer to Contacts database columns throughout the code. Instead,
all of this information is retained in getter/setter methods
within the Contact, RawContact, and DataItem classes and
sub-classes.

ContactLoader.Result class has been pulled to the top level as
the Contact class.

The Entity class has been removed and replaced with a RawContact
class, with getters/setters to raw contact information.
Renamed EntityDelta to RawContactDelta for better understandability
as well as adding getters/setters for specific fields in the
ValuesDelta nested class within EntityDelta. EntityDeltaList
and EntityModifier have been renamed to RawContactDeltaList and
RawContactModifier with the methods using the RawContact class
directly rather than the Entity class.

Data items for a raw contact are represented by a DataItem object
with specialized getters/setters for subclasses of DataItem.
(e.g., EmailDataItem, PhoneDataItem. etc.). DataItem is a wrapper
around ContentValues. This abstracts away the ContactsContract
column fields into getters/setters.

The above refactoring is accompanied with changes throughout the
codebase to use the new Contact, RawContact, and DataItem classes.

Change-Id: I31c1dccd724e9652f9d0af78ca81feb6c5acd71d
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
e0b2f1e2d01d1ac52ba207dc7ce76971d853298e 12-Jun-2012 Chiao Cheng <chiaocheng@google.com> Global import order fix.

Changed import order to be in accordance with style guide:
http://source.android.com/source/code-style.html#order-import-statements

Static imports will be placed at the top since most existing files used that
convention. It is also a style that can be handled by both eclipse and intellij.

Change-Id: Ia7013c7a2d88e5fefb8f4975d121f7fcd3fcc462
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
11812c59ee140d62eaf3a8d826d2018767d490c5 30-Mar-2012 Daniel Lehmann <lehmannd@google.com> Don't move "Provide a year" around on screen anymore, center instead

- Also fixes the title when no year is used. Doesn't show year "1' anymore

Bug:6009385
Change-Id: If0a23d852112970456dc3f5c4061d5c578fff48a
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
26918da1650c1ff7b6f92deb978ab976525c811a 03-Feb-2012 Josh Gargus <jjosh@google.com> Contact-editor now immediately shows proper editor for new fields.

Previously, when adding a new field via "Add new" or "Add another
field", an empty field appeared, but the user couldn't edit its
contents without first tapping on it. Now the approperiate editor
UI pops up immediately (eg: when you add a new "event", a date-picker
pops up).

Bug: 5070818
Change-Id: I882a8202a6a76f73f3efd24734b0e0acdbcecac0
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
296cca5522815fc51829203d326c335f9824f118 02-Dec-2011 Josh Gargus <jjosh@google.com> Avoid "Add New" button following the empty date field in new contact.

EventFieldEditorView.isEmpty() has two issues. First, it doesn't deal
properly with the placeholder text in the empty date field. Second,
it queries the text from the text field instead of from the edit-field
(i.e. from the view rather than from the model). The latter leads to a
problem when isEmpty() is called before the text-field's value has been
set. Both of these are now fixed.

Bug: 5265651
Change-Id: I8cf1a66ddfbeaca04211e227a20640556fb095b9
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
9574314dd24a045761453b51244fa75a1da36f6e 11-Aug-2011 Katherine Kuan <katherinekuan@google.com> String changes

Bug: 5150725
Change-Id: I5b9cb06fe20db37f3d9af6a8e06b35277df3580f
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
fd70903236883f47b21f23b8cb49a1ccacdfcdf1 02-Aug-2011 Katherine Kuan <katherinekuan@google.com> Pixel perfect work for phone contact editor

- Always show account header for raw contacts
- Align text fields and titles along the left margin
- Align spinners
- Use "Add new" as the default text if there's no value
in Event or Groups field yet
- Restyle account header
- Use primary/secondary colors everywhere
- Non-editable contact fixes: remove "not editable on
this device" and replace it with a toast when the
user clicks on the header, restyle item_read_only_field

Bug: 5097095

Change-Id: I94a6c91b05344028b64c62735fb4559f9944529d
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
2293e55d550fbc9974d1185960715e59acb14a85 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Clear field if try to delete last field in section of contact editor

- Don't remove the field if it's the last field in the section,
just clear all EditText fields in that editor

Bug: 4382255
Change-Id: I2b436fbe895e5cc52770eefedaa2bc5f9726605f
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
5e330ed98f1c2711b4cd3b375a1c0f76bedaf3e1 16-Jul-2011 Katherine Kuan <katherinekuan@google.com> Remove unnecessary delete buttons in contact editor

- Don't offer the delete button until the user has typed something
into the field

Change-Id: I37585565b77f3d6a06677341191bb0f0cc72e508
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
d37a891cb44cd17083c06d7be693c469403d16df 27-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Enable account switcher in contact creation

- remove account selection step before contact creation
- (phone) put account info on the right side of photos
instead of having "header" for it
-- renamed header_* ids for account stuffs as they may not be
part of header any more.
- add migration functionality to EntityModifier
- add test for it
- no optimal layout

Bug: 4184675
Change-Id: I0e777f9aa37a7c9145bd430f897f8068b0bede56
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
2591436971bad3050c85929c8e0c5a8d48111f88 30-Apr-2011 Katherine Kuan <katherinekuan@google.com> Fix "add field" logic

- Only update "add field" footer when field goes empty --> non-empty
and vice versa, fix the case for 4 line addresses in Exchange contacts
- Add property in DataKind class for "add field" string
- Remove hash map of mime types --> string resource IDs in
KindSectionView
- Remove "add internet call" string

Bug: 4363151
Bug: 4371568
Change-Id: Id2fec743a7c3e68d8404591cc61de20487245b0a
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
1b22073590c1801c3e6c7bde2f4636632a049f6c 29-Apr-2011 Katherine Kuan <katherinekuan@google.com> "Add field" footer logic

- Instead of an explicit "+" button to add a new field (which
also allows adding multiple empty fields), only show a
"add field" footer to the KindSectionView if there are no
existing empty fields in the section.
- Make the whole footer a touch target and display a
custom message according to the DataKind mime type

Bug: 4363151
Change-Id: Ib7cef5ed5aaefa5b1269f95ed8fe89e7dd742f36
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
63ffb90935d8aec295e4a8f62af6c77dafe1899f 27-Apr-2011 Katherine Kuan <katherinekuan@google.com> Refactor to inflate views from XML

- This is part 1 of getting the contact editor up to par with
the UI mocks, there are some known issues that will be fixed
in coming CLs (i.e. add button functionality)
- This way, the field editors can be vertically stacked
on the phone and horizontally stacked on the tablet.
- Get rid of duplicate labels by using the hint text in the field
or spinner as the title

Change-Id: Ia00a1a65ad0bbd7a4bc05ccb93dd1b1496bca5df
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
405671a7b42d97ebf7ae7c0eeb4721f881139673 29-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Move DataKind outside AccountTypes

Bug: 4184675
Change-Id: Ibb20cb8b38d0272963fc5330c738bd17c61a5542
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
4b648485346462dc26c3a469caeae8589f5fbd58 04-Mar-2011 Daniel Lehmann <lehmannd@google.com> Set time zone on date formats.

Also fix Locale to use en-US for storing dates

Bug:3502565

Change-Id: Id3728de2d2f2c77ad1f27e6acbd71a91d840b3a6
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
c69a9ccb6c6440127f75b51aca123afa6946474a 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Making Event and Group selectors look like spinners

Bug: 3383800
Change-Id: Ie460cc5d2b80dbedd962f5bf24d2ae389bdf0268
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
135b44c8604e375699e22594e65f0daec14f5bbe 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Changing event and group membership from TextEdit to Button

Bug: 3362537
Change-Id: I262bb546f03a7ce40c681e0f0077f97508359a21
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
2b3f95cc12b76523410782d4178562ce241410ef 03-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding support for (some of) ISO 8601 date formats

Bug: 3293435
Change-Id: I1925040b92895bc8c721f18d75f22329d0ba0ac8
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
17e6f9d6c0dab8bb02f4f7e2f9f43f8b8449f55a 03-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE on switching from Birthday to Anniversary event type

The code is trying to ensure that a year is provided
(which is not required for a birthday). The value
may be null or an empty string.

Bug: 3314819
Change-Id: If76731316e581addeeca9427adcf204eec7e5199
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
91d8e892d549bbeba721cb434163a83bc99330a9 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Aligining fields in the editor

Change-Id: I7137055bf8ab61df33f6a87c8e6c8227dbee8a9f
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
02bb1252aa990813fa9e86ad75c458acc15e6801 06-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing progress dialog when saving a contact

Bug: 3253127
Change-Id: Ifd3b58f202fea76596880fb6de9f8acc46a32d79
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java
18ffaa2561cc7dd2e3ef81737e6537931c0a9a11 03-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming a couple of packages

Change-Id: I2c0f86b51baa622df629206f8b79ef1d0df09119
/packages/apps/Contacts/src/com/android/contacts/editor/EventFieldEditorView.java