History log of /packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
dc49278add60393337c7800492d93a6e08b864fb 13-Mar-2015 Jay Shrauner <shrauner@google.com> Check for null lookup uris

Bug:19588470
Change-Id: Ifada47dda455e059c8fe656298a16402210410f7
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
4feb3036a523a2ebd02f637f9878ddc59d5fb8a0 25-Nov-2014 Jay Shrauner <shrauner@google.com> Fix cursor exception in changeCursor

Check for return value of cursor.moveToFirst() to prevent a
CursorIndexOutOfBoundsException when reading from the cursor.

Bug:18526371
Change-Id: I3d6b180d6794921f13137823ab5b5a22fdd6c128
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
4cbafe71ec04d4a511fe894c46915bb69c91b804 04-Sep-2014 Brian Attwell <brianattwell@google.com> Use semi-stable ids in Contact lists

Manual tests:
-After focusing on a contact in Dialer's and Contacts' contact list
and updating CP2 in the background, the current contact isn't repeated
by talkback
-After focusing on a contact and deleting the contact in the background
a new contact's name is read aloud by talkback.
-Removed and re-added an account. Focused on a contact in Contacts
while the the focus contacts were synced. Noticed the contact
name wasn't repeatedly spoken by talkback.

This is Part 1/2 for b/17195707. Part 2 will fix this issue for
Contacts' contact-pickers.

Bug: 17195707
Change-Id: Icb8c1b7f7ab16ad8d2e8c985088583e5b8f7b5ec
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
d9ba7ce0739281fc903ece843b5c84e10344adb3 04-Sep-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API changes

Bug: 17390425
Change-Id: Ia88fb0235a56becc3ec5a770067856311769a68c
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
dc08a7cd1fc867826f4620203898847e9b27fd2d 30-Jul-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API change

Bug: 16403306
Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
495c732e471c1c68db91ca6e824440130fdb7146 10-Jul-2014 Yorke Lee <yorkelee@google.com> Make ContactPreferences use SharedPreferences instead of System settings (3/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: Ib3500b82b03960a30b565f1024f20f78879d3ce3
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
b321f58e96516c007297492bc0e9287c9150b39c 01-Jul-2014 Yorke Lee <yorkelee@google.com> Clean up SearchSnippetColumns API (3/3)

Bug: 6948882
Change-Id: I102d21f363ac541c1e54ad06e30913ab6c7fc9b8
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
fc9221ef57bfb9311dda798f67030d40215be859 10-Jun-2014 Andrew Lee <anwlee@google.com> Add support for full-bleed selection of contact list items.

- Adding the concept of "adjustSelectionBoundsEnabled", which allows
us to control whether the headerWithoutBounds is used to override the
selection list items bounds. We want to be able to do this in some
cases (eg. in the contacts list when there is a header on the left)
but in others (eg. a search list), we want the ripple to fill out the
entire bounds of the list item.
- Allow for this to be set by the ContactEntryListFragment, and then
passed through the ContactEntryListAdapter to the ContactListItemView.
- No longer apply scrollbar padding to the list view regardless of
whether the scrollbar is present, because this messes with the ripple
propagation.

Bug: 15517457
Change-Id: I174a462ac1e45b987ac0ee70de318ed037d91762
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
83ee19795e9e017da83a2c0cf2ecfd0b12d0b7b3 02-May-2014 Yorke Lee <yorkelee@google.com> Update ContactListItemView.setIsSectionHeaderEnabled when binding view

Every time a ContactListItemView is bound with new contact details, it
needs to be reinitialized with the correct settings, in case a previous
instance is being recycled by ListView (e.g. transitioning from All
contacts in People to search in People).

Bug: 14437531
Change-Id: Ia1883ee43c4fe97b10f5c814fd8e34725cfcd89c
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
3f9c2f426058413055fa54c08c69ad9461717658 29-Apr-2014 Yorke Lee <yorkelee@google.com> Add circular photo support to ContactPhotoManager

* Use RoundedBitmapDrawable to draw circular bitmaps

* Add isCircular to DefaultImageRequest, and add circular
support to LetterTileDrawable

* Temporarily disable fading in contact photos using
TransitionImageDrawable

Bug: 13747208

Change-Id: I4d087b2dab701014297912ccb6cfac36ecffc673
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
1f1e90d36fe914a7ce51e6f9884199580115d891 26-Apr-2014 Andrew Lee <anwlee@google.com> Moves section header in contacts list to the left side.

- Changed ContactListItemView to render section headers on the
left. This includes support for RTL layouts.
- Added setSectionHeaderEnabled to ContactListItemView so that
left padding can be rendered if there is a section header.
- Add newView() implementation in the ContactEntryListAdapter which
sets setSectionHeaderEnabled on new contacts list view instance.
- Changed the PinnedHeaderView to extend a TextView and gutted a
lot of unneeded logic and styling (including the Counts view).
- Add list_item_background_color to attributes, which is used to
specify the background color for the pinned header, so that when
it moves the underlying section header is not visible.
- Change layout and canvas logic in PinnedHeaderListview, so that
the pinned header is placed to match the new position.
- Add logic to the IndexerListAdapter to match the pinned header's
height to the height of the first list item in view.

Bug: 13956531
Change-Id: I78a0b505833e9ce1c889904ff51c17f6c1653de1
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
9779f462bd7213e8e0d2aeeadcef84d8182f7594 25-Apr-2014 Andrew Lee <anwlee@google.com> Delete functionality to set count in the pinned header views.

Bug: 13956531
Change-Id: Iad1ab60ae486bfa059ad14a856eb6f3aa6637bdc
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
f4fcd3def28e5b1168f5160e476c05ad69339adc 23-Apr-2014 Andrew Lee <anwlee@google.com> Delete contacts list item dividers.

- Delete setDivider method, and associated layout logic.
- Delete unneeded list_item_divider attribute.

Bug: 13956531
Change-Id: I56d471ae637346cb6a1b9a56c6c43de2da603256
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
6084726fbdda78bdb16e2d4cc1c3b81c84fd5da1 12-Feb-2014 Yorke Lee <yorkelee@google.com> Add support for letter tile avatars to ContactsPhotoManager

* Add LetterTileDrawable, a custom drawable used to display letter tiles
for contacts without a contact photo, instead of static bitmap resource
drawables.

* Add a class DefaultImageRequest to ContactPhotoManager. This is essentially
a data holder object used to store and retrieve various parameters that
clients can use to configure the way they want their requested letter tile
avatars to be drawn.

* Add LetterTileImageProvider to ContactPhotoManager. LetterTileImageProvider
extends DefaultImageProvider, but returns instances of LetterTileDrawable
instead of BitmapDrawables when a default contact image is needed.

* Add two new APIs to ContactPhotoManager:
getDefaultAvatarForContact - This returns an instance of a LetterTileDrawable,
configured with the display parameters stored in the provided
DefaultImageRequest.
getDefaultAvatarUriForContact - This returns an uri which the
ContactPhotoManager can use to recreate a DefaultImageRequest and hence
a LetterTileDrawable.

* Modify ContactPhotoManager.loadPhoto and loadThumbnail to accept a
DefaultImageRequest as a parameter.

* Modify the following classes to use the new ContactPhotoManager APIs. These
affect both the Dialer and People apps.
ContactEntryListADapter
ContactListAdapter
ContactTileView
PhoneNumberListAdapter

Bug: 13101785
Change-Id: Id1a87b459d6e63c42049739059a3b3ee202af837
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
e1d3c390975751ec0eec838685de90b3938e7978 11-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update ContactCommon to handle new ui changes for People App.

Change-Id: Icfa18259718c98b51468f93f2031eb2e0ed3629b
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java
d6bba124836ec2f528b329759e38fda6297fec49 01-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: Ie310707da47d5e5c91e281d140f11e1eb47a5118
/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactListAdapter.java