79a6b5d3a885bc508b4b98c92a946fe12643c444 |
|
16-Oct-2012 |
Chiao Cheng <chiaocheng@google.com> |
Sharing ContactPhotoManager between dialer and people. Move ContactPhotoManager and dependent classes to ContactsCommon so it can be shared by dialer and people. Bug: 6993891 Change-Id: Ib37af58718850d6d5515bbf3e46aca9fb95f9ee8
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.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/util/ImageViewDrawableSetter.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/util/ImageViewDrawableSetter.java
|
6e607d54ce08ebcc78d94963646a42605697f132 |
|
16-May-2012 |
Maurice Chu <mochu@google.com> |
Fixed contact detail animated transitions When selecting different contacts on a tablet, the animation is to set the contact details pane to white and fade in the new contact details. From quick contacts view (from Group or Favorites tab and launcher screen shortcut), if quickcontact is opened up and user touches the image, then when transitioning back to the contact details, the contact details shows all white and then transitions in the new contact details without showing the previously selected contact details. Bug: 6194409 Bug: 6324730 Change-Id: I5f56d46aef338b5d7a22e548548c42054656f381
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
|
2f77c85543e6c497e63cd0e216b70e58c1d13ec3 |
|
31-Mar-2012 |
Daniel Lehmann <lehmannd@google.com> |
Various refactorings to prepare proper big picture loading - Added a function to load a picture with ideal sampleSize - Renamed xmls/java files for tiles - ContactTileView is now abstract and has subclasses for each use-case - Added mechanism to estimate the image-size in a tile before layout - Changed the cross-fade in ContactPhotoManager to apply the fade to the current picture instead of the default avatar. Reduces flickering Bug:6202229 Change-Id: Ic8636d1b3349473163fb2424b5f74476fd435fb5
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
|
187c8167d77687fbc04237c9ac1e87564b2d5f33 |
|
14-Mar-2012 |
Josh Gargus <jjosh@google.com> |
Miscellaneous contact-detail fixes. Fix bug in carousel "Updates" tab, which would turn black when swiping it all the way to the left. This was caused by a small negative alpha being computed, and some incautious integer arithmetic to transform it for use in setBackgroundColor(). Fix clamps the alpha value between 0 and 1 (using newly-introduced MoreMath class). Fix visual glitch where the "Updates" label displays the "pushed" glow when tapped. Bug: 6009463 Change-Id: Iee041ee7793f198f1d51ea5e7c5bbcb07b9a41df
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
|
9758a92fac3e9f64892d893c992f6020d7fe3bfd |
|
09-Mar-2012 |
Josh Gargus <jjosh@google.com> |
Fade photos in contact-details and quick-contacts. Introduces new helper class, ImageViewDrawableSetter, which remembers the previously-set drawable, so it can transition from that to a new one. Change-Id: Ie6ee6d5ccc376cc9d5b7aa945f2622b173bf09e8
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
|