History log of /packages/apps/Contacts/src/com/android/contacts/model/RawContact.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
10bf684e0c9022d80b04d9cc69665c6341677bea 15-Aug-2012 Maurice Chu <mochu@google.com> Enable parsing phone number in ContactLoader

A new flag has been added to the ContactLoader to compute
a formatted number based on the original phone number,
phone number in E164 format, and the default country code
iso. Only the ContactLoader for the contact detail card has
been enabled to compute this formatted number.

Bug: 6521929
Change-Id: I0a8eaaa49b7768e9ce2a177d64881562e6bec1d7
/packages/apps/Contacts/src/com/android/contacts/model/RawContact.java
59b83fa3647dd104df899953321a4c37945448a4 10-Jul-2012 Geobio Boo <geobio@google.com> Fix bug where IllegalArgumentException was thrown incorrectly in RawContact

Bug:6800450
Change-Id: I4383eb0f90f90260c680e66a0ec9b959e6f95db4
/packages/apps/Contacts/src/com/android/contacts/model/RawContact.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/model/RawContact.java