History log of /packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
c9e810710a7624d645e33ec22e5fb90e30c7780b 15-Sep-2014 Brian Attwell <brianattwell@google.com> Call super.bindView() in list subclasses

Bug: 17506125
Change-Id: Ic3b0227b6fb7095196e6489d838988b442f652a3
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
56151b82c3dac3908ac8776a2a71f107fb4ecdbc 04-Sep-2014 Brian Attwell <brianattwell@google.com> Use semi-stable ids in Contact lists

I manually tested the postal, contact, email and phone pickers.

Note that the legacy pickers & email picker don't refresh
when the dataset changes, so this doesn't have any affect on them.
Nonetheless, I set viewIds for these pickers in case we ever change
these pickers to refresh when the underlying dataset changes.

This is Part 2/2 for b/17195707. This fixes contact-pickers.

Bug: 17195707
Change-Id: I6e72768ab9f30f11d632983794da1ed36346416c
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
9d2b6d5bcead8c71e96dcd27bc393e9ee0ec656f 04-Sep-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API changes

Bug: 17390425
Change-Id: Ic35a5b599ec347848128d7babfdcd7151ede6a2e
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
76939f7f94f01e89b2375b2d90484185327a2891 30-Jul-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API change

Bug: 16403306
Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
c9bb2179ab321461f88f54d49e9d41f2f6b19fe3 10-Jul-2014 Yorke Lee <yorkelee@google.com> Make ContactPreferences use SharedPreferences instead of System settings (2/5)

* Move constants that originally lived in the framework into ContactsCommon
* Use SharedPreferences instead of System settings to persist preferences
* Use a SharedPreferenceListener to monitor changes instead of a content observer
on system settings
* Move DisplayOrderPreference and SortOrderPreference into ContactsCommon so that
it can be used by Dialer
* Create base DialerSettingsActivity in Dialer, and make GoogleDialerSettingsActivity
extend it
Bug: 16153186

Change-Id: Ibaacc26619889e28db7b4b30ee37a00827dd48e4
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
41369d7b93d565c0ed1a4f59d1f415858c480f5b 29-Apr-2014 Yorke Lee <yorkelee@google.com> Use circular photo support in ContactPhotoManager

Bug: 13747208

Change-Id: Iedbeefdaf1bda3e5a26a050b537bbb19d9aa5f2d
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
551da17c65c434dae14365888996f9157068d800 28-Apr-2014 Andrew Lee <anwlee@google.com> Restyle section header to left.

- Adjust styles.
- Changed newView() in adapters to call superclass method.

Bug: 13956531
Change-Id: Ie0ab1f2dacf9e69a23c245105176d4006b02dfc7
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
b4cf085cba95c5da87a8bbe780a7bd7b1187c505 23-Apr-2014 Andrew Lee <anwlee@google.com> Delete use of contact list item divider.

- Delete calls to setDividerVisible().
- Delete definitions of list_item_divider.

Bug:13956531
Change-Id: I409a87384872215ff44ae82f5e74d02cd988e11a
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
f677450d82e7b961fda2a18fea2ad51e88437e8b 20-Feb-2014 Yorke Lee <yorkelee@google.com> Use new ContactPhotoManager APIs for default avatars in Contacts

*Update the following uses of ContactPhotoManager.loadPhoto
and ContactPhotoManager.loadThumbnail
GroupEditorFragment
EmailAddressListAdapter
PostalAddressListAdapter

*Replace the following uses of R.drawable.ic_contact_picture_holo_light and
ContactPhotoManager.getDefaultAvatarResId with
ContactPhotoManager.getDefaultAvatarDrawableForContact
PhotoEditorView
AggregationSuggestionView
SuggestedMemberListAdapter
ConfirmAddDetailActivity
ImageViewDrawableSetter

*Protect against a null drawable in TransformableImageView()

*Add lookup fields to cursor projections in EmailAddressListAdapter
and PostalAddressListAdapter to correct construct a DefaultImageRequest
and assign LetterTileDrawables for contact photos

Bug: 13101785
Change-Id: I9c04ce81192913bf3c398a9a7a9368861bd93b59
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
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/PostalAddressListAdapter.java
2f77c85543e6c497e63cd0e216b70e58c1d13ec3 31-Mar-2012 Daniel Lehmann <lehmannd@google.com> Various refactorings to prepare proper big picture loading

- Added a function to load a picture with ideal sampleSize
- Renamed xmls/java files for tiles
- ContactTileView is now abstract and has subclasses for each use-case
- Added mechanism to estimate the image-size in a tile before layout
- Changed the cross-fade in ContactPhotoManager to apply the fade to the
current picture instead of the default avatar. Reduces flickering

Bug:6202229

Change-Id: Ic8636d1b3349473163fb2424b5f74476fd435fb5
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
e231f1994a57b3ecaa3a1c73ed7ddfec40fbd235 18-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Misc picker configuration fixes.

- Postal address picker now has a vertical scroll bar
- Email picker now has the scroll bar and section header

Bug: 5484952
Change-Id: I6c80258bdbd748848cab5a89c2dc72fe7530ec31
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
2476f0cd8b72c9662daec05d758ecbeefe66bdfa 14-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Explicitly request "duplicate removal" in pickers

This must be after
- Ie88af0c3d21919ca201f4fcdd46ca09e9f8d94c0
- I3b6ba3956449520f9e08653fc8beead763a5f8a1

Bug: 5484956
Change-Id: I58ff7434f86e6b2629c1d29046467a5372e45c6d
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.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/PostalAddressListAdapter.java
ecfc26c3f9495f1a4efed69a1582ff2b0deb2c71 13-Sep-2011 Daniel Lehmann <lehmannd@google.com> New avatars

Bug:5074147

Change-Id: I583d22c63a7b617567c523efeed292ae1e2be7e4
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
0155652987e0c792d89b5a37bb8dc6f14ffd209f 23-Aug-2011 Isaac Katzenelson <isaack@android.com> Remove semi-transparent first name on scrolling

Bug: 5197714 Semi-transparent "first name" effect doesn't go away

Removed the text animation when scrolling. This is not a fix
but a removal of the feature as was decided.

Change-Id: I6b4b7798ec2aea493ca464cffb4907fe21788b6f
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
4ff31284ff6bd263621771bbfa6b24e0da5af031 11-Jul-2011 Daniel Lehmann <lehmannd@google.com> Remove restricted white-listing

Bug:4974334

Change-Id: I05736d49a72ca26902de52f967ee8028178e2366
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.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/PostalAddressListAdapter.java
c86ace78ca5c2e10dcb001a916386c8a9865e230 24-Mar-2011 Daniel Lehmann <lehmannd@google.com> Provide a picker for third parties

Also fix a bug where custom labels wouldn't be shown for addresses

Bug:3378785
Change-Id: Iaafdc44fdcd67b878b80218976d8b94b529e8aeb
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
98fa1b049f3bd5c84237169983e171fae345439b 14-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Disabling QC and fixing picture size in phone and postal pickers

Bug: 3349310
Change-Id: I96a5244b53371612a618ae809fac393cd2dc6f4a
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java
fab33039529f230990ed0fc6948f48adb81814b2 09-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Restoring the data restriction based on calling package

Bug: 3230263
Change-Id: If035dbc1a061d94b84e750c988a4e086d22e60eb
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.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/PostalAddressListAdapter.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/PostalAddressListAdapter.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/PostalAddressListAdapter.java
d820cdbefa159bdf4c281ac8102805fe9a165379 06-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Postal address picker now works with Loaders and Fragments.

(except search)

Change-Id: Ib7f20270a71a5234d505696e76e1f97f659eef22
/packages/apps/Contacts/src/com/android/contacts/list/PostalAddressListAdapter.java