History log of /frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
0e11ec08352d4de1e2efe716c3b2fdf3f196eced 01-Feb-2017 Ekin Oguz <ekinoguz@google.com> Explicitly mark chips as "inReplacedChip".
am: 11c15260cb

Change-Id: I5d041093831616fc8cfb55e8d827fccc3e080c07
11c15260cb6878a67eb5d958277fce33e641720f 26-Jan-2017 Ekin Oguz <ekinoguz@google.com> Explicitly mark chips as "inReplacedChip".

Current behavior of RecipientChipAddedListener does not distinguish
between chips added from dropdown and from append(). When multiple chips
are added via append(), RecipientEditTextView first creates a
ReplacementChip, and later converts these ReplacementChip to a chip with
contact information. We want to mark these kind of RecipientEntry
explicitly, in order to conclude that RecipientEntry is in a replacement
chip.

Bug: 34804889
Change-Id: I0555e4c6ff1fdaa1a51153034c96d329b778c30a
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.java
abbbd829406392d14925f124e985058232403778 01-Aug-2016 Sandeep Siddhartha <sansid@google.com> Support not displaying an icon in chips
am: a233af88e3

Change-Id: I8aba69b3a641c009636c6e6797034eb86ac8b84c
a233af88e381e4a8caf917176974aeb0aa259c19 30-Jul-2016 Sandeep Siddhartha <sansid@google.com> Support not displaying an icon in chips

Change-Id: Ia570791e3b01cef1e0758c6d4ae5a91ccc694eaf
BUG: 28095750
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.java
a79d61da6e3f7051a4d8989a196a379c1fe45139 17-Mar-2016 Jeff Sharkey <jsharkey@android.com> Fix build.

Change-Id: I68300c4d1aca639e0740b0e17a71e018a990d6f1
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.java
626f8cd53e91d43e98a4fe37ceedd43e1a5829b5 21-Sep-2015 Shri Borde <shri@google.com> Bug 24168516: Announce closing of chips dropdown

Bug 17262070 added an announcement for the opening of the chips dropdown
but not for the closing.

Change-Id: I885ecf72f7fc772f9a6ca3831570c9c3cf49ad11
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.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/RecipientEntry.java
84f848c6601f1759689c5318e8d01924ce2f0b2b 16-Jun-2015 Braden Walker <bradenw@google.com> Add the ability to display an indicator icon and text for a recipient.

Change-Id: I40a3fd4856dec74aacdf2624853f6fab183ff182
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.java
cd980d9f73bfa02155f7bb092ae1fb212ed6e8e2 10-Jun-2014 Kaikai Wang <kaikai@google.com> Adding the ability to remove chips that match a given ReicipientEntry

Change-Id: I3ae8e495429eef9c5fb21e84a25c81dd6188d0be
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.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/RecipientEntry.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/RecipientEntry.java
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/RecipientEntry.java
0ba9133c904b8c35af8209a54604331cd671bc1f 21-Mar-2013 Tom Taylor <tomtaylor@google.com> Area code gets eaten in Chips

Bug 8436028

New code for tokenizing an address stripped the area code from a manually
entered phone number. When chips is in "phone number" mode, call a new
function (essentially the old function before the change) to create
a fake entry directly from the phone number.

Change-Id: I2d62ff24aacd8eadb9086840bd4d003cf39db177
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.java
b7391a61487da625f371164257afb91636326b6c 19-Mar-2013 Tom Taylor <tomtaylor@google.com> ArrayIndexOutOfBoundsException in RecipientEntry.constructFakeEntry

Bug 8423230

Fix a monkey bug that is showing up a lot in MR2. Use the original address
when tokenizing an address fails to return anything.

Change-Id: I4ac42f81aa6e4cbdad058f73bb3a1fd62ab2e138
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.java
d2240c52c38d67ee6c340d625a240ded51e2ddae 07-Mar-2013 Scott Kennedy <skennedy@google.com> Fix a failing test

Change-Id: Iaa45618d69ea12aa6714bcae36c8f12a253d5df2
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.java
9796a50bc03bcf488417dbc5a52e01bd75e3ff0e 15-Feb-2013 Scott Kennedy <skennedy@google.com> Add a toString() to make debugging easier

Change-Id: I0826eedd858ffd942e1371ec1c4d73d4d98177bd
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.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/RecipientEntry.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/RecipientEntry.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/RecipientEntry.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/RecipientEntry.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/RecipientEntry.java
01382d764d2cbfbb4d2c1b554fe5c1ce1575dd26 16-Jul-2011 Mindy Pereira <mindyp@google.com> fix appended recipients that have an associated name

Fixes Bug:5037859 Populating a To: field from a mailto: link always shows an empty chip
The issue here was I was just pulling out the address and
leaving that in the field
Now I pull out the address for display purposes only, and leave the address
and any associated display info with it
NOTE: if the info before the address was invalid, it will stay invalid, as before
Fixes Bug: 5043134 chips: name and rfc email address
Change-Id: I6b0d0de56dd9752b189919554617b101792425ef
/frameworks/opt/chips/src/com/android/ex/chips/RecipientEntry.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/RecipientEntry.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/RecipientEntry.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/RecipientEntry.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/RecipientEntry.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/RecipientEntry.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/RecipientEntry.java