History log of /packages/apps/Contacts/src/com/android/contacts/list/LegacyPostalAddressListAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
a0233a048858f1593ea4924e9c5036f39aedbcdd 02-Nov-2012 Chiao Cheng <chiaocheng@google.com> Moving ContactListItemView and dependent classes.

Further clean-up of PhoneFavoriteFragment in Dialer app to move all necessary
dependencies into Contacts Common package.

Bug: 6993891
Change-Id: I3dfce84ad01932450dc09588c22903e7307d7da0
/packages/apps/Contacts/src/com/android/contacts/list/LegacyPostalAddressListAdapter.java
ed90ea54323f212d87b27b04d7d627192afa6665 31-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop using DisplayNameFormatter and reduce a query column

setDisplayName()'s 3rd param "highlightingEnabled" never becomes
true in the current implementation and thus using the entire class
seems less meaningful. After removing the formatter class, we can be
sure one of primary and alternative name column won't be needed and
can be conditionally removed.

Per the observation above, this change removes the column for Phone
UI. Note that this does *not* optimize People side yet, since it has
quite different and more complicated configuration there.

Other fixes:
- replace getMarqueeText() with setMarqueeText(), since the former
implicitly requires unconditional "new String()", while the latter
doesn't.
- Use SpannableString instead of SpannableStringBuilder. Our prefix
highlighter is already using SpannableString, and we can expect
less GC by using exactly same classes for constructing spanned
CharSequence.
- Group query constants like I5ad0876ce469fbf86334e3f77b15cd240d9f761b
for cleaning our code and make it more consistent.
-- Legacy adapters aren't modified since they are legacy anyway. We
probably don't want to touch those files as much as possible.

TESTED:
- Phone UI and People UI work with display/sort order changes
- "(No name)" is shown correctly (mUnknownNameText is working)
- Prefix highlighting works correctly (in search screens)
- Pickers work with sort order change (primary/alternative)
- no performance regression at least (no visible performance improve
will occur)

Bug: 5550672
Change-Id: Ie69b74bbabcc7211cf2b107c93980172da2d744e
/packages/apps/Contacts/src/com/android/contacts/list/LegacyPostalAddressListAdapter.java
da5bf1cf60beef3de5e651a569fa544293683926 03-May-2011 Dave Santoro <dsantoro@google.com> Modifications to bold contacts' first names.

For lists and headers, this is calculated by using a similar technique as we
use in the list view for highlighting text when the sort order and display
order do not match - we look for the overlap point between the display name
and the alternate display name, and bold the leading or trailing part, based
on the display order.

For the edit view, we convert the display name into a structured name (via an
API extracted from the structured name editor code that calls into the provider
to handle splitting), and then bold the span corresponding to the contact's
given name.

This also fixes an issue with the alternate display order in which we weren't
honoring that preference on the contact details view.

Change-Id: I6af048725541996cb303810a56a1ad79fc276e11
/packages/apps/Contacts/src/com/android/contacts/list/LegacyPostalAddressListAdapter.java
d5061fe322880ee993ea18db331fbc1110ddc538 08-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Initial integration with Directory API

Change-Id: I121e1e3b5a365204ffdd736b00133fd97529719e
/packages/apps/Contacts/src/com/android/contacts/list/LegacyPostalAddressListAdapter.java
e124722daa8a4b31308d53e3f0457c3b66a20ae5 03-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Reworking contacts list adapters for the new CompositeCursorAdapter API

Also redesigning PinnedHeaderListAdapter

Change-Id: Ia4a2e7bb449fc82e1c3ac9b7a3f0c54a8e4d9d38
/packages/apps/Contacts/src/com/android/contacts/list/LegacyPostalAddressListAdapter.java
3c46291ef057eaf7b7f8ca5971e59bebe734a660 15-May-2010 Jeff Hamilton <jham@android.com> Use the framework version of Loader and friends now that they exist.

Change-Id: I1c99aec7c60545a1b41b241e95447565c8bd4df4
/packages/apps/Contacts/src/com/android/contacts/list/LegacyPostalAddressListAdapter.java
c28390b65183a2e1bf85f381ba27bf846706c04a 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Now supporting legacy postal address picker in the Loader/Fragment solution.

Change-Id: I7cbb9dc455966b0f5d5e3537596410f6216c9fe0
/packages/apps/Contacts/src/com/android/contacts/list/LegacyPostalAddressListAdapter.java