History log of /frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
f2eb07a61d474d3b5da100d928d83f1e7e853771 15-Apr-2016 Andy Huang <ath@google.com> handle the edge case where more than one directory matches an account

In rare cases, Gmail can have multiple directory providers for a single
account. In these cases, the prior code would actually end up *omitting*
all but the last provider it encountered in the final results.

Fix this by only "promoting" the first such matching directory. The
choice to promote the first is arbitrary, but this is strictly better
than the existing code because it no longer omits the other matching
directories.

Bug: 28171393
Change-Id: Ifde3dbc868b0e3d1c6c5520429847cb773a808b2
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
4b01e3b35a9634336e5de163ba7c4110785bf221 30-Jul-2015 Milos Stankovic <miloss@google.com> Adding listener thats notified when chips checks permission.

Change-Id: I0b55b459a2ad013fa5a1b0a14ff7b099c78d76e3
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
f1ad4f6dba7c6ea28f529736b8662faa6fb498f8 16-Jul-2015 Milos Stankovic <miloss@google.com> Adding support for permission.

Change-Id: I01956311049afb887808d24119a2649cbe7cda4d
mocks: https://folio.googleplex.com/gmailq/Android/UR18/03_M_permission#%2F01_autocomplete.png%3Fz=width&f=hidden
see: http://cl/97951906
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
0437e862005912a1e5bf054769f23ed9cc69f811 18-Oct-2014 Andrew Sapperstein <asapperstein@google.com> Close directoryCursor. b/17949234

Fixes b/18039002.

Change-Id: I88c23adb63ba64ca9f638086ad1c29a7fb839868
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
eed6943eb5a1c7b8d68efc38f1150ee6f891688b 12-Sep-2014 Scott Kennedy <skennedy@google.com> am 2a87fbfb: FilterListener#onFilterComplete(count) was returning the incorrect count of 1 always, rather than how many entries exist.

* commit '2a87fbfbbee4279c399980cba42de1d361a8ad56':
FilterListener#onFilterComplete(count) was returning the incorrect count of 1 always, rather than how many entries exist.
2a87fbfbbee4279c399980cba42de1d361a8ad56 12-Sep-2014 Scott Kennedy <skennedy@google.com> FilterListener#onFilterComplete(count) was returning the incorrect count of 1 always, rather than how many entries exist.

This wasn't a problem in Gmail, because they never looked at FilterListener#onFilterComplete to get the final count

Change from jonchui@.

Change-Id: Ia80c412d41296c373c64702acc52f8d24ecf04e9
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
31c33ef87cb0612250b812233ffbc0c46e88a371 08-Sep-2014 Jin Cao <jinyan@google.com> Only cache current selection if there are pending searches

If the current result is empty, only cache the current list
if there are pending searches (e.g. directory). Don't cache
it if there are no alternate searches.

b/17376740

Change-Id: I8a54b845ebc76dbbe651835b31446f05fd210565
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
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/BaseRecipientAdapter.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/BaseRecipientAdapter.java
82d388545ba0b52854801c946ed2f62e05e7b563 03-Jun-2014 Jin Cao <jinyan@google.com> Fixed bug with null origPhoto

Since we no longer use thumbnailPhotoUri, we can safely take it out.
This will fix the bug where origPhotoBytes is null and thumbnailUri
is also null (cause nullpointer, which causes the chip to not be drawn
on the screen).

b/15402474

Change-Id: Ia2d995b90c02123499e71ec1ac98c9ad07a10d35
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.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/BaseRecipientAdapter.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/BaseRecipientAdapter.java
1db635b5a09c77a27fe17a9ce31c21a67458c2bc 29-Apr-2014 Andrew Sapperstein <asapperstein@google.com> Code cleanup.

Change-Id: I752adf6f704f449093abf4eb0b59e268c03fcb18
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
fa7b0fb73f80ceafdf3ff3260b345b61d2766f93 18-Apr-2014 Scott Kennedy <skennedy@google.com> Fix an issue showing people who don't match typed query

If you type "Scott", my contact shows up as an option. If you then
clear the field, and type "kj", and you don't have any "kj" contacts,
it doesn't clear the last set of contacts, so it shows you "Scott".

Now, we'll just clear the set when we get no results, so nothing will
show up.

Bug: 12783972
Change-Id: I62d1fe947edcc6d2a3c92ee5ed2f0c7c88ff20cb
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
38fe984ca3e9ed7af3d5441ee3a7e82dbfdb3d2c 04-Mar-2014 Mike Schneider <michschn@google.com> fix visibility

Change-Id: Iabce2e83df084a8bb1312a7e8246bb6fc9818ebd
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
bb7e7e1b8ff6163816fa04d50ca9382d569bee82 19-Feb-2014 Scott Kennedy <skennedy@google.com> BaseRecipientAdapter does not need to be abstract

It works fine if you use BRA as your adapter, so there's no point
making people instantiate it as new BRA() { };

Bug: 8885347
Change-Id: Icdd8d3032a10fabd30a9a80b99204b20bdea9cd9
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
7a4e67708498ec46c2e9b3bad69d3807d88c064e 21-Nov-2013 Scott Kennedy <skennedy@google.com> Fix directory lookups

The previous "fix" disabled the lookups.

Now we will do the lookups, with the proper lookup key and
directory id. We also do a much better job of showing directory
images.

Bug: 11693322
Bug: 12793279

Change-Id: I372711fd7b485f3183516fce2b11f9eff46a9b23
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
d5ce95bdc1ab57d91cc5408fda49d23d9630da37 28-Jan-2014 Kevin Lin <linkevin@google.com> Fixed NPE in BaseRecipientAdapter when constraint is null.

BUG=12766155

Change-Id: I99cf03e33738ad804e35e7134c9d9a97c84be183
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
b10d1c652d0416c284d9792fc9a0a92b3acd51ca 24-Jan-2014 Kevin Lin <linkevin@google.com> Main changes to the chips library:
Changed attribute styles
- Added an avatar position (left, right) inside the chip
- Added a disableDelete boolean
- Removed chipsAlternateLayout

Changed how to layout contacts in autocomplete list.
Added a separate class to handle layout and binding information. (This way clients can extend this class and have a customizable layout)
This new class lives inside RecipientEditTextView and is passed onto each adapter.

Merged code paths for createSelectedChip and createUnselectedChip.
Merged code paths for getView() in each of the 3 adapters by using DropdownChipLayouter.

All tests still pass since this CL is mostly infrastructure layout changes.

There are some non-backwards compatible changes with this if other clients are using this library.
BaseRecipientAdapter no longer has protected methods to override the layout and id's.
The attribute file no longer has chipsAlternateLaytout.
Both these features can still be used through the new DropdownChipLayouter class.

Change-Id: I4496232eddd194be2df6a047f75637114f2eaa52
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
f5c24c97ddba4bf2c626898734669f85c3acb00f 14-Nov-2013 Scott Kennedy <skennedy@google.com> am 3e8176df: Don\'t show the alternates dialog for GAL contacts

* commit '3e8176df16950c067bcb1b37e62b2fc07d74065a':
Don't show the alternates dialog for GAL contacts
514f8a75f72fa2e735418ffb5d6e30aa914fbe7b 14-Nov-2013 Scott Kennedy <skennedy@google.com> Don't show the alternates dialog for GAL contacts

There's a bug in the chips code that causes this to show either no
alternates, or a different person, which is scaring people.

The proper future fix is to store some more information about GAL
contacts so we can do a proper lookup.

Bug: 11535331

Change-Id: Id8b6fc834446afe33bd6ec4e99b3d2b75b985bde
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
858e094f1c695aefdf6a23f522c0f16d81bd79f7 10-Oct-2013 Scott Kennedy <skennedy@google.com> Merge chips from jb-ub-mail-ur11 into klp-ub-dev

Change-Id: Ied8877d7613ca1dbb5047a0c8c611a1138fc47e3
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
4996c3c1c5b0c30a44fa1e0414ba69b7e4daa559 23-Aug-2013 Scott Kennedy <skennedy@google.com> am 3be35a39: Remove some unused resources and imports

* commit '3be35a398afee202a794134920782db901ee36cd':
Remove some unused resources and imports
2e3fb2e61f944d8eb34b7204549990d3ebc722d5 23-Aug-2013 Scott Kennedy <skennedy@google.com> Remove some unused resources and imports

Change-Id: Ifc9bbd7fa53972b4d2bd61d04a426017a6bd63f5
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
e091107390e8f884c45c74ea4b3984c6f5ca5948 10-Aug-2013 Jay Shrauner <shrauner@google.com> am 30d26326: Add directory photo support

* commit '30d26326568cb888430468370df6f6ab2ec12767':
Add directory photo support
c88702e49917a21b9753d587800de25f87f2c5a8 08-Aug-2013 Jay Shrauner <shrauner@google.com> Add directory photo support

Load photos for directory thumbnail URIs by streaming directly from the URI.

Bug:7882158
Change-Id: Ifdf354c392b9aaff7c8fd6b73dc9bfe891825329
(cherry picked from commit 53d11c53b83bffe7607cffde994f505e775bcdbe)
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
f30ea36c3bd07ebbcef0f80c8c92a05a7384d319 06-Aug-2013 Scott Kennedy <skennedy@google.com> am bc742af5: Make Chips work on API 11+

* commit 'bc742af5bb568ed39dc37764587120928d068330':
Make Chips work on API 11+
1650ef6bb75ba88340cc59d22b2578c0f460b4f1 03-Aug-2013 Scott Kennedy <skennedy@google.com> Make Chips work on API 11+

By using the support library, and copying a few methods from TextView
into RecipientEditTextView, we can support chips back to API 11.

Bug: 8744878
Change-Id: I2d9bb43e71556504e929dcdccff9dae347020f28
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
b2b33afc99c01808b500b1443ea5802eaa493ad5 31-Jul-2013 Scott Kennedy <skennedy@google.com> am ad1d181c: Don\'t bother storing a null value in the cache

* commit 'ad1d181cd21ee598512c142150e79be754209548':
Don't bother storing a null value in the cache
b52d29b484349763720908f5528b1617516d494e 30-Jul-2013 Scott Kennedy <skennedy@google.com> Don't bother storing a null value in the cache

It serves very little purpose, and it causes an NPE.

Bug: 9286049
Change-Id: I8c95d8ded2bebdc9b904ef788cbc70865144213e
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
76f1f2d4eb66956814254b0e4f86da7aa8261bcb 14-Jul-2013 Alon Albert <aalbert@google.com> Support an External Dictionary of Contacts

Allow support for an external custom source of contacts. By making
some classes & methods protected rather than private, it's possible
to allow for a derived class to extend the Chips behavior to load
contacts from an arbitrary source.

Most of the changes here are just access modifier changes but there's
one more substantial change:
Intruduced BaseRecipientAdapter#getMatchingRecipients() which matches
generated recipients with proper chips recipients from the external
sources.
Ideally RecipientAlternatesAdapter#getMatchingRecipients() should reside
in the adaper too but the goal of this CL was to do this minimal
modifications.

There's also a small change that beileve was a bug in IndividualReplacementTask:
The matchesFound() callback gets a list of matches found. It then iterates all
the original recipients and looks for those that have matches and replaces them.
So far so good but, if the original recipient doesn't have a match and is not a
phone number, the old code still replaces it with itself when it can simply skip
it I think.

Change-Id: I24e89f93ec15154ed8912664cd061fa2b5b18bd8
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
f7e202d8b83bfbd73ca47ba7843ebc4dd57c2fa4 07-Mar-2013 Scott Kennedy <skennedy@google.com> Initial clean up of the chips code

Change-Id: I56a3dd5968a3ea435d6dcae9256021bac1f74ee6
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
8c474ec629cca3cf4bf2c867f37513ae35e3ff72 14-Dec-2012 mindyp <mindyp@google.com> Scroll when results appear

Fixes b/7727257 Jank when replying to or forwarding a message in gmail

Change-Id: I6fbb574ac724772d541d063192a5e0e59b776360
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
16923ee63a79fce4be3f62b08bcd1f80617c1205 10-Dec-2012 mindyp <mindyp@google.com> Extend reverse lookup to also check GAL

Fixes b/7499733 gal address sometimes treated as message-only address in chips

Change-Id: I3fa79a43c672b1d2eac72dae6a9dfaf8701be977
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
ccb8e237ec80934d1c983bb61f66b75541786ddc 14-Nov-2012 mindyp <mindyp@google.com> Don't validate the recipient text each time

Instead, validate once.

Saves ~10ms per chip creation
Win.

Part of b/7492291 First 2 contacts takes too long to resolve into chips when there are many contacts
and general speed improvements

Change-Id: I6f3da136da23942c8bec25cee7038d475e7005e6
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
37726c00b6d53f7afd0c31b8f8f1805976ba722a 25-Oct-2012 Paul Westbrook <pwestbro@google.com> Show old results

Keep showing old recipient results when no local results are returned,
if we are waiting for server results

Bug: 7407129
Change-Id: If495ff6437da064206923dc95ee61b7a4f19c2f3
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
c0e3599d01a4bcfa900ad8dab8becc349e25ad82 25-May-2012 Mindy Pereira <mindyp@google.com> Rather than change the text, just remove the waiting for entries row.

Fixes b/6546713 Blank suggestion is sometimes shown even if nothing was typed
per ux

Change-Id: I5c6d1f6620426bd96abca1bad650663ab6c5c426
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
cf11061041b469e0f5cb574b09ee9e32455cdbfb 25-May-2012 Mindy Pereira <mindyp@google.com> The mysterious blank item was just a mis-used layout

Was expecting the chips_waiting_for_directory_search layout
But was given the chips_recipient layout
Fixed this to use the correct layout
fixes b/6546713 Blank suggestion is sometimes shown even if nothing was typed
that's at least part of the problem
why it shows up "uninvited" is another question

Change-Id: Ie60b9ae8f7f86dda4316fee43b3983fbe0f17cb0
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
00adb32f3cea49ec82467c0e1a9e42659b556836 02-May-2012 Makoto Onuki <omakoto@google.com> Don't use DISPLAY_NAME for chips if name is email or phone

Don't use contact's display name, if the name source is EMAIL
or PHONE (or UNDEFINED). Just use the destination (i.e. the actual email
address or phone number) as the name.

Bug 5414496
Bug 6425953

Change-Id: Id0e7e57122a4840b075710309306b074143199bf
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
80f4abfb682426384e88fb1dddc682be1c8a6c7f 06-Apr-2012 Tom Taylor <tomtaylor@google.com> Support phone numbers in Chips UI

Bug 5066294

Add Zak's work for supporting phone numbers in the Chips UI. The default
remains email-centric, but the phone number option works great for
apps like Messaging.

Change-Id: I17cd8460f1b96f28ced8bbb32e145581dae6d807
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
52c441e2c03e0f48572348953b985a4bf989c057 15-Dec-2011 Mindy Pereira <mindyp@google.com> Update build file to allow us to have resources in static libs.

Depends on: Change Ifb4d2300: Support to build static Java library with Android resource

Change-Id: Ie1ac8c93cb3f12a7d4e9afd873a13607ed72b932
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
dfd7e0774f9a4f47c127b21e5468430374340f66 18-Nov-2011 Andy Huang <ath@google.com> drive-by fixes for compiler warnings

Change-Id: Ibb32bf4f49cc9c48d6d02e664f48f838c7024f91
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
606e3b1fa6e758c1cff2f6542b3860e8ef3bc8a7 20-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove the code remiving non-existing divider

Previously we had a horizontal divider to divide each entry, while
we don't have them anymore. The code removing the last horizontal
divider now removes the last legitimate element in the list.

Bug: 5343615
Change-Id: Ia30e05f8830323a6e4d62b54e7121b439bb57beb
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
6b616f1d06b092825da345078ce4a899b829290d 20-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Disable logging.

Change-Id: I5c5c2bc169a6f9d9c77fd57d8b91dd3282432141
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
951d0cf2f0f05bd63f1f60155efe25447c816995 26-Aug-2011 Paul Westbrook <pwestbro@google.com> Remove label from chips

Bug: 5220741
Change-Id: If1c9423c253301209e7ca9af8c898891f6a8b98b
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
34f5320d620877f757ed78a6e37754bbeabee5aa 02-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use AsyncTask for photo loading

Using a static thread isn't appropriate, since it won't quit
itself and thus will be persistent even after it becomes
unnecessary.

Bug: 5057798
Change-Id: Ibca2b59c18a326d1c3fd724817bc602583f37842
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
750e6e52d9e560d5fbf687f15bf388a947e98eb2 25-Jul-2011 Mindy Pereira <mindyp@google.com> Make more chip, dropdown match pixel perfects.

1) the destination type should be uppercase; there is not
textview style to do this
2) fix the heights of the dropdown items to be 48dip
3) text for more says "NUMBER more..." and is styled

Change-Id: I8a391bbd3703c1ccd1415b78d5e843107b1d2095
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
536b7e41b106e167f8058b6a5d8d14c1d53d69c5 25-Jul-2011 Mindy Pereira <mindyp@google.com> Remove deprecated separators.

Change-Id: I734eec28ba5d51afb17ac5150e156ed9e87de4ac
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
492649c192b7d0fd440c0bff5bd666e7ee6bbeb5 25-Jul-2011 Mindy Pereira <mindyp@google.com> These extra separators are not needed given the design.

In this pass, making the associated methods non abstract.
will remove them from the apps, then remove the deprecated methods.
Change-Id: I3f9908e5807253294630c17e52ae6562abd0ddc3
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
cc20880f80a3a6f6e4aaef4547ed088d9364e741 22-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop spawning multiple threads for photo loading

This is not a fundemental fix for the issue but should mitigate
our headache caused by a bunch of phono_handler threads.

Bug: 5057798
Change-Id: I5f81739bf8439f6d3ee726495b23aab4d3e3d0fd
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
7211747e51623ae1305053f533c09dd335e013a2 20-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show address type in auto-complete list

Also tweak layout file for better layouting.

Bug: 5028342
Change-Id: Iff81ed0c3013c65e6a293575f89c12606832838f
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
6d6bd68a492fbbfca50ae4793313083105e6f270 17-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make divider and loading views unselectable

Bug: 5036748
Change-Id: I397d6a62e577c22ccad9a750ae6a0edb2168ad8b
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
8383f44fc5608259474a24e398b2ee028f729db8 05-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove cursor passing.

We've used Cursor objects among two threads (UX thread and
filter thread), which is possible but not feasible enough.

- Filter removes message for the filter thread before sending
another message to UX thread, which it looks causing
a lot of warnings.
- A cursor consumes mega bytes of memory, while we want to
have are just ~10 results in it.

Also remove Phone related codes. We found we won't use it
now.

Bug: 5017608
Change-Id: Ic50d27c5ed84a23dfabaf705996630b6548a06cf
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
4bb6a342f5aa1f38b0e0083d014e538e937eccce 11-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show "Waiting for more contacts" message on directory load

Requires
- I458c4b068d91feb16fe12c3b813f9704668663d2
- I5f83103628c14dd5079515c46c42a6f43d4f194c
- I858c66faa6d5bcb3248da6be6a40f47ab0f00a4d

Bug: 4996797
Change-Id: Iad5b8444f4b1949666d93ad43a34de057aba560e
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
941187c70e06e977eb80f3ccaccd421148faadae 10-Jun-2011 Mindy Pereira <mindyp@google.com> Add copyright to file.

Change-Id: I1d6efeea9f960baa05e0c65dd7a81e3461d456d1
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
df4457285cf0a54d957f1fad3bbc07112f750818 09-Jun-2011 Mindy Pereira <mindyp@google.com> Small changes to make this more easily integrated into apps.

1) created interface for old adapter and new adapter
to implement so they can be used interchangeable
2) did null checks for chips when getting data/ contacdt ids
Change-Id: I7f47230c5cf35426b73b477f374641b271455411
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
6b6de6266d3bede33728cf995f1fd5c59ec5a55d 08-Jun-2011 Mindy Pereira <mindyp@google.com> Make sure even second level addresses have a photo uri.

When a second level item is chosen, we still want to show
the associated contact photo. We need to set the uri but can get the
photo on the fly later.

Change-Id: Idc9e02452ad5e1d6291776a94a6f3c3c6ada14b4
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
e3a7365ee50e5df8d7935143bb88c65644be4b59 07-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Clear text when address isn't available.

Change-Id: I06bfd212e2c691ef1d06cc7ce3e67bccd39e3cec
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
84dd9a88f0d9984996e951e59e73cb76cd2eaa5e 01-Jun-2011 Mindy Pereira <mindyp@google.com> Make RecipientEditTextViewInner package private.

Also add license and make EmailQuery values package private.
Change-Id: I366ca01ac54f04fbc999377be59dbaa139307550
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
97d7768576ff27d779d68f77e23925b69f3290bc 01-Jun-2011 Mindy Pereira <mindyp@google.com> Show alternate addresses when the user taps on a contact.

Change-Id: I9a88dd1612b98587e560c1e50030e36a28e30db9
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
f15b448bb9fd41ec7aea7cd95104ab3d82355a06 01-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use long for ids

Also optimize update method

Bug: 4443828
Change-Id: Ie51a3b40e0852cfab8f81c2a56cbc13f5072ad6c
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
7537f840506bcb642bed9dc1c2bdcf6d31c6b2a7 01-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add data Id support and account support.

Also add utility methods for chips UI.

Bug: 4371572
Change-Id: Iec086c06ac844ca19c776f82b127a48804bab8e6
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
f621a601e1f966c89b7aadbcca384021e14d668d 31-May-2011 Mindy Pereira <mindyp@google.com> Multiple updates to chips.

1) Eliminate hardcoded 200 value for width of popup; this is just
the same as the width of the autocomplete view
2) eliminate need for offset padding; can calculate the correct position
(see calculateLineBottom for the full algo)
3) use recipientlistentry to track the contents of a chip; differentiate
between completed real contacts and filled in content. don't show popup
for non real contacts.
4) Change RecipientListEntry to just RecipientEntry
Change-Id: Icf2a47a845f1b3cad2fbae3d31c38179ca1b26c8
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
cf9337aa4b2d844f4941d75832f52266c4fc3fa7 31-May-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use LinkedHashMap to keep order.

Bug: 4443828
Change-Id: If6255c472509a6c55ebcd68f2a8908a1ea9f1603
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
efcac0cbb3efc645cd6cf1cb1e2431e1bd2b2d2a 28-May-2011 Mindy Pereira <mindyp@google.com> Back to static library.

Give the library dimensions that the apps can use.
Change-Id: If55883a0f599baac3e4f9122620fc01b376fb512
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
86aec375559065e0dad632c609a3c27d2907b84d 28-May-2011 Mindy Pereira <mindyp@google.com> Fix build. Should not be using R from the chips app.

Change-Id: Id63bc5d9bc47cd5b2bf0327784447f176da95884
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
d93630f6f0fd159b340c56333ca740f226acadf7 28-May-2011 Mindy Pereira <mindyp@google.com> Make chips included source instead of static java library.

Get rid of abstract methods in BaseRecipientAdapter
Update makefile
Change-Id: I3415c73446c605e69c0c2145e98a7e66abc33a6e
/frameworks/opt/chips/src/com/android/ex/chips/BaseRecipientAdapter.java