summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Add support for letter tile avatars to ContactsPhotoManagerYorke Lee2014-02-2843-65/+623
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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 aeb579ee: (-s ours) am d53320bf: (-s ours) am 9162fdb2: (-s ours) am ↵Baligh Uddin2014-02-210-0/+0
|\ | | | | | | | | | | | | 5e8fb95d: (-s ours) am ee32193f: (-s ours) am 2ebea8a0: (-s ours) Import translations. DO NOT MERGE * commit 'aeb579ee8380c1dc8c39e51cb62c3a904caa0e27': Import translations. DO NOT MERGE
| * am d53320bf: (-s ours) am 9162fdb2: (-s ours) am 5e8fb95d: (-s ours) am ↵Baligh Uddin2014-02-210-0/+0
| |\ | | | | | | | | | | | | | | | | | | ee32193f: (-s ours) am 2ebea8a0: (-s ours) Import translations. DO NOT MERGE * commit 'd53320bfdbfdd52075cd0a2bc67477948e5591f5': Import translations. DO NOT MERGE
| | * am 9162fdb2: (-s ours) am 5e8fb95d: (-s ours) am ee32193f: (-s ours) am ↵Baligh Uddin2014-02-210-0/+0
| |/| | | | | | | | | | | | | | | | | | | 2ebea8a0: (-s ours) Import translations. DO NOT MERGE * commit '9162fdb25636d6af2540892dff9a51fd28096d76': Import translations. DO NOT MERGE
| | * am 5e8fb95d: (-s ours) am ee32193f: (-s ours) am 2ebea8a0: (-s ours) Import ↵Baligh Uddin2014-02-210-0/+0
| |/| | | | | | | | | | | | | | | | | | | translations. DO NOT MERGE * commit '5e8fb95d27ae82fb1e5d6094d28d1efc7a6154ff': Import translations. DO NOT MERGE
| | * am ee32193f: (-s ours) am 2ebea8a0: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-02-210-0/+0
| | |\ | | | | | | | | | | | | | | | | * commit 'ee32193f1cb7feb38f2929847191282bdfdc1728': Import translations. DO NOT MERGE
| | | * am 2ebea8a0: (-s ours) Import translations. DO NOT MERGEBaligh Uddin2014-02-210-0/+0
| | | |\ | | | | | | | | | | | | | | | | | | | | * commit '2ebea8a04142a9ed338fbb8e98eb27a869c0f223': Import translations. DO NOT MERGE
| | | | * Import translations. DO NOT MERGEBaligh Uddin2014-02-211-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: Id04a447bff2aa2ef192bccdbb6f445a03706dcf0 Auto-generated-cl: translation import
* | | | | Merge "GoogleAccountType extension schema from gmscore"Brian Attwell2014-02-151-1/+24
|\ \ \ \ \
| * | | | | GoogleAccountType extension schema from gmscoreBrian Attwell2014-02-141-1/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 11629361 Change-Id: Ide0719c8c3a1da4ac9f27c11a40b7314d06f7adf
* | | | | | Merge "Make ContactTileLoaderFactory.COLUMNS_PHONE_ONLY visible for testing"Yorke Lee2014-02-131-1/+4
|\ \ \ \ \ \
| * | | | | | Make ContactTileLoaderFactory.COLUMNS_PHONE_ONLY visible for testingYorke Lee2014-02-111-1/+4
| |/ / / / / | | | | | | | | | | | | | | | | | | Change-Id: Ib052c165915bb90ee9577aea3ac6146ecb020399
* / / / / / Remove stream attributes from ExternalAccountTypeBrian Attwell2014-02-112-29/+0
|/ / / / / | | | | | | | | | | | | | | | | | | | | Bug: 12975316 Change-Id: Id323c0e1972f72a52a6b253c8fa3d94f002d6f56
* | | | | Fix search crashJay Shrauner2014-02-051-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Trap NPEs thrown by CP2 query so faulty directory providers don't crash us. Bug:12893832 Change-Id: Ie88aafb84b6d7129da02d6e0a4457ecfad5ca9b5
* | | | | Fix NPE if contactsCursor is nullJay Shrauner2014-01-301-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Don't crash if the CP2 call failed and we were unable to load the contacts cursor. Bug:12822702 Change-Id: Ib6b3cf5a9519d61c82924f29babb146888f7453a
* | | | | Merge "Fix NPE with null cursor"Jay Shrauner2014-01-281-1/+9
|\ \ \ \ \
| * | | | | Fix NPE with null cursorJay Shrauner2014-01-281-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix NPE when get null cursor back from CP2 query. Bug:12760164 Change-Id: I88ff0a9bd5b58a3e837c943bf999c8636b749b64
* | | | | | Fix potential NPE with null cursorJay Shrauner2014-01-283-39/+47
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Detect and handle null cursors returned from CP2 queries. Bug:12767708 Change-Id: I7bc4f97848a59140aba5a2c924c79fdc2749b150
* | | | | Fix NPE when kind is null in getBestTypeJay Shrauner2014-01-101-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix alternate insertChild() method to detect and bail on null kind just like primary insertChild() method does. Also change getBestValidType() not to crash on null kind. Bug:12490438 Change-Id: I82c351ccd5a880fb8bc71b5b27ffb2662c071be3
* | | | | Import translations. DO NOT MERGEBaligh Uddin2014-01-081-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I3068b8fb07c5de3506fd3a682310b0e3b1bd09f0 Auto-generated-cl: translation import
* | | | | am 2ec96fe1: (-s ours) DO NOT MERGE reset to goog/klp-volantis-devQiwen Zhao2013-12-100-0/+0
|\| | | | | | | | | | | | | | | | | | | * commit '2ec96fe16188764a1a4f5ae65fe24e34409d6458':
| * | | | DO NOT MERGE reset to goog/klp-volantis-devQiwen Zhao2013-12-090-0/+0
| |\ \ \ \ | | |/ / / | |/| | |
* | | | | Remove deprecated localesBaligh Uddin2013-12-098-1945/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug:11340849 Change-Id: I5bcf02b5269baf16f2e773df094de2482e8cfba0
* | | | | am 113d77c7: (-s ours) am 779660c9: (-s ours) am 77758fae: (-s ours) Merge ↵Baligh Uddin2013-12-050-0/+0
|\ \ \ \ \ | | |/ / / | |/| | | | | | | | | | | | | | | | | | "Import translations. DO NOT MERGE" * commit '113d77c797f6fa5e0baaaf8646ee9afca799e73e':
| * | | | am 779660c9: (-s ours) am 77758fae: (-s ours) Merge "Import translations. DO ↵Baligh Uddin2013-12-050-0/+0
| |\ \ \ \ | | |_|_|/ | |/| | | | | | | | | | | | | | | | | | NOT MERGE" * commit '779660c9625a346590ca6ebcb87c17c24b03521e':
* | | | | Merge "Add null check for cursor in DirectoryListLoader"Yorke Lee2013-12-051-0/+3
|\ \ \ \ \
| * | | | | Add null check for cursor in DirectoryListLoaderYorke Lee2013-12-051-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 12015142 Change-Id: Iaf7a97efb31e06402d583d399fa1f66f12e086d9
* | | | | | Merge "Remove dead code using CountryDetector"Yorke Lee2013-12-051-2/+0
|\ \ \ \ \ \
| * | | | | | Remove dead code using CountryDetectorYorke Lee2013-12-041-2/+0
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | Bug: 6948882 Change-Id: Idaa3d59f40cd2aa27b1ddb6c1a9915394d796b99
* | | | | | Merge "Copy private pointInView method to ContactListItemView"Yorke Lee2013-12-051-1/+6
|\ \ \ \ \ \ | |/ / / / / |/| | | | |
| * | | | | Copy private pointInView method to ContactListItemViewYorke Lee2013-12-031-1/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 6948882 Change-Id: Ieef3d4c8933eacea59fe5a5398edc5ba0141fd2c
* | | | | | Remove private reference to RawContactsEntity.FOR_EXPORT_ONLYYorke Lee2013-12-031-3/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This boolean parameter is not used at all anywhere in the ContactsProvider Bug: 6948882 Change-Id: I932a03362a0fbe64134e319694f02572a24a565d
* | | | | Merge "Replace usages of mContext with getContext"Yorke Lee2013-12-031-3/+3
|\ \ \ \ \
| * | | | | Replace usages of mContext with getContextYorke Lee2013-12-021-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bug: 6948882 Change-Id: I730f690f36e9541dd6945abe6df9890c96d72676
* | | | | | Fix more libphonenumber dependenciesYorke Lee2013-12-021-2/+2
|/ / / / / | | | | | | | | | | | | | | | | | | | | Bug: 6948882 Change-Id: I6b48e06f6cd6ed5434ee712926f5a3e8c43f2d68
* | | | | Merge "Remove private references to android.R.styleable"Yorke Lee2013-12-024-11/+31
|\ \ \ \ \
| * | | | | Remove private references to android.R.styleableYorke Lee2013-11-254-11/+31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Define these framework attributes in our own attr.xml and use as necessary Bug: 6948882 Change-Id: I6862451133844251315dafeffd1921720eeb4964
* | | | | | Merge "Copy quickcontact badge drawable in framework to ContactsCommon"Yorke Lee2013-12-0217-1/+98
|\ \ \ \ \ \
| * | | | | | Copy quickcontact badge drawable in framework to ContactsCommonYorke Lee2013-11-2517-1/+98
| |/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Remove private reference to quickcontact badge drawable Bug: 6948882 Change-Id: I4f9c9cce48e94632802bd056beed7e80f1c25f22
* / / / / / Fix libphonenumber dependenciesYorke Lee2013-12-021-4/+4
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Libphonenumber is already included as a library in Dialer's makefile, so there is no need to refer to the internal framework methods. Bug: 6948882 Change-Id: I93d8e8adb92e56d261a8db897a2acef045f05b01
* | | | | am edc43fbf: (-s ours) am d89198df: (-s ours) am de4adc84: (-s ours) Merge ↵Baligh Uddin2013-11-140-0/+0
|\ \ \ \ \ | | |_|/ / | |/| | | | | | | | | | | | | | | | | | | | | | | "Import translations. DO NOT MERGE" into klp-dev * commit 'edc43fbf846b893a9c4699e637ac02998231c249': Import translations. DO NOT MERGE
| * | | | am d89198df: (-s ours) am de4adc84: (-s ours) Merge "Import translations. DO ↵Baligh Uddin2013-11-140-0/+0
| |\ \ \ \ | | | |_|/ | | |/| | | | | | | | | | | | | | | | | | | | | | NOT MERGE" into klp-dev * commit 'd89198df612183e16d6cd8206ee354ae98606756': Import translations. DO NOT MERGE
| | * | | am de4adc84: (-s ours) Merge "Import translations. DO NOT MERGE" into klp-devBaligh Uddin2013-11-140-0/+0
| | |\| | | | | | | | | | | | | | | | | | | | | | * commit 'de4adc8443ee5c16eac80e06c1e9e1ce9f0a2e8e': Import translations. DO NOT MERGE
| | | * | Merge "Import translations. DO NOT MERGE" into klp-devBaligh Uddin2013-11-1457-0/+118
| | | |\ \
| | | | * | Import translations. DO NOT MERGEBaligh Uddin2013-11-1457-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I6e7caca7a1fdc58efb52aef92a1cebcd89ca792f Auto-generated-cl: translation import
* | | | | | Merge "Import translations. DO NOT MERGE"Baligh Uddin2013-11-1457-0/+118
|\ \ \ \ \ \
| * | | | | | Import translations. DO NOT MERGEBaligh Uddin2013-11-1457-0/+118
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Change-Id: I368d64aa182c634e9dae2e99de40de110850ebe6 Auto-generated-cl: translation import
* | | | | | | Fix auto-merge conflict.Chiao Cheng2013-11-133-5/+15
|\ \ \ \ \ \ \ | | |/ / / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Merge commit 'd6714041' into manualmerge Conflicts: src/com/android/contacts/common/list/ContactListItemView.java Change-Id: Icade3af50d0c509b17341d6bcb15d5ed0419109f
| * | | | | | am e61d1609: am ab8ca3ff: Merge "Make fonts consistent in contact list." ↵Chiao Cheng2013-11-133-5/+15
| |\ \ \ \ \ \ | | | |/ / / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | into klp-dev * commit 'e61d1609595cfe124f1d46a1a0f25c5d8f56bcf3': Make fonts consistent in contact list.