• Home
  • History
  • Annotate
  • only in /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
History log of /packages/apps/ContactsCommon/src/com/android/contacts/common/list/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
d87801db55f135fd8390105973f0df3fcd5b6a1b 01-Jul-2015 Yorke Lee <yorkelee@google.com> Fix NPE in ViewPagerStrips

Bug: 22201498
Change-Id: I4c44b91d5d19a17958fd8fd6b9433875a30a9901
iewPagerTabStrip.java
8174839465ada65478a89e99025ca12535857b9d 25-Jun-2015 Andrew Lee <anwlee@google.com> Swap in right icon for messaging and info.

- Remove/replace older versions.

Bug: 22070564
Change-Id: I7dba27e960f20dab276b602746be32ccc10a0bcc
hortcutIntentBuilder.java
b42e2341069be7dae21ab4f520dae0ecbb66a03c 24-Jun-2015 Yorke Lee <yorkelee@google.com> Protect against CP2 crash in Dialer

Bug: 21755796
Change-Id: Icd6ca156b799457bd527fd4e2a83c37b9faf4b9b
ontactEntryListFragment.java
irectoryListLoader.java
c30de25fea532591e85c33966e04aa1443710eab 02-Jun-2015 Brian Attwell <brianattwell@google.com> Rename PhoneNumberUtils APIs

In response to more API review.

And removed unneeded permission from
RequestPermissionsActivity.

Bug: 21571895
Change-Id: Ia1fa69da07a3427997919ba61c77fcbad7e79f2a
ontactListItemView.java
4c13002a53f2feb1046bca3ef579b64145c53cb9 27-Mar-2015 Andrew Lee <anwlee@google.com> Fix buildbreak. ='(

Change-Id: Ib4ff523d0e38e095e7674d4037621a1d6ee5138d
hortcutIntentBuilder.java
c3aa6fc886a70b6949c871b0d0db961078cb370b 27-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Fix sRGB profile compiler warnings."
b1dad49b23546b34b5e2e143793b736b94b91f86 26-Mar-2015 Andrew Lee <anwlee@google.com> Fix sRGB profile compiler warnings.

+ Use new call/phone icons.
+ pngcrush old menu settings and text icons.

Bug: 19536005
Change-Id: I7ad0695ca3f1681af9eb4a53de9b5512447e516a
hortcutIntentBuilder.java
3b54533379a382663cea842179b41f51f23d7400 27-Mar-2015 Tyler Gunn <tgunn@google.com> Merge "Support for click analytics in search results."
f7c9bf57501a6dfa4629005d22b606843f48234f 24-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Change list shortcut item styling."
ae99f8c1bfe56c97cef70739a04d09a8f6ef857b 23-Mar-2015 Jay Shrauner <shrauner@google.com> Merge "Check for null lookup uris"
e05a0f5d375168585594fccf68a3ec60a88d4430 21-Mar-2015 Andrew Lee <anwlee@google.com> Change list shortcut item styling.

- Remove background drawable on contact list item view shortcuts.
+ Swap add person icon from black to white, for tinting.
+ Tint icons blue instead of white.

Bug: 19372539
Change-Id: Ib0353f6e9020bdbc923bacce71bca565a874fabb
ontactListItemView.java
6a5cdf69228f23ecd0d13019ac7bcc16ccf375cd 20-Mar-2015 Tyler Gunn <tgunn@google.com> Support for click analytics in search results.

Adding support for analytics tracking for click events in search results.
This supports analyzing where the user commonly makes calls from.

Bug: 19801761
Change-Id: I53ff603239119ab72ce9ec43a22badb24fc75882
honeNumberListAdapter.java
honeNumberPickerFragment.java
cd2e6d36524bf353e3773d162b258fd4755ca969 16-Mar-2015 Andrew Lee <anwlee@google.com> Add material text sms icon.

+ Add ic_textsms_24dp.png.
+ Change shortcut reference to use new icon.
- Remove badge_action_sms.png (replaced).
- Remove ic_text_holo_dark.png (unused).

After this CL, the text sms icon may be used for a SMS shortcut in
the search list in Dialer.

Bug: 19372539
Change-Id: Ibf65a7ac48e7349aaac451749f11a4f51ff2e93b
hortcutIntentBuilder.java
dc49278add60393337c7800492d93a6e08b864fb 13-Mar-2015 Jay Shrauner <shrauner@google.com> Check for null lookup uris

Bug:19588470
Change-Id: Ifada47dda455e059c8fe656298a16402210410f7
ontactEntryListAdapter.java
ontactListAdapter.java
07ddd3016f4db8de95636a1c7eabf5ebf6813ddb 07-Mar-2015 Andrew Lee <anwlee@google.com> Add icon support for Dialer/Contacts tabs.

Architecturally, I'm not completely happy with this. The pattern
which would match existing norms would be to have a method on
the ViewPagerAdapter which returns an icon of sorts, similarly
to how a title is currently specified.

It involves extending a lot of classes and levels of abstraction,
however, since this method interface would need to be added to
subclasses of both the ViewPagerAdapter and ViewPager classes.

For us, it seems more straightforward and clearer to do what I've
done here, which is provide the array of resource ids directly to
the view pager tabs, which uses those, if available, to populate
the background of a tab instead of setting a text label.

Bug: 19372817
Change-Id: Iccea702d0c9c797ede766ef9c0c8d997b4cd788b
iewPagerTabs.java
08901312c70a244e5785668cdbe1a009ed9b67a8 28-Feb-2015 Brian Attwell <brianattwell@google.com> Multi-select to share. Part 1

Bug: 19549465
Change-Id: If438bddfaaee1f69e4c888716f926abcd00ddbc6
ontactEntryListFragment.java
ontactListItemView.java
187097bdb0f665d4d7a05e576f213719f6347952 26-Feb-2015 Brian Attwell <brianattwell@google.com> QuickContacts can prioritize phone mimetype. Part4

Whenever using QuickContacts in Dialer, make sure to
prioritize the phone mimetype.

Bug: 18391003
Change-Id: Ie5a93ad9e1919f470a638d4235d91fe337cb5ca3
ontactEntryListAdapter.java
5a8dc08da63762d69b71938b45ccb96ad4076a00 20-Feb-2015 Brian Attwell <brianattwell@google.com> Avoid senseless disambiguation #1/2

This makes having two contacts apps on the same
device tolerable.

Bug: 18777272
Change-Id: Ib75eadfb94eee2c5c8305747eddd01ba9a8b1dc4
hortcutIntentBuilder.java
941090ea5f2cd169038bd9f6c2811d6bc12db6a5 05-Feb-2015 Brian Attwell <brianattwell@google.com> Use unhidden PhoneNumberUtils TtsSpan methods

Bug: 18777272
Change-Id: Ie6d19e39176d06da0c039e6e056bdbc438cc3ccd
ontactListItemView.java
76e0b32755662d2b2a33965629e7baa6bf3964bd 26-Jan-2015 Brian Attwell <brianattwell@google.com> Avoid hidden isLayoutRtl

I missed this particular call to isLayoutRtl due to differences
between lmp-mr1 and master.

Bug: 18777272
Change-Id: I60be80c25e2e3462374ff39cb49bad9c8d93b371
ontactTileAdapter.java
138ea2bea97564915c25301cb71938a76da15410 01-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in loadInBackground" into lmp-mr1-dev
2567dbb7c88ae7d41e579fe52023b231149296eb 26-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in loadInBackground

Check resolver query result before instantiating a new entity iterator.

Bug:18536624
Change-Id: Ib7d29da5a51fbe0de528029e60aeed3daab53105
ustomContactListFilterActivity.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
ontactListAdapter.java
6879d497b2d70b05b2a7205d671c7bb143d157d0 24-Nov-2014 Jay Shrauner <shrauner@google.com> Don't crash in loader on SecurityExceptions

Prevent crashes when GAL search fails due to provider authority mismatch.

Bug:18507854
Change-Id: I047754dcc6214a6b27661baea3a15c8d9866ecce
rofileAndContactsLoader.java
6f2673a25ecc59426c2faa2cfec5780e59ac5e5e 12-Nov-2014 Walter Jang <wjang@google.com> Set snippet/data/phonetic textview text alignment to start

Bug 18268394

Change-Id: I9caa9ac5ae4a7df892e546413d7e9dce79ed3f31
ontactListItemView.java
3ca0571e873c6e5e109f1807c2a511edec31867a 31-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Improve analytics" into lmp-mr1-dev
9dff772a039db6bf7c73b3b04aeea2eb2f8c8356 27-Oct-2014 Brian Attwell <brianattwell@google.com> Improve analytics

Removes the existing buggy & verbose analytics classes. Instead adds
the AnalyticsUtil. Like before, analytics will automatically be added
to all activities. They need to be manually setup for fragments
that you care about.

Improving analytics CL #2/4

Bug: 18039620
Change-Id: I99a4062e09e7614e5369d795132172d4d1867600
ccountFilterActivity.java
ontactEntryListFragment.java
ustomContactListFilterActivity.java
honeNumberPickerFragment.java
d4c540b696b2575f32b3bb9f7f34248ea18c37b4 16-Oct-2014 Walter Jang <wjang@google.com> Set TtsSpans on names and snippets that could be phone numbers

Bug: 17322140

Change-Id: I9afa9c59e1db6c5ad7123bdb37d288fa64faeddf
ontactListItemView.java
64355c717f4f739baae02d347744cfcc577ffe0b 27-Oct-2014 Jay Shrauner <shrauner@google.com> Fix NPE in onPageSelected

Ensure position is within valid child range for tab strip.

Bug:18133744
Change-Id: I78006024217b36ef150193407a96faf71ce79a28
iewPagerTabs.java
f938fa22b0901d9a566be1ec3975554f3623f795 23-Oct-2014 Brian Attwell <brianattwell@google.com> Use analytics activities and fragments

All ContactsCommon's activities and fragments now inherit from
analytics base classes.

Also renamed dialerbind.analytics -> commonbind.analytics

Analytics CL #1/6

Bug: 18039620
Change-Id: Ie9cef92bfcadf6764970d70474ced24dba7f828d
ccountFilterActivity.java
ontactEntryListFragment.java
ustomContactListFilterActivity.java
46027b7f219f30e1d413639caca990cb9d8aec64 16-Oct-2014 Brian Attwell <brianattwell@google.com> RTL support in starred contacts

See photos in bug

Bug: 18013005
Change-Id: I035369009d1e4b7bbbacc2985697b167b1d59ef0
ontactTileAdapter.java
fb368ce3e20b25dd3819bff20f76eae24ce1b8ab 16-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Set setIsSectionHeaderEnabled in bindView()" into lmp-dev
aca984b5bc95a5e3c82ab79319694cb60b443315 15-Sep-2014 Brian Attwell <brianattwell@google.com> Set setIsSectionHeaderEnabled in bindView()

Bug: 17506125
Change-Id: Iea754d389e8ede27ffc220bc6b8015ac132d45d6
ontactEntryListAdapter.java
efaultContactListAdapter.java
honeNumberListAdapter.java
04a5b0b11e4bc47a343017ddece5754cf35f61f5 11-Sep-2014 Tyler Gunn <tgunn@google.com> Renaming Telecomm to Telecom.

- Changing package from android.telecomm to android.telecom
- Changing package from com.android.telecomm to
com.android.server.telecomm.
- Renaming TelecommManager to TelecomManager.

Bug: 17364651
Change-Id: I6cae2868fa8b8d2fe872771ecac628add52fea84
hortcutIntentBuilder.java
fcf62ed127081833443eb13eb9e17aaf158f441a 09-Sep-2014 Brian Attwell <brianattwell@google.com> Symmetric ripples in ContactTileAdapter

This CL keep the amount of whitespace around the images constant.
It increases the margin around the images (previously 0) and decreases
the padding.

Bug: 17394103
Change-Id: Ib1429adf602e39fbdaeb8a56804358225b4b102d
ontactTileAdapter.java
8f0afaec5442f24cf4106f40118ef6b3cc44c7ae 07-Sep-2014 Jay Shrauner <shrauner@google.com> Fix NPE when mAdapter is null

Bug:17414016
Change-Id: Id35d0de1a48b38bb4ef32c3f89e47bf2c374dda5
innedHeaderListView.java
382b6dacb5d1582fa198c84825489d846ba9e5bc 06-Sep-2014 Jay Shrauner <shrauner@google.com> Move non telecomm schemes to ContactsUtils

Pull telecomm schemes from PhoneAccount in framework

Bug:17398074
Change-Id: I3e73be01949c254a142fe8a4faea062899d35266
hortcutIntentBuilder.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
ontactEntryListAdapter.java
ontactListAdapter.java
efaultContactListAdapter.java
honeNumberListAdapter.java
707bfd0095a4994ef32ae65e780b23881b54eebf 05-Sep-2014 Brian Attwell <brianattwell@google.com> Fix width of ContactListPinnedHeaderView

CHANGE:

Change ContactListPinnedHeaderView so that it's non-padded width matches
ContactListItemView#mHeaderTextView.

BACKGROUND:

ContactListPinnedHeaderView and ContactListItemView#mHeaderTextView both
represent letter headers. ContactListPinnedHeaderView overlaps
ContactListItemView#mHeaderTextView.

ContactListPinnedHeaderView and ContactListItemView#mHeaderTextView's
header were both given the same width. But ContactListPinnedHeaderView
has starting padding whereas ContactListItemView has a starting margin
(more precisely, it uses a custom layout function to simulate margin).
Therefore, the portion of ContactListPinnedHeaderView
that was used to display text was smaller than ContactListItemView.

Bug: 17393755
Change-Id: I3610ad29058832cebbe8abba537057bb723bd945
ontactListPinnedHeaderView.java
d9ba7ce0739281fc903ece843b5c84e10344adb3 04-Sep-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API changes

Bug: 17390425
Change-Id: Ia88fb0235a56becc3ec5a770067856311769a68c
ontactListAdapter.java
honeNumberListAdapter.java
88b8e0de14be337912317cfb65d2d0389cc9f9e2 02-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Circular direct-message shortcut" into lmp-dev
dd36185dd47e52a917306d3627c1b618d1eea9f8 02-Sep-2014 Brian Attwell <brianattwell@google.com> Circular direct-message shortcut

Bug: 17330895
Change-Id: I344fa0fc2225d0f0fb1bf54e4518047c2c2a92cc
hortcutIntentBuilder.java
54140f73445acb7f2c36b5ced72fb185a3f99f0a 31-Aug-2014 Yorke Lee <yorkelee@google.com> Fix pinned header jump for first pinned header

Bug: 17333005
Change-Id: I85b2e356c9c1486ef92ba97ec0f461d71ae2cf00
innedHeaderListView.java
02cafd85df2af5cb305516e20c111837bf25adf1 29-Aug-2014 Brian Attwell <brianattwell@google.com> Correct padding at start of Frequently Contacted

Bug: 17285107
Change-Id: Ie47077a2a41241b46e8c136f90f9cd9395f14c17
ontactTileAdapter.java
84a652ef252493066a8e09fd5110472158e7b568 28-Aug-2014 Brian Attwell <brianattwell@google.com> Apply card padding when fragment becomes unhidden

Refactor ContactListViewUtils to reduce copy and pasting.

Apply padding inside ContactEntryListFragment#onHiddenChanged().

Bug: 17303217
Bug: 17135027
Change-Id: I8f972f1a503fdbf7561aea1c5fef9316c49a0bac
ontactEntryListFragment.java
87e29f060b8fe7a1f8794955ded14617214af0ed 26-Aug-2014 Zheng Fu <zhengfu@google.com> Adding common contact list view and card layout

Bug: 16553819
Bug: 17157006
Change-Id: I498b3de918a98b59e589e5216ea6ae3a0d3902a7
ontactEntryListFragment.java
2fd9bf9b5cef661118131464c8692f63b7e97510 22-Aug-2014 Brian Attwell <brianattwell@google.com> Decrease LetterTile scale for starred contacts

Bug: 17137563
Change-Id: Ic0d9aafe277969133d655fca1c87d74ce80e0755
ontactTileStarredView.java
7d7108e8b46f5b35477211a7dd08ff8a14390ef8 16-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Update margins around directory headers and search bar icons." into lmp-dev
80f8bee7990fd7f2a9fd2bace2d96b39c0f264b3 15-Aug-2014 Nancy Chen <nancychen@google.com> Update margins around directory headers and search bar icons.

*Added more space to the top of the directory header
*Added more margin to the left of the back arrow and right of the close
*Pushed the contact text to the right

Bug: 15596340
Change-Id: I8817369d52faeb8edff7817b3f29726c1717e74f
ontactEntryListAdapter.java
9cc673259e047e8e913d497fc754b402d2e9b33f 14-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Fix ViewPagerTabs not scrolling correctly after tab selected" into lmp-dev
4009024ad41f739b14fea28f0c002d9451156186 14-Aug-2014 Yorke Lee <yorkelee@google.com> Fix ViewPagerTabs not scrolling correctly after tab selected

onPageScrolled was incorrectly calling smoothScrollTo and clobbering
the correct scroll offset set in onPageSelected

Bug: 16408774
Change-Id: I06e23d7469e52ef44e5bba9bf5495e34a1d32068
iewPagerTabs.java
41d16000cdd94f5f69f5d5c7c6c1519d82bc15fe 14-Aug-2014 Yorke Lee <yorkelee@google.com> Protect against invalid long numbers in Dialer

Bug: 14307606
Change-Id: I788fec72dac4ea467644f1c2ead0f466ea8e7fa9
honeNumberListAdapter.java
2cb2e29508d59f76976c8f1742690b90f99ab803 11-Aug-2014 Brian Attwell <brianattwell@google.com> Remove background from unpinned headers

When ContactEntryListAdapter headers are unpinned, there is no
need to set their background color. Set the backgound to null.

Since the background color that is currently set on ContactEntryListAdapter
headers is currently incorrect in some unpinned contexts, this is an easy
solution to the mismatched background color.

Bug: 16552544
Change-Id: Ie17dfa40b495d87c6664605bd77e703acfdd2855
ontactEntryListAdapter.java
da98c6a02d9e1cfe3d7078c74f692842fc2bce21 08-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Disable pinned headers for directory headers" into lmp-dev
21826decea0b645be73f5e229a20632458360489 08-Aug-2014 Nancy Chen <nancychen@google.com> Disable pinned headers for directory headers

Bug: 15596340
Change-Id: Ida586663a57ab08fb9b01b946451ee59593565dc
ontactEntryListFragment.java
9d4d8321aafae09125b8f62bce4c299191db0252 06-Aug-2014 Chris Craik <ccraik@google.com> Use new RoundedBitmapDrawableFactory

Change-Id: I8427ac646091e33eaa2ed567fb656b1a4ea267a7
hortcutIntentBuilder.java
6dad05f68b81e72fe4ab0965b2ec00c258f48289 31-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Correctly setGravity for RTL mode" into lmp-dev
f5d6a7cf8f7f9cb80a65ad2d70634f25191c7e95 30-Jul-2014 Sai Cheemalapati <saicheems@google.com> Moved analytics base files to ContactsCommon.

Allows analytics base files to be shared between GoogleDialer/
GoogleContacts.

Change-Id: I35f450b8a6ec1e3feefd4523a07c333c912c7a5e
ontactEntryListFragment.java
53c7dc1e9691b5b427395642a4274d37a1a15bb4 31-Jul-2014 Yorke Lee <yorkelee@google.com> Correctly setGravity for RTL mode

Ensure that by the time setGravity is called for RTL-related aligning,
that getLayoutDirection() returns the correct values. This value is not
usually correct in the constructor, because the view does not have a parent
to resolve it from yet.

Bug: 16162786
Change-Id: Iea6cbcd05e39a5c45641dbb1230d4be85b45ff15
ontactEntryListAdapter.java
ontactListItemView.java
ontactListPinnedHeaderView.java
ndexerListAdapter.java
dc08a7cd1fc867826f4620203898847e9b27fd2d 30-Jul-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API change

Bug: 16403306
Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
ontactEntryListAdapter.java
ontactListAdapter.java
honeNumberListAdapter.java
c3f21a33fa554f683ddbe6d9553d1b3bd9a4fd29 22-Jul-2014 Brian Attwell <brianattwell@google.com> Only kill image requests from the one fragment

In ContractEntryListAdapter#changeCursor(), don't kill all image loading
requests app wide. Instead, only kill the image loading requests that
were associated with the adapter's fragment.

Bug: 15522504
Change-Id: Ib4e0448217e8bbb8df55e74649a013e0f1688a22
ontactEntryListAdapter.java
ontactEntryListFragment.java
4d0ec405721176fcbf4c70bade5d34da68d523c3 22-Jul-2014 Yorke Lee <yorkelee@google.com> Make ViewPagerTabs and FABController RTL aware

* Underline in ViewPagerTabStrips is correctly drawn in RTL mode
* Clicking on ViewPagerTabs propogates correct onPageSelected position
to ViewPager
* FAB is now end aligned instead of right aligned
* ViewPager in Dialer is correctly reversed and behaves correctly
* Call Log groups headers in call log are now correctly aligned in RTL

Bug: 16162264
Bug: 16464471

Change-Id: I2db6b9147a628a68fba5bbbdb7276855d483bad5
iewPagerTabStrip.java
iewPagerTabs.java
429302fd99805fc6d88e974335289e22ff59c1ee 21-Jul-2014 Brian Attwell <brianattwell@google.com> Move custom ViewPagerTabs into common

Bug: 16158921
Bug: 15616182
Change-Id: I164fe830636577f85357aa3bf1ddf803de9abf94
iewPagerTabStrip.java
iewPagerTabs.java
8336da02441968a5f48b7f85e386cf44d1a96623 18-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Inline "select new contact" entry in contact picker" into lmp-dev
0631174430c169d84675123346797654f4e62b5c 17-Jul-2014 Brian Attwell <brianattwell@google.com> Inline "select new contact" entry in contact picker

Moved Dialer resources into ContactsCommon (didn't use the exact
same icon. Used the icon from go/icons instead). Made some
small code changes needed by my Contacts CL: bug fix
and overridable parameter.

Part 2/3
Bug: 16209705
Change-Id: I792b4fa560f4f8a26ed05d5b44817152c59deda1
ontactEntryListAdapter.java
ontactEntryListFragment.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
ontactListAdapter.java
efaultContactListAdapter.java
honeNumberListAdapter.java
1b1221ba8291599675cb1399713c966728ed3c52 10-Jul-2014 Brian Attwell <brianattwell@google.com> Use circular photos in contact picker

Bug: 16159886
Change-Id: I820aff2abbb6bdaee26a788c97083d45c2694016
honeNumberListAdapter.java
70ff7f50e1e80db6433c745d03f46d795519aee8 09-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "QuickContact launcher shortcut is a circle"
80871d423f584504990f5e235382b960773e10e5 08-Jul-2014 Brian Attwell <brianattwell@google.com> QuickContact launcher shortcut is a circle

I made no changes to the Dialer shortcut. More UI direction would
be needed to change this.

Change-Id: Ie33eb22016797791aab2f98a3e2d88ee7dbacb2e
hortcutIntentBuilder.java
8c0712579331e77a66b23966f4eb9d7e0ab1d1f6 08-Jul-2014 Yorke Lee <yorkelee@google.com> Update CP2 snippeting argument defaults (2/2)

Remove the use of the private field

SearchSnippets.SNIPPET_ARGS_PARAM_KEY since we don't need to set
our own snippeting arguments anymore.

Snippeting behavior should remain unchanged.

Bug: 6948882
Change-Id: Ib3ddcbbb852014fb47df2dc6a592aa6d0aaa64fb
efaultContactListAdapter.java
0046eba44749b69d7cfc6693f351a27f7d0cb491 08-Jul-2014 Brian Attwell <brianattwell@google.com> Disable default animation for launcher shortcut

Change-Id: I118ee8e61ca276be2ae5734fd148f3468402a08e
hortcutIntentBuilder.java
50d3dd7f5198d243cf5f1ab5764f741ddf301f18 02-Jul-2014 Andrew Lee <anwlee@google.com> Overload onCallNumberDirectly with isVideoCall option.

This is to provide a common interface for initiating a video call.
Added comments too.

Bug: 16013180
Change-Id: Iecbc54d8c7b09ba1554458c42528b1d2de141f91
nPhoneNumberPickerActionListener.java
253dce317e015816aef3f31295da4bc037245ee1 01-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Clean up SearchSnippetColumns API (3/3)"
b321f58e96516c007297492bc0e9287c9150b39c 01-Jul-2014 Yorke Lee <yorkelee@google.com> Clean up SearchSnippetColumns API (3/3)

Bug: 6948882
Change-Id: I102d21f363ac541c1e54ad06e30913ab6c7fc9b8
ontactListAdapter.java
efaultContactListAdapter.java
f7a205fdcb17161c454bee673cc2fce5b23d0760 30-Jun-2014 Sai Cheemalapati <saicheems@google.com> Fix PinnedHeaderListView behavior with padding.

PinnedHeaderListView now behaves as expected if left/
right padding is specified.

Change-Id: Idc5e3b6b90ab73cfe5f7e0d60ca16067e650c9a7
ontactListItemView.java
fe23529616b72e919f376e6f9f0d7ecb5543b54c 26-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Frequently Contacted title style in Favorites tab"
3c4e8501b8fe4a6f508a256fd133004e1f1936a4 25-Jun-2014 Brian Attwell <brianattwell@google.com> Frequently Contacted title style in Favorites tab

Change-Id: I2effc74dfd1b570844296c003de456ec71e2940d
ontactTileAdapter.java
d3a9344d57a05ad626849a98c6a6cfd1a29935c5 25-Jun-2014 Yorke Lee <yorkelee@google.com> Remove unneeded EXTRA_MODE from ShortcutIntentBuilder

Bug: 6948882
Change-Id: I78ebd9cd1e41e06381d7f1d227854be2b7632d20
hortcutIntentBuilder.java
0cc08556bbf7ba8f3d2b98fff407408582dbcddd 24-Jun-2014 Andrew Lee <anwlee@google.com> Fix positioning of first header in contacts list.

Turns out that the max() actually had bad effects when the top of the
header should have actually be negatively positioned.

Change-Id: I60b3e51cba65ae369b7558e858b096430e948d1a
innedHeaderListView.java
395d9d95e25f6fa4b8e750e36ec0a5c1886a65b5 12-Jun-2014 Brian Attwell <brianattwell@google.com> Add ContactTileView#isContactPhotoCircular()

This parameter can be overriden inside dialer.

Bug: 15573471
Change-Id: I2183d3c406cb43223856e2bf653a894b4fa37ef0
ontactTileView.java
d6371d642f898ad455eb12719adc0a1123009481 05-Jun-2014 Brian Attwell <brianattwell@google.com> Divide tile padding between two tiles

Previously, the padding between two favorite tiles was entirely
allocated to the leftmost tile. This causes the selection ripple
animation to look bad.

This CL splits the padding between the left and right tile.

Change-Id: I361414a8676e17e3453b4edf161f170f054dccfc
ontactTileAdapter.java
440a8fb48d25b4281bd4b00ca5070da59129be14 29-May-2014 Brian Attwell <brianattwell@google.com> Styled frequent contacts to look like contact list

Instead of refactoring the ContactTileAdapter to use functionality
from ContactEntryListAdapter, I changed ContactTileAdapter
to use the Attribute#ContactListItemView values when possible.

Also fixed the touch feedback inside contact_tile_starred
(has been broken for a while).

Change-Id: Ib9bafceef518aaa16b77d0b585b06778178b76a4
ontactTileAdapter.java
ontactTileFrequentView.java
ontactTileView.java
6ee0728b5844ae60adb0d27d5f9b54d9720a11a0 29-May-2014 Brian Attwell <brianattwell@google.com> Show starred contacts in circles

Change-Id: I9b3171a507a6b8e0be8bc29e13b4c98f7a0cb737
ontactTileAdapter.java
ontactTileView.java
2a913bd7024f2ccd0e2649c49d1442e9167f9039 29-May-2014 Brian Attwell <brianattwell@google.com> Cleanup: remove dialer code from ContactTileAdapter

ContactTileAdapter used to be used by both Dialer and Contacts.
Now that Dialer implements its own version of ContactTileAdapter,
all Dialer code inside ContactTileAdapter is dead. Therefore, I
am deleting.

Maybe ContactTileAdapter should be moved out of ContactsCommon
in a later CL.

Change-Id: I350bcdf1c1fa38aa50b6fd4e25b4b61284903b0e
ontactTileAdapter.java
ontactTilePhoneStarredView.java
0cbfbda343c15c90134db5e55cf51239fe846b6c 11-Jun-2014 Andrew Lee <anwlee@google.com> am ff52f105: Merge "Apply list item padding left to the contact list pinned header." into lmp-preview-dev

* commit 'ff52f10525441256e75d4667e1873ea975f8b826':
Apply list item padding left to the contact list pinned header.
d2777cefe658ceccafa853c7c3ae9a4fd5d9898c 11-Jun-2014 Andrew Lee <anwlee@google.com> am 84f6ef0c: Merge "Add support for full-bleed selection of contact list items." into lmp-preview-dev

* commit '84f6ef0cfd5ef768b14119952df7b8f2fa0a02ee':
Add support for full-bleed selection of contact list items.
ff52f10525441256e75d4667e1873ea975f8b826 10-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Apply list item padding left to the contact list pinned header." into lmp-preview-dev
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
ontactEntryListAdapter.java
ontactEntryListFragment.java
ontactListAdapter.java
ontactListItemView.java
66ee56383afe4bafa38fa0babdd0dfd07cc7c7b2 09-Jun-2014 Andrew Lee <anwlee@google.com> Apply list item padding left to the contact list pinned header.

Bug: 15517457
Change-Id: I18b9cf5daa36e44ec01ef905550e09b5db2cbdd6
ontactListPinnedHeaderView.java
0cce7b84235fdce3d3fea63fad4a0b368620fb07 04-Jun-2014 Andrew Lee <anwlee@google.com> am e7e5d98b: Merge "Set first header\'s y position according to the to of the first child." into lmp-preview-dev

* commit 'e7e5d98b55cfb1556584b0ffad3ba458928a2970':
Set first header's y position according to the to of the first child.
26813c713cf99e25b4fb8e08bd8b5868931bcde1 02-Jun-2014 Andrew Lee <anwlee@google.com> Set first header's y position according to the to of the first child.

We're applying padding in Dialer, but this is not being picked up in
the ListView because the pinned header was absolutely positioned and
did not respect padding. In this addition, if the first child of the
list is visible, check it's top and set the first header to have
this value if the top is non-negative.

Bug: 15332945
Change-Id: Ia3b46cb6bd69547faff57ae8f94b48b598adb670
innedHeaderListView.java
3264237b4db5af21d8e33f6818ff0f3d9938e416 30-May-2014 Andrew Lee <anwlee@google.com> am 8668f83e: Merge "Match contact list items to redlines for Dialer." into lmp-preview-dev

* commit '8668f83e7c37027870ffe2ea5c72d9977f9fc0e1':
Match contact list items to redlines for Dialer.
6fdf16941587a222f554482fb72531783a924b6e 30-May-2014 Andrew Lee <anwlee@google.com> Match contact list items to redlines for Dialer.

- Add text offset top functionality in the pinned header and
headers. In the pinned header this was done with padding, because
the pinned header is a (assumeedly vertically centered) child and
then the parent doesn't need to be privy to these details.
- Update width and font size. I imagine we want these changes to
be consistent between Dialer and Contacts, which is why this was
done here instead of in Dialer.

Bug: 15332945
Change-Id: If2ebf8117f528316b256a86ed9922f917e9c75ae
ontactListItemView.java
ontactListPinnedHeaderView.java
62ad29abe26021ef82243289b8e140f5814645e7 30-May-2014 Andrew Lee <anwlee@google.com> am f6141bd8: Merge "Updating contact list item for Dialer search redlines." into lmp-preview-dev

* commit 'f6141bd806446928038f97bedcbdc3b69b5f1e15':
Updating contact list item for Dialer search redlines.
7961175eb7b8b8d6f990bd8e510f59fe48c5ef4b 30-May-2014 Andrew Lee <anwlee@google.com> Updating contact list item for Dialer search redlines.

- Add text offset field so that the text can be properly aligned
after taking into account inherent padding.
- Set elegant text height to false on name/data TextViews.
- Increase small text size.

Bug: 15328499
Change-Id: Ib86ab2a3f1bde676f0950453653a90d51b26fb0b
ontactListItemView.java
ce892f584711dc1445666c48bcefd4949a8486b0 28-May-2014 Sai Cheemalapati <saicheems@google.com> DO NOT MERGE Changed margins of Dialer and Contact list items to match redline spec.
Changed text color of items to match spec (#4d4d4d).
Fixed text size issue in People app.
Bug: 15165159

Change-Id: Ib07111d6d829363f5258fbe6475dd8d1918b8ec7
(cherry picked from commit 3bc19a3bb1ed23b03352fff6de69a89e763a315e)
ontactListItemView.java
3bc19a3bb1ed23b03352fff6de69a89e763a315e 28-May-2014 Sai Cheemalapati <saicheems@google.com> Changed margins of Dialer and Contact list items to match redline spec.
Changed text color of items to match spec (#4d4d4d).
Fixed text size issue in People app.
Bug: 15165159

Change-Id: Ib07111d6d829363f5258fbe6475dd8d1918b8ec7
ontactListItemView.java
c2a910a18d5d29442755c6193cd31b38ba834f34 28-May-2014 Andrew Lee <anwlee@google.com> am 58a793ee: Provide Color.BLACK as default name text color.

* commit '58a793ee1253f8f46dd7f754a51f61a6bbcdce60':
Provide Color.BLACK as default name text color.
58a793ee1253f8f46dd7f754a51f61a6bbcdce60 28-May-2014 Andrew Lee <anwlee@google.com> Provide Color.BLACK as default name text color.

Bug: 15248629
Change-Id: I722fef6cd23b10bdbebbe8d3d04c3923376301cf
ontactListItemView.java
90fbbae42d4628b18e78434e7de13254099b229e 27-May-2014 Paul Soulos <psoulos@google.com> Fixes comment typo in ContactListItemView

Change-Id: I961c4fa58c060d05a30acf11e88116dd6daf23c4
ontactListItemView.java
b478fa93247b26b8797128563c089da3db542f55 23-May-2014 Nancy Chen <nancychen@google.com> [DO NOT MERGE] Add attibute for color on contacts list search items

Adding the ability to change the color on the contacts list
search items. The actual colors are defined in Dialer.

Bug: 15118603
Change-Id: I8e332e9c448cbcc4e4f64349d9ff5474bb06eb2f
(cherry picked from commit f88b7b9d1a07414053a4a90d13d453a02bd58ac7)
ontactListItemView.java
f88b7b9d1a07414053a4a90d13d453a02bd58ac7 23-May-2014 Nancy Chen <nancychen@google.com> Add attibute for color on contacts list search items

Adding the ability to change the color on the contacts list
search items. The actual colors are defined in Dialer.

Bug: 15118603
Change-Id: I8e332e9c448cbcc4e4f64349d9ff5474bb06eb2f
ontactListItemView.java
f2e1ee6eb6bd1b24d149b815ec283c8750e02558 15-May-2014 Andrew Lee <anwlee@google.com> Support empty results in contact entry list fragment.

This is prerequisite to showing empty search results when the user
touches the search bar. Before, there was an assumption that you
could not have an empty query string. This CL seeks to add that
functionality, while preserving the existing interface.

Bug: 14900155
Change-Id: I15235db651a6b59a0f110a3cb8b5e8bf0a6726be
ontactEntryListFragment.java
dce995ea379959f434e9c4361d70b2148c47bc51 02-May-2014 Yorke Lee <yorkelee@google.com> Merge "Update ContactListItemView.setIsSectionHeaderEnabled when binding view"
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
ontactListAdapter.java
b197fb095d6147702afe26a08d214cd821faf4ba 02-May-2014 Andrew Lee <anwlee@google.com> Merge "Delete mContactsCount tracking in ContactEntryListAdapter."
9cab8547bdd10ae74fe49a41d6edd65312d4dc17 01-May-2014 Andrew Lee <anwlee@google.com> Delete mContactsCount tracking in ContactEntryListAdapter.

Bug: 13956531
Change-Id: I0345cf85ae428441718c08d0b5a3a5eee2eef883
ontactEntryListAdapter.java
ontactEntryListFragment.java
0b332d732b39f71206a953b4475fbc3108263690 01-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add circular photo support to ContactPhotoManager"
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
ontactEntryListAdapter.java
ontactListAdapter.java
ontactListItemView.java
ontactTileView.java
honeNumberListAdapter.java
hortcutIntentBuilder.java
ceb851d9c2d5c73bdd9c60ca47be0902516636aa 29-Apr-2014 Andrew Lee <anwlee@google.com> Polishing text style and measuring for section headers.

- Added section header text color.
- Updated section headert style.
- Fixed selection bounds measurement in ContactListItemView.
- Deleted unused methods and imports in ContactListItemView.

Bug: 13956531
Change-Id: I1dea8691bb77fae90847474414ff6143c8fea5f5
ontactListItemView.java
ontactListPinnedHeaderView.java
8ec561aa133b753f896ab2044fac2118bcadb305 28-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Moves section header in contacts list to the left side."

Change-Id: I59a2050e67cc0290df5fb28f7e5b8dcb844d2cf8
807d572391dd062c25e00a956a02412ce07cdfd7 28-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Moves section header in contacts list to the left side."
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
ontactEntryListAdapter.java
ontactListAdapter.java
ontactListItemView.java
ontactListPinnedHeaderView.java
ndexerListAdapter.java
honeNumberListAdapter.java
innedHeaderListView.java
a9950433dc469d24b314204075a6250d2410e01b 25-Apr-2014 Andrew Lee <anwlee@google.com> Change default photo position from right to left.

Bug: 13956531
Change-Id: I7ce2991394f7465eced2889c89b9b54887aaae2b
ontactListItemView.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
ontactEntryListAdapter.java
ontactListAdapter.java
ontactListItemView.java
ontactListPinnedHeaderView.java
ndexerListAdapter.java
83e86e25a0abd225cea17b9f182b3aada69c5a37 23-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Delete contacts list item dividers."
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
ontactListAdapter.java
ontactListItemView.java
honeNumberListAdapter.java
15a8f475646c8338be244f65771e560e4875acdd 19-Apr-2014 Jay Shrauner <shrauner@google.com> Handle null cursor

Handle null cursors sent in to setContactCursor

Bug:14165361
Change-Id: If9487b79fff9b21549b8c2267564f12c00922118
ontactTileAdapter.java
b49193d619da7e06b8cba41e443913825f6464f5 22-Mar-2014 Jay Shrauner <shrauner@google.com> Fix NPE when lack index counts

Fix NPE when index counts aren't present in bundle.

Bug:14140956
Change-Id: I491bce17be57b13e72e75a443de77550ed5e487e
ontactEntryListAdapter.java
353068614111bd79ac92e0ae98af433868ba3fb3 16-Apr-2014 Tyler Gunn <tgunn@google.com> Fixing issue where contact photos are shown in the wrong location due to
a concurrent change to the search results list which occurs after the
the request to load the contact photo is registered, but prior to it
being fulfilled.

Bug: 13967012
Change-Id: I6f14e69ad1841df8b7da5632e4a9551b6641e04b
ontactEntryListAdapter.java
eabf27292960173c0600e022c64919453741c93f 09-Apr-2014 Yorke Lee <yorkelee@google.com> Temporarily disable phone number formatting in search

Formatting the phone numbers after highlighting sequences had been
assigned was causing possible IndexOutOfBoundsExceptions when
applying the highlights. Temporarily disable formatting until
highlighting logic is better refactored between the various
PhoneNumberListAdapters and ContactListItemView.

Bug: 13906816
Change-Id: I9082a68ee7c2aaa376da203a98a534098bb43e14
ontactListItemView.java
d632975fd69f4e0994d6fe66f099ab714ed709b1 01-Apr-2014 Andrew Lee <anwlee@google.com> Don't replace phone number text if formatted number is null.

Bug: 11734577
Change-Id: I21e11b9aed0dde06f96fcbdcc605cef0f2c4120f
ontactListItemView.java
62dbbf2f10e0e3bcb4d699d859a71a68c896f4a7 31-Mar-2014 Andrew Lee <anwlee@google.com> Format phone number before setting it on ContactListItemView.

Get the country ISO from the context in the PhoneNumberListAdapter.
Then, in ContactListItemView, use PhoneNumberUtils to format the
given phone number before setting it. Also, deprecates/deletes
showPhoneNumber() method.

Bug: 11734577

Change-Id: I890f1b090acb1814814396da654f75b23d9ef8de
ontactListItemView.java
honeNumberListAdapter.java
bb67024ef64a7853f5ec320652d80f0cdf7b660f 18-Mar-2014 Yorke Lee <yorkelee@google.com> Fix ContactsCommon tests

Remove stale testSetMask_LengthMismatch test
Update SpannedTestUtils to check for StyleSpan instead of ForegroundColorSpan
Add READ_CONTACTS permission

Bug: 13516535

Change-Id: Ibe10ca6cde42277697dc185e4cab35238d190023
ontactListItemView.java
3d7e2893cb55dc0f1bc4f7e731322973ee09bc1f 07-Mar-2014 Yorke Lee <yorkelee@google.com> Remove references to private view properties

Switch usages of mTop, mBottom, mRight and mLeft which are hidden
View properties to their non-hidden getter functions instead.

Bug: 6948882
Change-Id: I528ab18bc91eaacc784c1e79a9a417421e14e0cd
ontactListItemView.java
e61e6cc75e9671e763b04488a7745595aebad205 03-Mar-2014 Yorke Lee <yorkelee@google.com> Merge "Tweaks to redlines for letter tile avatars"
906ffc8a0655f0e78a9b7307e7e76717bfdc6d58 01-Mar-2014 Yorke Lee <yorkelee@google.com> Tweaks to redlines for letter tile avatars

* Add overridable method for subclasses to define their own layout
based on whether or not the contact photo is a letter tile avatar

* Update color palette for letter tile avatar backgrounds

Bug: 13101785
Change-Id: I69759d17867b15f9b7e35b1c48e9d85e4470cd56
ontactTileView.java
30dd6e7e1a9279b91e9ee0ad36c34545c5b6c45a 03-Mar-2014 Yorke Lee <yorkelee@google.com> Fix ShortcutIntentBuilder to use LetterTileDrawables

Use LetterTileDrawables, instead of Bitmap drawables when generating
shortcut icons for contacts without a contact photo.

To do this, the methods generatePhoneNumberIcon() and
generateQuickContactIcon have to be modified to draw a drawable on
the canvas instead of a bitmap.

Bug: 13279862
Change-Id: Ife7bbca27a7d1b942c8a8ea908dd9896c5fe063a
hortcutIntentBuilder.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
ontactEntry.java
ontactEntryListAdapter.java
ontactListAdapter.java
ontactTileAdapter.java
ontactTileView.java
efaultContactListAdapter.java
honeNumberListAdapter.java
ae961fff72fd6612ccad09c9aa63e5ebabd826ea 04-Feb-2014 Jay Shrauner <shrauner@google.com> Fix search crash

Trap NPEs thrown by CP2 query so faulty directory providers don't crash us.

Bug:12893832
Change-Id: Ie88aafb84b6d7129da02d6e0a4457ecfad5ca9b5
rofileAndContactsLoader.java
1f44ffc294764250cb1e02290fabdc439126dc19 30-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE if contactsCursor is null

Don't crash if the CP2 call failed and we were unable to load the
contacts cursor.

Bug:12822702
Change-Id: Ib6b3cf5a9519d61c82924f29babb146888f7453a
rofileAndContactsLoader.java
2148610dede65c774d95e2d44d7b742f1f08857a 28-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE with null cursor

Fix NPE when get null cursor back from CP2 query.

Bug:12760164
Change-Id: I88ff0a9bd5b58a3e837c943bf999c8636b749b64
rofileAndContactsLoader.java
c8ec55d79f6b211b005397cbdab8c6be73d2390b 05-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Add null check for cursor in DirectoryListLoader"
903c973e0ef995ee05acf8fa7501377afa971384 05-Dec-2013 Yorke Lee <yorkelee@google.com> Add null check for cursor in DirectoryListLoader

Bug: 12015142
Change-Id: Iaf7a97efb31e06402d583d399fa1f66f12e086d9
irectoryListLoader.java
bded9d078784569efef4aec2d636ce3f733601d7 03-Dec-2013 Yorke Lee <yorkelee@google.com> Copy private pointInView method to ContactListItemView

Bug: 6948882
Change-Id: Ieef3d4c8933eacea59fe5a5398edc5ba0141fd2c
ontactListItemView.java
90a368279bb3e94291e12fc0c7dc8676f194c33d 03-Dec-2013 Yorke Lee <yorkelee@google.com> Replace usages of mContext with getContext

Bug: 6948882
Change-Id: I730f690f36e9541dd6945abe6df9890c96d72676
ontactListItemView.java
63c73552e6ace4dda84d05c28a948ec1a511b148 02-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Remove private references to android.R.styleable"
3aa2cb56ece8461f2df69d9300c9a1abf03f6989 26-Nov-2013 Yorke Lee <yorkelee@google.com> Remove private references to android.R.styleable

Define these framework attributes in our own attr.xml and use as
necessary

Bug: 6948882
Change-Id: I6862451133844251315dafeffd1921720eeb4964
ontactListItemView.java
f67d2e9a29257600a1560bc677cdd53cecaa0aec 26-Nov-2013 Yorke Lee <yorkelee@google.com> Copy quickcontact badge drawable in framework to ContactsCommon

Remove private reference to quickcontact badge drawable

Bug: 6948882
Change-Id: I4f9c9cce48e94632802bd056beed7e80f1c25f22
hortcutIntentBuilder.java
a350efe79dd18df1d6e31694d68094ad99736a11 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Fix auto-merge conflict.

Merge commit 'd6714041' into manualmerge

Conflicts:
src/com/android/contacts/common/list/ContactListItemView.java

Change-Id: Icade3af50d0c509b17341d6bcb15d5ed0419109f
9552192be3977ce2a7fd21b091dffa38808df73e 14-Nov-2013 Yorke Lee <yorkelee@google.com> am 02de5655: am dfd7e86b: am 538e05b3: Fix a bug with pressed state in ContactListItemView

* commit '02de5655eef21607f2d20a1e643e230ce05669d6':
Fix a bug with pressed state in ContactListItemView
ab8ca3ff940c4e0941d90935229ae03a50be2bac 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Merge "Make fonts consistent in contact list." into klp-dev
d396439cb61b5470363fda394137f706b792f29a 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Make fonts consistent in contact list.

Bug: 11674807
Change-Id: I86e08025085e140ecee7cfa796aff006ea3e270b
ontactListItemView.java
538e05b3bbde399f25ccf1aad251fca6d7f4d6b3 13-Nov-2013 Yorke Lee <yorkelee@google.com> Fix a bug with pressed state in ContactListItemView

ContactListItemView was incorrectly maintaining its pressed state
even when touch events were moved outside its bounds.

Bug: 11668831
Change-Id: I36b596d33be4e44f78990a9fa8e5fd05d3388037
ontactListItemView.java
11d6e116ae4b02d0d11af7fc142b5e762e7bd6cd 07-Nov-2013 Jay Shrauner <shrauner@google.com> am d42e1c09: am bd3a4599: am adbb5e91: Don\'t display quick contact card when lacking info

* commit 'd42e1c099f1a6004d646a41255f04341d67dcafb':
Don't display quick contact card when lacking info
adbb5e91a12aff2ef64945424e3cecdc1cdc724d 06-Nov-2013 Jay Shrauner <shrauner@google.com> Don't display quick contact card when lacking info

Don't try to display a quick contact card for directory contacts
when we don't have a lookup key (this happens for Exchange contacts).

Don't allow users to dial empty string phone numbers.

Bug:11539561
Change-Id: I1da554f1ad60a5c2b6b82175074c218dffb5bcca
ontactEntryListAdapter.java
honeNumberPickerFragment.java
a8ee5ec28c654866d49c7ea874cdd90b073a42cc 05-Nov-2013 Yorke Lee <yorkelee@google.com> Merge "Remove use of isLayoutRtl and move to utility method"
864c67691b5a0169b5cbb91469d67d93e24ad9eb 04-Nov-2013 Yorke Lee <yorkelee@google.com> Remove use of isLayoutRtl and move to utility method

isLayoutRtl is a hidden API and this CL moves the code into
an internal utility method.

Bug: 6948882

Change-Id: I20604b4233e0ce659e033133539662d9e3b558b3
ontactListItemView.java
ontactListPinnedHeaderView.java
innedHeaderListView.java
04d13ead6584fa73223c900dedad2279b193313f 01-Nov-2013 Yorke Lee <yorkelee@google.com> Cherrypick search highlighting fix

Manual cherry-pick of https://googleplex-android-review.git.corp.google.com/#/c/383300/
to master

Change-Id: Ib49499c520fb3aecf92d8fd2e8a3ba7b1a56489a
ontactListItemView.java
2ae78772bd8d55a2b90882b532a90a6fe1c23228 31-Oct-2013 Yorke Lee <yorkelee@google.com> Fix searchsnippet highlighting in People

Bug: 11451572
Change-Id: Id1490940488726f8e7573068dc8440acb7370170
ontactListItemView.java
6e4933a223de29b715e76c5d9da02381fba38e84 30-Oct-2013 Yorke Lee <yorkelee@google.com> Use TruncateAt.END instead of private TruncateAt.END_SMALL

Change-Id: I76e5705dd5ce849324fdf9d88c08bedaba76b993
hortcutIntentBuilder.java
e9736747aa45ed6091a5479b38e3311823675853 22-Oct-2013 Yorke Lee <yorkelee@google.com> Remove private references from ContactsCommon

Cleanup mContext references
Substitute Guava methods for internal Android dependencies

Change-Id: Ibc36b25839d40fd36b32ded3c337ae32a7447f2b
ontactListItemView.java
d639bf051b5be165bd581f19ca46828aef94bf3f 24-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Remove use of applicationScale from ContactsCommon"
039b4d46787bd06f2faeaac8c332459c86f3cffe 24-Oct-2013 Yorke Lee <yorkelee@google.com> Remove use of applicationScale from ContactsCommon

ApplicationScale is always 1.0 by default if android:anyDensity
is not specified in AndroidManifest.xml

Change-Id: I22b50ed5d5db9cbdc63d3047232068bf64b8d70c
ontactTilePhoneFrequentView.java
ontactTileView.java
4315d80b53b324c7f74b994e8c579101ae3577c1 18-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Don't use private resources in ContactsCommon/Dialer" into klp-dev
1af4d919420fab10d77356118dd9f75588186a2a 16-Oct-2013 Yorke Lee <yorkelee@google.com> Don't use private resources in ContactsCommon/Dialer

This removes all references to private resources needed for
Dialer to run on GPE devices

Bug: 11244110
Change-Id: I29f690bafdc1bb11938db8cbee4986da73781e0f
innedHeaderListView.java
2be2e46d936b70e4e05e26e207a979d4b71c2b72 16-Oct-2013 Yorke Lee <yorkelee@google.com> Fix fast scroller regression in People

Bug: 10841097
Change-Id: I8abb74704dc106d82db3c7d1882e254b20e4df31
innedHeaderListView.java
0e199e0da07392d08f76274e131fab6af9dbad9e 14-Oct-2013 Yorke Lee <yorkelee@google.com> Section/directory font and size changes for ContactsCommon

Bug: 10861682
Change-Id: Ic34a46de80da691dfba1506b769df6b98a9fa9a3
ontactListItemView.java
ontactListPinnedHeaderView.java
a63fbce25ea8cdcd7f44a4d65e9bdf4aa81560db 08-Oct-2013 Yorke Lee <yorkelee@google.com> Hide PII in encoded json uri in logs

Bug: 11127944
Change-Id: I481be889dd82ce9664753be8bb9c749c8d76f08f
honeNumberListAdapter.java
ad0bfab6c149d9442bca5c25ec6f3f25846f4181 03-Oct-2013 Yorke Lee <yorkelee@google.com> Disable animation for pinned headers

Bug: 11048864
Change-Id: Ife1cd02baec9d3b0fc41f6fece8014066b7968e5
innedHeaderListAdapter.java
175b8f7cbe72abafe47b256e25d3062e751572ee 02-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Support tapping on directory headers in PinnedHeaderListView" into klp-dev
e93d60921db4a6909ebfaf7214986bc2f3634a23 01-Oct-2013 Yorke Lee <yorkelee@google.com> Support tapping on directory headers in PinnedHeaderListView

Restore broken functionality that allowed you to directly scroll
to a directory partition by clicking on a directory header.

Also reduced animation duration to 100ms, to reduce frequency of
framework bug b/11010610

Bug: 10991974
Change-Id: Ie6cc185335a2d5dedea05321cca0fb87084c3844
innedHeaderListView.java
44248ce0d1c4abe9f6b2c484464f131819c0ded5 01-Oct-2013 Yorke Lee <yorkelee@google.com> Move list adapter creation from onCreateView to onCreate

Create the fragment's list adapter in onCreate, instead of onCreateView, which
can be called multiple times in the fragment's lifecycle. This fixes a crash in
Dialer where ContactEntryListFragments can be swapped out repeatedly multiple
times, and creating a new adapter each time causes problems.

Bug: 11014225
Change-Id: I37b4adc9606f7b25c444b2230081540320b34c17
ontactEntryListFragment.java
dc234559370585e45afa79c0e989ac72b385d20c 25-Sep-2013 Yorke Lee <yorkelee@google.com> Changes in ContactsCommon to add number type support in Dialer

Bug: 10888792
Change-Id: I6e203d598edb753c19b33bf1d60fa7e39e5bb404
ontactEntry.java
ontactTileView.java
7971d44b516c6e8b548acab1c2b598d69bf613ea 23-Sep-2013 Christine Chen <christinech@google.com> Merge "Adds starred field to ContactEntry" into klp-dev
7c1a3efb470d5dcd978f5a1b494687bedc29fa10 21-Sep-2013 Christine Chen <christinech@google.com> Adds starred field to ContactEntry

Bug: 10862067
Change-Id: I4d7988e39e68370f0ce7222cd97c1cf8dedc68ef
ontactEntry.java
ontactTileAdapter.java
0b8fc4af478f997bfc8bcaa785c9529ad8b797c7 21-Sep-2013 Yorke Lee <yorkelee@google.com> Fix fast scroller in PinnedHeaderListView

Bug: 10841097
Change-Id: I93400b623024054a3370e3957c464b2ea3e3818a
innedHeaderListView.java
b02b63804b1f6ebe060ff25d9b0c5f62afd5e013 13-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "UI Polish for list section headers in ContactsCommon" into klp-dev
42210256d3d584783ac2fb2742088ce57d9da766 12-Sep-2013 Yorke Lee <yorkelee@google.com> Fix search highlighting

Bug: 10713067
Change-Id: I6fd3e6018619d61f7c69bbcaf2ad7475b20499a6
ontactListItemView.java
b23d36979bad7dbdb0b2f6318fce7573f01fa6b4 11-Sep-2013 Yorke Lee <yorkelee@google.com> UI Polish for list section headers in ContactsCommon

Bug: 10671447

Change-Id: I72927f64a0bbbef1252e6d065546d6186622c96d
ontactEntryListAdapter.java
ontactListItemView.java
ontactListPinnedHeaderView.java
675f39d654c1b905a26299baf8594d4c12177b88 11-Sep-2013 Paul Sliwowski <psliwowski@google.com> Merge "Update ContactCommon to handle new ui changes for People App." into klp-dev
88bc23f8e6a823415ef269fc523ce81e828468b6 11-Sep-2013 Yorke Lee <yorkelee@google.com> Fix missing search header in People

Bug: 10688908
Change-Id: Ibfdb0bdd1f706e115f56e56267e2c053308975d9
ontactEntryListAdapter.java
e1d3c390975751ec0eec838685de90b3938e7978 11-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update ContactCommon to handle new ui changes for People App.

Change-Id: Icfa18259718c98b51468f93f2031eb2e0ed3629b
ontactListAdapter.java
a6057cf46a154666c6f2888702d4109504b4da29 09-Sep-2013 Alon Albert <aalbert@google.com> Avoid NPE's in Extended Directories

Bug: 10676673
Change-Id: I52346b713fcab5176b6c73a158638708e623ed92
honeNumberListAdapter.java
45c6ba19db49f25dff41236ef05e5ed51fd85303 07-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Fix ContactListItemView selection bounds" into klp-dev
45597d9aeceb9f6835b22589435c24ecd79934f3 07-Sep-2013 Alon Albert <aalbert@google.com> Merge "Support QuickContacts For Extended Directories" into klp-dev
10349f190691f802b8935175dbf38bff74a8a703 06-Sep-2013 Yorke Lee <yorkelee@google.com> Fix ContactListItemView selection bounds

Don't select the first item in a bucket if the header of the bucket
is clicked.

Bug: 10513708
Change-Id: I9b7eaef92088f46680fa59976424e88b3c31a23e
ontactListItemView.java
27330d80bb6575df2964112d34143125c8af9b78 28-Aug-2013 Yorke Lee <yorkelee@google.com> Add shortcut support into contacts common

Add setDisplayName(CharSequence name) and setDrawableResources methods
to ContactListItemView so that we can add custom shortcuts into
PhoneNumberListAdapter

Bug: 10339630
Change-Id: I3e8a294dd9d47f034e6244929bdb61d834777974
ontactListItemView.java
honeNumberPickerFragment.java
bbdfd3bd233f0352899f63fa9b4841e88c00f204 05-Sep-2013 Paul Sliwowski <psliwowski@google.com> Merge "Update people app colors in ContactsCommon." into klp-dev
b5632a6ebe19ba1627f0e850b00e0e9de0fcd3ab 05-Sep-2013 Alon Albert <aalbert@google.com> Support QuickContacts For Extended Directories

Change-Id: I00128b882be3124e31cd2de6a974ec2d507344b1
honeNumberListAdapter.java
ad21d11eed06b39ede8f171da0faf119b7b6c4b2 05-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update people app colors in ContactsCommon.

Change-Id: I48916187b804f98c906a2cc7b0de0b321b8dc851
ontactListItemView.java
6af66a800ccf7599ea37374c8fc99a1489ef8fcb 03-Sep-2013 Alon Albert <aalbert@google.com> Show Address Instead of Number in Nearby Places

Change-Id: Ib1a96240e70628ff76e849ea4f6ca359791deebd
irectoryPartition.java
honeNumberListAdapter.java
1a2b2a318d9d0dacf183d49fd2363cb79a9f2335 29-Aug-2013 Jay Shrauner <shrauner@google.com> Add cache support

Add hooks for contact cache.

Bug: 10609551
Change-Id: I9a202772313eeab9b18031e20f78aba1e7d18a24
honeNumberListAdapter.java
honeNumberPickerFragment.java
7771c5f33492e6b9af55a49d921cbd909bbc2c90 30-Aug-2013 Yorke Lee <yorkelee@google.com> Allow subclasses of ContactTileView to customize name display

Bug: 10294357
Change-Id: I7706561b585d0e5eb8dd85b083534ae0724aab06
ontactTileView.java
768324c2d917f9ce79747007c57efcefbc06b472 28-Aug-2013 Alon Albert <aalbert@google.com> Make Nearby Places Display as "Nearby Places"

Rather than "Directory Nearby Place"

Change-Id: I91cbbed3c6005b91885a5bb2f3067c9c19b97e79
ontactEntryListAdapter.java
irectoryPartition.java
honeNumberListAdapter.java
f210d229b042bef22863712b97a6cb20eaa2eadf 28-Aug-2013 Jay Shrauner <shrauner@google.com> Fix result count reporting for phone queries

Result count ordering was reporting number of phones as number of
contacts. Fix so for phone list queries we tally number of actual
contacts displayed.

Bug:10457343
Change-Id: Iabd3bd600d47e013a69f6e6ed2bf378a9b344e9f
ontactEntryListAdapter.java
honeNumberListAdapter.java
ad582fa758c6a276c26c5cc52079613a653c81bf 21-Aug-2013 Ben Gilad <gilad@google.com> Add Support For Extended Directories

Change-Id: I5097f9d45ce39aad93ede3a01f43e1c58e36c9f1
ontactEntryListAdapter.java
efaultContactListAdapter.java
irectoryPartition.java
honeNumberListAdapter.java
e31b07390729cced594404410efb4448f94a95cb 15-Aug-2013 Jay Shrauner <shrauner@google.com> Fix createCursorLoader NPE

Pass through context saved from onAttach() to the Loader init rather
than calling getActivity()

Bug:10323136
Change-Id: Ie7a23600361dd8681ee1b020b175fb36836be71a
ontactEntryListFragment.java
3852e4f51fb6e28036f66f2b142af56ea71133c7 06-Aug-2013 Jay Shrauner <shrauner@google.com> Merge "Add GAL search support to Dialer"
7a160466a38bb631da02b7e93ab907eb2b3a2558 26-Jul-2013 Jay Shrauner <shrauner@google.com> Add GAL search support to Dialer

Enable GAL search in Dialer.

Bug:
Change-Id: If03dcbb570aebd5ba31c5d419e76b33b91be6eee
ontactListItemView.java
nPhoneNumberPickerActionListener.java
honeNumberListAdapter.java
honeNumberPickerFragment.java
ad39a175a3acb3109fe03a7028a18650842454ae 05-Aug-2013 Yorke Lee <yorkelee@google.com> Remove comparable from ContactEntry

Change-Id: Ie4c0b43170f2f39e908ae8cf952663403936f974
ontactEntry.java
f31b6a268bb0b1f68401954fa9e54b94fb0a7f8b 02-Aug-2013 Yorke Lee <yorkelee@google.com> Add a blank entry constant to ContactEntry

Change-Id: Ia524020caa019184b272320f3e6e946d3fa37e25
ontactEntry.java
61da48a221682e741aa947c778b02d0df428e59e 01-Aug-2013 Yorke Lee <yorkelee@google.com> Changes to ContactCommon to support drag and drop

Change-Id: I6bbed9527a3f3cf0583a3f9ddf2bb6438f5a5eb1
ontactEntry.java
0706c0d2e41e3c92cf9d04f0c4f0682a4bb0bf1f 17-Jul-2013 Christine Chen <christinech@google.com> Change ContactTileView listener behavior.

Change-Id: Ie2a3e22bd40c3dbe169dbd0e51faa234a704e6d8
ontactTileView.java
9078a0ae8404a1dd7dec44def5a037e4e50e9d77 13-Jul-2013 Yorke Lee <yorkelee@google.com> Moving of Dialer-specific classes to the dialer.

Moved some newly created classes in ContactsCommon to the Dialer
package since any further changes UI-wise will be dialer specific.

Extracted ContactEntry to its own class so that ContactTileView no
longer has a dependency on ContactTileAdapter.

Change-Id: I7d5b97e88073e7abf8f0c1223c992c5b3b5a8a07
ontactEntry.java
ontactTileAdapter.java
ontactTilePhoneFrequentView.java
ontactTileView.java
ewContactTileAdapter.java
ewContactTilePhoneFrequentView.java
ewContactTilePhoneStarredView.java
41eece0b05cdda7d7fdc19a263d9162f3139ae43 12-Jul-2013 Christine Chen <christinech@google.com> Merge "Changes ContactListItemView highlighting scheme."
f99a990be713ed35afe64ba8133c5428816390c6 12-Jul-2013 Christine Chen <christinech@google.com> Changes ContactListItemView highlighting scheme.

- Re-match smart dial query every time in BindView.

Change-Id: I42a54948481fead693db5a2db188bcc31202d6ee
ontactListItemView.java
39a11edba72ef54c4b72d3dbd7310b9a55755463 08-Jul-2013 Yorke Lee <yorkelee@google.com> Changes to contacts common for new dialer ui

Does not modify existing dialer behavior in any way, only
adds new classes required for new dialer UI.

New layouts/integers for new dialer lists.

Changes to support smart dial in search.
- Extends functionalities in text highligher.
- Changes pemissions in parent classes.

Change-Id: I5909b6948978a99c128d1bf955a35ecd241f1f72
ontactTileView.java
ewContactTileAdapter.java
ewContactTilePhoneFrequentView.java
ewContactTilePhoneStarredView.java
innedHeaderListAdapter.java
a81953a2b1818066ef5e44817f374ac288bab343 09-Jul-2013 Christine Chen <christinech@google.com> Changes to support smart dial in search.

- Extends functionalities in text highligher.
- Changes pemissions in parent classes.

Change-Id: Ib5717fe00760b5a88c747e1ff8fda598d987fa98
ontactEntryListFragment.java
ontactListItemView.java
honeNumberListAdapter.java
bc8a5b4d1ca27c5b277e232e057a019003333f38 09-Apr-2013 Yorke Lee <yorkelee@google.com> Set layoutDirection for PinnedHeaderView on creation

Fixes crash when typing a character into the contact picker
caused by trying to access a null view.

Bug 8575063

Change-Id: Ie379b81cc1662143e395d89cad031a9c0749ebbb
ndexerListAdapter.java
innedHeaderListAdapter.java
innedHeaderListView.java
9f0c1621718b382531cbebfe38907e6d3db6ceae 04-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix for bug #8146846 Phone App should be mirrored for RTL languages

- add start/end aside left/right properties
- make default PhotoPosition depends on Locale layout direction
- add mirrored version of Drawables
- use android:textAlignment="viewStart" when needed on TextView

Change-Id: I0bf2fb83d94a3748d26d1825387b9b16830830a5
ontactEntryListFragment.java
ontactListItemView.java
ontactListPinnedHeaderView.java
ontactTileAdapter.java
honeNumberPickerFragment.java
innedHeaderListView.java
09f15e70e86d92ae0f4c15a726b777f170845a3c 06-Feb-2013 Yorke Lee <yorkelee@google.com> Fix photo alignment in RTL locales in ContactEntryListAdapter

Bug: 5590280
Change-Id: I17caf1d17b9b5ccac177e66d8b4e5605e0ac6be1
ontactListItemView.java
cae605bed4d43e1925fc8c1803def0ef1d0924a5 28-Dec-2012 Chiao Cheng <chiaocheng@google.com> Find proper snippet in multi-line and large result.

Previous CL removed the use ContactsContract.snippetize(). This method
found the proper line in a multi-line results and then snippetized the
line if it was too long.

This CL adds that functionality back without using snippetize(). This
new code is faster because it only does text intensive processing when
the text is long. The previous snippetize method did processing for all
strings. In addition, the old method iterated over the snippet multiple
times (i.e. first with contains, then subsequently tokenizes, etc). This
change re-uses the initial search results and remembers the search
information so multiple iterations are not necessary. In addition,
tokenizing has been optimized based on the match. We only need to
chop off excess content rather than tokenizing the whole string.

This CL also makes snippet more friend to landscape mode. Previously,
the number of snippet tokens shown was hard-coded to 2 on each side.
Furthermore, this caused longer tokens to exceed screen real estate. Now
the number of tokens shown are determined more accurately by character
count versus real estate. In landscape mode, this allows us to show
much more of the search result.

Finally, fixed a highlight problem when the search query contained
punctuation. For example, a search for {.ben.} would not match {ben}.
This Cl resolves that issue by cleaning the search query.

Bug: 5929143
Change-Id: I5c368e6de8b34ca912f86926f862a02f95199fa7
ontactEntryListAdapter.java
ontactListItemView.java
bd80fd64b9ff94c9ffbdb843beb4b363bb209463 22-Dec-2012 Chiao Cheng <chiaocheng@google.com> Fixing missing punctuation for punctuation search case.

Previous CL I9cbdf10d21c79f53bc621bacb7eeeb95a6a2435f fixed missing
punctuation at the start when searching without punctuation. (e.g.
{hello})

This CL fixes the case where leading punctuation is missing if you searched
with a leading punctuation. (e.g. {'hello}). The content provider
uses a different code path when it detects multi-words and snippeting
is actually done in sqlite using the FTS snippet method. The check for
multi-word was treating {'hello} as two words.

This means that multi-word searches will still have this issue as it still
uses the sqlite snippet method. Leaving this to a separate CL since it's
a riskier change.

Bug: 5929143
Change-Id: I1883621bb64452726cd92035d30001c29b478574
ontactEntryListAdapter.java
ontactListItemView.java
05897c8e016942e10f0ef6f0da02d339480d4748 20-Dec-2012 Chiao Cheng <chiaocheng@google.com> Include starting and ending punctuation.

The snippetize method was leaving out the delimiters at the start and end of
the snippetized string. Upon further investigation, the snippetize method is
not needed because showSnippet() always puts the string back into it's original
form (i.e. it was undoing the work of snippetize) at the end of the method.

The solution is to pass the original form into setSnippet() when
deferred snippeting is requested. This eliminates a lot of unnecessary
processing.

Bug: 5929143
Change-Id: I9cbdf10d21c79f53bc621bacb7eeeb95a6a2435f
ontactListItemView.java
b6013cb63fb66c6b60c02d5c0447e2d29bb23d7c 11-Dec-2012 Chiao Cheng <chiaocheng@google.com> Add empty list message.

Bug: 7403225
Change-Id: Ib57e5bbb17ac7f3a7a08c2c0b015d2bd7a61a459
ontactEntryListAdapter.java
d0c8da65af3b67ba551a220ca40be31f644dfed6 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Major resource move and clean-up.

Moving resources from Contacts to ContactsCommon and Dialer as necessary to
remove dialer dependencies on contacts app.

Bug: 6993891
Change-Id: I5ff17028cb675694809cdc08e5ee80c444ee8666
ontactTileFrequentView.java
ontactTilePhoneFrequentView.java
ontactTilePhoneStarredView.java
ontactTileStarredView.java
edc1cd98e3c3e991dcfb5281a008f7d2cfea1495 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving depedencies of DialtactsActivity into ContactsCommon.

This completes the clean-up of class depedencies for DialtactsActivity in
the Dialer.

Bug: 6993891
Change-Id: Ic22e5d6a643a569bfd76e5b913e6c45795ae80f2
ontactEntryListFragment.java
nPhoneNumberPickerActionListener.java
honeNumberPickerFragment.java
ba2c125b07086a88a3517fcf381a3a400c42afd3 29-Nov-2012 Chiao Cheng <chiaocheng@google.com> Further clean-up of PhoneFavoriteFragment in Dialer app.

Moving dependencies of Dialer PhoneFavoriteFragment. Mostly filtering
dependencies.

Bug: 6993891
Change-Id: Ic2b29b80ae2367f54e619b30bdb71b098c8a0deb
ccountFilterActivity.java
ontactListFilterView.java
ustomContactListFilterActivity.java
hortcutIntentBuilder.java
2b729670f9b5b392929102e109dcd7a2ae732508 27-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move AccountTypeManager to ContactsCommon.

Moving AccountTypeManager to ContactsCommon so it can be shared by Contacts
and Dialer.

Bug: 6993891
Change-Id: If8bc8137b0b5800f21ee46aa4027b79e0048d32e
ontactListFilterController.java
74caac49e59c78f28639b83b9cce71e802a78406 13-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge changes from conflicting accessibility change.

Resolved conflict from 3c0e293e8fbcf2636f45e729f6102cc752c59119. File was
deleted from Contacts and moved into ContactsCommon.

Bug: 7486402
Change-Id: I685af18c3d85b25ae81a34daac0f42a93e00793b
ontactTileAdapter.java
63ac534dcf60e9a6c651ef2434557bec922b9a7d 08-Nov-2012 Chiao Cheng <chiaocheng@google.com> Further clean-up of PhoneFavoriteFragment.

Moving common dependencies from Contacts to ContactsCommon.

Bug: 6993891
Change-Id: I7530d13771b65f17dafa3f4f8283965622b1c71e
ontactTileAdapter.java
ontactTileView.java
honeNumberListAdapter.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
utoScrollListView.java
ontactEntryListAdapter.java
ontactListAdapter.java
ontactListFilter.java
ontactListItemView.java
ontactListPinnedHeaderView.java
ontactsSectionIndexer.java
efaultContactListAdapter.java
irectoryListLoader.java
irectoryPartition.java
ndexerListAdapter.java
innedHeaderListAdapter.java
innedHeaderListView.java
rofileAndContactsLoader.java