History log of /packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0a49afa2ad697307cc04ef4cb86570574fa720f2 06-Dec-2016 Gary Mai <garymai@google.com> Collapse common package (2/2)

Ran optimize imports on the project as well to re-order everything
which would have changed because of removing common.

Test: Built GoogleContacts, GoogleContactsTests, Contacts,
ContactsTests and ran unit tests.

Bug: 33252370
Change-Id: I881f0ba8b8fef002b6eeefa9a16b34f15b2fd2a9
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
69c182afb0e6d82a341a28b4317aa703af768906 05-Dec-2016 Gary Mai <garymai@google.com> Collapse common packages (1/?)

Move the majority of packages out of common. When trying to move
common.activity to activities every file switched from a rename to
separated deletes and adds. Will move tests and the rest of common
in a separate CL.

Test: Built GoogleContacts, Contacts, GoogleContactsTests,
ContactsTests.

Bug: 33252370
Change-Id: I9ffb20038dee255ef5f83002b7870265771b08c5
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
884a4caf4debf620174486a1d1679b62f2b48457 24-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in decodedBitmapDrawable

Check for whether bitmap was successfully decoded from byte array.

Bug:18508529
Change-Id: If5c1bb3f0b726be5891d5b33d8bc7073cf40b108
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
8d4304c19b3c3d1e4f03805df62b14e47f965d9e 21-Aug-2014 Brian Attwell <brianattwell@google.com> Don't scale non-square QC photos while scrolling QC

To avoid re-scaling the non-square QC photo when resizing the QuickContact
ImageView, crop the contact photo into a square contact photo.

It is possible to use scaleType="matrix" with a custom matrix to avoid
needing to copy & crop the bitmap. However, it isn't worth the effort
given how rare non-square contact photos are. I have only seen non-square contact
photos for bussinesses.

Bug: 17135898
Change-Id: Idaa955d65c9fde74e104237908edf87e4c8cc1da
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
41369d7b93d565c0ed1a4f59d1f415858c480f5b 29-Apr-2014 Yorke Lee <yorkelee@google.com> Use circular photo support in ContactPhotoManager

Bug: 13747208

Change-Id: Iedbeefdaf1bda3e5a26a050b537bbb19d9aa5f2d
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
9cb2693758be39ad015df724d0288edb43b32628 26-Mar-2014 Yorke Lee <yorkelee@google.com> Fix for default avatars not refreshing in landscape

Make sure we obtain a new LetterTileDrawable in ImageViewDrawableSetter
if the previous drawable was an instance of LetterTileDrawable

Bug: 13584977
Change-Id: I8431fbdd473441a0e77425cdeab90688dbda65bd
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
f677450d82e7b961fda2a18fea2ad51e88437e8b 20-Feb-2014 Yorke Lee <yorkelee@google.com> Use new ContactPhotoManager APIs for default avatars in Contacts

*Update the following uses of ContactPhotoManager.loadPhoto
and ContactPhotoManager.loadThumbnail
GroupEditorFragment
EmailAddressListAdapter
PostalAddressListAdapter

*Replace the following uses of R.drawable.ic_contact_picture_holo_light and
ContactPhotoManager.getDefaultAvatarResId with
ContactPhotoManager.getDefaultAvatarDrawableForContact
PhotoEditorView
AggregationSuggestionView
SuggestedMemberListAdapter
ConfirmAddDetailActivity
ImageViewDrawableSetter

*Protect against a null drawable in TransformableImageView()

*Add lookup fields to cursor projections in EmailAddressListAdapter
and PostalAddressListAdapter to correct construct a DefaultImageRequest
and assign LetterTileDrawables for contact photos

Bug: 13101785
Change-Id: I9c04ce81192913bf3c398a9a7a9368861bd93b59
/packages/apps/Contacts/src/com/android/contacts/util/ImageViewDrawableSetter.java
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/util/ImageViewDrawableSetter.java
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