summaryrefslogtreecommitdiffstats
path: root/src/com/android/contacts/common/ContactPhotoManager.java
Commit message (Collapse)AuthorAgeFilesLines
* ContactPhotoManager - Add ability to fetch contact bitmap based on photo idRohit Yengisetty2015-07-171-5/+31
| | | | Change-Id: Ie9f4ec17ec7f598c8d0005e27107f300af829fc3
* ContactsCommon : Remove pending request for get contact bitmapsDanesh M2015-05-041-1/+1
| | | | | | | Ensure we remove the pending request from the queue, once its processed. Change-Id: I639f988a7298c59a49414c72adec84fc08115cc2
* ContactsCommon : Only use default requests if one is not providedDanesh M2015-04-231-21/+39
| | | | | | | | This solves the issue where the provider doesn't end up receiving the request it initially created and passed along. Change-Id: Ie39d66a87eb3a1088a4eb62e11084e1123f707f5 (cherry picked from commit ce096acee71b168f630a684d61294fb733472bd1)
* ContactsCommon : Modify ContactPhotoManager to fetch contacts' bitmapsRohit Yengisetty2015-04-211-7/+114
| | | | | Change-Id: If7279a5a77c9d036c5ffdf0633c7577df30973b4 (cherry picked from commit ad0dff5a4331a1625c51c8b9cbcdbfbe5364dae2)
* Add SIM photo for SIM contactsblong2014-11-191-35/+82
| | | | | | - Add the customize photo for SIM contacts Change-Id: I06cd4a7f9c0151a01fdc029e4b669e9cc02886c6
* Use new RoundedBitmapDrawableFactoryChris Craik2014-08-081-1/+2
| | | | Change-Id: I8427ac646091e33eaa2ed567fb656b1a4ea267a7
* Only kill image requests from the one fragmentBrian Attwell2014-07-231-4/+25
| | | | | | | | | In ContractEntryListAdapter#changeCursor(), don't kill all image loading requests app wide. Instead, only kill the image loading requests that were associated with the adapter's fragment. Bug: 15522504 Change-Id: Ib4e0448217e8bbb8df55e74649a013e0f1688a22
* Catch OutOfMemoryError on photo loadJay Shrauner2014-05-271-1/+1
| | | | | | | Catch OutOfMemoryError in loadUriBasedPhotos. Bug:15288070 Change-Id: Id793c9bf989e0410656d811b2bdd3d3bef7c082c
* Make nearby places photos not look like jellybeansYorke Lee2014-05-221-1/+5
| | | | | Bug: 14392467 Change-Id: I22f7a021c8f2af9124f0f04d65107367bbed4c09
* Set isCircular flag correctly in CallDetailActivityYorke Lee2014-05-191-2/+3
| | | | | Bug: 14590880 Change-Id: I9230ef292c70d1bc07bb9ba38c61b5e74062b4e4
* Correcting issue where businesses with business photo URLs show a personTyler Gunn2014-05-091-10/+92
| | | | | | | | | | avatar until the photo loads. Added an encoded fragment to business photo URLs so that we can identify the URLs at load time as being for businesses Bug: 14252674 Change-Id: If51dbb404432ee3262ffc31b26b3b5e4ed3e62a2
* Display non-square bitmaps as circlesYorke Lee2014-05-061-0/+18
| | | | | Bug: 14392467 Change-Id: I4dd2872bd5678ef6c1a3f3084c33b8450b42fd22
* Add circular photo support to ContactPhotoManagerYorke Lee2014-05-011-32/+102
| | | | | | | | | | | | | | * Use RoundedBitmapDrawable to draw circular bitmaps * Add isCircular to DefaultImageRequest, and add circular support to LetterTileDrawable * Temporarily disable fading in contact photos using TransitionImageDrawable Bug: 13747208 Change-Id: I4d087b2dab701014297912ccb6cfac36ecffc673
* Fixing issue where contact photos are shown in the wrong location due toTyler Gunn2014-04-151-0/+14
| | | | | | | | | a concurrent change to the search results list which occurs after the the request to load the contact photo is registered, but prior to it being fulfilled. Bug: 13967012 Change-Id: I6f14e69ad1841df8b7da5632e4a9551b6641e04b
* Add support for letter tile avatars to ContactsPhotoManagerYorke Lee2014-02-281-47/+262
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add LetterTileDrawable, a custom drawable used to display letter tiles for contacts without a contact photo, instead of static bitmap resource drawables. * Add a class DefaultImageRequest to ContactPhotoManager. This is essentially a data holder object used to store and retrieve various parameters that clients can use to configure the way they want their requested letter tile avatars to be drawn. * Add LetterTileImageProvider to ContactPhotoManager. LetterTileImageProvider extends DefaultImageProvider, but returns instances of LetterTileDrawable instead of BitmapDrawables when a default contact image is needed. * Add two new APIs to ContactPhotoManager: getDefaultAvatarForContact - This returns an instance of a LetterTileDrawable, configured with the display parameters stored in the provided DefaultImageRequest. getDefaultAvatarUriForContact - This returns an uri which the ContactPhotoManager can use to recreate a DefaultImageRequest and hence a LetterTileDrawable. * Modify ContactPhotoManager.loadPhoto and loadThumbnail to accept a DefaultImageRequest as a parameter. * Modify the following classes to use the new ContactPhotoManager APIs. These affect both the Dialer and People apps. ContactEntryListADapter ContactListAdapter ContactTileView PhoneNumberListAdapter Bug: 13101785 Change-Id: Id1a87b459d6e63c42049739059a3b3ee202af837
* Fix Contact photo flicker in People and DialerYorke Lee2014-02-271-1/+0
| | | | | Bug: 11634428 Change-Id: Ied6f6dcfe8ae905e6223973d32fb64406ca085a9
* am 7b337210: am 54da47db: am 7ded6b24: Merge "Fade out default avatar when ↵Chiao Cheng2013-11-051-0/+1
|\ | | | | | | | | | | | | fading in contact image." into klp-dev * commit '7b3372101977d974f2f3f40424a3ed2a574cec90': Fade out default avatar when fading in contact image.
| * Fade out default avatar when fading in contact image.Chiao Cheng2013-10-281-0/+1
| | | | | | | | | | Bug: 11415331 Change-Id: I7d58fb0bec01de104decedda4a5258bece330bcd
* | Switch to using ActivityManager.isLowRamDevice in ContactPhotoManagerYorke Lee2013-10-231-5/+6
|/ | | | Change-Id: Ib48022684939b41ff6af2a6db1721df5e811b983
* Support loading http imagesJay Shrauner2013-09-101-1/+8
| | | | | | | Support loading http images for reverse lookup and local search. Bug:10677317 Change-Id: I4cb3bc263dfb1ecb63900ee57dd810c0ff79feec
* Adding ContactPhotoManager and dependent classes.Chiao Cheng2012-10-161-0/+1218
Moved from People package so it can be shared by dialer. Bug: 6993891 Change-Id: I85268c040498621a324c459ce237a51b30e7d3a4