summaryrefslogtreecommitdiffstats
path: root/chips/src/com/android/ex/chips/BaseRecipientAdapter.java
Commit message (Collapse)AuthorAgeFilesLines
* Initial clean up of the chips codeScott Kennedy2013-03-061-11/+7
| | | | Change-Id: I56a3dd5968a3ea435d6dcae9256021bac1f74ee6
* Scroll when results appearmindyp2012-12-141-0/+12
| | | | | | Fixes b/7727257 Jank when replying to or forwarding a message in gmail Change-Id: I6fbb574ac724772d541d063192a5e0e59b776360
* Extend reverse lookup to also check GALmindyp2012-12-111-9/+14
| | | | | | Fixes b/7499733 gal address sometimes treated as message-only address in chips Change-Id: I3fa79a43c672b1d2eac72dae6a9dfaf8701be977
* Don't validate the recipient text each timemindyp2012-11-141-3/+3
| | | | | | | | | | | | 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
* Show old resultsPaul Westbrook2012-10-251-5/+36
| | | | | | | | Keep showing old recipient results when no local results are returned, if we are waiting for server results Bug: 7407129 Change-Id: If495ff6437da064206923dc95ee61b7a4f19c2f3
* Rather than change the text, just remove the waiting for entries row.Mindy Pereira2012-05-251-67/+44
| | | | | | | Fixes b/6546713 Blank suggestion is sometimes shown even if nothing was typed per ux Change-Id: I5c6d1f6620426bd96abca1bad650663ab6c5c426
* The mysterious blank item was just a mis-used layoutMindy Pereira2012-05-251-1/+1
| | | | | | | | | | | 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
* Don't use DISPLAY_NAME for chips if name is email or phoneMakoto Onuki2012-05-011-1/+11
| | | | | | | | | | | 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
* Support phone numbers in Chips UITom Taylor2012-04-061-51/+48
| | | | | | | | | | 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
* Update build file to allow us to have resources in static libs.Mindy Pereira2011-12-151-3/+9
| | | | | | Depends on: Change Ifb4d2300: Support to build static Java library with Android resource Change-Id: Ie1ac8c93cb3f12a7d4e9afd873a13607ed72b932
* drive-by fixes for compiler warningsAndy Huang2011-11-181-1/+2
| | | | Change-Id: Ibb32bf4f49cc9c48d6d02e664f48f838c7024f91
* Remove the code remiving non-existing dividerDaisuke Miyakawa2011-09-201-5/+0
| | | | | | | | | 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
* Disable logging.Daisuke Miyakawa2011-09-191-2/+1
| | | | Change-Id: I5c5c2bc169a6f9d9c77fd57d8b91dd3282432141
* Remove label from chipsPaul Westbrook2011-08-261-5/+7
| | | | | Bug: 5220741 Change-Id: If1c9423c253301209e7ca9af8c898891f6a8b98b
* Use AsyncTask for photo loadingDaisuke Miyakawa2011-08-021-12/+6
| | | | | | | | | 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
* Make more chip, dropdown match pixel perfects.Mindy Pereira2011-07-251-1/+2
| | | | | | | | | 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
* Remove deprecated separators.Mindy Pereira2011-07-251-12/+1
| | | | Change-Id: I734eec28ba5d51afb17ac5150e156ed9e87de4ac
* These extra separators are not needed given the design.Mindy Pereira2011-07-251-15/+8
| | | | | | In this pass, making the associated methods non abstract. will remove them from the apps, then remove the deprecated methods. Change-Id: I3f9908e5807253294630c17e52ae6562abd0ddc3
* Stop spawning multiple threads for photo loadingDaisuke Miyakawa2011-07-211-7/+11
| | | | | | | | 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
* Show address type in auto-complete listDaisuke Miyakawa2011-07-201-28/+60
| | | | | | | Also tweak layout file for better layouting. Bug: 5028342 Change-Id: Iff81ed0c3013c65e6a293575f89c12606832838f
* Make divider and loading views unselectableDaisuke Miyakawa2011-07-161-0/+5
| | | | | Bug: 5036748 Change-Id: I397d6a62e577c22ccad9a750ae6a0edb2168ad8b
* Remove cursor passing.Daisuke Miyakawa2011-07-131-255/+307
| | | | | | | | | | | | | | | | | 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
* Show "Waiting for more contacts" message on directory loadDaisuke Miyakawa2011-07-111-35/+96
| | | | | | | | | | Requires - I458c4b068d91feb16fe12c3b813f9704668663d2 - I5f83103628c14dd5079515c46c42a6f43d4f194c - I858c66faa6d5bcb3248da6be6a40f47ab0f00a4d Bug: 4996797 Change-Id: Iad5b8444f4b1949666d93ad43a34de057aba560e
* Add copyright to file.Mindy Pereira2011-06-091-1/+1
| | | | Change-Id: I1d6efeea9f960baa05e0c65dd7a81e3461d456d1
* Small changes to make this more easily integrated into apps.Mindy Pereira2011-06-091-1/+2
| | | | | | | 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
* Make sure even second level addresses have a photo uri.Mindy Pereira2011-06-071-1/+22
| | | | | | | | 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
* Clear text when address isn't available.Daisuke Miyakawa2011-06-071-0/+2
| | | | Change-Id: I06bfd212e2c691ef1d06cc7ce3e67bccd39e3cec
* Make RecipientEditTextViewInner package private.Mindy Pereira2011-06-011-1/+1
| | | | | Also add license and make EmailQuery values package private. Change-Id: I366ca01ac54f04fbc999377be59dbaa139307550
* Show alternate addresses when the user taps on a contact.Mindy Pereira2011-06-011-1/+1
| | | | Change-Id: I9a88dd1612b98587e560c1e50030e36a28e30db9
* Use long for idsDaisuke Miyakawa2011-05-311-9/+9
| | | | | | | Also optimize update method Bug: 4443828 Change-Id: Ie51a3b40e0852cfab8f81c2a56cbc13f5072ad6c
* Add data Id support and account support.Daisuke Miyakawa2011-05-311-6/+26
| | | | | | | Also add utility methods for chips UI. Bug: 4371572 Change-Id: Iec086c06ac844ca19c776f82b127a48804bab8e6
* Multiple updates to chips.Mindy Pereira2011-05-311-25/+25
| | | | | | | | | | | | 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
* Use LinkedHashMap to keep order.Daisuke Miyakawa2011-05-311-3/+3
| | | | | Bug: 4443828 Change-Id: If6255c472509a6c55ebcd68f2a8908a1ea9f1603
* Back to static library.Mindy Pereira2011-05-271-15/+5
| | | | | Give the library dimensions that the apps can use. Change-Id: If55883a0f599baac3e4f9122620fc01b376fb512
* Fix build. Should not be using R from the chips app.Mindy Pereira2011-05-271-6/+4
| | | | Change-Id: Id63bc5d9bc47cd5b2bf0327784447f176da95884
* Make chips included source instead of static java library.Mindy Pereira2011-05-271-0/+789
Get rid of abstract methods in BaseRecipientAdapter Update makefile Change-Id: I3415c73446c605e69c0c2145e98a7e66abc33a6e