50429c51adbd79c5d7dd5beb2c267daf9465f20f |
|
13-Jun-2014 |
Andrew Sapperstein <asapperstein@google.com> |
Update suggestions for every character. b/15519050 notifyDataSetChanged was getting called in bad places if the image was already cached. Change-Id: Ibd4a21a634e8668c5936145fda52aa7e5f4e5c1f
/frameworks/opt/chips/src/com/android/ex/chips/DefaultPhotoManager.java
|
0efdc53cd0d040c1a27a7d39003916e54e284be2 |
|
05-Jun-2014 |
Jin Cao <jinyan@google.com> |
Add failure callback for loading avatar async b/15431889 Change-Id: I554745b0aa3d754343076105bb1dbb11258b28c3
/frameworks/opt/chips/src/com/android/ex/chips/DefaultPhotoManager.java
|
35e82d4f9522906f7953667cf5c5f8137ec2f5ac |
|
03-Jun-2014 |
Jin Cao <jinyan@google.com> |
Move getAvatarIcon off UI Change BaseRecipientAdapter#fetchPhoto to use the async version of populatePhotoBytes. Move some UI code around so we keep a reference of each chip bitmap as well as criterias we need to draw the icon once it's loaded. Once the icon bitmap is asynchronously loaded, we then draw that icon onto the UI. b/15082721 Change-Id: I8abd3f8e1bb61b9a5b35ecda71704bb0c38dc7bf
/frameworks/opt/chips/src/com/android/ex/chips/DefaultPhotoManager.java
|
8af0d3b6f34e03c08c8e67be2190da01c59889da |
|
03-May-2014 |
Andrew Sapperstein <asapperstein@google.com> |
Allow support for alternate data sources. BaseRecipientAdapter adds a bunch of methods that can be overridden to change the default behavior. Also makes a bunch of private methods protected so that derived classes can use those methods. Abstracts the calls to update the various internal data structures so that derived classes can utilize their own structures by just overriding a few methods. Refactors photo loading into the PhotoManager interface with a default implementation living in DefaultPhotoManager. Provides the ability to not use the RecipientAlternatesAdapter and instead just use SingleRecipientAddressAdapter when showing a dropdown after clicking on a chip. Also allows overriding the default behavior for creating chips when pasting in email addresses or editing drafts. b/11387812 Change-Id: I826c30edeee1752b7a3d4108e777f90b79d0f7f8
/frameworks/opt/chips/src/com/android/ex/chips/DefaultPhotoManager.java
|