• Home
  • History
  • Annotate
  • only in /packages/apps/Contacts/src/com/
History log of /packages/apps/Contacts/src/com/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
aee02cd7988ee0f1087c06ce04e41ad521c5ecda 04-Apr-2018 Jeff Gaston <jeffrygaston@google.com> Update calls to addToShortcutIntent

Bug: 77554455
Test: m -j checkbuild
Change-Id: Id50ff937c88f1883cbdc10d3a77cb8967fb4a11d
ndroid/contacts/ShortcutIntentBuilder.java
bf7ea6c9fc415aa5b8b3296c7b880e793faf12fc 19-Mar-2018 Marcus Hagerott <mhagerott@google.com> Inset nav drawer correctly for cutout

Test: launched the app and verified that the drawer is offset correctly
on device with cutout.

BUG: 74423733

Change-Id: I49ac886937453bc4f0160743c3f50ee246a0bd38
ndroid/contacts/drawer/DrawerAdapter.java
ndroid/contacts/drawer/DrawerFragment.java
e21ea67819ac14ab8cc92df5d06fbd8a91984e9e 02-Mar-2018 Marcus Hagerott <mhagerott@google.com> Hide null account in customize screen

Test: manually verified that there was no device account shown
on the customize screen.

BUG=62689233

Change-Id: I1786f6505d29878b80930581ca0883121900da74
ndroid/contacts/list/CustomContactListFilterActivity.java
6497abccf311306de9e03d6578a424dfa21171c5 23-Feb-2018 Derek Sollenberger <djsollen@google.com> Stop using deprecated Canvas APIs.

Bug: 73777445
Test: compile
Change-Id: I29b987e3d66a133aef2ef25eeda3b0471e6bd538
ndroid/contacts/list/PinnedHeaderListView.java
56386270013ab1d2e6f3a9233a8d61ea2f180ec8 01-Mar-2018 blong <blong@codeaurora.org> Merge "Fix NullPointerException when set profile photo" am: a1287f7872 am: 06a2bacf93
am: 3b453896be

Change-Id: Icb0a0a7dad359e8fb3921adc9cf76eb92af2ac45
a1287f7872644b161311222ab03a0c26562db2ea 01-Mar-2018 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fix NullPointerException when set profile photo"
55d500f3dba220be9b637fd19cb0e6c7536d057e 26-Feb-2018 Jia Jia <jia.jia@zte.com.cn> Merge "Fixed incorrect display on group members" am: 31831e4249 am: b028e23ef9
am: c3f74b3a3c

Change-Id: I861f82e3b392dcb7655d7d4412e7ce6ad48cc6c4
1fc468972031d47b43e30e4ef577ec055a36b18a 23-Feb-2018 Jia Jia <jia.jia@zte.com.cn> Fixed incorrect display on group members

Group account name is displayed, instead of
members list, caused by loader ids of group
metadata and group members set to zero.

Fixed to set loader id of group metadata to
none zero.

Test: Click the emergency call button in lock
screen after device booted, then enter ICE group
or any group/label. The group ui will display
group account name.

Change-Id: I13168f9d3bfbc5070ec5f48a76b2a552bd53a794
Signed-off-by: Jia Jia <jia.jia@zte.com.cn>
ndroid/contacts/group/GroupMembersFragment.java
61ab8cfb1537d5346516d1877e300a3be34fc1e2 12-Dec-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update to support long version codes."
12502f33a730397c58e1be652ab34536abda5d68 08-Dec-2017 Tor Norbye <tnorbye@google.com> Merge "@IntDef is switching from long to int values"
a3969b1aab515252f28a471a5d48600a4522078c 29-Nov-2017 Dianne Hackborn <hackbod@google.com> Update to support long version codes.

Bug: 64459786
Test: manual
Change-Id: Iac4039fb73868b608f7c7530dc84b4bd8ccb924e
ndroid/contacts/util/HelpUtils.java
ecc0897c0035a9ada72e94c4b031c7784dc18c76 29-Nov-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed the deleted label exists on phone contact view list" am: d385e5b78e am: f38bd91216
am: b97d97e851

Change-Id: I1d58bd4ba351e59a3ba5a39593e9265fd1cf612f
f38bd912163bf2daa73285bb40754c6ea5b86a5e 29-Nov-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed the deleted label exists on phone contact view list"
am: d385e5b78e

Change-Id: I8e4a2907b4dc2e3c651a56ede565f8c58882ab80
f76dca75bb685051df997fa03c1213abda7060d7 12-May-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Fixed the deleted label exists on phone contact view list

Change the labels display condition of Customize view.
Display only labels that are groups.deleted=0.

Affected area:
Customize view in Contacts to display.

Bug: 68031832
Change-Id: Ic1a3427c46962c0947a33847e00ecb125e14fa89
ndroid/contacts/list/CustomContactListFilterActivity.java
1e365717e2d9deffd708df6d1d20fad789e45bc8 21-Nov-2017 Takahiro Manabe <takahiro.manabe@sony.com> Merge "Change confirm Import/export cancel dialog string" am: 344beb3020 am: beba5ed599
am: 0a6398efb5

Change-Id: Iecb9d8b285edf9bab2b048384fbef620b0f7640f
beba5ed599dd33aea6f28afec4e196a77ec7eeb5 21-Nov-2017 Takahiro Manabe <takahiro.manabe@sony.com> Merge "Change confirm Import/export cancel dialog string"
am: 344beb3020

Change-Id: Ib6d8fd8a3e1645d765837c40f900b5211265f63d
5ae068b0b2b36573ef7970dcc20ee21c9a3bb93a 17-Nov-2017 Takahiro Manabe <takahiro.manabe@sony.com> Change confirm Import/export cancel dialog string

Replace message string from Cancel to No.
Replace button string from OK to Yes.

Bug: 38189198
Change-Id: I7980d1443aca5690967ac3ad464d753306bbb5c0
ndroid/contacts/vcard/CancelActivity.java
fa04f7033aa3890e8e8752ca29870ea1a0e58209 17-Nov-2017 Tor Norbye <tnorbye@google.com> @IntDef is switching from long to int values

This cast will be necessary when the @IntDef annotation
values changes type from long to int, and the cast is
safe because the value is itself not used at all (this
is a source retention annotation, and the static analyzer
is using the field reference itself, not the value --
that's the whole point of this annotation.)

Test: The compiler
Change-Id: I88d2fd238c9b405a8140e06d5d8185596236ae38
ndroid/contacts/ContactsUtils.java
401377541a60fcc77f1fbdd25b375a8d85bbf4bd 13-Nov-2017 Xin Li <delphij@google.com> Merge commit 'a7e92c297e6380917411f7271b036d724fd00b14' into HEAD

Change-Id: I6a87aa70ccb73422ca581fe6b0a0968ff7e34989
20af45e5daa7b097113d57ffa2c3584407a6a351 10-Nov-2017 yoichi kakimoto <youichi.kakimoto.gt@kyocera.jp> Merge "Fixed to Added the function to add the Phonetic name into Phonetic field automaticaly." am: 420c364900 am: ec84224dd6
am: 342a1e77e3

Change-Id: I974ff784ecfa7a8914ec24a166ccad092aa59e3b
342a1e77e31abcbf0b6bccd8a08c02820330ae49 10-Nov-2017 yoichi kakimoto <youichi.kakimoto.gt@kyocera.jp> Merge "Fixed to Added the function to add the Phonetic name into Phonetic field automaticaly." am: 420c364900
am: ec84224dd6

Change-Id: Ib80f014d5f54b7e9face9fef8bfb4c466d4f008f
420c3649000beb9901cd96938c0b0921db4deb33 10-Nov-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fixed to Added the function to add the Phonetic name into Phonetic field automaticaly."
7375d813b23f0ac20cb374e1467356391b2dda72 08-Nov-2017 taiki tsutsumi <taiki.tsutsumi@sony.com> Merge "Fixed issue that cannot bring My info via Android Beam" am: 775103a3fd am: 3cf86f22e2
am: e18600ad6c

Change-Id: I8bc83a97a9d6940bbfbf462b8b6a5a32901bfc26
e18600ad6c8bf37e6ff37d6391c560bcd9c5d77e 08-Nov-2017 taiki tsutsumi <taiki.tsutsumi@sony.com> Merge "Fixed issue that cannot bring My info via Android Beam" am: 775103a3fd
am: 3cf86f22e2

Change-Id: I2bb0b66360f2aa572be288a65b98fd0b76da85af
775103a3fd787a434f57d05f0118eac861658017 08-Nov-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fixed issue that cannot bring My info via Android Beam"
1dccc182142ee6d3fc7c141804da7fdedb8cc9e6 08-Nov-2017 John Shao <johnshao@google.com> Merge "Hide help and feedback in AOSP contacts" am: f28cb05f43 am: d993de4069
am: 6cacfcfa0d

Change-Id: I478cddac7170f62a3dfaca0fedfdcd583eeaf18e
6cacfcfa0dbf8a057526894faf30bb7e1fcf89a1 08-Nov-2017 John Shao <johnshao@google.com> Merge "Hide help and feedback in AOSP contacts" am: f28cb05f43
am: d993de4069

Change-Id: I7ab7bff54d954dcce849a007289d5289363251ab
476df40aea9a0e4a7e2946f05c84a52143afbd51 08-Nov-2017 John Shao <johnshao@google.com> Hide help and feedback in AOSP contacts

Change-Id: I8daf9ef8ebc99254cadab5f914db2f268f2422e3
ndroid/contacts/drawer/DrawerAdapter.java
ndroid/contacts/editor/ContactEditorFragment.java
ff234e2cbdba0249763c2c342c57dcd6e7ba4319 13-Jul-2017 taiki tsutsumi <taiki.tsutsumi@sony.com> Fixed issue that cannot bring My info via Android Beam

Cannot bring My Info with my address via Android Beam.
Changed to get LookupUri from ContactData.

Affected Area:
Nfc

Bug: 68181055
Change-Id: I6b5fec5012b64d6df98da63421112452e2b2e440
ndroid/contacts/quickcontact/QuickContactActivity.java
07001c0e461990aa19acd88a0916926bc41104a2 19-Oct-2017 masafumi miya <masafumi.x.miya@sonymobile.com> Merge "Adjust the padding of list item in the contact list" am: f4a0a40bb5 am: 0cf443bbdb am: be6183bc34
am: a7e92c297e

Change-Id: I3a44f579efd48c9756ae0a47bf4231c325b53d1e
1b05e061ee591455bd952393553d59209477cd36 19-Oct-2017 Takahiro Manabe <takahiro.manabe@sonymobile.com> Merge "Fixed the issue "set default" is not shown" am: 41cecada26 am: 04e39ef2a6 am: e24eb721d6
am: 43a7c51970

Change-Id: I7483701c7f51a9f8a89d2339ca0d05425139bf8b
a7e92c297e6380917411f7271b036d724fd00b14 19-Oct-2017 masafumi miya <masafumi.x.miya@sonymobile.com> Merge "Adjust the padding of list item in the contact list" am: f4a0a40bb5 am: 0cf443bbdb
am: be6183bc34

Change-Id: I026b2585d746eb73a30df133498d4e1d4062c2d9
43a7c519700aa4fbe5f694235c7d61a32cce3cce 19-Oct-2017 Takahiro Manabe <takahiro.manabe@sonymobile.com> Merge "Fixed the issue "set default" is not shown" am: 41cecada26 am: 04e39ef2a6
am: e24eb721d6

Change-Id: Ia7a6d74f3dc18e2fbbf7d3eb249afea9bd576957
0cf443bbdb236e99b2fc4df7b3b8904a134e35fd 19-Oct-2017 masafumi miya <masafumi.x.miya@sonymobile.com> Merge "Adjust the padding of list item in the contact list"
am: f4a0a40bb5

Change-Id: Ie03dd044bb67cbd31b92deec367c796bc7515c85
04e39ef2a65586a25228509aeeac829c9ff7a1b2 19-Oct-2017 Takahiro Manabe <takahiro.manabe@sonymobile.com> Merge "Fixed the issue "set default" is not shown"
am: 41cecada26

Change-Id: I1b7ed8b3b1ea0d5bfbbfeba516bd32811c2f655c
f4a0a40bb5d9a786d2db1395346996d87ab09540 19-Oct-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Adjust the padding of list item in the contact list"
41cecada26ff3e76fc8b240bcc909f9c421438ab 19-Oct-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fixed the issue "set default" is not shown"
46e7c5beb507f3f6d344ae23fe72ef1b2188e0af 22-Nov-2016 masafumi miya <masafumi.x.miya@sonymobile.com> Adjust the padding of list item in the contact list

The tops of letters of contacts name gets cut off
when font size is set to "Largest".
To fix this, added some padding to height of list item.

Bug: 38398812
Change-Id: I2349294f02cc796800907554369be9e20df202b5
ndroid/contacts/list/ContactListItemView.java
31d63b08bea1e000f52db6922c5fe46596ee710f 18-Oct-2017 taiki tsutsumi <taiki.tsutsumi@sony.com> Merge "Fixed Bidi layout issue of MyInfo in Settings" am: cddb4a2965 am: 49ecfa1508 am: 2219783c1c
am: 707578b48a

Change-Id: I83169fab367c4d7d1488216c4237ec4345ede903
707578b48a2022411f864818e79dc3d49e8305db 18-Oct-2017 taiki tsutsumi <taiki.tsutsumi@sony.com> Merge "Fixed Bidi layout issue of MyInfo in Settings" am: cddb4a2965 am: 49ecfa1508
am: 2219783c1c

Change-Id: I6cc4e204fdfa70995bfc933edd06b7197976b3e5
49ecfa15088f3c2fea46bffa1f9978fded1cf59f 18-Oct-2017 taiki tsutsumi <taiki.tsutsumi@sony.com> Merge "Fixed Bidi layout issue of MyInfo in Settings"
am: cddb4a2965

Change-Id: If5ecf7f9da0a4560fbec7cc51bc717617d9d74bd
c3b99589d52b5f884f15fac90181abc297382417 18-Apr-2017 Takahiro Manabe <takahiro.manabe@sonymobile.com> Fixed the issue "set default" is not shown

"set default" is not shown even if the contact has 2 phone numbers
after contacts edit.

Affected area:
- Contacts Details

Bug: 67916400
Change-Id: Ieb03e85f477329d80fe40ae78aefeb6797dbd269
ndroid/contacts/quickcontact/QuickContactActivity.java
ae4208eee4dbafc5808f4e295a42ea23cede42a1 21-Jul-2017 taiki tsutsumi <taiki.tsutsumi@sony.com> Fixed Bidi layout issue of MyInfo in Settings

In any case, phone number is displayed by LTR.

Affected area:
Display processing of MyInfo summary in Settings

Bug: 67872517
Change-Id: Iadc10228d111f180a9e4c6016685c6a11c6ae14a
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
4db5e68a20aeec4118fc944437924ad5085c30b1 17-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed that wrong SIM phone number is displayed when setting RTL language" am: 2321967884 am: a0573b14e5 am: 84caf42b3e
am: 4f4ef68862

Change-Id: I07123a60795494168ccf7c2d7a0ae29ad352d30c
4f4ef68862c5dceabc2f05c0d6beb2b29e15712f 17-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed that wrong SIM phone number is displayed when setting RTL language" am: 2321967884 am: a0573b14e5
am: 84caf42b3e

Change-Id: I1fb37cb4e17c110b76ee2c226992b2f96f14fba0
a0573b14e5dceee0303697c84dad0ab9e7834b37 17-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed that wrong SIM phone number is displayed when setting RTL language"
am: 2321967884

Change-Id: Ib5faafe9d6acc8cbf65bac7fee2071ee5e1fc11b
2321967884d9bb21b17dc6ea7fb3f368de0a40ce 17-Oct-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fixed that wrong SIM phone number is displayed when setting RTL language"
ad2580822dca3197c686d4773d1539e8f7625bb0 17-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixes that Contacts crashes when invoke Action.EDIT with profile uri" am: a0788b8109 am: 1cd5d11852 am: b674ea3f8a
am: 3bff3de6f2

Change-Id: Ice319da3cbddfd9cdbcae8d7171fe328590384ad
3bff3de6f22da11794f3d014c21b49be9bc9fd88 17-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixes that Contacts crashes when invoke Action.EDIT with profile uri" am: a0788b8109 am: 1cd5d11852
am: b674ea3f8a

Change-Id: If508fd0b2990ad7b947ee4cc376b200febbb1e2a
1cd5d11852653f716792a7d3fe8133971d92f512 17-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixes that Contacts crashes when invoke Action.EDIT with profile uri"
am: a0788b8109

Change-Id: I6dbda7a194dd705f2531610dbce5d545bed0623e
7485a6bb995625e377ccb38c5d242b135b4803db 25-May-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Fixed that wrong SIM phone number is displayed when setting RTL language

Fixed the following area.
SIM phone number display area of "Import contacts from" dialog

Affected area:
Display processing of Import contacts dialogs.

Bug: 67438260
Change-Id: I9c0ef5e3470fde4477ab470e72483e04ac15928f
ndroid/contacts/interactions/ImportDialogFragment.java
42668561e5328ed4905c034a60adf4c27d3f52e2 03-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Fixes that Contacts crashes when invoke Action.EDIT with profile uri

Modify checking method the URI parameter of Intent.ACTION_EDIT.
Support to "content://com.android.contacts/profile".

Affected Area:
Launch Contact edit screen.

Bug: 67727198
Change-Id: I53bab4c9a5e11f420e2075a6af4b48858b3bd4c0
ndroid/contacts/editor/PickRawContactLoader.java
ef7de1fed9e3a065492cf819486f25ce871c092a 03-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed the issue Possible to crate duplicate label/group." am: 3ba72351ae am: e88a20f4cf am: 07ac6cb9a1
am: 608c486e38

Change-Id: I3f85b106b6ac1e342db17fd9003422464aeb499f
608c486e3868685af100e28e2db023648c655e80 03-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed the issue Possible to crate duplicate label/group." am: 3ba72351ae am: e88a20f4cf
am: 07ac6cb9a1

Change-Id: I8522e5d79fa37f717909a9b739d086ae28127218
e88a20f4cfdad8422c556363fcc7e8ef5a23acf5 03-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed the issue Possible to crate duplicate label/group."
am: 3ba72351ae

Change-Id: I7f067b007a32506f5a582c7fa4799e23e3e2a598
3ba72351ae5bc808f86826e6d35bc6baee712d91 03-Oct-2017 Treehugger Robot <treehugger-gerrit@google.com> Merge "Fixed the issue Possible to crate duplicate label/group."
e926b11d796accd5745da85aa3a79c605af0420a 03-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed the issue Label name disappear when user change orientation" am: 5174049e63 am: f75e6dcc55 am: c7f7bc131b
am: 834a9d87a1

Change-Id: Iaf188e009b1b67f7d42c287b408a9c54290bab08
834a9d87a1e79db8c229e2d8ea7e7a27a483dd03 03-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed the issue Label name disappear when user change orientation" am: 5174049e63 am: f75e6dcc55
am: c7f7bc131b

Change-Id: I2a0e90dea5926a47338bfc17d2c44ca14fee2938
f75e6dcc55cf0b681b1a70cbda135a7039218469 03-Oct-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Merge "Fixed the issue Label name disappear when user change orientation"
am: 5174049e63

Change-Id: Ie3d85f8328c0a1167c9a7314423891b37c574df9
f8ac926f7360e86f936938a22c852f2ad5c2b69c 24-Apr-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Fixed the issue Label name disappear when user change orientation

The cause is that the label list is empty after orientation change.
Initialize the cursor position for acquiring label data,
Fix to be able to get label data even after orientation change.

Affected area:
Label data acquisition processing.

Bug: 672276622
Change-Id: I0b633797a910de6878c220e8ab85dbba2d8ff126
ndroid/contacts/drawer/DrawerFragment.java
f9c5a048b7e5be78869a4a6b1a2fe76cf01358b2 20-Apr-2017 yuichiro fujiwara <yuichiro.fujiwara@sony.com> Fixed the issue Possible to crate duplicate label/group.

When regist or change the group name, trim the group name.
When checking the group name duplicate, trim group name.
->These behavior is the same as Google Contacts.
Fixed the group name duplication check at orientation change.

Affected area:
Group registration processing

Bug: 66981572
Change-Id: Iae7079964197f7e8d27f51f6d80bc3b262576305
ndroid/contacts/group/GroupNameEditDialogFragment.java
8407c932fa9767a6657bea7d2ee9a7fd2906b412 18-May-2017 blong <blong@codeaurora.org> Fix NullPointerException when set profile photo

- Add null judge when get rawcontactdelta.

Bug : 62688231

Change-Id: I31e5716fd48e7e559adb74b961f147804af6f7e0
ndroid/contacts/editor/ContactEditorFragment.java
5ed462afae8eb162473fe2fbd02ae60e7c73c676 04-Sep-2017 yoichi kakimoto <youichi.kakimoto.gt@kyocera.jp> Fixed to Added the function to add the Phonetic name into Phonetic field automaticaly.

This fix is to add the Phonetic name automatically to Phonetic name field when user inputs a Name in Japanese language mode.

Enter in the name field and automatically enter to Phonetic field when the input charactor is confirmed.
The cases that will be entered to the Phonetic field are as follows.
1. Select enter on the keyboard
2. Select for prediction conversion candidate
3. Tap outside the input field.

Change-Id: I6a04a971814a1e84cd2db7acc5d7c80c1ca79074
Signed-off-by: yoichi kakimoto <youichi.kakimoto.gt@kyocera.jp>
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/account/AccountType.java
ndroid/contacts/model/account/BaseAccountType.java
37a4bb5f9dbfb06c4f7da1694578193797d89015 17-Aug-2017 qqzhou <qqzhou@codeaurora.org> Merge "Contacts: Fix NPE in QuickContactActivity in monkey test" am: 6529af3c9c am: a33aca875a am: a90442f350 am: d59df30b8b
am: 53985a4e2c

Change-Id: I88d38e833f401138a2fec2e4bcbb4fece65b6bf2
53985a4e2cbeb0e5b17a54adb9eafef1dfe601d1 17-Aug-2017 qqzhou <qqzhou@codeaurora.org> Merge "Contacts: Fix NPE in QuickContactActivity in monkey test" am: 6529af3c9c am: a33aca875a am: a90442f350
am: d59df30b8b

Change-Id: Iaf28d13be1e4f424f387fa0f563fc286c8323614
d59df30b8b9d21f3e3019dbaf863df53361bc825 17-Aug-2017 qqzhou <qqzhou@codeaurora.org> Merge "Contacts: Fix NPE in QuickContactActivity in monkey test" am: 6529af3c9c am: a33aca875a
am: a90442f350

Change-Id: Ie3b8420c3d8818cad927010eb0c5244b64631fb9
a33aca875ae2135e720385d07d637cf8819c7f8a 17-Aug-2017 qqzhou <qqzhou@codeaurora.org> Merge "Contacts: Fix NPE in QuickContactActivity in monkey test"
am: 6529af3c9c

Change-Id: Ie128ecba2395fb881b1fa437581dfe104311e0a8
fa777b684d6ac557c3a039fbc228af159ed659b2 12-Jul-2017 qqzhou <qqzhou@codeaurora.org> Contacts: Fix NPE in QuickContactActivity in monkey test

While AsyncTask is executing dataItemToEntry(), sometimes will use
member of mContactData, this is not in UI thread, UI thread may set
null to mContactData in onLoaderReset().

Bug: 64134875
Change-Id: Ic6cad1377986cf99039442499801fd02cb436cfc
ndroid/contacts/quickcontact/QuickContactActivity.java
94e40a9b6dc59d6d2b5af50f3d0e6704b569c2aa 05-Aug-2017 Yao Lu <yaolu@google.com> [automerger] Remove route to voicemail menu from QC am: c149215f1c

Change-Id: I6909c9f187960c8dbb7bd3a62f6e797a8e069573
c149215f1c5aa985d2e2e30a93170a28e3bd8d46 05-Aug-2017 yaolu <yaolu@google.com> Remove route to voicemail menu from QC

Bug: 38026316
Test: Manually tested on Pixel O
Change-Id: I118fbf5abd1a2678a46efa1f97289fd355891999
ndroid/contacts/quickcontact/QuickContactActivity.java
11d4cbdea8e09f021257a076b04f3a485ad6b6c8 01-Aug-2017 Gary Mai <garymai@google.com> Merge "Backport cl/159625495" into ub-contactsdialer-k-dev
am: 6a7775318d

Change-Id: I05ef784d85f64881ba721abb697679778d716460
6a7775318d7b2b9b1f88e634e4a21e59e3179124 01-Aug-2017 Gary Mai <garymai@google.com> Merge "Backport cl/159625495" into ub-contactsdialer-k-dev
1f7ba589be27b7fbbe5d4671fbc3f843695ef66a 28-Jul-2017 Wenyi Wang <wenyiw@google.com> Merge changes from topic 'am-88e315b4-83c2-4988-86ba-c88cca595c64' into ub-contactsdialer-j-dev

* changes:
[automerger] Stop using deprecated methods. am: 0e6c80e140
Stop using deprecated methods.
6c1a5ab64c788493d9b4eb6e9fb39a868b2ca9a5 27-Jul-2017 Wenyi Wang <wenyiw@google.com> [automerger] Stop using deprecated methods. am: 0e6c80e140

Change-Id: Id0863179b40d3672d75260dc8b66a1a72fb8eb1c
0e6c80e1400186f39b4e1c20cf036e4b096b9bb7 23-Jun-2017 Julia Reynolds <juliacr@google.com> Stop using deprecated methods.

Bug: 37863673
Test: make
Change-Id: I4f7ad4f38c21e06235ab8f290ee83a6eebde5b5e
(cherry picked from commit 4178c9ecbd0697540844e0d088e307408ec3cf10)
(cherry picked from commit 20ee0bad100bdc2c3c0f0a66c2431460e610eb2a)
ndroid/contacts/vcard/NotificationImportExportListener.java
2d53f1eef760129c175b543bab12feeb70e7a55b 27-Jul-2017 Wenyi Wang <wenyiw@google.com> [automerger] Update a few more uses of deprecated methods am: b2d11b9172

Change-Id: Iefd3cf58f24b439a6e06a3ab9646d88f8fb000ae
b2d11b917275b212b7ba5c999bd5e9bf8ee25f97 26-Jun-2017 Julia Reynolds <juliacr@google.com> Update a few more uses of deprecated methods

Test: make
Bug: 37863673
Change-Id: I24a38bfaa11c6a9d75d264ab9861dc2e5ee57b2e
(cherry picked from commit 580d1b50021e74f783adeaed660ad7b7d2e2a0ed)
(cherry picked from commit e21edc10413e5c16c1b21ad1a1f35807a7c2fb31)
ndroid/contacts/SimImportService.java
fe7bae5defd9ce6889ec413a4f3a56895cc5db09 26-Jul-2017 Gary Mai <garymai@google.com> Backport cl/159625495

*** Original change description ***

Include the phone number as part of the shortcut id when creating dial
or sms shortcuts

The id was previously just the type of shortcut it was (call or dial)
concatenated with the lookupKey for the contact. So when creating two
call or two sms shortcuts for the same contact with different numbers,
the number for the first one created will always be used since the
shortcut manager would see the same ID already existed and so an
identical shortcut would be placed.
This CL includes the hashCode for the phone URI in the shortcut ID.

Tested:
Manually verified creating dial and sms shortcuts for a contact with two
numbers actually creates two different shortcuts that will call/message
the different numbers.

***

Test: Same verification as the original change.
Bug: 62786173
Change-Id: I9b9ad71401f44dc8e84acde92263d25d0b3ef5c7
ndroid/contacts/ShortcutIntentBuilder.java
032560017404fd778dfb8a72674eb5e9fd35332f 24-Jul-2017 Nicholas Sauer <nicksauer@google.com> Check for null results from getTypeForAccount.

bug: 63816624
Test: make Contacts and install. No crash.

Change-Id: Ic4f00413d196ff783d033740e0efb1c82c10e361
(cherry picked from commit d9ecda94ff66021247bde802757353b20ee6b7c8)
ndroid/contacts/model/AccountTypeManager.java
d9ecda94ff66021247bde802757353b20ee6b7c8 24-Jul-2017 Nicholas Sauer <nicksauer@google.com> Check for null results from getTypeForAccount.

bug: 63816624
Test: make Contacts and install. No crash.

Change-Id: Ic4f00413d196ff783d033740e0efb1c82c10e361
ndroid/contacts/model/AccountTypeManager.java
dc73c1d4fb02ab774d152f00ffd66cc435f6fd83 26-Jun-2017 Julia Reynolds <juliacr@google.com> Update a few more uses of deprecated methods am: e21edc1041
am: 18819f5e11

Change-Id: Ie414dbb2eb31b8eb25b337ac941e749184084191
e21edc10413e5c16c1b21ad1a1f35807a7c2fb31 26-Jun-2017 Julia Reynolds <juliacr@google.com> Update a few more uses of deprecated methods

Test: make
Bug: 37863673
Change-Id: I24a38bfaa11c6a9d75d264ab9861dc2e5ee57b2e
(cherry picked from commit 580d1b50021e74f783adeaed660ad7b7d2e2a0ed)
ndroid/contacts/SimImportService.java
580d1b50021e74f783adeaed660ad7b7d2e2a0ed 26-Jun-2017 Julia Reynolds <juliacr@google.com> Update a few more uses of deprecated methods

Test: make
Bug: 37863673
Change-Id: I24a38bfaa11c6a9d75d264ab9861dc2e5ee57b2e
ndroid/contacts/SimImportService.java
460e0347bf5add297d8d9de8a520787e4b3fe2d2 23-Jun-2017 Julia Reynolds <juliacr@google.com> Stop using deprecated methods.
am: 20ee0bad10

Change-Id: Id472681f47e250008a678b198a3b4d0d82a9d9e6
20ee0bad100bdc2c3c0f0a66c2431460e610eb2a 23-Jun-2017 Julia Reynolds <juliacr@google.com> Stop using deprecated methods.

Bug: 37863673
Test: make
Change-Id: I4f7ad4f38c21e06235ab8f290ee83a6eebde5b5e
(cherry picked from commit 4178c9ecbd0697540844e0d088e307408ec3cf10)
ndroid/contacts/vcard/NotificationImportExportListener.java
4178c9ecbd0697540844e0d088e307408ec3cf10 23-Jun-2017 Julia Reynolds <juliacr@google.com> Stop using deprecated methods.

Bug: 37863673
Test: make
Change-Id: I4f7ad4f38c21e06235ab8f290ee83a6eebde5b5e
ndroid/contacts/vcard/NotificationImportExportListener.java
9b1b93772df8a52bcb22a1eccadfa9a31614fa3d 14-Jun-2017 Gary Mai <garymai@google.com> Fix NPEs in shortcuts

Contacts with no data will have null for their display name which in
this version isn't caught.
Add null checks and use R.string.missing_name when a contact has no
display name.

Test: Manually verified no crashes on a Pixel with O-DR when :
* adding shortcut from overflow menu in QuickContact for a contact
with no name
* selecting a contact with no name when creating a shortcut by
long pressing the home screen

Bug: 62590004
Change-Id: If0c5d93a472d1d47c6657f72ae9e202c335de75c
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/ShortcutIntentBuilder.java
ndroid/contacts/quickcontact/QuickContactActivity.java
8e6856b89d5708b3d20d4f9b12017c15303b5f82 13-Jun-2017 Gary Mai <garymai@google.com> Read carrier and device config for enabling Duo

Test: Manually verified:
* Duo fallback is enabled for Pixel running OPD1.170608.001
* Duo fallback is disabled for Nexus 5X running OPP3.170518.004

Bug: 37773868
Change-Id: I8b165566bf9cfe79ae8039cd8d2ec6eff9148376
ndroid/contacts/CallUtil.java
ndroid/contacts/quickcontact/QuickContactActivity.java
bdde638f2ac514a701847d2aea72cc29b478a3b5 01-Jun-2017 Gary Mai <garymai@google.com> Fix shortcut icons on O am: dbf3e83dff

Change-Id: If1916abecc35fb8ba27c2932bf3af573c0e0df50
dbf3e83dff7f60cf188c2ace57c691b30e163ce5 01-Jun-2017 Gary Mai <garymai@google.com> Fix shortcut icons on O

Use IconCompat to create the adaptive icons. When attaching the icon
to the result intent for ACTION_SHORTCUT on >= O use
IconCompat.addToShortcutResult(). Otherwise continue to manually add
it for pre-O.

Test: Manually verified creating shortcuts on N M and O still work as
expected.

Bug: 62112388
Change-Id: I07f5a8ffd1f49edb4c21aaa572b42f641111e798
ndroid/contacts/ShortcutIntentBuilder.java
068bb3272c89f06e13091f4d9d73cf3de68646ef 27-May-2017 Wenyi Wang <wenyiw@google.com> Pass null resource ID (0) to AlertDialog constructor

- Including some cleanup

Bug: 38393777

Test: manually verified date picker dialog style is correct

Change-Id: I1f843fbe4d9ea8e29a5ce72303720e2c50371ad6
ndroid/contacts/datepicker/DatePickerDialog.java
9649af1903aa7edbd0c84c19681899b0d3616c4f 16-May-2017 Gary Mai <garymai@google.com> Remove FLAG_ACTIVITY_NEW_TASK when starting tachyon

Having this flag conflicts with startActivityWithResult which
results in not passing the signature check on the other side.

Test: Manually verified the video calls are started without needing
to confirm.

Bug: 36874501
Change-Id: Icd45076ad03438e00a00403109503600f6e18b26
ndroid/contacts/quickcontact/QuickContactActivity.java
acda280ae885a1cf8df7a7d638025274f858436f 11-May-2017 Gary Mai <garymai@google.com> Special case Tachyon mimetype

With no contacts.xml, we need to skip the AccountType verification
for the mimetype. If we find a dataItem with the mimetype, we can
fill in the necessary items and avoid checking/adding the DataKind.

Test: Manually verified video icons were visible and were actionable

Bug: 36874501
Change-Id: I5de032a50925d73950c0e7e347d48202fe3f58ac
ndroid/contacts/quickcontact/QuickContactActivity.java
7accd8c55c0facd2b833119294837b8702b2367b 11-May-2017 Gary Mai <garymai@google.com> Use startActivityForResult when intenting Tachyon

Test: Manually verified video call can be started when pressing
the video icon

Bug: 36874501
Change-Id: I9d070b41b2eca05b5255b230dccde78be87d5ea0
ndroid/contacts/quickcontact/QuickContactActivity.java
edfce606171de60c3d1ccd3d990d09aa944b9ee7 08-May-2017 Gary Mai <garymai@google.com> Fix adaptive shortcut icons am: 02c3dee53a

Change-Id: I1d878c123665f0a560b2ece45098b4082df1896b
02c3dee53a1be051bc7369d401585cfe87e7c5d7 06-May-2017 Gary Mai <garymai@google.com> Fix adaptive shortcut icons

Use adaptive icon for the static add contact shortcut.
Add O specific shortcut icon size.
Instead of adding padding after already getting the drawable from
the letter avatars, scale the drawable down by the same percentage
to get the padding. This eliminates the extra transparent part around
the icons, which led to the launcher filling in with black.

Test: manually verified on Nexus 5X with O
(https://screenshot.googleplex.com/Pa1t37DqeNJ)
and Pixel with O
(https://screenshot.googleplex.com/qujpyze1Euz)
and Nexus 6P emulator running N
(https://screenshot.googleplex.com/1KWQPx8RZFC)
and Samsung Galaxy S7 running M
(https://screenshot.googleplex.com/J39VES1jT8o)

Bug: 37922561
Change-Id: I6573f91e5441333eda05ec2640dc5137890be317
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/ShortcutIntentBuilder.java
ndroid/contacts/lettertiles/LetterTileDrawable.java
18417a4f13cd231a5076043d10d1c89b8303ada6 04-May-2017 yaolu <yaolu@google.com> Start Dialer directly when calling an emergency number

Bug: 37495725
Test: Manually followed the repro steps on Pixel with O seeing Dial pad
show up after calling an emergency number in Contacts app without the
blank Incall UI, on nexus 5 with L see behavior is the same.

Change-Id: Ie6855b5a58105d551d71c351596fefe76570ae7b
ndroid/contacts/CallUtil.java
6161aee5abc4276b02c3dfce963f748f0a33ec69 20-Apr-2017 Gary Mai <garymai@google.com> DO NOT MERGE Revert video calling CLs

Reverting recent all changes relating to video calling in one CL.
This was done in i-release already, just making i-dev match the
prebuilt that was dropped in oc-dev.

*** Original CLs ***
"Use generic video icon for tachyon calls" ag/2124911
"Add alternative video call to QC action" ag/2108263
"Add experiments for video call in AOSP." ag/2065958

Test: Build app

Change-Id: I1f1eff7b1cd3a7051ae3304aef5eeab63e79e007
ndroid/contacts/Experiments.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ffb419e08d7bab32ee489ec1e8e4a341d01a968a 15-Apr-2017 Wenyi Wang <wenyiw@google.com> Fix long logging tags

- Delete unused tags, shorten the tags in use including the
tags for logging and those for adding a Fragment to
FragmentManager

Bug: 36711497

Test: none

Change-Id: Ia2fc473257eade62f0dd4cb12140be77f506baf8
(cherry picked from commit 11798d44eb59efc943ba5c78635426d3b773db19)
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/dialog/IndeterminateProgressDialog.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/LegacyPhoneNumberPickerFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/model/account/SamsungAccountType.java
e50cd83daa53f2c0e61a456becf34ef99dd1cc58 18-Apr-2017 Gary Mai <garymai@google.com> Use generic video icon for tachyon calls

Test: Manually verified video reachable phones use the right colored
generic video icon but will intent the correct method of calling.

Bug: 36874501
Change-Id: I985ac8a4798a92948631793cb78bfb301b6d9115
ndroid/contacts/quickcontact/QuickContactActivity.java
48ea6852618093ee67a62aaafd85aed124c6aa3a 18-Apr-2017 Arthur Wang <wuwang@google.com> Change experiments string to match with phenotype name.

bug:36883987
Change-Id: I005a560ea5a47abaac3385a5580c812a41e9ef0b
ndroid/contacts/Experiments.java
d23de6146c23a27836a96e8a6f10a74346a905dd 12-Apr-2017 Gary Mai <garymai@google.com> Add alternative video call to QC action

Force the clickable icons in the entry card to be 48dp.
Add the reachability DataItem to the PhoneDataItem so we
have all the necessary data for creating an Entry.
Add a boolean for whether we should color the "third icon", we don't
want to tint it when using the icon from a third party app.
Since we're adding the reachable action to the phone number row,
skip creating the custom row.

Consider cleaning up the Entry constructor (maybe in 2.1), 5 of the 6
uses pass in a lot of null/default values. Possibly use a Builder
or removing the finals from the fields.

Test: Manually verified phone numbers which are reachable on Duo, have
the corresponding action and the custom row isn't visible.
https://screenshot.googleplex.com/vqoCjGwCpYd

Bug: 36874501
Change-Id: Ie3d0fb6ca6491e0fd3d890d47980cc845b9241db
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
331d6508a23d79e754fb756a07bf3aaf5e0dcd9f 13-Apr-2017 Hyunyoung Song <hyunyoungs@google.com> Change to AdaptiveIconDrawable.getExtraInsetFraction()
b/37079814
Test: manual, builds

Change-Id: Iba2c388d9aaac5cb4b451e9b60e6dd76785c6862
(cherry picked from commit 47af0f491e945f5f52e892d911503131959e5b02)
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/ShortcutIntentBuilder.java
11798d44eb59efc943ba5c78635426d3b773db19 15-Apr-2017 Wenyi Wang <wenyiw@google.com> Fix long logging tags

- Delete unused tags, shorten the tags in use including the
tags for logging and those for adding a Fragment to
FragmentManager

Bug: 36711497

Test: none

Change-Id: Ia2fc473257eade62f0dd4cb12140be77f506baf8
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/dialog/IndeterminateProgressDialog.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/LegacyPhoneNumberPickerFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/model/account/SamsungAccountType.java
6e58fdfb08d3e612a49b8cbdc15c834726fec845 14-Apr-2017 Wenyi Wang <wenyiw@google.com> Run VCardService in foreground

- VCardService will be killed if app targets to O and it runs in
background.

Bug: 37253794

Test: manually imported/exported 20k contacts while screen is locked

Change-Id: I17d8aa7cf3a248c5d27a41bcb7ddf18cbe42d696
(cherry picked from commit f26ccc7c4e94815ef9e49a2851b4420a7360a412)
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/NotificationImportExportListener.java
ndroid/contacts/vcard/VCardImportExportListener.java
ndroid/contacts/vcard/VCardService.java
f26ccc7c4e94815ef9e49a2851b4420a7360a412 14-Apr-2017 Wenyi Wang <wenyiw@google.com> Run VCardService in foreground

- VCardService will be killed if app targets to O and it runs in
background.

Bug: 37253794

Test: manually imported/exported 20k contacts while screen is locked

Change-Id: I17d8aa7cf3a248c5d27a41bcb7ddf18cbe42d696
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/NotificationImportExportListener.java
ndroid/contacts/vcard/VCardImportExportListener.java
ndroid/contacts/vcard/VCardService.java
b436200aa370ef2841602a9e56ce0e665cddfd18 13-Apr-2017 Gary Mai <garymai@google.com> Reverse update accounts logic

Test: Manually verified the steps in bug don't reproduce the bug
and account type/authenticators are updated.

Bug: 37284929
Change-Id: I234dac08ac06c0b27b9afa9309759229ad90d96f
(cherry picked from commit 2d3266e45e6ac15cab4d119a3775e54964ee4a3e)
ndroid/contacts/model/account/AccountTypeProvider.java
3d900b3476781cf625a5b20a6d33f1622d555515 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove duplicate definition of assistant screen type" into oc-dev
00ab85ed13ab658e396346aae64547c2d0ca6022 13-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix crash when viewing or editing contacts without account" into oc-dev
b78c8291095625209719ec93bbed6b488b3631dc 07-Apr-2017 Wenyi Wang <wenyiw@google.com> Remove duplicate definition of assistant screen type

Bug: 36645014

Test: manually verified previous screen is logged correctly
after creating a contact from assistant

- The two types are actually defined in unbundled package

Change-Id: I9726a7ba106f163d214228431886fea690854b6c
(cherry picked from commit 6cda631cb8e2fc7365fc229e5ca43115a3781591)
ndroid/contacts/logging/ScreenEvent.java
c20d688fcee47a81473a5a44e5bec3a9b55e5e89 30-Mar-2017 Marcus Hagerott <mhagerott@google.com> Fix crash when viewing or editing contacts without account

QuickContact and editor would crash when opening contacts with an
account_name and account_type from an invalid account or an account
without a contacts sync adapter.

Test: manually verify that a contact with a bogus account can be opened
in QuickContact and editor.

Bug 36782218

Change-Id: I943581be036dff07838ca630c0b771b370f9e2c7
(cherry picked from commit 4fbcd1943f493524e96db648e2a6957689fcc83d)
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/FallbackAccountType.java
47af0f491e945f5f52e892d911503131959e5b02 13-Apr-2017 Hyunyoung Song <hyunyoungs@google.com> Change to AdaptiveIconDrawable.getExtraInsetFraction()
b/37079814
Test: manual, builds

Change-Id: Iba2c388d9aaac5cb4b451e9b60e6dd76785c6862
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/ShortcutIntentBuilder.java
2d3266e45e6ac15cab4d119a3775e54964ee4a3e 13-Apr-2017 Gary Mai <garymai@google.com> Reverse update accounts logic

Test: Manually verified the steps in bug don't reproduce the bug
and account type/authenticators are updated.

Bug: 37284929
Change-Id: I234dac08ac06c0b27b9afa9309759229ad90d96f
ndroid/contacts/model/account/AccountTypeProvider.java
e7d62c0978dd4979a146ef1623b02f10bfb15824 12-Apr-2017 Wenyi Wang <wenyiw@google.com> Merge "Make ScreenEvent match values in contacts_extensions.proto" into oc-dev
1d2db4429780a9e982de78f11af487e8f67f73b0 12-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Phonetic name field underlines stretch across" into oc-dev
10acdeef3c398669b357a67845457bc92937b9c6 05-Apr-2017 Wenyi Wang <wenyiw@google.com> Make ScreenEvent match values in contacts_extensions.proto

Bug: 36645014

Test: built the app
Change-Id: Ia97c85eae26ff00de8780f91b043c23d81febb3d
(cherry picked from commit c6d560be8231b51e1b0020111b39e6216e4b077d)
ndroid/contacts/logging/ScreenEvent.java
a98d1c44cfdb48c9c0b9a23afd3d8440f621c2fb 12-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix ContactEditorActivity aliases" into oc-dev
eda7e560121a487c5b0e920514fa74d1867c7610 17-Feb-2017 avipul <avipul@google.com> Phonetic name field underlines stretch across

Test:
1. open editor
2. expand more fields
3. see phonetic name fields
4. Phonetic name fields should be aliend with rest of the name fields

Bug: 35433983
Change-Id: I19df75e6340192692f745d17ec0a99e2b1463414
(cherry picked from commit e1cf3ff6b2b9dfe499049f9605585cd6f67c8a5a)
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
30363a22d8b0f7ab467b2ab7f864d415d2d10916 12-Jan-2017 Gary Mai <garymai@google.com> Fix ContactEditorActivity aliases

This manifested as a bug where ContactSaveService wouldn't notify
the editor activity since the alias component name wouldn't match
the actual class name of the activity.
This is already fixed in master-dev by the work to change from
callback intents to local broadcast manager.

Test: Manually verified creating a new contact using
Dialer's static shortcut actually saves the contact
and opens QuickContact like the Contacts version does.

Bug: 34154706
Change-Id: Ib8416836b88cfd8ae9dafd4c65a817540e07dbc3
(cherry picked from commit 8ad86750d44e35d3067ff981c1213693f3b806e3)
ndroid/contacts/activities/ContactEditorActivity.java
3386dd8f272784d98f5c838a9ee4f816c4a724b9 11-Apr-2017 Wenyi Wang <wenyiw@google.com> Silence progress notifications

- First, we lower the importance of default channel.
- Then, we set setOnlyAlertOnce of progress notifications to true.
- Also, move the logic to create channel to the place where we construct
progress notification for the first time only (instead of creating the
channel every time when we construct a progress notification). This
didn't lead to a bug but it should be good to change it.

Bug: 37217739

Test:
1. manually verified b/36530928 doesn't happen with this CL
2. manually verified no sound is heard when importing/exporting
contacts, even if changing the importance of the default channel to
make sound.

Change-Id: I9a6d1e2f6dae78ac518589cb07721b15a382445e
ndroid/contacts/util/ContactsNotificationChannelsUtil.java
ndroid/contacts/vcard/NotificationImportExportListener.java
2ab85379c04c578f489a65993168d174ca233656 11-Apr-2017 Wenyi Wang <wenyiw@google.com> Silence progress notifications

- First, we lower the importance of default channel.
- Then, we set setOnlyAlertOnce of progress notifications to true.
- Also, move the logic to create channel to the place where we construct
progress notification for the first time only (instead of creating the
channel every time when we construct a progress notification). This
didn't lead to a bug but it should be good to change it.

Bug: 37217739

Test:
1. manually verified b/36530928 doesn't happen with this CL
2. manually verified no sound is heard when importing/exporting
contacts, even if changing the importance of the default channel to
make sound.

Change-Id: I9a6d1e2f6dae78ac518589cb07721b15a382445e
ndroid/contacts/util/ContactsNotificationChannelsUtil.java
ndroid/contacts/vcard/NotificationImportExportListener.java
6cda631cb8e2fc7365fc229e5ca43115a3781591 07-Apr-2017 Wenyi Wang <wenyiw@google.com> Remove duplicate definition of assistant screen type

Bug: 36645014

Test: manually verified previous screen is logged correctly
after creating a contact from assistant

- The two types are actually defined in unbundled package

Change-Id: I9726a7ba106f163d214228431886fea690854b6c
ndroid/contacts/logging/ScreenEvent.java
1f97d3a7d97affc90b1e98a3e265e0cc371b86ba 07-Apr-2017 Arthur Wang <wuwang@google.com> Merge "Add experiments for video call in AOSP." into ub-contactsdialer-i-dev
f21521d546a911cc8af514c2646f9352ed0f092f 05-Apr-2017 Arthur Wang <wuwang@google.com> Add experiments for video call in AOSP.

bug:36883987
Change-Id: Iaee4299400a6c73bc30e7ef0b38f18e472cb1033
ndroid/contacts/Experiments.java
7732af7cc95dadff7b7e0b3e7fefb31b2c6b9fa8 05-Apr-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Make ScreenEvent match values in contacts_extensions.proto" into ub-contactsdialer-i-dev
c6d560be8231b51e1b0020111b39e6216e4b077d 05-Apr-2017 Wenyi Wang <wenyiw@google.com> Make ScreenEvent match values in contacts_extensions.proto

Bug: 36645014

Test: built the app
Change-Id: Ia97c85eae26ff00de8780f91b043c23d81febb3d
ndroid/contacts/logging/ScreenEvent.java
4fbcd1943f493524e96db648e2a6957689fcc83d 30-Mar-2017 Marcus Hagerott <mhagerott@google.com> Fix crash when viewing or editing contacts without account

QuickContact and editor would crash when opening contacts with an
account_name and account_type from an invalid account or an account
without a contacts sync adapter.

Test: manually verify that a contact with a bogus account can be opened
in QuickContact and editor.

Bug 36782218

Change-Id: I943581be036dff07838ca630c0b771b370f9e2c7
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/FallbackAccountType.java
2d60f950bba404ab861c197db0be1cc54bd139de 27-Mar-2017 Gary Mai <garymai@google.com> Cherry pick IndexListAdapter fix into i-dev
am: 85a683d0b0

Change-Id: I588f244761c785f36431456e6d9f5e6e96414f7b
85a683d0b086153afdf09a2b0a8e1e7d928035c1 27-Mar-2017 Gary Mai <garymai@google.com> Cherry pick IndexListAdapter fix into i-dev

ag/1813291 already fixes the bug. Cherry pick it back to i-dev.

Test: Manually verified position of pinned header following
bug repro steps.
Also verified correct behavior when rotating while the header is
fading away.

Bug: 36638590
Change-Id: Ic3c3e97cb6768e96a10c9a36113716090720357a
ndroid/contacts/list/IndexerListAdapter.java
efc0d3297c687391d1bbccb6ebfd019ac2705713 25-Mar-2017 Wenyi Wang <wenyiw@google.com> Merge "Add isLoggable checks to all verbose and debug log outputs (1/2)" into ub-contactsdialer-i-dev
am: 86903bb8e4

Change-Id: I60b8c5242c3e1adfc55c140e91be38c86e1b64e1
86903bb8e46e0a2e29f3cc8d1fe69cb484f41ae4 25-Mar-2017 Wenyi Wang <wenyiw@google.com> Merge "Add isLoggable checks to all verbose and debug log outputs (1/2)" into ub-contactsdialer-i-dev
57a0e98eed836b72dd3dc3540b9cac029266ed7c 25-Mar-2017 Wenyi Wang <wenyiw@google.com> Add isLoggable checks to all verbose and debug log outputs (1/2)

Bug: 6813854

Test: built apk and verified log is seen in logcat

Change-Id: Ib17cac0d2d9553276c4271221110305ab2d70a46
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/compat/CompatUtils.java
ndroid/contacts/detail/ContactDisplayUtils.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/extensions/ExtensionsFactory.java
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ndroid/contacts/interactions/SmsInteractionsLoader.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/RawContactDeltaList.java
ndroid/contacts/model/account/AccountTypeProvider.java
ndroid/contacts/quickcontact/WebAddress.java
ndroid/contacts/util/ContactPhotoUtils.java
ndroid/contacts/util/StopWatch.java
79d6a9aa6a101c8985bef9097f191592aaeabcb1 23-Mar-2017 Wenyi Wang <wenyiw@google.com> Create channel if channel is not available
am: 156fc9f687

Change-Id: I270ef04e34ba79c19f21175208d180444b117ac9
156fc9f68761dd3eeb6fb3d154fc35a201991ebb 23-Mar-2017 Wenyi Wang <wenyiw@google.com> Create channel if channel is not available

Bug: 36530928

Test: follow steps to repro in http://b/36530928#comment2
and make sure no crash is seen when importing from SIM or Vcard.
Also hard code to stop listening for ACTION_BOOT_COMPLETED and
make sure channel is created before setting channel;

Change-Id: Ib061e299082670c24a0e248da5a61285cd944ea6
ndroid/contacts/SimImportService.java
ndroid/contacts/vcard/NotificationImportExportListener.java
fd2344027209add86b5d846ce851b7c123b219ff 23-Mar-2017 Wenyi Wang <wenyiw@google.com> Consume KEYCODE_BACK event when drawer is open
am: ff3f119c1d

Change-Id: I1e9c4fe2d7ee8679e1c725fd36dcd304c8fa57ef
ff3f119c1dd500d9f9dd976fdbf9d215f10c410a 23-Mar-2017 Wenyi Wang <wenyiw@google.com> Consume KEYCODE_BACK event when drawer is open

Bug: 34343480

Test: press non-arrow/tab keys when drawer is open and make sure
search mode is not activated; press BACK button on phone or
ESC button on physical keyboard when drawer is open and make
sure drawer is closed.

Change-Id: Id9c584c4dff16afd9e6c50bfcad25ec6a4972105
ndroid/contacts/activities/PeopleActivity.java
7a51c3f3ac5c80a94b55dc5f2e3e0de48ecec87b 23-Mar-2017 Gary Mai <garymai@google.com> Merge "Use Icon.createWithAdaptiveBitmap on >= O" into ub-contactsdialer-i-dev
am: 80fa917140

Change-Id: I693a5ab92e6d61219729760e15c06901a4bbf11f
a80b937c0e7f98c547066ce3750b808645ac1ea9 22-Mar-2017 Gary Mai <garymai@google.com> Use Icon.createWithAdaptiveBitmap on >= O

Add padding around the bitmaps so the icons still look right.

Test: Manually verified shortcuts created on:
L, M, N, and O all look correct
O was tested on a Pixel.

Bug: 36405262
Change-Id: Ie14209357b91a866225a315d1c3355bc228c8dff
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/ShortcutIntentBuilder.java
d2c0c0bcf7aa0cacd06a5ed3d300ad2cf1069220 21-Mar-2017 Wenyi Wang <wenyiw@google.com> Only consume key event if the drawer is closed.
am: cc5ea44378

Change-Id: If41455e3a510a11b381a8632dc0b79466295992b
cc5ea443781c1d503f93d29b947e01bc85092f28 21-Mar-2017 Wenyi Wang <wenyiw@google.com> Only consume key event if the drawer is closed.

Bug: 34343480

Test: press non-arrow/tab keys when drawer is open and make sure
search mode is not activated.

Change-Id: I62eed89d519223362ed6c36cbac3dd9855be135a
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
1f58cce572d61c1621a6adfa83fce9c6a811e3b4 20-Mar-2017 Wenyi Wang <wenyiw@google.com> Merge "Fix keyboard navigation in drawer" into ub-contactsdialer-i-dev
am: 3f9e1873a4

Change-Id: I8d42cd17febf7c71b10cad7d63739b43a3ec4867
3f9e1873a4c93087f4917c0cd93c9863a8d53bfd 20-Mar-2017 Wenyi Wang <wenyiw@google.com> Merge "Fix keyboard navigation in drawer" into ub-contactsdialer-i-dev
a007a0d2468a5014cda71e9df836bb994de85835 20-Mar-2017 Wenyi Wang <wenyiw@google.com> Fix keyboard navigation in drawer

- by replacing OnClickListener with OnItemClickListener
- Also remove the ripples on dividers and spacers.

Bug: 34343480

Test: verified keyboard navigation works well in drawer; and verified
drawer works the same as before w/o a keyboard.

Change-Id: I277e0171474f1570b7d987ff5586d3c7ab931196
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/drawer/DrawerAdapter.java
ndroid/contacts/drawer/DrawerFragment.java
7e233e06ae7314b62edb250c78cd0faaeff8806d 20-Mar-2017 Gary Mai <garymai@google.com> Merge "Add type for action (call/sms) shortcuts" into ub-contactsdialer-i-dev
am: 45ff557d8a

Change-Id: Ie1d5a37b5ac8c63208ef7723cc8b66922170dd92
191868386add89315f5bc8057dfa6b64f627c960 17-Mar-2017 Gary Mai <garymai@google.com> Add type for action (call/sms) shortcuts

Update all pinned shortcuts that are SHORTCUT_TYPE_CONTACT_URI.

Test: Manually verified pinning short cuts on O.
Also see that pinned shortcuts for quick contacts are updated
when one of them changes.

Bug: 34128487
Bug: 36032908
Change-Id: I2237dda56cc83caa55f175c7d4ed2b4a86031e0f
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/ShortcutIntentBuilder.java
3a0a291c7f3b24a67d1520af0cb1d5e1e415f82b 16-Mar-2017 Gary Mai <garymai@google.com> Merge "Adopt O shortcut changes for Intent.ACTION_CREATE_SHORTCUT" into ub-contactsdialer-i-dev
am: a172da6354

Change-Id: I3ad1c3479894a1f83ac4aa5d7fca40ab2f5d9f0e
a172da6354d7f53270dca97ec7c9941718f09d3d 16-Mar-2017 Gary Mai <garymai@google.com> Merge "Adopt O shortcut changes for Intent.ACTION_CREATE_SHORTCUT" into ub-contactsdialer-i-dev
08d87ee355cdac231c9ca4ef16bcfa5451a1a0b4 15-Mar-2017 Gary Mai <garymai@google.com> Adopt O shortcut changes for Intent.ACTION_CREATE_SHORTCUT

If we're on O, use ShortcutManager's .createShortcutResultIntent
and return that to the launcher.
Move ShortcutIntentBuilder out of list package since it doesn't
really make sense in there. Also allows us to keep DynamicShortcuts'
methods package private.

Test: Manually verify shortcuts created by long pressing on the
home screen (Contacts 1x1 widgets) are the newer app shortcuts on O
and are legacy shortcuts on pre-O (L, M, and N).

Bug: 36032908
Change-Id: Ic78c21daf223b59b45cbc98ceea2726fc29c055c
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/ShortcutIntentBuilder.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/ImplicitIntentsUtil.java
a53deec1dfd0a3aeb3930ada751a43d5b22c0c9d 16-Mar-2017 Yao Lu <yaolu@google.com> Merge "Add launch screen" into ub-contactsdialer-i-dev
am: 56e4b5f92f

Change-Id: I017619e335d184eb98e4e360c4adf856be2b3e83
56e4b5f92f7644f307ad6a7c8a4308f7817c9a04 16-Mar-2017 Yao Lu <yaolu@google.com> Merge "Add launch screen" into ub-contactsdialer-i-dev
fdeb3ac6fb1a596ec9b83a9846b32797e84f38b2 16-Mar-2017 Wenyi Wang <wenyiw@google.com> Merge "Start to use notification channel" into ub-contactsdialer-i-dev
am: 10faad74f7

Change-Id: I3587fff0823a678064e9d7fd823f3cd95ebf96a1
f31d69734ce90f5b773a992e841d804b2e2f06d3 21-Feb-2017 yaolu <yaolu@google.com> Add launch screen

quantum_launchscreen_contacts.xml files are generated by following
go/launch-screens

All added drawables are copied from:
java/com/google/android/assets/product/res/*/*.png
java/com/google/android/assets/googlelogo/res/*/*.png

All added dimens are copied from:
java/com/google/android/assets/launchscreens/res/*/dimens.xml

Bug: 30255034
Bug: 35360058

Test: on nexus 5x and 9, observe launch screen shown correctly.

Change-Id: If9a659b65ef9d0ea38b377b8ecdb5382314570f5
ndroid/contacts/activities/PeopleActivity.java
7ae91369a3fae4da5e0be3bb683b8ca3713cc1eb 07-Mar-2017 Wenyi Wang <wenyiw@google.com> Start to use notification channel

- Since we rarely use notifications, we have only 1 channel
named "Notifications".

Bug: 34129110

Test: manual
1. build eng-o and install it on O
2. export contacts and observe channel is seen

Change-Id: I38f2c57b0b9139441223c7cc94c7118d6a9fd323
ndroid/contacts/SimImportService.java
ndroid/contacts/interactions/OnBootOrUpgradeReceiver.java
ndroid/contacts/util/ContactsNotificationChannelsUtil.java
ndroid/contacts/vcard/NotificationImportExportListener.java
2553e422c61fb6691884cb3da2541cda1cdfbf77 08-Mar-2017 Gary Mai <garymai@google.com> Photo view in editor fixes
am: eec6992932

Change-Id: Ida0e586910a15920d71892325f689540d46d9416
eec6992932cc1b650211402a30650c5842cc8ad8 07-Mar-2017 Gary Mai <garymai@google.com> Photo view in editor fixes

Use the height/width returned from getHeight and getWidth to
resize the photo view. Since it takes up all available space
initially these two values essentially function as the content
view height/width.

Test: Manually verified photo view sizing on M, N, and O with
rotation.
Also verified editor alignment in multiwindow mode on N.
One caveat is when rotating to landscape with the keyboard up on
O only, there's still a little bit of space at the bottom of the
photo view. This doesn't repro when loading initially in landscape
or rotating into landscape without the keyboard up. So the bug
isn't fixed entirely but it handles the more common cases.

Bug: 33922016
Bug: 27887505
Change-Id: I89ad06bfb07d8891c6ecb57cc7cb0452a2112385
ndroid/contacts/editor/PhotoEditorView.java
d065851b8b37c3a0f3c74ff5ee7521d914ce3e3c 03-Mar-2017 Gary Mai <garymai@google.com> Merge "Use O APIs for shortcuts from QuickContact" into ub-contactsdialer-i-dev
am: d2b97ea42b

Change-Id: I2ed67f11d42426660de7a2f2fef3cf4cca5c03c6
d2b97ea42b7cb8885434f621703d2d6b4b2385b2 03-Mar-2017 Gary Mai <garymai@google.com> Merge "Use O APIs for shortcuts from QuickContact" into ub-contactsdialer-i-dev
91520d763209fa61de58fa54ba4864ed87a2df6f 28-Feb-2017 Gary Mai <garymai@google.com> Use O APIs for shortcuts from QuickContact

Test: Manually verified adding a shortcut from QuickContact on a
launcher that supports the new API shows the drag and drop dialog.

Bug: 34128779
Change-Id: I01ecffaada29a069d982acdda15e927b8792211a
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/quickcontact/QuickContactActivity.java
e5d48a53a93848305e29e721dbad1c3e437ed97f 01-Mar-2017 avipul <avipul@google.com> Fixes unit tests for ContactsPreferences
am: 030b126e60

Change-Id: I91a14f93e1bc356aca474ed7516972654f9de8ea
030b126e6048050154392c72ad451fa73aa37a7f 28-Feb-2017 avipul <avipul@google.com> Fixes unit tests for ContactsPreferences

Also, makes PhoneticNameDisplay preference configurable.

Test:
Auotomated test is added to verify PhoneticNameDisplay preference in
ContactPreference.

Manually tested by changing the
config_phonetic_name_display_user_changeable.
False to removed the option from settings.
True to display the option in Settings.

Bug: 35811420
Change-Id: I395ed4a3539c90d8aa1731d1590930481ae31097
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
c37a0018ceb3eaeece6b190c90cd72ec2c2278fa 17-Feb-2017 avipul <avipul@google.com> DO NOT MERGE Phonetic name field underlines stretch across

Test:
1. open editor
2. expand more fields
3. see phonetic name fields
4. Phonetic name fields should be aliend with rest of the name fields

Bug: 35433983
Change-Id: I19df75e6340192692f745d17ec0a99e2b1463414
(cherry picked from commit e1cf3ff6b2b9dfe499049f9605585cd6f67c8a5a)
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
b5f94b601efca06c2518935c189e8a22f09ae97b 22-Feb-2017 avipul <avipul@google.com> Added preference for the display of phonetic name fields.
am: bf9dddc9e9

Change-Id: I035353bb0e260086ecd76297fb481b7c3b1757ae
bf9dddc9e9228478d1c49287271cb757d158a2f3 21-Feb-2017 avipul <avipul@google.com> Added preference for the display of phonetic name fields.

The new preference is available on settings page.
Users can choose to show phonetic name fields always
even when all fields are empty. By default these fields are only
displayed if they are not empty or after "More fields" is selected.

Test:
1. Tap on setting from the navigation drawer
2. Tap on "Phonetic name fields display" option
3. Select "Show always"
4. Press back and go to create new contact
5. Notice that all phonetic name fields are visible
6. Go back to settings and now choose "Hide if empty"
7. Go to create new contact
8. Notice that Phonetic name fields are not visible
9. Tap on "More Fields"
10. All phonetic name fields are visible

Bug: 22413772
Change-Id: I3c906f78fc21ce2288a1853048b593bfb850a373
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/preference/PhoneticNameDisplayPreference.java
0017a81a6b1558bebe11bbf6962c7cb183965212 17-Feb-2017 Wenyi Wang <wenyiw@google.com> Merge "Build list items first and then notify data set changed" into ub-contactsdialer-i-dev
am: 80c81e9542

Change-Id: Ifedb5a15b537985803402d27bd9a72cd6f2ae700
70f291c40c66463d6ea8b76b28d0b6900682ccab 17-Feb-2017 Wenyi Wang <wenyiw@google.com> Build list items first and then notify data set changed

Bug: 35313285

Test: ran the following command 10 times and verified the
crash didn't happen. Before the CL, usually there are 2-3 times
of crash out of 10 attempts.

adb shell monkey -p
com.google.android.contacts --ignore-security-exceptions
--monitor-native-crashes -s 493 -v -v -v 125000

Change-Id: Ic2ab30c55e9c6eb729f163b0ed11174f6f6340d4
ndroid/contacts/drawer/DrawerAdapter.java
aad9915a6eb5cac4226b49f01cf8ea47ff4c4297 15-Feb-2017 Walter Jang <wjang@google.com> Change name of device account detection flag (1/2)
am: ffcb31f6ec

Change-Id: Ifcfdadfdf5b23a7b3798ec7b1a7c6ecf10a4e6a7
ffcb31f6ece6257d0bc50aa572de0d4b93c82e97 15-Feb-2017 Walter Jang <wjang@google.com> Change name of device account detection flag (1/2)

Test: see I1b9a0cbcd47c9a0a4e2299a692c7b7145ffeeec2
Bug: 32604475
Bug: 35246161

Change-Id: I24b1e5fa69172fbb3ce66e0946aca7cb6843e3fb
ndroid/contacts/Experiments.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/DeviceLocalAccountLocator.java
9f3aec6c7683f1ca07a181e2b4be75a549ad76df 13-Feb-2017 Walter Jang <wjang@google.com> Switch use of Assert outside of tests to Preconditions
am: 34ae3fcd89

Change-Id: I80e56e12a5c21985120d35b9f8c7db7edd0fae3f
34ae3fcd89e75cc59dd5b268ee5cc470bf15a21b 10-Feb-2017 Walter Jang <wjang@google.com> Switch use of Assert outside of tests to Preconditions

Test: none
Bug: 35234289
Change-Id: I378850cee8133a54b751e8b172169232739bc1da
ndroid/contacts/lettertiles/LetterTileDrawable.java
b7478420db1407476c1c91c815f58f20f41d4d7c 09-Feb-2017 Gary Mai <garymai@google.com> Handle revoked permissions when resuming the app (1/2)
am: 1e899dc127

Change-Id: I38ca7bab40a60a6eaba1e3149f94d4853f1229e7
ad21212b197c2a789d4a55709819bea7812ea7ba 09-Feb-2017 Gary Mai <garymai@google.com> Merge "Handle revoked permissions when resuming the app (1/2)" into ub-contactsdialer-i-dev
1e899dc127a212bfd2198fe7adba5c33eb4cd751 08-Feb-2017 Gary Mai <garymai@google.com> Handle revoked permissions when resuming the app (1/2)

The activities that create these fragments will request permissions
but if these fragments were created and the permissions were revoked
then Activity's super.onCreate() will recreate these fragments before
the permission activity is started, which causes a bunch of issues
since the original activity never finishes it's onCreate method so
many things aren't initialized for the fragments.
So in activities that maybe start the permission activity and have
visisble fragments, instead of returning, continue initializing
everything.
In the case of editor, not being able to select a raw contact delta
is a legit case so it should have been handled as a failure and in
general we shouldn't be attempting to bind the editors if we don't
have the permissions.

Test: Manually verified removing permissions and going back to the
app from the recent apps screen doesn't crash while viewing:
* main list
* groups view
* first level suggestions
* duplicates view
* account view
* editor
* settings
* pick group member to add view
* pick phone numbers to send to from group
* pick emails to send to from group

The behavior is permissions get requested and will go back to the
original activity (PeopleActivity with main list loaded or the
editor activity).

Bug: 34741297
Change-Id: Ie234b1f44e83372b9c0ad9658fa4a2e9b40572b0
ndroid/contacts/NonPhoneActivity.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/RequestPermissionsActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
8b341130a8af178e8f7491e7f8ec6b0714ae5d3f 08-Feb-2017 Walter Jang <wjang@google.com> DO NOT MERGE Revert "Start ContactSheet instead of QuickContacts (1/2)"

This reverts commit 581585d9ad2e7d3d4b65798acaa0fa462d30710d.

Test: see I5ad160778d29a78e965fd7cb2ded67b017f4ab9a
Bug: 32604475
Change-Id: If92ea63ed5dbd8d62e3a9f84a8fcd953fa4c9738
ndroid/contacts/Experiments.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/ImplicitIntentsUtil.java
8d26c0a7214cf6520a4def851afa138a133a68a2 08-Feb-2017 Walter Jang <wjang@google.com> DO NOT MERGE Revert "Start ContactSheet instead of QuickContacts (1/2)"

This reverts commit 581585d9ad2e7d3d4b65798acaa0fa462d30710d.

Test: see I5ad160778d29a78e965fd7cb2ded67b017f4ab9a
Bug: 32604475
Change-Id: If92ea63ed5dbd8d62e3a9f84a8fcd953fa4c9738
ndroid/contacts/Experiments.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/ImplicitIntentsUtil.java
a445be8929c32cfa28c8a44dd6dd42fe3cf51986 08-Feb-2017 Gary Mai <garymai@google.com> Let user immediately save to device account when no accounts exist
am: 7826cb2fd3

Change-Id: Ie5c62f9f8bfb5de1eea771259cdc3f678361fd2c
7826cb2fd35ed23d7f90cc4dfbc0dad1cb2c4600 08-Feb-2017 Gary Mai <garymai@google.com> Let user immediately save to device account when no accounts exist

ContactEditorFragment expects an account to be returned from the
activity otherwise it just closes, so save and pass the default
through if the user pressed cancel.

Test: Manually verified hitting cancel sets the device account as
the default and you're immediately taken to the editor without
needing to tap add contact again.

Bug: 34623569
Change-Id: I153af7cc89738fd80b7315b921d561723feb936d
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
5e1db74cc76338f5ca387f1aaf2a12ade4cfebe6 07-Feb-2017 Wenyi Wang <wenyiw@google.com> Stop setting default directory in URI
am: 5294207c30

Change-Id: I5548cc6a29dd33d6dac8a1754aaa68ece69d6dc8
0de8a5e489146f10854dc465961601a4a7360de2 07-Feb-2017 Wenyi Wang <wenyiw@google.com> Merge "Stop setting default directory in URI" into ub-contactsdialer-i-dev
5ec917a38d4a31b0de2655e1a42397b04588a774 07-Feb-2017 Wenyi Wang <wenyiw@google.com> Show "Labels" header when group menus are available
am: ef01c6ae9d

Change-Id: Ifd516a4b4b80e5641d250f8fc9c91d20a84d055e
ed26d35a957238daced150fa1206167d4b58331a 07-Feb-2017 Wenyi Wang <wenyiw@google.com> Merge "Show "Labels" header when group menus are available" into ub-contactsdialer-i-dev
5294207c30fd6863612bc6f5dd728f925baed70e 06-Feb-2017 Wenyi Wang <wenyiw@google.com> Stop setting default directory in URI

Bug: 28330423

Test: manually verified:
- duplicates are not seen for the database where the bug was
seen
- duplicates are not seen for other databases, in all contacts
view or in account view
- all lists in tests app look ok

Change-Id: I0b77080186f4ef22a61a1a2f12686c5903f5a5d5
ndroid/contacts/list/DefaultContactListAdapter.java
ef01c6ae9d121f2a1d1985763f2e61ee8f7c33d4 06-Feb-2017 Wenyi Wang <wenyiw@google.com> Show "Labels" header when group menus are available

Bug: 35048258

Test: Manually verified "Labels" header shows up when either group
writable account is available or group menus are available.

Change-Id: I7aeb05ed61fa84123fa5c93da111e0526946b1e2
ndroid/contacts/drawer/DrawerAdapter.java
2621f22d2d5045461939abec4a3798f1cfb81b00 01-Feb-2017 avipul <avipul@google.com> Don't parse phonetic name just show show all the parts fully expanded.
am: 8bca12206d

Change-Id: I3987a89c1cefa9511c6f16d36ea38dc672085a5d
8bca12206d31072af65790e22fa3c3630f6b05a9 28-Jan-2017 avipul <avipul@google.com> Don't parse phonetic name just show show all the parts fully expanded.

Test:
Tested the following editor scenarios:
1) goto create new contact/edit existing contact
2) notice that phonetic name field is not visible
3) tap on the more fields at the bottom of the list
a) phonetic name fields are visible below name fields
4) enter value in one of these fields and tap on save
5) go back to the same contact and notice that phonetic name fields are
visible.

Bug: 34468427

Change-Id: Idba3f3915350c2bbe49dcda89e30cd756f7f7642
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/model/account/BaseAccountType.java
ndroid/contacts/model/dataitem/DataKind.java
b71e2d4b5c1efce8563a32c77bef1adb42e339e7 31-Jan-2017 Gary Mai <garymai@google.com> Revert isInSecondLevel check
am: ee49cd9388

Change-Id: If2d282ae3fffbf0fe692824547b7c7e0b3c6d289
ee49cd9388019153f73d84a972cb8f13715b344c 31-Jan-2017 Gary Mai <garymai@google.com> Revert isInSecondLevel check

It should still be the same as before.

Test: Switch to an account view from suggestions

Bug:33922405
Change-Id: I0aeffbb76fb24568a7fc90347d08150c774458aa
ndroid/contacts/activities/PeopleActivity.java
2c3ac904afed7edb3b2b56bc02b21f45c8dc23c4 31-Jan-2017 Gary Mai <garymai@google.com> Add backstack tag for assistant helpers
am: f6b50e8875

Change-Id: I98a3b2699664426eb843fc69278008c8e122a3f3
45d990fc5b53b33358fd4d13898959e3d31f206c 31-Jan-2017 Gary Mai <garymai@google.com> Merge "Add backstack tag for assistant helpers" into ub-contactsdialer-i-dev
f6b50e887572e9f8d17066ff702477609896d5b7 27-Jan-2017 Gary Mai <garymai@google.com> Add backstack tag for assistant helpers

Fixes a bug in Android O. Pop the helper tag and then pop the second
level tag afterwards. Let super.onBackPressed handle the singular
case of third level.
Unsure why doing it in two steps fixes the problem but it should
effectively be the same.

Test:
Manually verified navigation situations on Nexus 5X running O,
Nexus 6P running 7.1, Nexus 5 running 5.1.1, and Samsung
Galaxy S7 running 6.0.1:
* all contacts to suggestions and pressing back
* all contacts to suggestions to group and pressing back
* all to group and press back
* all to group to suggestions and press back
* all to suggestion to duplicates press back twice
* mixes of the above with rotations and going to a specific
account view, verifying the list is displayed properly
* the above but using the Contacts menu item instead of pressing
back

Bug:33922405

Change-Id: Idb9421be79038b112eb0012e8be17e5692935c70
ndroid/contacts/activities/PeopleActivity.java
0125110597ac0593e2183c7e17efadcfd34199a7 30-Jan-2017 Marcus Hagerott <mhagerott@google.com> Fix SimImportActivityTest for gradle build
am: e62f1932c3

Change-Id: Ie32c05a2f507a32239530eb8c0ec294199848f65
e62f1932c382c660327fcf158944a3646102b5f7 30-Jan-2017 Marcus Hagerott <mhagerott@google.com> Fix SimImportActivityTest for gradle build

Test: ran GoogleContactsTests
Change-Id: I9db1b1704c95f962cf594d002c24f24a102ea0ff
ndroid/contacts/util/concurrent/ListenableFutureLoader.java
238d0072b2ba5106aa8bb17a16f3a69cad2193c1 25-Jan-2017 Gary Mai <garymai@google.com> Get bitmap from vector drawable in shortcuts
am: 6a320a1535

Change-Id: Ia63337f5c39897fa1878961654acc462594cf375
6a320a1535fff11760a4f88e68df574f651ca025 25-Jan-2017 Gary Mai <garymai@google.com> Get bitmap from vector drawable in shortcuts

Phone icons aren't bitmap drawables anymore so convert the vector
into a bitmap for display.

Test: Manually verified:
* Adding direct dial and message shortcuts don't crash the app
* Appearance of the widgets is the same as before.

Bug: 34394590
Change-Id: I5cc056fe53ae6c5f2a0830f2f5d4d034cc7b4937
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/util/BitmapUtil.java
4c6e2abb81eeed457ba496373b10f0331870c721 24-Jan-2017 Wenyi Wang <wenyiw@google.com> Hide assistant menu in AOSP Contacts
am: 474ecd467a

Change-Id: I7389094dbef39319b3f90197e26adc0cdc1df9b4
aeb76af89d2ea6181ed5e8ea918a0ad4267179bf 24-Jan-2017 Wenyi Wang <wenyiw@google.com> Merge "Hide assistant menu in AOSP Contacts" into ub-contactsdialer-i-dev
474ecd467a9a5012c772a7658d79ff24fe5909ce 24-Jan-2017 Wenyi Wang <wenyiw@google.com> Hide assistant menu in AOSP Contacts

Bug: 34648583

Test: manually verified:
- assistant menu doesn't show up in AOSP Contacts
- assistant menu shows up in Google Contacts
- new badge works for Google Contacts

Change-Id: Ib3b17b5e9e6424a962a3a2b923ee2f311a4d235b
ndroid/contacts/drawer/DrawerAdapter.java
cea82125731e5068782c6907483aaab2eba5bef6 05-Jan-2017 Walter Jang <wjang@google.com> Remove Yenta (1/2)

This reverts commit f61f0ee8c71c7bfee6d81ecf362b3df362ba96f1
This reverts commit f0f25f549389293a00ce107b3937f975bc82b988

Test: see Ied562bbf4fface5d3c57eb9b24e834f65b6ec9b2
Bug: 34107138

Change-Id: I000ab52bc356e377fa0f480c22d60453a07755ed
ndroid/contacts/Experiments.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/FavoritesAndContactsLoader.java
0d29d70edda32f71d8a17c98a324b1c080989c9b 18-Jan-2017 Gary Mai <garymai@google.com> Fix NPE after removing permissions
am: 5a924f3b5c

Change-Id: I90ae38685904097eb05a5fe624aa6d059bf12be0
5a924f3b5c206d079e8e89ab68bc930213090c14 18-Jan-2017 Gary Mai <garymai@google.com> Fix NPE after removing permissions

Move the ContactFilterController instantiation to before the
permission activity is launched. It used to be in
ContactDrawerActivity and was called during super.onCreate().

Test: Removed Contacts permission and opened the app
verified:
* Denying the permission closes and toasts that a required
permission was denied
* Allowing the permission opens the contacts list

Bug: 34343130
Change-Id: I70447126ae39dfac6d6ea700cf620d750f8cb9ee
ndroid/contacts/activities/PeopleActivity.java
8ad86750d44e35d3067ff981c1213693f3b806e3 12-Jan-2017 Gary Mai <garymai@google.com> [DO NOT MERGE] Fix ContactEditorActivity aliases

This manifested as a bug where ContactSaveService wouldn't notify
the editor activity since the alias component name wouldn't match
the actual class name of the activity.
This is already fixed in master-dev by the work to change from
callback intents to local broadcast manager.

Test: Manually verified creating a new contact using
Dialer's static shortcut actually saves the contact
and opens QuickContact like the Contacts version does.

Bug: 34154706
Change-Id: Ib8416836b88cfd8ae9dafd4c65a817540e07dbc3
ndroid/contacts/activities/ContactEditorActivity.java
63b175494cdb898ee25834f4edf16a2542c7e537 11-Jan-2017 Gary Mai <garymai@google.com> Focus on name field and show keyboard when inserting contact
am: befbd85aa8

Change-Id: I519c95dcdc7b714aa79b9941ee40e2ca4869d367
391002fab729576f7bf74e6d1c0ff83e82d582b2 11-Jan-2017 Gary Mai <garymai@google.com> Merge "Focus on name field and show keyboard when inserting contact" into ub-contactsdialer-i-dev
8af048f1de423bfd7e5eca3b4282911d12808fbd 11-Jan-2017 Gary Mai <garymai@google.com> Fix editor crash when rotating during contact insert
am: 9f691e8b1c

Change-Id: I279f0488a54c2170a217d1f1ce58a429eeb2d5ae
9f691e8b1c30dcdae230daebd26da0f225f74008 11-Jan-2017 Gary Mai <garymai@google.com> Fix editor crash when rotating during contact insert

Remember the current account being saved to when setting state
for a new contact. Otherwise when during an insert it will never
get set unless you select a new account from the switcher dropdown.
Since it's null once the account load is finished it goes through
the set state for a new contact code path again which adds another
RawContactDelta to the list which breaks some of our assumptions
regarding the size of mState.

Test: Manually verified no crash occurs after rotation when adding
a new contact from:
* the fab
* recommendations assistant
* third party apps (dialer/messenger)

Bug: 34126254
Bug: 34131358
Change-Id: I874cc592f94584a98e54010751c557cfd3b0d389
ndroid/contacts/editor/ContactEditorFragment.java
befbd85aa820ed0d33ae5a3ec4a923e250d2b2f0 11-Jan-2017 Gary Mai <garymai@google.com> Focus on name field and show keyboard when inserting contact

Request name field focus when it's an insert.

Test: Manually verified:
* Inserting new contact with fab has keyboard and focus on name
field
* Inserting new contact from messenger app has keyboard and
focus on name field with phone number filled in
* Editing a contact has nothing focused
* Editing a read-only contact has the name field focused but no
keyboard

Bug: 31158231
Change-Id: Iff7e0df5059f5efa038d5f794065f76e38a21288
ndroid/contacts/editor/RawContactEditorView.java
aa49d42354715da1e4278801646e7931c90460be 10-Jan-2017 Wenyi Wang <wenyiw@google.com> Convert RecyclerView to ListView
am: 1134a9908f

Change-Id: I3e5c5f7a9bbb85529eba2f318a3f7e9e269f0354
1134a9908ffc9db33de512ddaf7969a8855488de 10-Jan-2017 Wenyi Wang <wenyiw@google.com> Convert RecyclerView to ListView

- To make drawer dragment work with account switcher easier

Bug: 34062530

Test: quick sanity check

Change-Id: I653ec656cd423c413c2aaa23244776ce697a5904
ndroid/contacts/drawer/DrawerAdapter.java
ndroid/contacts/drawer/DrawerFragment.java
e1841afeedb572008f1b5a1e74fb73b6079fcc66 09-Jan-2017 Wenyi Wang <wenyiw@google.com> Remove unused import to fix build breakage

Test: build locally

Change-Id: I15bb9ec5d7bce00ab7f8b1be9e81e4b23fb514ea
ndroid/contacts/activities/PeopleActivity.java
6eb6322f337e664ecc3aaca66ba2cefa4353f9bf 09-Jan-2017 Wenyi Wang <wenyiw@google.com> Add loaders to DrawerFragment and make status bar transparent
am: b8b86d1a27

Change-Id: Id2de94f3645730eb3ec638125aba2d023b546c6a
92f02b80dccc23b3ea2dca22c96058da535ef3ff 09-Jan-2017 Wenyi Wang <wenyiw@google.com> resolve merge conflicts of 2829deb58 to master

Test: build locally

Change-Id: I37187546adacb8431143a9cafd745ca09137d972
b8b86d1a272b313fd2b3ff9e324ce014f24aa44d 08-Jan-2017 Wenyi Wang <wenyiw@google.com> Add loaders to DrawerFragment and make status bar transparent

- This CL addresses a TODO to load groups and filters from
DrawerFragment directly.
- Also, avoiding adding fragments to FragmentManager of a
Fragment works around a crash on LMP.
- Wrap RecyclerView with a FrameLayout to go full screen
with a ScrimDrawable

Bug: 34062530

Test: add and remove accounts and observe changes in side nav

Change-Id: I63943a9d596aa32301609d6ab1b9d49c0c784356
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/drawer/DrawerAdapter.java
ndroid/contacts/drawer/DrawerFragment.java
ndroid/contacts/drawer/ScrimDrawable.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/group/GroupsFragment.java
ndroid/contacts/interactions/AccountFiltersFragment.java
2829deb584a17106ee8e56c8c0bf4f509774ee4a 04-Jan-2017 Wenyi Wang <wenyiw@google.com> Convert NavigationView to Fragment (1/2)

- Replace NavigationView with DrawerFragment
- Load groups and filters in DrawerFragment, rather than in
PeopleActivity directly
- based on RecylcerView, which seems more future-proof
- LTR layout and A11Y is handled
- new badge is implemented
- menu selection is implemented

Bug: 34062530

Test: quick sanity check

Change-Id: I630978e64dc4fd386e25cedfd04f53ea2bd8679f
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/drawer/DrawerAdapter.java
ndroid/contacts/drawer/DrawerFragment.java
ndroid/contacts/group/GroupMembersFragment.java
84a21cc711742f34f19978b2e02cba5f1743e9a5 14-Dec-2016 Wenyi Wang <wenyiw@google.com> [DO NOT MERGE] Merge ContactsDrawerActivity and PeopleActivity (1/2)

This CL is a combination of the following 3 commits:
917cb4aae63f46ebc1e791e02dc3909d5f6c2c4d
87deaf77f6e8c0d32d476d2e50e2290951e11553
de61df7b6aa3c234fcd540066528ad7da81eaf47

Bug: 34066506

Test: build locally

Change-Id: I88d14e21cac3131c9135895faf611f4c21173128
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/util/MaterialColorMapUtils.java
45d8a58e8c443f992919eabe9661955600f0f03a 05-Jan-2017 Walter Jang <wjang@google.com> Merge "Restart default directory loader after yenta search deletes" into ub-contactsdialer-i-dev
f1c66bf755120ac9dc65b6b5aafe5478772cb9f0 05-Jan-2017 Marcus Hagerott <mhagerott@google.com> Remove unused contact tile views
am: 2c35625cd7

Change-Id: Ibe87d56342cbf9a18be021483e8382eb2a67ee4d
2c35625cd7ebf5903f15d89a1f13bcef2eb1bf9a 05-Jan-2017 Marcus Hagerott <mhagerott@google.com> Remove unused contact tile views

Test: Ran GoogleContactsTests

Bug 33251695

Change-Id: I908d3c9bfd588c32739fb98011f8b50a5b740a31
ndroid/contacts/list/ContactEntry.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileFrequentView.java
ndroid/contacts/list/ContactTilePhoneFrequentView.java
ndroid/contacts/list/ContactTileStarredView.java
ndroid/contacts/list/ContactTileView.java
f0f25f549389293a00ce107b3937f975bc82b988 05-Jan-2017 Walter Jang <wjang@google.com> Restart default directory loader after yenta search deletes

Test: manually delete search results 1) using multi-select and
2) from QuickContact with populous both on and off.
Bug: 33643057
Change-Id: I58514c46722c775ce3b319d1665a982a8918e056
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
283282a654e0b582fdd959bbf8eb7e594a44291c 05-Jan-2017 Wenyi Wang <wenyiw@google.com> Merge "[DO NOT MERGE] Clean up PeopleActivity in i-dev" into ub-contactsdialer-i-dev
de61df7b6aa3c234fcd540066528ad7da81eaf47 05-Jan-2017 Wenyi Wang <wenyiw@google.com> [DO NOT MERGE] Clean up PeopleActivity in i-dev

- Rename occurrences of allFragment as listFragment
- Misc style changes to make it consistent w/ master-dev

Bug: 34066506

Test: quick sanity test

Change-Id: If2c820831ae5f6be752f1eed4f40517e94f76ff6
ndroid/contacts/activities/PeopleActivity.java
cb447d38e21a2034fc0414a160677bca87512574 05-Jan-2017 Wenyi Wang <wenyiw@google.com> Remove unused case from onNewIntent
am: e026ef7e82

Change-Id: Ifcd8948193d93fa6f7459b504118a766d1ffa00b
e026ef7e82e015cd83a14e20933229449c83aff1 05-Jan-2017 Wenyi Wang <wenyiw@google.com> Remove unused case from onNewIntent

- ACTION_DELETE_GROUP is handled by broadcast so it won't
reach onNewIntent any more.

Bug: 28955365
Bug: 34066506

Test: delete a group

Change-Id: I7ca3b21c5cce3db9a99805efa29257ac85a7d075
ndroid/contacts/activities/PeopleActivity.java
1959b4151f4ec5865f8e6f713579f669ff17a906 05-Jan-2017 Marcus Hagerott <mhagerott@google.com> Guard against null cursor when querying SIM
am: aa16ca2105

Change-Id: Ide166808c0c6ba326935819a7bf9b6870c5cb04b
ebcac11695abe42e10f34f5b6894c8ff43e91cbd 05-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Guard against null cursor when querying SIM" into ub-contactsdialer-i-dev
17fd790e0d6bf3d21c3072e58890babad636a240 05-Jan-2017 TreeHugger Robot <treehugger-gerrit@google.com> Merge "[DO NOT MERGE] Remove method to load groups" into ub-contactsdialer-i-dev
aa16ca2105bc6038edf35e3dce13977f8bc77874 05-Jan-2017 Marcus Hagerott <mhagerott@google.com> Guard against null cursor when querying SIM

Test: ran GoogleContactsTests

Bug 33272160

Change-Id: I177e63d489b566d55aa2009af2728279a8aea297
ndroid/contacts/database/SimContactDaoImpl.java
87deaf77f6e8c0d32d476d2e50e2290951e11553 05-Jan-2017 Wenyi Wang <wenyiw@google.com> [DO NOT MERGE] Remove method to load groups

- which is a duplicate of part of loadGroupsAndFilters
- Also convert 2 fields to local variables

Bug: 34066506

Test: manually verified accounts and labels are loaded

Change-Id: I49669dc6681488ca42f2f8f54c17519ec20e0a9a
ndroid/contacts/activities/PeopleActivity.java
3d4780c540ffeceed50c75850bc9473a70423acf 05-Jan-2017 Marcus Hagerott <mhagerott@google.com> Don't show removed default account in settings
am: 614d812044

Change-Id: I6b495cbcdf98876df0ee6c58e7769ff278f999f8
614d81204436ca60e3b0a4c5cd0be92fb7e8213e 04-Jan-2017 Marcus Hagerott <mhagerott@google.com> Don't show removed default account in settings

Test: manually verify that default account is cleared when account
is removed.

Bug 30742139

Change-Id: I0f7130d8ed73762ff7cd176636e0949064b16be6
ndroid/contacts/preference/DefaultAccountPreference.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
c649b51f48aa84dde14e2bb9e952cbc26554459b 04-Jan-2017 Walter Jang <wjang@google.com> Fix logging successful search events
am: 4b0c1c158c

Change-Id: Icba15d50f6d094e9774dec3bccf8c4c821d10311
d9c6188c6dd2295b5a72bb27df8fcc7ccff922d9 04-Jan-2017 Walter Jang <wjang@google.com> Merge "Fix logging successful search events" into ub-contactsdialer-i-dev
4b0c1c158c0dd6854ca10b09e7028faec9a7f398 04-Jan-2017 Walter Jang <wjang@google.com> Fix logging successful search events

Test: manually test that success and abandon
search events are logged to clearcut
Bug: 34080070

Change-Id: Ic699f707f9faa53351713ffbaaaeeff30a82b20f
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
917cb4aae63f46ebc1e791e02dc3909d5f6c2c4d 14-Dec-2016 Wenyi Wang <wenyiw@google.com> [DO NOT MERGE] Merge ContactsDrawerActivity and PeopleActivity (1/2)

- Created by cherry-picking Ia67586501836af6a8bef633c682480d94e2c1869
and resolving conflicts so as to reduce merge conflict to master-dev.
- Downgraded visibility of many methods and variables to private.
- Rename mAllFragment as mContactsListFragment

Bug: 34066506

Test: quick sanity test

Change-Id: I13b20b078a42de50c69bee2b3abc97c72335c607
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/util/MaterialColorMapUtils.java
74f225950ee4c11ac3a0fa8d7c23fa2d64e688da 04-Jan-2017 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of cb43f1071 to master

Change-Id: I0e2a7bb3311ce266f89a30bf478124104577b464
d8617d35fe0765451f3d5d05f01e6a43913c3697 04-Jan-2017 Marcus Hagerott <mhagerott@google.com> Merge changes If1b344d5,Idaffc3f0,I5a33ad27 into ub-contactsdialer-i-dev

* changes:
Remove getGroupWritableAccounts method
Replace getAccounts method with blockForWritableAccounts
Add setter for accounts in AccountsListAdapter
cb43f107170eaabe4a14bf4046262745c628ac73 04-Jan-2017 Marcus Hagerott <mhagerott@google.com> Remove getGroupWritableAccounts method

This method would block on accounts loading. Replaced with asynchronous
loading of the group writable accounts.

Test: manually verify that labels are still shown in nav drawer

Bug 33627801

Change-Id: If1b344d5bfee59dd5b8cc5446b02742ceec1f459
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/group/GroupsFragment.java
ndroid/contacts/model/AccountTypeManager.java
107cd7a225eccad56dfe12ca6d32908e651b27ac 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace getAccounts method with blockForWritableAccounts

This makes it more explicit that the method may block and should be
avoided.

Test: ran GoogleContactsTests

Bug 33627801

Change-Id: Idaffc3f0f6c986e21701f661d46b39ee8cbcc0a1
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
ee3d3a503553de2699285d98bc6fe7d34699a8b0 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add setter for accounts in AccountsListAdapter

This allows the accounts to be set after the adapter has been created
which simplifies usage in cases where the accounts are loaded with a
loader.

Test: manually verify that account list is correct for default account
preference, import from .vcf and create label.

Bug 33627801

Change-Id: I5a33ad2746cff41d0251cead9a33dc53e5bf822d
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/interactions/ImportDialogFragment.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/AccountsLoader.java
ndroid/contacts/preference/DefaultAccountPreference.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/util/AccountsListAdapter.java
86b464f5ad4c720253d98a32806dc49514453d7a 04-Jan-2017 Marcus Hagerott <mhagerott@google.com> Fix exceptions logged when loading icons
am: 3cbc7482cf

Change-Id: I061265deb4e1654994b4c79170ad518b3c109b82
f68e6d017d4e1380de7f8f628a147d728fa3ecca 04-Jan-2017 Marcus Hagerott <mhagerott@google.com> Merge "Fix exceptions logged when loading icons" into ub-contactsdialer-i-dev
a44a34df6233fcd62566ae8ef0de100324d9002d 03-Jan-2017 Marcus Hagerott <mhagerott@google.com> Prevent editor from closing after account is added
am: 80ab7ea6a5

Change-Id: I9404108dce0be05cb1cd10a6d5c05d653c7a2194
9674eee85f8704d27a5bee87beb7e097e2f4e217 03-Jan-2017 Marcus Hagerott <mhagerott@google.com> Merge "Prevent editor from closing after account is added" into ub-contactsdialer-i-dev
80ab7ea6a518410594058c74f32c4b551097edbd 03-Jan-2017 Marcus Hagerott <mhagerott@google.com> Prevent editor from closing after account is added

When the ContactEditorAccountsChangedActivity is shown (when creating
a new contact with no default account set) and a new account is added
the editor would close once an account was chosen because a new activity
instance was being created.

Test: manually verify that editor remains open after adding account
while choose account dialog is displayed

Bug 33627801

Change-Id: Icdfbceb0fc2e10619afde4fa772a2efaa21a0c5e
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
959981163a567f929682a700bbd397734fde68e8 03-Jan-2017 Marcus Hagerott <mhagerott@google.com> Remove usages of support library ArraySet
am: 12d0cf18b5

Change-Id: Ice9198b532f361a40f31e4db213af9366720d920
3cbc7482cf5eb745f9ac0b51420a295f51aa46b3 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix exceptions logged when loading icons

A RuntimeException was being logged at debug level (not a crash). This
was probably introduced when the icons were changed to vector drawables
in Iafea5c1bba738c57437888da999fc2909d0765fd

Test: manually observe logs while opening editor and quick contact
Change-Id: I8333d9aa86ed8580798deff58ecdcf29037c0aab
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/model/account/FallbackAccountType.java
ndroid/contacts/quickcontact/QuickContactActivity.java
12d0cf18b5efe29844f10c8029ae78251191a720 03-Jan-2017 Marcus Hagerott <mhagerott@google.com> Remove usages of support library ArraySet

This is causing problems for the Google3 migration

Test: ran GoogleContactsTests
Change-Id: I64206dd2e0962c28cacc286adb27124ef9f5f791
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/database/SimContactDaoImpl.java
ndroid/contacts/model/account/AccountTypeProvider.java
ad27b07d981d6337e8aa1d47813eac5e55f96ef7 28-Dec-2016 Wenyi Wang <wenyiw@google.com> Set maximumHeaderTextSize based on line count of TextView am: 0648e417ee
am: 6702f2d0b8

Change-Id: I633f6fec481b27b0a7a962d58f52335311491ba8
6702f2d0b833f7fa15e0d60b5d8aa6918b7878d9 28-Dec-2016 Wenyi Wang <wenyiw@google.com> Set maximumHeaderTextSize based on line count of TextView
am: 0648e417ee

Change-Id: Ia69875dd0bb7c3f8d250db2275baa8c904a493cf
de05c13eb181d56164b70098f5c59d9aa16dfd71 23-Dec-2016 Wenyi Wang <wenyiw@google.com> Update overflow menu color am: cfa427a2c2
am: bed1a47d62

Change-Id: Ie09ed1c5ad8d02d1fa7ba5c5ef8dfdd1b1cf139e
bed1a47d6212661c8a871ae140c7c90c821b6421 23-Dec-2016 Wenyi Wang <wenyiw@google.com> Update overflow menu color
am: cfa427a2c2

Change-Id: I798bdb97d08ad75f5402397a7cc336c4927fba06
cfa427a2c2c5bfda01f3552b1b43b0c818dfa52a 23-Dec-2016 Wenyi Wang <wenyiw@google.com> Update overflow menu color

- when contacts list is loaded and when selected contacts changed

Bug: 33844869

Test: manually verified overflow menu is in correct color in multi-
window mode and on screen rotation.

Change-Id: I2c15f5d37fe8899d37abc05e9bd01167ec489ca1
ndroid/contacts/list/DefaultContactBrowseListFragment.java
0648e417eef4ab0755a34ddccda78abc36e1c358 23-Dec-2016 Wenyi Wang <wenyiw@google.com> Set maximumHeaderTextSize based on line count of TextView

Bug: 33844924

Test: manually verified contact name and phonetic name are
displayed correctly in multi-window mode when contact
name is of 1 and 2 lines, and phonetic name is of 0,
1 and 2 lines.

Change-Id: I2a49c3c6cd3de87cf79eeaa7afc6962056d0d66a
ndroid/contacts/widget/MultiShrinkScroller.java
1325dd6acb425016385ff9a47dbbacef58fb3016 22-Dec-2016 Wenyi Wang <wenyiw@google.com> Update overflow menu color after members are loaded am: 0012afb708
am: c0532df914

Change-Id: Ib289c9895f7ea45bb88d0115207054542ba2379d
4c1440605de933ccd67660e126f8fb0fadf3a113 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix issue with account existence check
am: 7778080136

Change-Id: I0d798bb202ab99520d985beac7f543e463a3f1b6
419299a697e0ffa8d89a9ff3cde43fb8ade0be55 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add convenience methods for account loading
am: 8c6b5bdb38

Change-Id: Ie6c8a930b40d19fdd9060b25cd0d211a2a64403c
f7d05157857f378c430f9aa5b3cd9840047ef88f 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Use AccountsLoader in settings fragment
am: dc91dd6a40

Change-Id: Id245b322b19de9b03ff42ee13ef646878b4d7601
37ca7146c86b139abe1aa37a3bd77d02a1ba419a 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace several usages for of AccountTypeManager.getAccounts
am: a181ca6021

Change-Id: I8e83069a19557392100dd3f21c12c043e3a83b3d
1359ecd6e0c803ebadb0e5a46a54565d46eaa73f 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Split AccountTypeManager.contains method
am: c348123410

Change-Id: I709ce6d18943ff2f61edb9a90f67c6f089e2e2ce
c0532df91429853cfd25183b433afefd90b1e4aa 22-Dec-2016 Wenyi Wang <wenyiw@google.com> Update overflow menu color after members are loaded
am: 0012afb708

Change-Id: I28bc44996df070a5a5fb631fcf363aa06aee73fd
088d39dfbf2999137c316cacfcc671df9117ee11 22-Dec-2016 Wenyi Wang <wenyiw@google.com> Merge "Update overflow menu color after members are loaded" into ub-contactsdialer-h-dev
0012afb708045520e46edde6c07412dc198407e4 22-Dec-2016 Wenyi Wang <wenyiw@google.com> Update overflow menu color after members are loaded

Bug: 33838570

Test: manually verified overflow menu color is correct in selection
mode and regular mode (and with rotation).

Change-Id: I050a5255bd055cdc24a1f41ad39a94d5372bf2aa
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
7778080136f70e4f5ac90a3bb8281addf5898894 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix issue with account existence check

It should only consider accounts that provide contacts.

Test: ran GoogleContactsTests

Bug 33627801

Change-Id: Ib3907fbede4623b88d7f89f102f4eef3883ffbad
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/AccountTypeProvider.java
8c6b5bdb3812fcbe5680fafca59d2ab9ec90d839 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add convenience methods for account loading

Test: ran GoogleContactsTests

Bug 33627801

Change-Id: Ib673838d9b041e5dc512a94bfaf47b4caf4a540f
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/model/account/AccountsLoader.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
dc91dd6a407de90e7a129796f651bbcfdf5a944f 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Use AccountsLoader in settings fragment

Test: manually verify that default account and customize preferences
are hidden when there are no writable accounts

Bug 33627801

Change-Id: I423def047b6a9a29c57cf4ee73b8b259126e89b0
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
a181ca6021333cbb96ff9a6abeec9e64ea19c7f9 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace several usages for of AccountTypeManager.getAccounts

Test: Ran GoogleContactsTests

Bug 33627801

Change-Id: Ifde6c5f314558159bb468c92fa38b20a8d90bf06
ndroid/contacts/SimImportFragment.java
ndroid/contacts/editor/AccountHeaderPresenter.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/interactions/ImportDialogFragment.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/model/account/AccountDisplayInfoFactory.java
ndroid/contacts/model/account/AccountInfo.java
ndroid/contacts/model/account/AccountWithDataSet.java
ndroid/contacts/preference/DefaultAccountPreference.java
ndroid/contacts/util/AccountFilterUtil.java
ndroid/contacts/util/SyncUtil.java
c34812341069afae7ddd253fc45b233706b739d9 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Split AccountTypeManager.contains method

It now has an exists method and a isWritable method instead.

Test: manually remove account that is being displayed and manually
remove default account

Bug 33627801

Change-Id: I862779a7ac221fa8b2f0c84b6c73af0fee71c935
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/AccountWithDataSet.java
a6805c06f7d581cde22f29e26a9024b4fb2435cd 22-Dec-2016 Marcus Hagerott <mhagerott@google.com> Move logic for loading local account on Nexus
am: 4fabad6a29

Change-Id: I665c4ad41d82107e4bc7c00089cd389221726f46
4fabad6a2949f028f575c1cbde6b01368cd78d60 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Move logic for loading local account on Nexus

Test: manually verify that device account is shown when there is no
Google account and is hidden when one is added.

Bug 33627801

Change-Id: If452ad1378fbdfe893379e8ff9367a4156561cdc
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/DeviceLocalAccountLocator.java
b5c678758d1eaa1d6c307034fb335e03db286ead 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Start loading accounts in onCreate for attach photo
am: ff78703999

Change-Id: Ifa27c9577a5bb68aa664c03d1e34d12dc74adefe
58d5a03500dd6a5c6ce4b2ca51c012eb7a686148 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Use loaded accounts for editor account prompt
am: 807e6208d6

Change-Id: Iede6c94386b7502dbdd24efa74e0468ae7b5ba51
5aecd09949079850777a898e10b74ea5e3ccbf48 21-Dec-2016 Gary Mai <garymai@google.com> Use support toolbar in editor to fix issues in LMP
am: c40f3e945c

Change-Id: I5c02ffb8f2c8b8ab3e22674a6852bb309e8caa8e
ff78703999094ef7a698a7dc7d1d5448af5c0814 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Start loading accounts in onCreate for attach photo

Test: manually verify that a photo can be set from Google photos for
read-only contact when no default account has been set

Bug 33627801

Change-Id: I1e691686eda49106725d1723eb4e2618177eaec3
ndroid/contacts/activities/AttachPhotoActivity.java
fbfeaeb4f2f5039f83dcf96caa924af4084685a5 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Merge "Use loaded accounts for editor account prompt" into ub-contactsdialer-i-dev
c40f3e945c43ff1ff90abb7fb2daf56aba315e10 21-Dec-2016 Gary Mai <garymai@google.com> Use support toolbar in editor to fix issues in LMP

ContactEditorActivity has to switch to AppCompatActivity, and so
does its theme.
Use support AlertDialog in editor created dialogs so it uses the
appcompat theme correctly.

Test: Manually verified look and functionality of the toolbar in
LMP and on MNC.
Verified LMP cut/copy/paste toolbar appears over the toolbar instead
of pushing it down.

Bug: 33662452
Bug: 33587478
Change-Id: Ie6f4555a237b7a10877dd0b32615120b6d789646
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/CancelEditDialogFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhotoSourceDialogFragment.java
ndroid/contacts/editor/SuggestionEditConfirmationDialogFragment.java
4549cd3c852f4025dfcb81ac05b6e275931f4f11 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix conditional in AccountTypeProvider
am: f332af8d01

Change-Id: I6d6e8570e3979f4a75ca8fd1aef4db8ff541cf6d
3ad22a17ffef4ae971fd9481e619c0c78212993a 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Merge "Fix conditional in AccountTypeProvider" into ub-contactsdialer-i-dev
807e6208d6bc4ff1a6b0b4d8900229df27077246 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Use loaded accounts for editor account prompt

Test: ran GoogleContactsTests

Bug 33627801
Change-Id: Id8bdf1d5a2a13bb526118b104bae06138f0333ac
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/util/AccountFilterUtil.java
f332af8d01abd3ef37682fab94971b4e66f8ae2d 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix conditional in AccountTypeProvider

Extension accounts weren't being included in the account types which
would cause a crash when viewing or editing a G+ contact.

Test: manually verify that app doesn't crash when viewing contact with
G+ profile

Bug 33627801
Change-Id: Iaecfac466ffd1b3c5cd973b3b76d8c5bb14661d8
ndroid/contacts/model/account/AccountTypeProvider.java
32e956b37a609cbfba285176696bde05fda7094f 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix error in HandlerFuture implementation
am: 50ccbfd94b

Change-Id: Icca28b59a1966db0b11db7b6927065e74eb54ad0
50ccbfd94ba83b72bb817e576b60f38a0015efcb 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix error in HandlerFuture implementation

It didn't properly implement Delayed. This isn't being used but it's
error-prone to leave as is.

Test: ran GoogleContactsTest
Change-Id: If555ce2d3c67ed63fdc3ab861e1a4e20bcb59975
ndroid/contacts/util/concurrent/ContactsExecutors.java
f7eb0fbf393aa36aecd612c593e53390a421737c 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace switches on resources with if-else
am: b697ed768f

Change-Id: I8e905f171b2b881811e7fd2252bf540ab71e6a6b
56adf8347aedcd8d2fa58aecfe043534e3d1ad90 21-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Replace switches on resources with if-else" into ub-contactsdialer-i-dev
d89dd362f7d472d761d0bd94a599868b36f856b3 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Unsuppress SIM import UI test
am: 2054306415

Change-Id: I7a16e17cb4c5c11e34a3aa472f0664a5cb6f340a
b697ed768fb817f94524f6c3992547665df331c4 21-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace switches on resources with if-else

This is necessary for the project to build as an Android library which
is planned for Google3.

Test: ran GoogleContactsTests

Bug 33782320

Change-Id: I62f15486b7e976bb20a6e9c631dc8404a4170dbb
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
3c6345d006ef30365befc2bcc7eb9c12efd0fa6a 21-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes I52e286c3,Id8081d5d into ub-contactsdialer-i-dev

* changes:
Unsuppress SIM import UI test
Make SIM import UI tests less flaky
d0218412b8219cfe4f89107b861e691387864260 21-Dec-2016 Gary Mai <garymai@google.com> Wrap show dialog fragment in isSafeToCommitTransactions check
am: 30328dbe38

Change-Id: Iea942c23d529301213841c9ec305c1b848ae196c
2054306415223d2f68972d8f663334c2956edd38 20-Dec-2016 Marcus Hagerott <mhagerott@google.com> Unsuppress SIM import UI test

Test: ran GoogleContactsTests
Change-Id: I52e286c35a7b3f95bc2d8ed469b9e4bf473f8f64
ndroid/contacts/database/SimContactDaoImpl.java
30328dbe381565e9eba39c096aaa939bb484913c 21-Dec-2016 Gary Mai <garymai@google.com> Wrap show dialog fragment in isSafeToCommitTransactions check

The dialog fragment is shown from an onClick handler which can be
run after onSaveInstanceState is called which results in the
IllegalStateException. Our base activity classes already have a
method to check for this, so call it before attempting to show the
dialog fragment.

Also delete an unused class.

Test: N/A

Bug: 33341841
Change-Id: I1e27bd473666025251c95f8d497c71a248a5a2c8
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/JoinSuggestedContactDialogFragment.java
e174be77135003390d44579f4f95b49140e8785d 20-Dec-2016 Wenyi Wang <wenyiw@google.com> Guard against SecurityException in QuickContact
am: 969c595dd8

Change-Id: Iad55a56fb60fa9da973aedb85e5024615403f383
969c595dd845afa5f3b13d4e50c9d9a2165aac83 20-Dec-2016 Wenyi Wang <wenyiw@google.com> Guard against SecurityException in QuickContact

* Also removed some unused methods
* Now, all calls to getCallCapablePhoneAccounts() have been wrapped
with a try-catch block.

Bug: 31304557

Test: throw a SecurityException manually and verify QuickContact works

Change-Id: I315b227e9537492ae9235784f0ad576e90db7714
ndroid/contacts/CallUtil.java
ndroid/contacts/compat/telecom/TelecomManagerCompat.java
d5ae80ee9ebdfe2fe732ae0e2dad0b4ec16e9758 20-Dec-2016 Wenyi Wang <wenyiw@google.com> DO NOT MERGE Guard against SecurityException in QuickContact

* Also removed some unused methods
* Now, all calls to getCallCapablePhoneAccounts() have been wrapped
with a try-catch block.

Bug: 31304557

Test: throw a SecurityException manually and verify QuickContact works

Change-Id: I611ef18f88a233e7665b55727d1b9ce53f4d1d7f
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/compat/telecom/TelecomManagerCompat.java
0c86d50eef95e527ec894cea002a336797e21183 20-Dec-2016 James Laskey <laskey@google.com> Remove assistant timeouts from Experiments
am: 5ed7176819

Change-Id: I4b3922c8f2d7ef3cb8f69c2ff387eccd6be951f2
41052ebd934645530fe3a153285bd03d27570a6c 20-Dec-2016 Jim Laskey <laskey@google.com> Merge "Remove assistant timeouts from Experiments" into ub-contactsdialer-i-dev
f0bca0c4415afae94c6f2713ded78a15d70150df 20-Dec-2016 Marcus Hagerott <mhagerott@google.com> Use loader for accounts in editor fragment
am: 4bd50d69d2

Change-Id: Ic078cec28980442510eec79f33945df3cc7cb03c
4bd50d69d2b8934dbd4cbd634ad83807d9b02735 16-Dec-2016 Marcus Hagerott <mhagerott@google.com> Use loader for accounts in editor fragment

Test: manually remove selected account in editor and verify that
it changes to the first account in list

Bug: 33627801

Change-Id: I6554f03c207fb761f7b8d971e0f07f7416efcd72
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/model/AccountTypeManager.java
5ed7176819408a2ddeabb9175e21cdd306fcab2c 20-Dec-2016 James Laskey <laskey@google.com> Remove assistant timeouts from Experiments

Bug: 33275513
Change-Id: I6edc2f87fe2e703d13f70b3f4ff1a648e04724b5
ndroid/contacts/Experiments.java
54f6baef4644e57e9bd3ae2010bd464d16ebda8a 19-Dec-2016 Gary Mai <garymai@google.com> Add null check before copying name fields am: 860698b8d4
am: 96e7fc6525

Change-Id: I45dbbe25408b33d0e88e65ea1ee567c51e7bfc66
96e7fc65257e1aab2f1fc4f7900832514f584b0f 19-Dec-2016 Gary Mai <garymai@google.com> Add null check before copying name fields
am: 860698b8d4

Change-Id: I4bb6db79340cb1a218739b7c3fcf5650b3beff4b
860698b8d4542a55da5ec40032a361433b525aad 19-Dec-2016 Gary Mai <garymai@google.com> Add null check before copying name fields

Bail if either name value delta is null. This can happen because
external read only raw contacts may not have a StructuredName, such
as the ones created by the Signal app.
User facing consequence is the name isn't auto copied for them, but
without a StructuredName type declared by the read only raw contact
there isn't a reliable way to even get something to copy.

Test: Verified editing a Signal raw contact doesn't crash the app
and the editor loads with the same behavior as if a new contact was
being created.

Bug: 33622717
Change-Id: I87b513ca9f188750f0d5e4e5f5392e419565cf4e
ndroid/contacts/editor/ContactEditorFragment.java
6d36176b4d822cc6972099fb77394770bae26cb7 19-Dec-2016 Gary Mai <garymai@google.com> Fix editor crash on rotation when no default account exists am: c135a5d502
am: d14743263d

Change-Id: I1e3caca2a1a776b40641483619ad3d138bd393ae
d14743263df73d2c715bca44962a181f5ac1ae3b 19-Dec-2016 Gary Mai <garymai@google.com> Fix editor crash on rotation when no default account exists
am: c135a5d502

Change-Id: Ide3f311c0eaae6d53aa94f0d83029c599bace1a6
c135a5d502130aee06ffcc11170513053396e9b0 19-Dec-2016 Gary Mai <garymai@google.com> Fix editor crash on rotation when no default account exists

Persist the current primary account in the fragment. Normally a
default account has to be chosen before a new contact is added
but when adding a new contact from an account view, that account
is passed in through an intent extra and set as the primary for
the fragment. On rotation it's lost because reading the intent
extras only happens when saveState is null.
Also remove an unused constant.

Test: Followed repro steps in the bug and verified no crash
happens and the new contact is saved to the correct account.

Bug: 33691259
Change-Id: I12a86af907be7d11980349583fa6d44b3097de15
ndroid/contacts/editor/ContactEditorFragment.java
65a5be3ac950d92e92cd12124de8b8d29de121ff 19-Dec-2016 Marcus Hagerott <mhagerott@google.com> Only broadcast account change if accounts are different
am: 2a4673a938

Change-Id: I147460b4312158a07b7eeb589bb668fde94a097c
8ebf98271536f272e540e2c0561b853f9d71299e 19-Dec-2016 Marcus Hagerott <mhagerott@google.com> Use loader for accounts in editor account chooser
am: 9a679e742e

Change-Id: I15cf43236fd9737af4bf09ff04089185dd62d885
61b3bea3ea481b805c24f7696f4982b7fc17226d 19-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add AccountInfo class
am: 75895e7337

Change-Id: I4631523027c80dbe4ccd528a0312bb206ed76cfb
2b80ea02bd625c31a4d000b7041d80381f465ea9 19-Dec-2016 Marcus Hagerott <mhagerott@google.com> Merge changes I5e0bf85f,I3c92c80f,I39962f99 into ub-contactsdialer-i-dev

* changes:
Only broadcast account change if accounts are different
Use loader for accounts in editor account chooser
Add AccountInfo class
04f0133dadb69e79cfa69a3e7ed66dd0cd54dd1b 17-Dec-2016 John Shao <johnshao@google.com> Standardize and replace assets with vectors
am: bd9ef3c606

Change-Id: I5640f8472462c37b7a0bc16d425d96bbf31169d0
2a4673a93880c43d9dda547e7bdc5ee35a1b025c 15-Dec-2016 Marcus Hagerott <mhagerott@google.com> Only broadcast account change if accounts are different

Test: manually verify accounts update in editor account chooser when
added and removed

Bug 33627801
Change-Id: I5e0bf85ff5b513df66462cb35dd2ed5db2bc5baa
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/AccountTypeProvider.java
9a679e742e9e738d659f6f8a566c1db7a252f77f 15-Dec-2016 Marcus Hagerott <mhagerott@google.com> Use loader for accounts in editor account chooser

The list of accounts on the dialog now updates when they are added or
removed.

Test: manually verify that list of accounts updates when adding or
removing accounts

Bug 33627801

Change-Id: I3c92c80f0a93a865050b115b5b3d931eea80b2af
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/AccountsLoader.java
ndroid/contacts/util/concurrent/ListenableFutureLoader.java
75895e73379aa26a3d4135c772af4ecb8a79b4c9 13-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add AccountInfo class

This holds the AccountWithDataSet, AccountType and AccountDisplayInfo
for an account because many usages of accounts need all three of these.

Test: manually verify that accounts in nav drawer are correct

Bug 33627801

Change-Id: I39962f9945714aa7ce48aca97f220f119a1741cd
ndroid/contacts/SimImportFragment.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/AccountHeaderPresenter.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/AccountInfo.java
ndroid/contacts/model/account/AccountType.java
ndroid/contacts/model/account/DeviceLocalAccountType.java
ndroid/contacts/model/account/SimAccountType.java
ndroid/contacts/util/AccountFilterUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/util/concurrent/ListenableFutureLoader.java
bd9ef3c60669d71543b3506d4959c1fe4be409dc 15-Dec-2016 John Shao <johnshao@google.com> Standardize and replace assets with vectors

Standarize naming of vector drawables and replace png
assets with vector drawables.

Test: build and run GoogleContactsTests
manual side by side sanity check with previous version

Bug: 33251913
Change-Id: Iafea5c1bba738c57437888da999fc2909d0765fd
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/SimImportService.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/detail/ContactDisplayUtils.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/interactions/CalendarInteraction.java
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/HeaderEntryContactListAdapter.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/model/account/BaseAccountType.java
ndroid/contacts/model/account/FallbackAccountType.java
ndroid/contacts/model/account/SimAccountType.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/vcard/NotificationImportExportListener.java
c4ffac22b0b9af37155793b870676cb406aa5fe5 16-Dec-2016 Gary Mai <garymai@google.com> Fix crash from using third party gallery apps am: 84b1654c1d
am: 0256e99743

Change-Id: I56d35561d5e1d302651d2a6ce0c2d83f5b342827
0256e997434b81d11f5b51b97c49bac75acd6d63 16-Dec-2016 Gary Mai <garymai@google.com> Fix crash from using third party gallery apps
am: 84b1654c1d

Change-Id: Id9cbb149aa86332ab60a4f8d06a51d62be169b19
2125ec937dfe0e9d15a386fcf8fc3a779eb0ffc7 16-Dec-2016 Marcus Hagerott <mhagerott@google.com> Make account filters for nav drawer update
am: b61e6543ef

Change-Id: I645eb4e8ad6998d74643d731a240bd0249abe6cb
db32ca9d6adc79cfab13bc8a9915f7f08d642f3a 16-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace AccountTypeManager usages in PeopleActivity
am: 396aab7267

Change-Id: Ic8b85d9214daa151c894fd11edebd4599992eeb1
458f11d63662b5e34f8909891410284be9d2edb4 16-Dec-2016 Marcus Hagerott <mhagerott@google.com> Include device local accounts in AccountTypeManager
am: c2093f312f

Change-Id: Iec8a70e63f7bbbb806d1a2d07aac1eaeea08b7ec
88c8b4f8f3c95762c05a65e2fad655490d6f9c02 16-Dec-2016 Marcus Hagerott <mhagerott@google.com> Load accounts in background for SIM import
am: e7a71cbbe8

Change-Id: I92e44e24acfdc785e5fc72423ab053349ee45290
32ce15dfdfdf1084c9cc63a17e7a3fe60234b0f3 16-Dec-2016 Marcus Hagerott <mhagerott@google.com> Query for accounts on-demand in AccountTypeManager
am: 04be88c2be

Change-Id: Ic029547ec6f5da26157ecbd0015bdd60c62186a0
cdb539b3abfcc1447be337ef3741e7501510cf14 16-Dec-2016 Marcus Hagerott <mhagerott@google.com> Merge changes Ib4c2a049,I1ec162e0,Iaf0b73b9,Ie6545785,I9ab87cde into ub-contactsdialer-i-dev

* changes:
Make account filters for nav drawer update
Replace AccountTypeManager usages in PeopleActivity
Include device local accounts in AccountTypeManager
Load accounts in background for SIM import
Query for accounts on-demand in AccountTypeManager
84b1654c1dd798e018b988cf1d6be28e0b21f4bd 16-Dec-2016 Gary Mai <garymai@google.com> Fix crash from using third party gallery apps

Some third party apps return unexpected URI's when photos are
cropped. An example is the Piktures app.
Instead of trusting their URI returned in the intent, copy the
photo from theirs into one which was generated by us and use that.

Test: Verified saving a contact with a picture that was cropped
from the Piktures app doesn't crash.

Bug: 33617676
Change-Id: I33e8922e5d89fabfcb90009d32b82a8a3f26c262
ndroid/contacts/detail/PhotoSelectionHandler.java
b61e6543ef277443a44e576adc8d0b753b308c9e 12-Dec-2016 Marcus Hagerott <mhagerott@google.com> Make account filters for nav drawer update

Use new methods in AccountTypeManager so that the ContactListFilters
are reloaded when accounts are added and removed.

Test: manually verify that list of accounts in nav drawer updates
when an account is added or removed

Bug 33627801
Change-Id: Ib4c2a049c27602c3c52b471e686eca6fdbf92a39
ndroid/contacts/util/AccountFilterUtil.java
ndroid/contacts/util/DeviceLocalAccountTypeFactory.java
396aab726710c557188ace4e961064a65900524a 12-Dec-2016 Marcus Hagerott <mhagerott@google.com> Replace AccountTypeManager usages in PeopleActivity

Changed usages of getAccounts to other methods that are safe to call
synchronously from UI thread (getAccounts may require DB query and
parsing).

Test manually verify that sync loading spinner disappears after
doing pull-to-refresh

Bug 33627801
Change-Id: I1ec162e0fd5214d36e96d1746ee26150caecab25
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/util/SyncUtil.java
c2093f312f71e730e1cc4daaa305782fda394215 12-Dec-2016 Marcus Hagerott <mhagerott@google.com> Include device local accounts in AccountTypeManager

Test manually verify that device account shows up in nav drawer
when no Google account is available

Bug 33627801
Change-Id: Iaf0b73b9ec77f02b825f34eb980ab1a5ca14383b
ndroid/contacts/editor/AccountHeaderPresenter.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/Cp2DeviceLocalAccountLocator.java
ndroid/contacts/model/DeviceLocalAccountLocator.java
ndroid/contacts/model/account/AccountTypeProvider.java
ndroid/contacts/util/AccountsListAdapter.java
e7a71cbbe8929a9d8a7ca0a3b5668646d49a611a 10-Dec-2016 Marcus Hagerott <mhagerott@google.com> Load accounts in background for SIM import

Test: manually verify SIM import screen displays accounts and preserve
checked state after rotation

Bug 33627801
Change-Id: Ie6545785db95febacff8c4fab2734ff7cdbb351c
ndroid/contacts/SimImportFragment.java
ndroid/contacts/editor/AccountHeaderPresenter.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/util/concurrent/ListenableFutureLoader.java
04be88c2bec8d0a0cc9e1f4f0af3b3a2ff8ac4e7 07-Dec-2016 Marcus Hagerott <mhagerott@google.com> Query for accounts on-demand in AccountTypeManager

This ensures that the list of accounts will be up-to-date.

Test: ran unit tests

Bug 33627801
Change-Id: I9ab87cde44dd6ec642db0a84781439898b18b86a
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/AccountComparator.java
ndroid/contacts/model/account/AccountTypeProvider.java
ndroid/contacts/util/concurrent/ListenableFutureLoader.java
4fe30c66c8bde1314a6e372a1456d19ac9951fea 09-Dec-2016 Gary Mai <garymai@google.com> [DO NOT MERGE] Fix silentfeedback error

If no raw contacts were loaded return null

Bug: 33617336
Change-Id: I896ed19a28e893f8184a9c1c6dd796dc15d6d225
(cherry picked from commit cea6f3d1448e3a2832dad57339917ce878594b24)
ndroid/contacts/editor/PickRawContactLoader.java
4b244eeb5bd796b975d17af9d923615d8955d99b 15-Dec-2016 Gary Mai <garymai@google.com> Add handler back to create new contact button
am: ac459a225a

Change-Id: I2a189ffbe26f0d9c2c0d6c48ee9434cfe7f61ddb
ac459a225aa8c4fb1b6442a827f26b963b98f96e 15-Dec-2016 Gary Mai <garymai@google.com> Add handler back to create new contact button

It was accidently deleted in a clean up CL.
Also remove the override for configureAdapter since
setEmptyListEnabled is default true in the base class.

Test:
Tapped INSERT_OR_EDIT intent from the test app and verified
tapping create new contact loaded up the editor.

Bug: 33640720
Change-Id: Ic64369e5a78c138d0eefbce0f17b107879c992b0
ndroid/contacts/list/ContactPickerFragment.java
bc846400189aed8eaa5c70f7096f8a8c7ebc9cbd 14-Dec-2016 James Laskey <laskey@google.com> Adds experiment flags for assistant timeouts.
am: cf3dbe11e7

Change-Id: I80d97364926e8c5f39aceac6bafbe94f4c28f0ce
451d2828bd797dae3f412febb7411409659d8f38 14-Dec-2016 Jim Laskey <laskey@google.com> Merge "Adds experiment flags for assistant timeouts." into ub-contactsdialer-i-dev
de7760531cb9c567635c239888c37ed65cade0a4 14-Dec-2016 Marcus Hagerott <mhagerott@google.com> Remove support for invitable account types
am: 881ffc06e7

Change-Id: Ib60962848fb28e03851eb2c2a6c8b69ba0b05245
acebc821d7dcdcc55e990aad35e34c50329a21ef 14-Dec-2016 Marcus Hagerott <mhagerott@google.com> Remove some methods from AccountTypeManager
am: f0e140aec2

Change-Id: I343aa40944f5cbbfacaa45f4a512d129152979c8
881ffc06e71730db2e6f8e306333241d8ca64bf8 09-Dec-2016 Marcus Hagerott <mhagerott@google.com> Remove support for invitable account types

This is no longer being used and reduces the complexity in
AccountTypeManager significantly.

Test: ran the unit tests
Change-Id: I03bbd1a2cd232316d2787d64373f65ad3308bd9d
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/Contact.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
f0e140aec2f5832a517243084bea626011be9c39 06-Dec-2016 Marcus Hagerott <mhagerott@google.com> Remove some methods from AccountTypeManager

This will make it simpler to do additional refactoring.
Test: built GoogleContacts app

Bug: 32028702

Change-Id: I51939d1b841eaf250cb75e198ea561b944deff1f
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/AccountWithDataSet.java
ndroid/contacts/util/AccountFilterUtil.java
1134c028ce833c0947699cc0d7d1b4bd2e04d9e3 14-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add executor utility classes
am: a89f523ed4

Change-Id: I5cb02a088c1f5e9b771f33cd2eb2a96f42a67b2f
cf3dbe11e72ad6a80bf12ec774591d0c3b72f7c4 14-Dec-2016 James Laskey <laskey@google.com> Adds experiment flags for assistant timeouts.

Bug: 33275513
Change-Id: I53ce22af04d6edf8864a3194309f0272fc903537
ndroid/contacts/Experiments.java
a89f523ed4296f2e46dc25f71e5b9873922abc42 07-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add executor utility classes

This was moved from GoogleContacts

Test: built the GoogleContacts app
Change-Id: I4e99ef395427ad61f7ac521ea349e778062c28a2
ndroid/contacts/util/concurrent/ContactsExecutors.java
ndroid/contacts/util/concurrent/FuturesUtil.java
21fac7715442e59c62c613fa5264a24d9136b850 13-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add API level check for call to getPendingJob in logging am: b2504c7327
am: 850ae315b8

Change-Id: I4b0d5f731417c97596438ccd7318057ff16df672
0578541f1e3916ae3fc52a83842f42f07894bb36 13-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when "Add contact" shortcut is pinned am: 5d1ec1da58
am: 8ffe4ab3be

Change-Id: I48da7dff858b481aa5b7fad1631103e527855d43
850ae315b8797844c12920e90a533a780d7a5df5 13-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add API level check for call to getPendingJob in logging
am: b2504c7327

Change-Id: I813a4e09ff9c011deb663c91355c8436dfcee76b
8ffe4ab3bef4a2e46d2137c114cfba1335e1b5f5 13-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when "Add contact" shortcut is pinned
am: 5d1ec1da58

Change-Id: I6b13180ef7409a774c20f433c92cea4ac309e26b
b2504c7327f3c43e6bc532a834766df9c4a3fdb0 13-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add API level check for call to getPendingJob in logging

Bug 33374117

Change-Id: I64bf55bbc5267cb3a487ae97cf360c4967294d98
ndroid/contacts/DynamicShortcuts.java
5d1ec1da58cbfe1403c2f24380138b0e32b0a357 13-Dec-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when "Add contact" shortcut is pinned

Test: manually verified that app doesn't crash after pinning the "Add
contact" shortcut and then updating strequent shortcuts

Bug 33546024

Change-Id: I91e8070470ed6f7a1518d3c70264977b15230ec4
ndroid/contacts/DynamicShortcuts.java
29f900ae0632ea5476b8cf6b284081d66371299e 12-Dec-2016 Walter Jang <wjang@google.com> Merge "DO NOT MERGE Add back Yenta experiment (1/2)" into ub-contactsdialer-i-dev
f61f0ee8c71c7bfee6d81ecf362b3df362ba96f1 29-Nov-2016 Walter Jang <wjang@google.com> DO NOT MERGE Add back Yenta experiment (1/2)

This reverts commit b7257d86f2d99ad2db6fee9f4d665db07e27f9b5.

Test: enable yenta experiement and do a few searches
Bug: 33387897
Change-Id: I34bec0c7820e8d32c53bb8ac42b24787e4dc03b5
ndroid/contacts/Experiments.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/FavoritesAndContactsLoader.java
0a11c9ded027d52018f30e67553a86660d57410f 09-Dec-2016 Gary Mai <garymai@google.com> Fix silentfeedback error
am: cea6f3d144

Change-Id: I5537ff1b369d19870b31e867b6c597fd62abd11f
cea6f3d1448e3a2832dad57339917ce878594b24 09-Dec-2016 Gary Mai <garymai@google.com> Fix silentfeedback error

If no raw contacts were loaded return null

Bug: 33451068
Change-Id: I896ed19a28e893f8184a9c1c6dd796dc15d6d225
ndroid/contacts/editor/PickRawContactLoader.java
f9e1a3d08fbec1842b04ce4c79ecf7924fda3868 09-Dec-2016 Walter Jang <wjang@google.com> Some string changes from lqa testing
am: f5faebf8c1

Change-Id: Idd9423bc30488a1735385a17923a8e56bba3da33
f5faebf8c19dfac33b4a04811a3383842995e3f7 08-Dec-2016 Walter Jang <wjang@google.com> Some string changes from lqa testing

* Send new... -> Send label
* Define customized view -> Customize view
* Choose contact shortcut ->
Choose a number to call ->
Choose a number to message -> Choose contact

Test: unit tests/visual inspection of new strings
Bug: 33430132
Bug: 33248117
Bug: 33209156
Change-Id: I05e4f74d9c5f01336b641571445b6e2b5293359d
ndroid/contacts/activities/ContactSelectionActivity.java
c52f81d2f4bfb63d6c463b1a91eaa907fe54f3c4 07-Dec-2016 John Shao <johnshao@google.com> Remove unnecessary variants causing apk bloat
am: 1e24ae80f2

Change-Id: Ic22740fb42d1f002e21db12f56772ce5ae0dd9f9
1e24ae80f2ac1c661a90ee3a722ed521cbe9643f 07-Dec-2016 John Shao <johnshao@google.com> Remove unnecessary variants causing apk bloat

We will see huge savings when string translations are removed
for values-sw600dp because there was special casing for tablets
in a error message that was too technical for normal users.

Also removes more holo assets that are now legacy.

Test: built Contacts and GoogleContacts
ran Tests

Bug: 33251913
Change-Id: Id9d3172fa4765f566dcc9832dcb6418164503aee
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/list/ContactPickerFragment.java
aa770ec47a3bc67ff8c56778fb337ecb0c97346e 07-Dec-2016 Gary Mai <garymai@google.com> Collapse common package (2/2)
am: 0a49afa2ad

Change-Id: I1ce71281de67b741035a9db47c3c3d61c6658736
783d060d313096f72469c77c99f4a7830fc7b54b 07-Dec-2016 Gary Mai <garymai@google.com> Merge "Collapse common package (2/2)" into ub-contactsdialer-i-dev
1ad0eb472be958ba0df7d410930ad25f30ba496d 06-Dec-2016 Marcus Hagerott <mhagerott@google.com> Change SIM import error notification
am: 4dc1224d47

Change-Id: I8a77e028fa23183c9174da13bb4509b95620e26b
e33a41c6c0c29479d848f04092cb16b5d8cd7e9b 06-Dec-2016 James Laskey <laskey@google.com> Add calls to Backup Manager in Preferences Files.
am: bc0137f974

Change-Id: Iac094ec65bebdb6a915fa2f00aa207e197260fe6
17e7d8760170b39709b1c40c241d7b6c9c1d86d4 06-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Change SIM import error notification" into ub-contactsdialer-i-dev
0b0cee910c764897a9707726079d112236a1cc62 06-Dec-2016 Jim Laskey <laskey@google.com> Merge "Add calls to Backup Manager in Preferences Files." into ub-contactsdialer-i-dev
4dc1224d470a11aa47de43654fd53292df5833d6 06-Dec-2016 Marcus Hagerott <mhagerott@google.com> Change SIM import error notification

Shortened the title string for easier localization and changed the
notification icon.

Test: manually verified notification is displayed as expected by
modifying code to exercise error case

Bug 32781237
Bug 33229518

Change-Id: I7ba2f0e1dbfbabb5bd59904bb9bf5f91174b957f
ndroid/contacts/SimImportService.java
0a49afa2ad697307cc04ef4cb86570574fa720f2 06-Dec-2016 Gary Mai <garymai@google.com> Collapse common package (2/2)

Ran optimize imports on the project as well to re-order everything
which would have changed because of removing common.

Test: Built GoogleContacts, GoogleContactsTests, Contacts,
ContactsTests and ran unit tests.

Bug: 33252370
Change-Id: I881f0ba8b8fef002b6eeefa9a16b34f15b2fd2a9
ndroid/contacts/AppCompatContactsActivity.java
ndroid/contacts/CallUtil.java
ndroid/contacts/ClipboardUtils.java
ndroid/contacts/Collapser.java
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactPresenceIconUtil.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactStatusUtil.java
ndroid/contacts/ContactTileLoaderFactory.java
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/Experiments.java
ndroid/contacts/GeoUtil.java
ndroid/contacts/MoreContactUtils.java
ndroid/contacts/NonPhoneActivity.java
ndroid/contacts/SimImportFragment.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/AppCompatTransactionSafeActivity.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/LicenseActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/RequestDesiredPermissionsActivity.java
ndroid/contacts/activities/RequestImportVCardPermissionsActivity.java
ndroid/contacts/activities/RequestPermissionsActivity.java
ndroid/contacts/activities/RequestPermissionsActivityBase.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/activities/TransactionSafeActivity.java
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/ClipboardUtils.java
ndroid/contacts/common/Collapser.java
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/ContactPresenceIconUtil.java
ndroid/contacts/common/ContactStatusUtil.java
ndroid/contacts/common/ContactTileLoaderFactory.java
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/GeoUtil.java
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/activity/AppCompatTransactionSafeActivity.java
ndroid/contacts/common/activity/LicenseActivity.java
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
ndroid/contacts/common/activity/TransactionSafeActivity.java
ndroid/contacts/compat/CallableCompat.java
ndroid/contacts/compat/ContactsCompat.java
ndroid/contacts/compat/DirectoryCompat.java
ndroid/contacts/compat/PhoneCompat.java
ndroid/contacts/compat/PhoneNumberUtilsCompat.java
ndroid/contacts/database/SimContactDao.java
ndroid/contacts/database/SimContactDaoImpl.java
ndroid/contacts/datepicker/DatePickerDialog.java
ndroid/contacts/detail/ContactDisplayUtils.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/dialog/CallSubjectDialog.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/CancelEditDialogFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/JoinSuggestedContactDialogFragment.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/PhotoSourceDialogFragment.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/RawContactDeltaComparator.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/interactions/CalendarInteraction.java
ndroid/contacts/interactions/CalendarInteractionUtils.java
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/CallLogInteractionsLoader.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactInteraction.java
ndroid/contacts/interactions/ContactInteractionUtil.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/interactions/ImportDialogFragment.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTilePhoneFrequentView.java
ndroid/contacts/list/ContactTileStarredView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/HeaderEntryContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEmailAddressesListAdapter.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/ProviderStatusWatcher.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/Contact.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/model/DeviceLocalAccountLocator.java
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/model/SimContact.java
ndroid/contacts/model/account/AccountType.java
ndroid/contacts/model/account/AccountWithDataSet.java
ndroid/contacts/model/account/BaseAccountType.java
ndroid/contacts/model/account/SamsungAccountType.java
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/DataKind.java
ndroid/contacts/preference/AboutPreferenceFragment.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/DirectoryContactUtil.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactBroadcastReceiver.java
ndroid/contacts/quickcontact/ResolveCache.java
ndroid/contacts/quickcontact/WebAddress.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/util/BitmapUtil.java
ndroid/contacts/util/ContactDisplayUtils.java
ndroid/contacts/util/ContactPhotoUtils.java
ndroid/contacts/util/DeviceLocalAccountTypeFactory.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/util/ImplicitIntentsUtil.java
ndroid/contacts/util/MaterialColorMapUtils.java
ndroid/contacts/util/PhoneCapabilityTester.java
ndroid/contacts/util/PhoneNumberFormatter.java
ndroid/contacts/util/PhoneNumberHelper.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
ndroid/contacts/widget/FloatingActionButtonController.java
ndroid/contacts/widget/MultiShrinkScroller.java
ndroid/contacts/widget/QuickContactImageView.java
4b634efc9456d5abe16ba592fde331aba03ffdd6 06-Dec-2016 Arthur Wang <wuwang@google.com> Collapse res-aosp and res-icons into res folder for AOSP Contacts (1/2)
am: 3f6a2444e0

Change-Id: Ie14844652432185ee21cbb5a2f3f5d335b584345
bc0137f974120acd2fe7ee03ec2da01db6f01cde 06-Dec-2016 James Laskey <laskey@google.com> Add calls to Backup Manager in Preferences Files.

Backs up display order, sort order, welcome card dismissal, and
hamburger promo preferences. Other preferences are either not impacted
by user actions or store data that may not be consistent across app
versions/devices.

Bug: 32935276
Change-Id: I6e4136978640068b3a681d3507c5f9f71aedc8f2
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/util/SharedPreferenceUtil.java
3f6a2444e0134b7380cdb2e13abf4bf1163336d0 05-Dec-2016 Arthur Wang <wuwang@google.com> Collapse res-aosp and res-icons into res folder for AOSP Contacts (1/2)

bug:31022536
Change-Id: I0434710d92027e59ccd97e27ebd09f1668346684
ndroid/contacts/common/activity/LicenseActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/dialog/CallSubjectDialog.java
ndroid/contacts/dialog/ClearFrequentsDialog.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/group/GroupMembersAdapter.java
ndroid/contacts/interactions/ExportDialogFragment.java
ndroid/contacts/interactions/ImportDialogFragment.java
ndroid/contacts/lettertiles/LetterTileDrawable.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DirectoryListLoader.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/model/account/AccountType.java
ndroid/contacts/model/account/BaseAccountType.java
ndroid/contacts/model/account/ExchangeAccountType.java
ndroid/contacts/model/account/ExternalAccountType.java
ndroid/contacts/model/account/FallbackAccountType.java
ndroid/contacts/model/account/GoogleAccountType.java
ndroid/contacts/model/account/SamsungAccountType.java
ndroid/contacts/model/account/SimAccountType.java
ndroid/contacts/preference/AboutPreferenceFragment.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/preference/DisplayOrderPreference.java
ndroid/contacts/preference/SortOrderPreference.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/util/ContactDisplayUtils.java
ndroid/contacts/util/DataStatus.java
ndroid/contacts/util/LocalizedNameResolver.java
ndroid/contacts/util/MaterialColorMapUtils.java
ndroid/contacts/util/ViewUtil.java
ndroid/contacts/vcard/CancelActivity.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/NotificationImportExportListener.java
ndroid/contacts/vcard/SelectAccountActivity.java
ndroid/contacts/vcard/ShareVCardActivity.java
ndroid/contacts/vcard/VCardService.java
ndroid/contacts/widget/FloatingActionButtonController.java
ndroid/contacts/widget/ProportionalLayout.java
ndroid/contacts/widget/SelectPhoneAccountDialogFragment.java
ec4f4d62bcc5fe5e2248fa490392a33dc4cddd75 06-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add UI tests for SIM import activity
am: a7d3c002d2

Change-Id: I3b105d66603bb927c97da678f7e8dc23db541505
a7d3c002d28e994c39227993522bf3fd5e5f3c7f 06-Dec-2016 Marcus Hagerott <mhagerott@google.com> Add UI tests for SIM import activity

Test: ran unit tests

Change-Id: I111e4a1c18333d83bf43465bfa1fa645fd5f3abe
ndroid/contacts/database/SimContactDao.java
d15bb734b7281ddcecb6d1894502e62ed006b369 06-Dec-2016 Gary Mai <garymai@google.com> resolve merge conflicts of 69c182a to master

Change-Id: Idcb4a6e7909db91abe2e25eede1cb0f0b465dcd8
69c182afb0e6d82a341a28b4317aa703af768906 05-Dec-2016 Gary Mai <garymai@google.com> Collapse common packages (1/?)

Move the majority of packages out of common. When trying to move
common.activity to activities every file switched from a rename to
separated deletes and adds. Will move tests and the rest of common
in a separate CL.

Test: Built GoogleContacts, Contacts, GoogleContactsTests,
ContactsTests.

Bug: 33252370
Change-Id: I9ffb20038dee255ef5f83002b7870265771b08c5
ndroid/contacts/AppCompatContactsActivity.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/NonPhoneActivity.java
ndroid/contacts/SimImportFragment.java
ndroid/contacts/SimImportService.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/ViewNotificationService.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/activities/SimImportActivity.java
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/GeoUtil.java
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
ndroid/contacts/common/compat/CallSdkCompat.java
ndroid/contacts/common/compat/CallableCompat.java
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/compat/ContactsCompat.java
ndroid/contacts/common/compat/DirectoryCompat.java
ndroid/contacts/common/compat/DirectorySdkCompat.java
ndroid/contacts/common/compat/EventCompat.java
ndroid/contacts/common/compat/MultiWindowCompat.java
ndroid/contacts/common/compat/PhoneAccountCompat.java
ndroid/contacts/common/compat/PhoneAccountSdkCompat.java
ndroid/contacts/common/compat/PhoneCompat.java
ndroid/contacts/common/compat/PhoneLookupSdkCompat.java
ndroid/contacts/common/compat/PhoneNumberFormattingTextWatcherCompat.java
ndroid/contacts/common/compat/PhoneNumberUtilsCompat.java
ndroid/contacts/common/compat/ProviderStatusCompat.java
ndroid/contacts/common/compat/SdkVersionOverride.java
ndroid/contacts/common/compat/TelecomManagerUtil.java
ndroid/contacts/common/compat/TelephonyManagerCompat.java
ndroid/contacts/common/compat/TelephonyManagerSdkCompat.java
ndroid/contacts/common/compat/TelephonyThreadsCompat.java
ndroid/contacts/common/compat/telecom/TelecomManagerCompat.java
ndroid/contacts/common/database/ContactUpdateUtils.java
ndroid/contacts/common/database/EmptyCursor.java
ndroid/contacts/common/database/NoNullCursorAsyncQueryHandler.java
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/database/SimContactDaoImpl.java
ndroid/contacts/common/dialog/CallSubjectDialog.java
ndroid/contacts/common/dialog/ClearFrequentsDialog.java
ndroid/contacts/common/dialog/IndeterminateProgressDialog.java
ndroid/contacts/common/extensions/ExtendedPhoneDirectoriesManager.java
ndroid/contacts/common/extensions/ExtensionsFactory.java
ndroid/contacts/common/format/FormatUtils.java
ndroid/contacts/common/format/TextHighlighter.java
ndroid/contacts/common/interactions/ExportDialogFragment.java
ndroid/contacts/common/interactions/ImportDialogFragment.java
ndroid/contacts/common/interactions/TouchPointManager.java
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/AutoScrollListView.java
ndroid/contacts/common/list/ContactEntry.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/list/ContactListFilterView.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/ContactTileFrequentView.java
ndroid/contacts/common/list/ContactTilePhoneFrequentView.java
ndroid/contacts/common/list/ContactTileStarredView.java
ndroid/contacts/common/list/ContactTileView.java
ndroid/contacts/common/list/ContactsSectionIndexer.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/DirectoryListLoader.java
ndroid/contacts/common/list/DirectoryPartition.java
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
ndroid/contacts/common/list/IndexerListAdapter.java
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
ndroid/contacts/common/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
ndroid/contacts/common/list/PinnedHeaderListAdapter.java
ndroid/contacts/common/list/PinnedHeaderListView.java
ndroid/contacts/common/list/ProviderStatusWatcher.java
ndroid/contacts/common/list/ShortcutIntentBuilder.java
ndroid/contacts/common/location/CountryDetector.java
ndroid/contacts/common/logging/EditorEvent.java
ndroid/contacts/common/logging/ListEvent.java
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/logging/QuickContactEvent.java
ndroid/contacts/common/logging/ScreenEvent.java
ndroid/contacts/common/logging/SearchState.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/BuilderWrapper.java
ndroid/contacts/common/model/CPOWrapper.java
ndroid/contacts/common/model/Contact.java
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/common/model/Cp2DeviceLocalAccountLocator.java
ndroid/contacts/common/model/DeviceLocalAccountLocator.java
ndroid/contacts/common/model/RawContact.java
ndroid/contacts/common/model/RawContactDelta.java
ndroid/contacts/common/model/RawContactDeltaList.java
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/common/model/SimCard.java
ndroid/contacts/common/model/SimContact.java
ndroid/contacts/common/model/ValuesDelta.java
ndroid/contacts/common/model/account/AccountDisplayInfo.java
ndroid/contacts/common/model/account/AccountDisplayInfoFactory.java
ndroid/contacts/common/model/account/AccountType.java
ndroid/contacts/common/model/account/AccountTypeWithDataSet.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/DeviceLocalAccountType.java
ndroid/contacts/common/model/account/ExchangeAccountType.java
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/model/account/GoogleAccountType.java
ndroid/contacts/common/model/account/SamsungAccountType.java
ndroid/contacts/common/model/account/SimAccountType.java
ndroid/contacts/common/model/dataitem/CustomDataItem.java
ndroid/contacts/common/model/dataitem/DataItem.java
ndroid/contacts/common/model/dataitem/DataKind.java
ndroid/contacts/common/model/dataitem/EmailDataItem.java
ndroid/contacts/common/model/dataitem/EventDataItem.java
ndroid/contacts/common/model/dataitem/GroupMembershipDataItem.java
ndroid/contacts/common/model/dataitem/IdentityDataItem.java
ndroid/contacts/common/model/dataitem/ImDataItem.java
ndroid/contacts/common/model/dataitem/NicknameDataItem.java
ndroid/contacts/common/model/dataitem/NoteDataItem.java
ndroid/contacts/common/model/dataitem/OrganizationDataItem.java
ndroid/contacts/common/model/dataitem/PhoneDataItem.java
ndroid/contacts/common/model/dataitem/PhotoDataItem.java
ndroid/contacts/common/model/dataitem/RelationDataItem.java
ndroid/contacts/common/model/dataitem/SipAddressDataItem.java
ndroid/contacts/common/model/dataitem/StructuredNameDataItem.java
ndroid/contacts/common/model/dataitem/StructuredPostalDataItem.java
ndroid/contacts/common/model/dataitem/WebsiteDataItem.java
ndroid/contacts/common/preference/AboutPreferenceFragment.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DefaultAccountPreference.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/preference/DisplayOrderPreference.java
ndroid/contacts/common/preference/SortOrderPreference.java
ndroid/contacts/common/testing/InjectedServices.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/util/AccountsListAdapter.java
ndroid/contacts/common/util/BitmapUtil.java
ndroid/contacts/common/util/CommonDateUtils.java
ndroid/contacts/common/util/Constants.java
ndroid/contacts/common/util/ContactDisplayUtils.java
ndroid/contacts/common/util/ContactLoaderUtils.java
ndroid/contacts/common/util/DataStatus.java
ndroid/contacts/common/util/DateUtils.java
ndroid/contacts/common/util/DeviceLocalAccountTypeFactory.java
ndroid/contacts/common/util/EmptyService.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
ndroid/contacts/common/util/LocalizedNameResolver.java
ndroid/contacts/common/util/MaterialColorMapUtils.java
ndroid/contacts/common/util/NameConverter.java
ndroid/contacts/common/util/PermissionsUtil.java
ndroid/contacts/common/util/PhoneNumberFormatter.java
ndroid/contacts/common/util/PhoneNumberHelper.java
ndroid/contacts/common/util/SchedulingUtils.java
ndroid/contacts/common/util/SearchUtil.java
ndroid/contacts/common/util/StopWatch.java
ndroid/contacts/common/util/TelephonyManagerUtils.java
ndroid/contacts/common/util/TrafficStatsTags.java
ndroid/contacts/common/util/UriUtils.java
ndroid/contacts/common/util/ViewUtil.java
ndroid/contacts/common/util/WeakAsyncTask.java
ndroid/contacts/common/vcard/CancelActivity.java
ndroid/contacts/common/vcard/CancelRequest.java
ndroid/contacts/common/vcard/ExportProcessor.java
ndroid/contacts/common/vcard/ExportRequest.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/ImportProcessor.java
ndroid/contacts/common/vcard/ImportRequest.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/ImportVCardDialogFragment.java
ndroid/contacts/common/vcard/NfcImportVCardActivity.java
ndroid/contacts/common/vcard/NotificationImportExportListener.java
ndroid/contacts/common/vcard/ProcessorBase.java
ndroid/contacts/common/vcard/SelectAccountActivity.java
ndroid/contacts/common/vcard/ShareVCardActivity.java
ndroid/contacts/common/vcard/VCardCommonArguments.java
ndroid/contacts/common/vcard/VCardImportExportListener.java
ndroid/contacts/common/vcard/VCardService.java
ndroid/contacts/common/widget/ActivityTouchLinearLayout.java
ndroid/contacts/common/widget/FloatingActionButtonController.java
ndroid/contacts/common/widget/LayoutSuppressingImageView.java
ndroid/contacts/common/widget/LayoutSuppressingQuickContactBadge.java
ndroid/contacts/common/widget/ProportionalLayout.java
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
ndroid/contacts/compat/CallSdkCompat.java
ndroid/contacts/compat/CallableCompat.java
ndroid/contacts/compat/CompatUtils.java
ndroid/contacts/compat/ContactsCompat.java
ndroid/contacts/compat/DirectoryCompat.java
ndroid/contacts/compat/DirectorySdkCompat.java
ndroid/contacts/compat/EdgeEffectCompat.java
ndroid/contacts/compat/EventCompat.java
ndroid/contacts/compat/MultiWindowCompat.java
ndroid/contacts/compat/PhoneAccountCompat.java
ndroid/contacts/compat/PhoneAccountSdkCompat.java
ndroid/contacts/compat/PhoneCompat.java
ndroid/contacts/compat/PhoneLookupSdkCompat.java
ndroid/contacts/compat/PhoneNumberFormattingTextWatcherCompat.java
ndroid/contacts/compat/PhoneNumberUtilsCompat.java
ndroid/contacts/compat/PinnedPositionsCompat.java
ndroid/contacts/compat/ProviderStatusCompat.java
ndroid/contacts/compat/SdkVersionOverride.java
ndroid/contacts/compat/TelecomManagerUtil.java
ndroid/contacts/compat/TelephonyManagerCompat.java
ndroid/contacts/compat/TelephonyManagerSdkCompat.java
ndroid/contacts/compat/TelephonyThreadsCompat.java
ndroid/contacts/compat/telecom/TelecomManagerCompat.java
ndroid/contacts/database/ContactUpdateUtils.java
ndroid/contacts/database/EmptyCursor.java
ndroid/contacts/database/NoNullCursorAsyncQueryHandler.java
ndroid/contacts/database/SimContactDao.java
ndroid/contacts/database/SimContactDaoImpl.java
ndroid/contacts/datepicker/DatePickerDialog.java
ndroid/contacts/detail/ContactDisplayUtils.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/dialog/CallSubjectDialog.java
ndroid/contacts/dialog/ClearFrequentsDialog.java
ndroid/contacts/dialog/IndeterminateProgressDialog.java
ndroid/contacts/editor/AccountHeaderPresenter.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionData.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/PickRawContactLoader.java
ndroid/contacts/editor/RawContactDeltaComparator.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/extensions/ExtendedPhoneDirectoriesManager.java
ndroid/contacts/extensions/ExtensionsFactory.java
ndroid/contacts/format/FormatUtils.java
ndroid/contacts/format/TextHighlighter.java
ndroid/contacts/group/GroupMembersAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupMetaData.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/interactions/AccountFiltersFragment.java
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/CallLogInteractionsLoader.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/interactions/ExportDialogFragment.java
ndroid/contacts/interactions/ImportDialogFragment.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/interactions/SmsInteractionsLoader.java
ndroid/contacts/interactions/TouchPointManager.java
ndroid/contacts/lettertiles/LetterTileDrawable.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/AutoScrollListView.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntry.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileFrequentView.java
ndroid/contacts/list/ContactTilePhoneFrequentView.java
ndroid/contacts/list/ContactTileStarredView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/ContactsSectionIndexer.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/DirectoryListLoader.java
ndroid/contacts/list/DirectoryPartition.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/EmailAddressPickerFragment.java
ndroid/contacts/list/EnableGlobalSyncDialogFragment.java
ndroid/contacts/list/FavoritesAndContactsLoader.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/HeaderEntryContactListAdapter.java
ndroid/contacts/list/IndexerListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberPickerFragment.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEmailAddressesListAdapter.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
ndroid/contacts/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PinnedHeaderListAdapter.java
ndroid/contacts/list/PinnedHeaderListView.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressPickerFragment.java
ndroid/contacts/list/ProviderStatusWatcher.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/location/CountryDetector.java
ndroid/contacts/logging/EditorEvent.java
ndroid/contacts/logging/ListEvent.java
ndroid/contacts/logging/Logger.java
ndroid/contacts/logging/QuickContactEvent.java
ndroid/contacts/logging/ScreenEvent.java
ndroid/contacts/logging/SearchState.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/BuilderWrapper.java
ndroid/contacts/model/CPOWrapper.java
ndroid/contacts/model/Contact.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/model/Cp2DeviceLocalAccountLocator.java
ndroid/contacts/model/DeviceLocalAccountLocator.java
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/RawContactDeltaList.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/model/SimCard.java
ndroid/contacts/model/SimContact.java
ndroid/contacts/model/ValuesDelta.java
ndroid/contacts/model/account/AccountDisplayInfo.java
ndroid/contacts/model/account/AccountDisplayInfoFactory.java
ndroid/contacts/model/account/AccountType.java
ndroid/contacts/model/account/AccountTypeWithDataSet.java
ndroid/contacts/model/account/AccountWithDataSet.java
ndroid/contacts/model/account/BaseAccountType.java
ndroid/contacts/model/account/DeviceLocalAccountType.java
ndroid/contacts/model/account/ExchangeAccountType.java
ndroid/contacts/model/account/ExternalAccountType.java
ndroid/contacts/model/account/FallbackAccountType.java
ndroid/contacts/model/account/GoogleAccountType.java
ndroid/contacts/model/account/SamsungAccountType.java
ndroid/contacts/model/account/SimAccountType.java
ndroid/contacts/model/dataitem/CustomDataItem.java
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/DataKind.java
ndroid/contacts/model/dataitem/EmailDataItem.java
ndroid/contacts/model/dataitem/EventDataItem.java
ndroid/contacts/model/dataitem/GroupMembershipDataItem.java
ndroid/contacts/model/dataitem/IdentityDataItem.java
ndroid/contacts/model/dataitem/ImDataItem.java
ndroid/contacts/model/dataitem/NicknameDataItem.java
ndroid/contacts/model/dataitem/NoteDataItem.java
ndroid/contacts/model/dataitem/OrganizationDataItem.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/model/dataitem/PhotoDataItem.java
ndroid/contacts/model/dataitem/RelationDataItem.java
ndroid/contacts/model/dataitem/SipAddressDataItem.java
ndroid/contacts/model/dataitem/StructuredNameDataItem.java
ndroid/contacts/model/dataitem/StructuredPostalDataItem.java
ndroid/contacts/model/dataitem/WebsiteDataItem.java
ndroid/contacts/preference/AboutPreferenceFragment.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/preference/DefaultAccountPreference.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/preference/DisplayOrderPreference.java
ndroid/contacts/preference/SortOrderPreference.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/DirectoryContactUtil.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactBroadcastReceiver.java
ndroid/contacts/testing/InjectedServices.java
ndroid/contacts/util/AccountFilterUtil.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/util/BitmapUtil.java
ndroid/contacts/util/CommonDateUtils.java
ndroid/contacts/util/Constants.java
ndroid/contacts/util/ContactDisplayUtils.java
ndroid/contacts/util/ContactLoaderUtils.java
ndroid/contacts/util/DataStatus.java
ndroid/contacts/util/DateUtils.java
ndroid/contacts/util/DeviceLocalAccountTypeFactory.java
ndroid/contacts/util/EmptyService.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/util/ImplicitIntentsUtil.java
ndroid/contacts/util/LocalizedNameResolver.java
ndroid/contacts/util/MaterialColorMapUtils.java
ndroid/contacts/util/NameConverter.java
ndroid/contacts/util/PermissionsUtil.java
ndroid/contacts/util/PhoneCapabilityTester.java
ndroid/contacts/util/PhoneNumberFormatter.java
ndroid/contacts/util/PhoneNumberHelper.java
ndroid/contacts/util/SchedulingUtils.java
ndroid/contacts/util/SearchUtil.java
ndroid/contacts/util/SharedPreferenceUtil.java
ndroid/contacts/util/StopWatch.java
ndroid/contacts/util/SyncUtil.java
ndroid/contacts/util/TelephonyManagerUtils.java
ndroid/contacts/util/TrafficStatsTags.java
ndroid/contacts/util/UriUtils.java
ndroid/contacts/util/ViewUtil.java
ndroid/contacts/util/WeakAsyncTask.java
ndroid/contacts/vcard/CancelActivity.java
ndroid/contacts/vcard/CancelRequest.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportRequest.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportRequest.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/ImportVCardDialogFragment.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/NotificationImportExportListener.java
ndroid/contacts/vcard/ProcessorBase.java
ndroid/contacts/vcard/SelectAccountActivity.java
ndroid/contacts/vcard/ShareVCardActivity.java
ndroid/contacts/vcard/VCardCommonArguments.java
ndroid/contacts/vcard/VCardImportExportListener.java
ndroid/contacts/vcard/VCardService.java
ndroid/contacts/widget/ActivityTouchLinearLayout.java
ndroid/contacts/widget/FloatingActionButtonController.java
ndroid/contacts/widget/LayoutSuppressingImageView.java
ndroid/contacts/widget/LayoutSuppressingQuickContactBadge.java
ndroid/contacts/widget/MultiShrinkScroller.java
ndroid/contacts/widget/ProportionalLayout.java
ndroid/contacts/widget/QuickContactImageView.java
ndroid/contacts/widget/SelectPhoneAccountDialogFragment.java
992616d59379775b7485e9f94331311653d62271 03-Dec-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of a75206b to master

Test: built Contacts app
Change-Id: Id40b4b4eba95bd7fc5ea3d024dede169bad1d460
0bea517ddd13cd6fa573a8d2663d6d1ebb019649 03-Dec-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topics 'sim-tests', 'import-notification' into ub-contactsdialer-i-dev

* changes:
Add additional tests of SIM contact importing
DO NOT MERGE Improve testability of SIM import code.
DO NOT MERGE Add notification for SIM import
a75206b1cba895ce629b9383e4fd0fef24049e7b 29-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add additional tests of SIM contact importing

Test: ran GoogleContacts unit tests. Also manually verified that SIM
import screen functionality is the same

Change-Id: I21bf392c0e4a12171f73f7f676cadf33183efb4f
ndroid/contacts/common/database/SimContactDaoImpl.java
ndroid/contacts/common/model/SimContact.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
bbe0a1f21cdf4f094ec03d467d0ec437a1e28e49 01-Dec-2016 Wenyi Wang <wenyiw@google.com> Check for ImageView before casting it am: 44702acd10
am: 17ef86d8ff

Change-Id: I5138c4159068964ba846e6442b8705a7e139cd52
44702acd1060687aa2837fb3d04ab7180571f628 01-Dec-2016 Wenyi Wang <wenyiw@google.com> Check for ImageView before casting it

Bug: 33273202

Test: manually verified the bug doesn't happen following steps to
repro in bug

Change-Id: I4a50ff22fbb9235ded8060157f3a7f5cda19f6f2
ndroid/contacts/activities/ActionBarAdapter.java
67b4ba835b3267ae9e91f8677a1fb7679d7111b8 30-Nov-2016 James Laskey <laskey@google.com> Toast with Action Accessibility Timeout am: 692c961d74
am: b1073737a1

Change-Id: I6f2bb5d620e684ce60a7fa0976ec93b8bb4421e2
692c961d740cddc08c27bdc1b84dbd6266edf50f 30-Nov-2016 James Laskey <laskey@google.com> Toast with Action Accessibility Timeout

Bug: 33208886
Test: Go into accessibility mode and check that timeout has long delay.
Change-Id: I3767049b05b26330df4a446e497a9fbeaff7b475
ndroid/contacts/activities/PeopleActivity.java
5262aec653fe124ae40e8888917202821fd3154a 30-Nov-2016 Wenyi Wang <wenyiw@google.com> Unregister broadcast receiver when QC is destroyed am: 1e5b77f73c
am: f6fa61fa68

Change-Id: I04449ccadb4fe96ed2cf55bb078b7c3b70d25f3b
f6fa61fa686e198aa3baebcbe27a0e9a8b08bc9f 30-Nov-2016 Wenyi Wang <wenyiw@google.com> Unregister broadcast receiver when QC is destroyed
am: 1e5b77f73c

Change-Id: I116589a26dadc8e5a5970513ac1679213b7fa7fb
ec95a33f9013deed28fb9bdf660570d082d733dc 30-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Unregister broadcast receiver when QC is destroyed" into ub-contactsdialer-h-dev
1e5b77f73c324e2e437400e2e1f73065ca6473a5 30-Nov-2016 Wenyi Wang <wenyiw@google.com> Unregister broadcast receiver when QC is destroyed

- There will be OutOfMemoryError w/o doing so.

Bug: 33203761

Test: manually verified it doesn't crash following steps to
repro in http://b/33203761#comment5

Change-Id: I02f8cd46cfef8681b234bbed5921fe62b4581acc
ndroid/contacts/quickcontact/QuickContactActivity.java
424093f4fc1a3225cc1a209668e2f95a7d7a9e6f 30-Nov-2016 Gary Mai <garymai@google.com> Remove linking options from the ME profile am: 59ebb1b9ff
am: c48394b162

Change-Id: I35c25f6909c7d5674e64bffec5efe58187568f4a
59ebb1b9ff74b384e7a6a30a0bc24a285b81e849 30-Nov-2016 Gary Mai <garymai@google.com> Remove linking options from the ME profile

They shouldn't be available for ME profile.

Test: Manually checked there are no buttons when viewing
the me profile linked contacts. Also verified buttons are
there when viewing a regular contact

Change-Id: Id8feb3585b015ab19004bc739494f822e9096186
ndroid/contacts/editor/PickRawContactDialogFragment.java
204005063aaaf8c94998c597cfcc983756c5bbed 30-Nov-2016 Wenyi Wang <wenyiw@google.com> Correct content description for label menu items am: 993c7b09d0
am: 4e982a8c8e

Change-Id: I7a8d47ad47c0a86fc2b6f74e782fd6d3779cc20d
4e982a8c8e93a84af493cc43669cb19c2499beed 30-Nov-2016 Wenyi Wang <wenyiw@google.com> Correct content description for label menu items
am: 993c7b09d0

Change-Id: I1cf8ee97223a9f5777cc7f95b50980e47d5d23ed
daad8ef2b3578a10585c939d807efbbad498cde7 30-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Correct content description for label menu items" into ub-contactsdialer-h-dev
993c7b09d0b33953aa28d4ed0828891ba7e7862d 30-Nov-2016 Wenyi Wang <wenyiw@google.com> Correct content description for label menu items

Content description was changed to "Label name" in ag/1651007
and we are now changing it back to "Label".

Bug: 32975864

Test: manually verified it announces "{label name} label".

Change-Id: I98eb2e4082916cd3a339b82df68d7ecb415cba6a
ndroid/contacts/ContactsDrawerActivity.java
2bb4984ee2f2e345e9073b9cc40af2afc35b9809 16-Nov-2016 Marcus Hagerott <mhagerott@google.com> DO NOT MERGE Improve testability of SIM import code.

For Iec6eb441fe197daceb24e87288f8e0c5ac0ce2cf

test
ran GoogleContactsTests

Change-Id: I7d34e68f389143f94c26190cd9b3206ca871c64e
(cherry picked from commit 52d8cae888457d9639696a19db29a2ff36deca85)
ndroid/contacts/SimImportService.java
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/database/SimContactDaoImpl.java
ndroid/contacts/common/model/SimCard.java
95246bb89a1c45459fe15eefdc6d924963247944 11-Nov-2016 Marcus Hagerott <mhagerott@google.com> DO NOT MERGE Add notification for SIM import

This provides feedback to the user if the import takes some time. Also
moved SIM import into it's own service instead of ContactSaveService
to prevent blocking the save service with a long-running operation.

Test
manually verified that notification is displayed when contacts are
imported from the SIM card

Bug 32781237

Change-Id: I8f26e524a08b62f69ff06ddb45cec2db5e98fe24
(cherry picked from commit ba47b41205ddcc3872d52bede1f6aaffb4c874b8)
ndroid/contacts/ContactSaveService.java
ndroid/contacts/SimImportFragment.java
ndroid/contacts/SimImportService.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
b54c63366be4b81105e3980f7b6fd74f3b3b92f7 29-Nov-2016 Gary Mai <garymai@google.com> Fix rotation crash in springboard am: a84f1d4ec9
am: 7eacebcb52

Change-Id: Ie1cb70f9b9b42e2df0184e9fc9049b0429baf729
a84f1d4ec9599015e41a6f134cb9c30bb4c9d7ef 29-Nov-2016 Gary Mai <garymai@google.com> Fix rotation crash in springboard

Save mResult in the instance bundle. It used to always be delivered
from the loader but it's possible for the springboard to not be the
top activity now so it can get recreated without getting a result
from the loader.

Test: Manually verified rotating the screen in the "choose a contact
to link" activity doesn't crash the app and the link happens as
expected.

Bug: 33196170
Change-Id: I0a5b21aed625059a1f65dc2e26de85af3feb5ebe
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
0ec246c486d5f8629eb1d81d8dfdd84dcf5e8ddf 28-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix crash after rotating SIM import screen on LMP am: c8b04ba7a0
am: f55df2f4da

Change-Id: I21eb8a7e687fcd291363acf25d36f1fb71ecae9a
c8b04ba7a0efa8b029d3615867ec9d03ccb957ff 24-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix crash after rotating SIM import screen on LMP

Test
manually verify that no crash occurs when rotating SIM import screen
on LMP emulator

Bug 33108913

Change-Id: Idcee6fa98f4cefb83aed60bf9648d69748a0c83b
ndroid/contacts/SimImportFragment.java
ca1d2cb49969861354295828180b6bdaf6649228 23-Nov-2016 Gary Mai <garymai@google.com> Right align view linked contacts buttons am: 591a699cbb
am: 59bad9eb2a

Change-Id: Ib5e68b899235e9d64ea800c0e0943f1d26822752
591a699cbba0d47acce559390c171e9ede725eef 23-Nov-2016 Gary Mai <garymai@google.com> Right align view linked contacts buttons

Neutral buttons are aligned to the left (start) side while negative
buttons are aligned directly to the left (start) of positive buttons.

Test: Manual verified placement of buttons in normal and RTL modes.

Bug: 33103521
Change-Id: Ie6e10871865c27db80a346fd4064362fa9d7c36b
ndroid/contacts/editor/PickRawContactDialogFragment.java
9025b5f64323477a51efda69b6a9aba1191f4f6d 23-Nov-2016 Sean Midford <midfords@google.com> Silence SQLiteExceptions thrown by providers am: c2deb410ad
am: 89ec5fe8da

Change-Id: Ic872e1d77b35b9263ecb1725eacde5c032b3a98c
89ec5fe8dab48878de434301060d2281f3b951b9 23-Nov-2016 Sean Midford <midfords@google.com> Silence SQLiteExceptions thrown by providers
am: c2deb410ad

Change-Id: Ieb76645bc2a57e0dd8b39ba14a7503a681c88089
34229656107dcedd3068ecc964041445eb7e3f47 23-Nov-2016 Sean Midford <midfords@google.com> Merge "Silence SQLiteExceptions thrown by providers" into ub-contactsdialer-h-dev
c2deb410ad00762b857a0089ea71cfdd2b116ca7 22-Nov-2016 Sean Midford <midfords@google.com> Silence SQLiteExceptions thrown by providers

Added catch to silence sqlexceptions from crashing
the app and logging silent feedback. Based on crash reports
this seemed to happen because some OEMs removed contact_presence
column in cp2.

Test: Manually threw SQLiteException to test behavior
and verified app is stable.

Bug: 32943841

Change-Id: I1b52b608f5dcb9275b33945281392dae9c83a20b
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
9d10932769d903183234b353dac8c8237911302c 22-Nov-2016 James Laskey <laskey@google.com> Fix delete label a11y action not spoken. am: 6b712bc837
am: d48a559118

Change-Id: I8031509be7fad0d4bcce38df1b1e53c8bbb70637
d48a559118e3ec0a175ee6e4284a2eab76820dcd 22-Nov-2016 James Laskey <laskey@google.com> Fix delete label a11y action not spoken.
am: 6b712bc837

Change-Id: I19e1b24f5120f102b4eb4345f0b1d13aea21fda2
d1b6565f55a96fefc2e4d7cad6592f4c45e6aa5b 22-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix delete label a11y action not spoken." into ub-contactsdialer-h-dev
323aede8f3279ecf574ec0f8bad29a0c3129b835 22-Nov-2016 Wenyi Wang <wenyiw@google.com> Update left nav label menu item content description am: 5678dcb0b5
am: f5ffd96ec4

Change-Id: I1e9ba534bec388b351d2e6b15ba830719dc0a525
f5ffd96ec4dbd9495796a971d875c3fd32144fa0 22-Nov-2016 Wenyi Wang <wenyiw@google.com> Update left nav label menu item content description
am: 5678dcb0b5

Change-Id: Ibfbbbaf9e9e43bc9f031b2003f886e2a2adeaf6c
d868070d2105a8be3fe64827a98a16570ce7beaf 22-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Update left nav label menu item content description" into ub-contactsdialer-h-dev
6b712bc837c386402bdba22cf6022e8c7982fa95 22-Nov-2016 James Laskey <laskey@google.com> Fix delete label a11y action not spoken.

Bug: 32951289
Test: Enter talkback mode and delete label, make sure "UNDO" is spoken.
Change-Id: Iba7d89863588f8f28f69bf2383f39a3ae883532b
ndroid/contacts/activities/PeopleActivity.java
5678dcb0b508bd3c42c005d7e2a5439d2d331583 22-Nov-2016 Wenyi Wang <wenyiw@google.com> Update left nav label menu item content description

Bug: 32975864

Test: manually verified it announces "{label name} label", annoucement
of accounts are also correct, and left nav works well when
Talkback is off.

Change-Id: Ieb76be43b475565e0090ad1062eee3cc1f5805e8
ndroid/contacts/ContactsDrawerActivity.java
bad01c7626a335c380bd51b1ba2fef2b5886b472 22-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix SQL statement error in SIM contact import am: 2b2cbe9c11
am: 897ac58366

Change-Id: Ic6947ff9ef52496548065a07093106e6a6f675fa
befc88bff347ae758912da85126bf2a9c93f4f36 22-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix failing SIM import test am: 8e9e782cb7
am: 7c0a5c5c93

Change-Id: Iebf7b079680979d0a850027da819e554b3ee4834
2b2cbe9c117e6d1b8fd58c708a8c5a08771964fb 22-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix SQL statement error in SIM contact import

Introduced by change I1eb259f5a6a6b97150d67b9e1e8238529c3c0dba

Test
Ran GoogleContactsTests

Change-Id: Ib0c0a43aa5cf10162e37272b771efb78e906884f
ndroid/contacts/common/database/SimContactDao.java
8e9e782cb7f15a8bcca3335374f641d5a149a5a2 22-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix failing SIM import test

Failure introduced in change I1eb259f5a6a6b97150d67b9e1e8238529c3c0dba

Test
ran GoogleContactsTests

Change-Id: Idb28a7fd1e529a62a5fe0ec1f9ee00adef54e3eb
ndroid/contacts/common/model/SimContact.java
e0c191f29c8e8df3848c34ee0790b600a6b2375d 22-Nov-2016 Wenyi Wang <wenyiw@google.com> Silence some caught exceptions if from test app am: daa6fb877f
am: d8a2c4fdac

Change-Id: I9d5ac776a82e244480bb566ba5f2c5ce36e3fc98
d8a2c4fdac727e2dc900ba994b3a582dff9eb195 22-Nov-2016 Wenyi Wang <wenyiw@google.com> Silence some caught exceptions if from test app
am: daa6fb877f

Change-Id: I804c198d8ee98d0d7c9a11b5fc47cc817e3ed301
00e383012246c4d649ad6fe5f684b8986e566333 22-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Silence some caught exceptions if from test app" into ub-contactsdialer-h-dev
8b132ba9dcb98dccf133c4817bc5c84a47721ba6 22-Nov-2016 Marcus Hagerott <mhagerott@google.com> Skip importing empty SIM phone numbers am: 19d7ecafdf
am: 4e66feb00f

Change-Id: I98c76471c5d8f20239d60b932a86cce314f1c080
4e66feb00ff24642f897ea0e7901a95627bbfa43 22-Nov-2016 Marcus Hagerott <mhagerott@google.com> Skip importing empty SIM phone numbers
am: 19d7ecafdf

Change-Id: I7b5b957917cede7fe1ef738d491abdc55038bba6
47c03a325acf22fc498053bb560e914d02f403c7 22-Nov-2016 Marcus Hagerott <mhagerott@google.com> Merge "Skip importing empty SIM phone numbers" into ub-contactsdialer-h-dev
aba84831c2afec75676d480c200eca57951a79e9 22-Nov-2016 Gary Mai <garymai@google.com> Ignore display name when creating aggregation uris am: 39bf8e25bf
am: c523bfb5d9

Change-Id: Icc40c725e597816cd3d4c8bfc9f2218584cffb7d
39bf8e25bf182463cd718da0647c64a424f40de4 22-Nov-2016 Gary Mai <garymai@google.com> Ignore display name when creating aggregation uris

When all fields of a name are removed, the display name is used
to find an aggregation suggestions. Since we removed support for
editing the display name it will always be the initial value, causing
a lookup to be done for the initial name if all characters are
removed.

Test: Verified removing the name doesn't trigger a suggestion for
the initial display name.

Bug: 33050912
Change-Id: Id45ca55a3fa522048070d37965f512b1d04c12a3
ndroid/contacts/editor/AggregationSuggestionEngine.java
19d7ecafdf245ef8895f94b62253bf6dc73f5a17 22-Nov-2016 Marcus Hagerott <mhagerott@google.com> Skip importing empty SIM phone numbers

Test
manually import SIM contact and verify that it isn't saved in the
editor when no edits are made

Bug 33047437

Change-Id: I1eb259f5a6a6b97150d67b9e1e8238529c3c0dba
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/model/SimContact.java
daa6fb877f14b8703f35183d044b9508d173465e 22-Nov-2016 Wenyi Wang <wenyiw@google.com> Silence some caught exceptions if from test app

Bug: 32641459

Test: unit test

Change-Id: Ic5e9e7f3ba8052bc42d1ec41cc672e2c82465d1c
ndroid/contacts/common/model/account/ExternalAccountType.java
1a34007af8dfbe56135f18526fd417146e3343ad 21-Nov-2016 yaolu <yaolu@google.com> Fix new contact not being loaded in QuickContact am: 4861031d5f
am: 849e09537f

Change-Id: I194e2a9a7f4d4e99f910052c1ca71a01924c7031
849e09537f56a365ab76686b3c5be762b519c1a5 21-Nov-2016 yaolu <yaolu@google.com> Fix new contact not being loaded in QuickContact
am: 4861031d5f

Change-Id: Ie2ab063b373d38e3690c972fa7acd8a7d0bac656
aa5cac387776f1cbd946ae4b0a4811d9a2f54914 21-Nov-2016 Yao Lu <yaolu@google.com> Merge "Fix new contact not being loaded in QuickContact" into ub-contactsdialer-h-dev
4861031d5f0ac3707fe089c1efd559260672df39 21-Nov-2016 yaolu <yaolu@google.com> Fix new contact not being loaded in QuickContact

When ContactLoader is loading new contact, the reference to old contact
should be set to null so that ContactLoader won't deliver the result for
old contact.

Bug: 30794914
Test: Maually followed repro steps observing new contact is loaded. Also
tested on editing and saving a contact which go through the same logic.

Change-Id: I6c4830ebadaedfdc03616d980999da9da5c46b0b
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
b86f2964adb791b0d0ad93c5314366877e922283 21-Nov-2016 Marcus Hagerott <mhagerott@google.com> Announce selected account on SIM import screen am: d3869c7ab4
am: 3eb26b8317

Change-Id: Ia857ee963573371192a512ca402f382bf7b97419
3eb26b831770ddf4dd80d0fd632b07f7f50df316 21-Nov-2016 Marcus Hagerott <mhagerott@google.com> Announce selected account on SIM import screen
am: d3869c7ab4

Change-Id: Ifc782f1355554cac0a6d48f5e7a889ac53f1378c
e3631adfeb2bb7ff7230aa47017aacf54aad15c1 21-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Announce selected account on SIM import screen" into ub-contactsdialer-h-dev
d3869c7ab4ff85fc9e3a511ea6644be395698321 21-Nov-2016 Marcus Hagerott <mhagerott@google.com> Announce selected account on SIM import screen

Test
manually verify that new selection is announced immediately after
changing it

Bug 32948185
Change-Id: Ib484496a28a2c279e552a0931493ae5137a9a2ef
ndroid/contacts/editor/AccountHeaderPresenter.java
1a98d0c613f8a2afa78d626a0f73511a5a8269b6 21-Nov-2016 Gary Mai <garymai@google.com> Finish springboard at appropriate times am: b2bec431a5
am: 4ebc6d3f1e

Change-Id: I672af0e965a153a5a1a3a72f412b3712e8d5b44d
b2bec431a55bbe91c768b08da881d8726b5a4696 21-Nov-2016 Gary Mai <garymai@google.com> Finish springboard at appropriate times

Springboard used to auto finish because of NO_HISTORY, missed
a case where we needed to finish after starting the editor when
given a raw contact URI. Added the finish() call to the method that
starts the editor since the two are logically grouped.

Test: Used the test app to make sure all edit tests have the
springboard finish properly.

Bug: 33040749
Change-Id: I10b7fe5a73d9d965bdb04f0aceffef23f481c48b
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
b15ecf49faa55875d8c2c99041b5958bab266373 19-Nov-2016 Marcus Hagerott <mhagerott@google.com> Make SIM import screen an activity am: a8b448a11f
am: 4b68105185

Change-Id: Ib65988f6e7a6e766bf2c441f1b21ca7689fb0214
a8b448a11f0a932366caf465027391017d1db709 18-Nov-2016 Marcus Hagerott <mhagerott@google.com> Make SIM import screen an activity

This fixes an accessibility bug where the toolbar navigation icon was
announced instead of the title when the screen is displayed

test
* manually verify that SIM import works as previously when launched from
settings and from assistant.
* manually verify that activity label is announced instead of navigation
icon

Bug 32947074

Change-Id: I1116d626f13842ad78e287c98dd3a051796b1f5f
ndroid/contacts/SimImportFragment.java
ndroid/contacts/activities/SimImportActivity.java
ndroid/contacts/common/interactions/ImportDialogFragment.java
30484246d7b630a3410db7ff89cf5d5a45febc14 19-Nov-2016 Gary Mai <garymai@google.com> Use photoId of the raw contact in aggregation engine am: 6a87ee9b9e
am: da79490b08

Change-Id: I206050bed7c936c20b54150221c4559d5f9dc6d8
da79490b08d5ac3860e45b02e87f1120024d4821 19-Nov-2016 Gary Mai <garymai@google.com> Use photoId of the raw contact in aggregation engine
am: 6a87ee9b9e

Change-Id: I94c78c85ff618d88c176cf675c373b8d2a4fd140
79dc4334417f0e70d1e7d57c81b6f154e9dc6f0f 19-Nov-2016 Gary Mai <garymai@google.com> Merge "Use photoId of the raw contact in aggregation engine" into ub-contactsdialer-h-dev
98345fe508f8b90e4d1a6e63349b669f44846802 18-Nov-2016 Marcus Hagerott <mhagerott@google.com> Include item disabled state for talkback in SIM import am: e12757940a
am: 84fafabb56

Change-Id: I1bc387dce02d69e118eca181fe5f9bc130a585f8
6a87ee9b9ed26eb1cbc888be758ddf4f4e0694b8 18-Nov-2016 Gary Mai <garymai@google.com> Use photoId of the raw contact in aggregation engine

Previously using the wrong selection for photoId, getting the id for
the whole contact instead of the one for raw contact.

Test: Verified the correct photo shows up in aggregation popup
when the raw contacts have different photos.

Bug: 33004690
Change-Id: I989b666f5c2782e33b6b5396ac89d56841144888
ndroid/contacts/editor/AggregationSuggestionEngine.java
e12757940ad6432ff0ed02bf4f8d4c8107a21ed3 17-Nov-2016 Marcus Hagerott <mhagerott@google.com> Include item disabled state for talkback in SIM import

Test
manually verified that SIM import list functions the same as previously
and that disabled state is now included in talkback description for
items

Bug 32950353

Change-Id: Iff93cde51b0d5d0edfb1096e5bfd539c68de941a
ndroid/contacts/SimImportFragment.java
7fa0ae260aa74c3c836613bf4455fb071fe9dc7d 18-Nov-2016 Gary Mai <garymai@google.com> Add null check to Uri when getting the name to toast am: c000d2ee0e
am: 8e4c181f17

Change-Id: Iab2b316cbe73c36c58cb6d2c00139e047673c254
c000d2ee0e292d9b160f65ab74ebd1258346046b 18-Nov-2016 Gary Mai <garymai@google.com> Add null check to Uri when getting the name to toast

When all contact details are removed from a contact when there are
no accounts (potentially if it's the device account) the contact is
fully deleted, so the Uri is null when we try to get the name to
display. Bail early and return null in this case.

Test: Verified no crash and consistent behavior with previous releases
when removing all contact info from a contact when no accounts are
present and when deleting all info from the ME profile with Google+
contacts sync turned off.

Bug: 32982336
Change-Id: I0fd236080750a5040a5c9ffd80a48a37cb1f8ae3
ndroid/contacts/editor/ContactEditorFragment.java
bf2bd5210c732d8a80d6ff7bf6463b1fffee033e 18-Nov-2016 Gary Mai <garymai@google.com> Set editor activity title for talkback am: d8f3da6a4e
am: e1778a56af

Change-Id: Ib286ca098ae57e9d62d8634903d4fa6fee20fbad
d8f3da6a4ea4054bd47959db85657a7e01d28358 18-Nov-2016 Gary Mai <garymai@google.com> Set editor activity title for talkback

The toolbar will display the correct title for visual purposes
while setting the activity title will have talkback read out
the title when entering the activity.

Test: Manually entered editor activity for
* editing an existing contact
* adding a new contact
* viewing a read-only contact
and verified talkback read the proper title.

Change-Id: I77e366073e725734aa8ac29f52bb760b5e58c02f
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
73fc096672a979d09859ee34d67302dca208436a 18-Nov-2016 Gary Mai <garymai@google.com> Use toolbar in editor am: 15646ce3e2
am: 030fa9c2c7

Change-Id: Ia21cfe1297497711cf2f536361ce73bbda3dc4f2
030fa9c2c722c96fcf192896b92fa5e5af765727 18-Nov-2016 Gary Mai <garymai@google.com> Use toolbar in editor
am: 15646ce3e2

Change-Id: Ia6ecb04c9d2115d351e1a49c43fc3ee9bfbc53bc
c80cc548f84d8a817efa515015344c2487084252 18-Nov-2016 Gary Mai <garymai@google.com> Merge "Use toolbar in editor" into ub-contactsdialer-h-dev
442ef5331e56cdd79978da38e0872305fb00e692 18-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add description to SIM import account dropdown arrow am: 4b11232fdf
am: 3ac7f342c6

Change-Id: I10ce3e46a37c811f65e8ece2ec32dac37e889a44
3ac7f342c69f79146455d403054d507109db6143 18-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add description to SIM import account dropdown arrow
am: 4b11232fdf

Change-Id: I43ea4385c414a9c74b479e67f77bbd3be3579dd6
c43a4eb4d2403b879254b53fe3871f03a4b4b6bb 18-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add description to SIM import account dropdown arrow" into ub-contactsdialer-h-dev
28e235788207555c5cc8abd7bbea8f505eea01b6 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Set text in layout rather than programmatically am: 0447c75954
am: ec2cd1fe42

Change-Id: I92a837602f991b3215960ccdc7ba833dc0de6937
ec2cd1fe42b6f8d43570e56a3f5ed3fefe01b6c3 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Set text in layout rather than programmatically
am: 0447c75954

Change-Id: I3c3266118d26091c1bc64a450334b7964f88f9f8
4b11232fdf9e11e73b2ffa41b40f3e153ec3912b 18-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add description to SIM import account dropdown arrow

Also make the same change for the account chooser in the editor.

test
manually verified that drop down arrow reads out "Show more" with
talkback on

Bug 32973740

Change-Id: I4050cbf37a6ba11300262716c5a6ab7c4f8d2a99
ndroid/contacts/editor/AccountHeaderPresenter.java
ndroid/contacts/editor/RawContactEditorView.java
c2eff7d994433e19fda7315d6211d467926608ef 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Set text in layout rather than programmatically" into ub-contactsdialer-h-dev
15646ce3e2e7a7f889976dc5684ecbc3029230c2 17-Nov-2016 Gary Mai <garymai@google.com> Use toolbar in editor

Lets us change content description of the navigation icon a bit
easier.
When it's an X read out "Cancel button".
When it's a back arrow read out "Back button".
Left the toolbar within the activity instead of putting it in the
fragment to reduce risk/testing needed for making this change.

Test: Manually verified for the above for:
* editing a contact
* adding a new contact
* viewing a read-only contact

Bug: 32950789

Change-Id: I125728786bdf3872e141863f60d38b34e01bb757
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
0447c75954297d035e67b8947f486c9cb37bcfa6 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Set text in layout rather than programmatically

Bug: 32981714

Test: manual - follow steps to repro in the bug.
Change-Id: I47b9d3af8428a609948f4d300e8123d40eb751ef
ndroid/contacts/list/ContactsUnavailableFragment.java
7806887db66d97498ab93d27feaed9e6a68acd47 18-Nov-2016 Gary Mai <garymai@google.com> Only add a new picker dialog if there isn't one already am: 91e8d84db9
am: 2b5b36817d

Change-Id: Id235a26c85c5fea126c01820ed4e7a55dc6d3840
2b5b36817df04b8a85b397a21235df1d1335bf98 18-Nov-2016 Gary Mai <garymai@google.com> Only add a new picker dialog if there isn't one already
am: 91e8d84db9

Change-Id: I9c2ea0ba65d358d51f6a02b451f33b5fa06ffa04
4b87c9c0b8536da7289f966bd0b12ba99a3a993b 18-Nov-2016 Gary Mai <garymai@google.com> Merge "Only add a new picker dialog if there isn't one already" into ub-contactsdialer-h-dev
b7257d86f2d99ad2db6fee9f4d665db07e27f9b5 16-Nov-2016 Walter Jang <wjang@google.com> DO NOT MERGE Remove Yenta experiment

Test: see I9e270d4c31b7a015c2bc9d421e3d841fb5f2cf85
Bug: 32948565
Change-Id: Ifbfb05f5004c017e4fcb202b85b25d4bedc12756
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
cda3f4500be7ddf09bf7d7013487faa5f334c526 18-Nov-2016 Walter Jang <wjang@google.com> Merge "DO NOT MERGE Remove Yenta experiment (1/2)" into ub-contactsdialer-i-dev
481f113445f7cf9156bc64c0a15f74495300fef6 18-Nov-2016 Walter Jang <wjang@google.com> Merge "DO NOT MERGE Remove Yenta experiment (1/2)" into ub-contactsdialer-h-dev
94f2f75ff4a1f264a385432739eb8710a31a80aa 18-Nov-2016 Sean Midford <midfords@google.com> Fixed contact button in send to labels am: a8aa3d877b
am: 0a0945f87a

Change-Id: Iacffaa37c387b530971089ac6c46135e4daee200
0a0945f87a93e4b940e13fa211e5f31be022e139 18-Nov-2016 Sean Midford <midfords@google.com> Fixed contact button in send to labels
am: a8aa3d877b

Change-Id: I22b785fbcf9cc44838dc5bd138297f67f22100ce
fa05d924ee5d5f9bb75d1c14f2c228e6a1f7524a 18-Nov-2016 Sean Midford <midfords@google.com> Merge "Fixed contact button in send to labels" into ub-contactsdialer-h-dev
91e8d84db901da956a6ebc3f23e2ec7c7e922d1c 18-Nov-2016 Gary Mai <garymai@google.com> Only add a new picker dialog if there isn't one already

Previously always creating and adding a new dialog without
checking if one existed already.

Test: Manually verified hitting unlink doesn't overlap
the two dialogs.

Bug: 32984212
Change-Id: I5a018ff729beb3ed0eef9b39a8d473429e36e68c
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
a8aa3d877ba31c8d15282f27c441bd45c3eaad1b 17-Nov-2016 Sean Midford <midfords@google.com> Fixed contact button in send to labels

Removed the quick contact photo badge on left side
of items in send to group picker fragment. Now entire
row triggers the checkbox.

Test: Verified that change is working as intended in both
send email and send phone number to groups

Bug: 32945249

Change-Id: I29575f9f8e00969376866032fb469d036c8c3272
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
ndroid/contacts/group/GroupMembersAdapter.java
ndroid/contacts/list/MultiSelectEmailAddressesListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListAdapter.java
9a554fc3bc85f888771f25025c4aa8931ea08e43 18-Nov-2016 James Laskey <laskey@google.com> Fix rotation losing track of new group creation. am: b2d2e42193
am: b893104da5

Change-Id: Icb2c80e51af5635026e3c21d546834af0fc46cf0
b893104da5a5826b643b404487ae27aaea318ebf 18-Nov-2016 James Laskey <laskey@google.com> Fix rotation losing track of new group creation.
am: b2d2e42193

Change-Id: I0738eb40a25787d952b90e5ef7359059bed7cb07
fcfe95a19aaeb11bbd5a99fea718a6ff9d971df6 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Modify content descriptions of star and search icon am: 7438b13a7f
am: 0779048c67

Change-Id: Ibccfe6947b1c3926207a5833980600e62471f50e
c199b72c9c84082b391aa2a9d1879111ad8653e1 18-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix rotation losing track of new group creation." into ub-contactsdialer-h-dev
0779048c6711ff114fa981d52f57a8fa8c289aaa 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Modify content descriptions of star and search icon
am: 7438b13a7f

Change-Id: I02c9d943ece46cfdd32ad475a3771baf112e030d
0ac5dfc0b0a9cd74642a3b1896178d561a0de9c2 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Make LicenseActivity app compat am: ca4e13329e
am: 08ffb5385b

Change-Id: I2dab5b7e36badeef8a8a52a4e6d2d56b2dc13f55
b2d2e421931bac790e1cae4440c46d69c88102a9 18-Nov-2016 James Laskey <laskey@google.com> Fix rotation losing track of new group creation.

Re-add listener when re-created and only track when group is finally
created.

Bug: 32771896
Test: Follow repro steps and verify that toast does appear.
Change-Id: Ie56585032eb62b5daf587df06eab1f9785631caa
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
91a88bdfee3f691262690f5d1435bcfe9cb4af25 18-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Modify content descriptions of star and search icon" into ub-contactsdialer-h-dev
08ffb5385bc9766d2e7c8935d5f4fdb680613558 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Make LicenseActivity app compat
am: ca4e13329e

Change-Id: Ia7bcf897a3e342d19275980984c2c95c55f81542
94fc608ccc523c6b0c2003a5f6538d74f87c4e29 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Make LicenseActivity app compat" into ub-contactsdialer-h-dev
7438b13a7fb9dd63b04b1b1e8181a4cf5b9c331d 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Modify content descriptions of star and search icon

Using existing strings so we don't need to bother i18n team.

Bug: 32972143
Bug: 32973650

Test: manually verified star icon in all contacts list is announced
as "Favorites" and search icon is announced as "Search contacts"
in contacts list and in contacts selection (to add contacts to
group).

Change-Id: I3df125435f864a3a769e85c4107ff594a7834bc1
ndroid/contacts/common/list/ContactListItemView.java
ca4e13329e7331721e7cee8e5bdb6917a9f06bc0 18-Nov-2016 Wenyi Wang <wenyiw@google.com> Make LicenseActivity app compat

Theme of LicenseActivity is app compat now, so we need this change
to make it match its theme, so as to make toolbar show up.

Bug: 32981752

Test: manually verified toolbar shows up on NYC and LMP.

Change-Id: I57ef542051ede2697b0f206f6b59f556f6f57394
ndroid/contacts/common/activity/LicenseActivity.java
ad74d696a8e12225dcca0074d7ec09d123c3c676 17-Nov-2016 yaolu <yaolu@google.com> Change SharedPreference keys for feature discovery promo am: ff561a6ae0
am: d95e71ce47

Change-Id: Id694ddbc944417264374e208ece2d409fbb48eac
d95e71ce4783d8f71636fd5adc05ecb8c2cf6aaa 17-Nov-2016 yaolu <yaolu@google.com> Change SharedPreference keys for feature discovery promo
am: ff561a6ae0

Change-Id: I9ec0a0f589193acb5dc1c132849765ffd46f0733
6bf0dc0a6aecb3a96c6e16598f1a94d5e9afe8a4 17-Nov-2016 Yao Lu <yaolu@google.com> Merge "Change SharedPreference keys for feature discovery promo" into ub-contactsdialer-h-dev
1102fbf639b4c6b119612cc43bf96f933242853a 17-Nov-2016 Gary Mai <garymai@google.com> Update editor photo view green lines am: ef6ceb2714
am: 86aef0cd11

Change-Id: I773f0653284fc98ccaccbcd89648568887a3a642
ef6ceb2714641eb70dcedddf6a18e6344fd7cbcc 17-Nov-2016 Gary Mai <garymai@google.com> Update editor photo view green lines

Default photo reads "Add contact photo"
Existing photo reads "Change contact photo"

Test: Manually verified the above, including proper updates when
* adding a new photo
* removing the photo

Bug: 32976203
Bug: 32975967
Change-Id: Id10023998b177d0e5e86db1ca11bcf5dd9727a87
ndroid/contacts/editor/PhotoEditorView.java
711a672cc5e90a2185ecb444cc4751190874631f 17-Nov-2016 Gary Mai <garymai@google.com> A11y bug fixes for editor am: 34047d2d07
am: f7eafea4f3

Change-Id: Ia1092e03ec06bd31346c53db47868f90f33c023a
e92300bde16cc3bf2515cc1d07ad6306c0ad2823 17-Nov-2016 Sean Midford <midfords@google.com> Revert "Fixed quick contact button in send to labels" am: 06ec1b1429
am: e575785e64

Change-Id: I1aca149fe4c4d17ddc79ebc9927289d0d7141643
ff561a6ae04e706bd80234bcc9c1336807082edb 17-Nov-2016 yaolu <yaolu@google.com> Change SharedPreference keys for feature discovery promo

Bug: 32874146
Test: maually tested feature discovery promo is shown on new install
Change-Id: I903a3878b2a91416afbc4850f2b96588e2d9001f
ndroid/contacts/util/SharedPreferenceUtil.java
f7eafea4f3566e38e3aaa823ab0be79d2021bcd5 17-Nov-2016 Gary Mai <garymai@google.com> A11y bug fixes for editor
am: 34047d2d07

Change-Id: I7e9af7ee6f1e1efc87c098124fcf54796674cf12
e575785e64f968a67e3a6e355682d3acf5f47546 17-Nov-2016 Sean Midford <midfords@google.com> Revert "Fixed quick contact button in send to labels"
am: 06ec1b1429

Change-Id: Ic786c8e5cbb5f7f2d2472bb869c6f849d7ad2f2b
eafc179800d0b5a55620a4c684fb949191b4e78a 17-Nov-2016 Gary Mai <garymai@google.com> Merge "A11y bug fixes for editor" into ub-contactsdialer-h-dev
03b86310969c49ebc9c61c63ad2af11d9ba4472d 17-Nov-2016 Sean Midford <midfords@google.com> Merge "Revert "Fixed quick contact button in send to labels"" into ub-contactsdialer-h-dev
2f6b4134e1d7c215ecb479bb02ed0653d3a03eec 17-Nov-2016 Wenyi Wang <wenyiw@google.com> Make checkboxes not clickable am: 6c46e5b3b4
am: 0920a13b18

Change-Id: I44af0f2d290b09cfec3b9d66b4593b87da57b60c
08a7b1879ab169a9c016dd4ebae168ebecc207fa 17-Nov-2016 Sean Midford <midfords@google.com> Fixed quick contact button in send to labels am: 538c814a82
am: 28107c7602

Change-Id: I557fca7c293b01f016aeb25444fe20d70fe2e825
0920a13b18c0d90279b0e4b06e671d3d9ea723f1 17-Nov-2016 Wenyi Wang <wenyiw@google.com> Make checkboxes not clickable
am: 6c46e5b3b4

Change-Id: I5d5a642e623bda19d2d919f6e371a6e01a634e86
cfb2cd877fc232d86c1dd14d20d176350466f568 17-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Make checkboxes not clickable" into ub-contactsdialer-h-dev
34047d2d076f5501ff958f0ef041b4e25c65bbed 17-Nov-2016 Gary Mai <garymai@google.com> A11y bug fixes for editor

Set profile photo content description as "Contact photo" if
in read-only mode, otherwise it's still "Change photo"
Set the whole row for read-only data to be focusable so it
reads the entire thing in one go
Fix ordering of content description for account header.

Test:
Manually verified the above.

Bug:32952012
Bug:32952102
Bug:32952414
Change-Id: I845f020e805a7f715892690b59c4bc00a8435e63
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
06ec1b1429729bb6ee1645571076d97ff55951f5 17-Nov-2016 Sean Midford <midfords@google.com> Revert "Fixed quick contact button in send to labels"

This reverts commit 538c814a828c53cface0220802d86b4d471dd854.

Change-Id: I6c8ca7a4297f038b88ca5793e7f155153071432b
ndroid/contacts/list/MultiSelectEmailAddressesListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListAdapter.java
6c46e5b3b49e807e9806ae84186f64e0cf7d38c9 17-Nov-2016 Wenyi Wang <wenyiw@google.com> Make checkboxes not clickable

Bug: 30443581
Bug: 32950580

Test:
1. manually verified the following lists work well:
- all contacts / account view
- group view
- send-to view
- contact selection view (for adding contacts to group)
2. unit test

Change-Id: Ife4a31725ca31125c901ca9f9f1621422066342b
ndroid/contacts/SimImportFragment.java
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
538c814a828c53cface0220802d86b4d471dd854 17-Nov-2016 Sean Midford <midfords@google.com> Fixed quick contact button in send to labels

Removed the quick contact photo badge on left side
of items in send to group picker fragment. Now entire
row triggers the checkbox.

Test: Verified that change is working as intended in both
send email and send phone number to groups

Bug: 32945249, 32950580
Change-Id: I13ba2837481dd4630a5ef5ff77ff143c10a8994e
ndroid/contacts/list/MultiSelectEmailAddressesListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListAdapter.java
77df98fc12e7d57cc93e56a8f115041083553035 17-Nov-2016 Wenyi Wang <wenyiw@google.com> Don't wait for drawer is idle to switch view am: 79ef0887c8
am: 520b4dd4de

Change-Id: I17f4ab02a254e09e401c7e2da6df3680678ada37
520b4dd4de37a394e2ebb7fd392cd868d53b15e9 17-Nov-2016 Wenyi Wang <wenyiw@google.com> Don't wait for drawer is idle to switch view
am: 79ef0887c8

Change-Id: Ib2d00ca1a093ebb8ac9109d76f927097e7809803
12b8e80c8c43f5af96471147a943255d7e2a94df 17-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Don't wait for drawer is idle to switch view" into ub-contactsdialer-h-dev
79ef0887c89d0df94086fb6e2693884a876fff2d 17-Nov-2016 Wenyi Wang <wenyiw@google.com> Don't wait for drawer is idle to switch view

- Make Settings a special case because it's an activity
that may cause janky animation.
- Help&feedback is also an activity but it's not opened
right away so it's fine.

Bug: 32917299

Test: manual:
1. With TalkBack on, verify the bug doesn't repro.
2. Navigate b/w fragments

Change-Id: I09cb7a90a9e787a257114494a881c8305f71b2c0
ndroid/contacts/ContactsDrawerActivity.java
9f7353c880490aafcb719716295d8e650aac273f 16-Nov-2016 Walter Jang <wjang@google.com> DO NOT MERGE Remove Yenta experiment (1/2)

Test: see I9e270d4c31b7a015c2bc9d421e3d841fb5f2cf85
Bug: 32948565
Change-Id: Ifbfb05f5004c017e4fcb202b85b25d4bedc12756
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
d3d43638adbd77f460103c0ae39ecd3873ae136f 17-Nov-2016 yaolu <yaolu@google.com> Catch IllegalArgumentException during caching vCard and send feedback am: 455d082b6a
am: c2f8543923

Change-Id: I02b5d39a19d266168b6745e18bc83abd64756e38
c2f85439235a6a8b34c0f4640f1aaf7732ffef4d 17-Nov-2016 yaolu <yaolu@google.com> Catch IllegalArgumentException during caching vCard and send feedback
am: 455d082b6a

Change-Id: I01c6b95003853fbfaf53e5b64d365669e41bf2fc
f79c7af8f21ee06909916a987b6140d8a76eb7d6 17-Nov-2016 Yao Lu <yaolu@google.com> Merge "Catch IllegalArgumentException during caching vCard and send feedback" into ub-contactsdialer-h-dev
ceeb652c40ed871eb5f6ec429c292f645a0c2fc1 17-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix NPE when creating dynamic shortcuts am: f2e3808991
am: a6dd39f0c6

Change-Id: I4993b6dc09748576d7270b703a8adf73a5e9466f
a6dd39f0c60db62721bdeead1213f926a163b059 17-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix NPE when creating dynamic shortcuts
am: f2e3808991

Change-Id: I71b7a6af6c66d046a00d5f847c2296b68995abf8
334bc5fddadf0878d7e9d75e27924c571bfc5e5a 17-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix NPE when creating dynamic shortcuts" into ub-contactsdialer-h-dev
f2e3808991751107666808627b88cb03b85d616f 17-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix NPE when creating dynamic shortcuts

An NPE was being thrown if a strequent contact had a null display_name

test
* ran GoogleContactsTests
* manually verified that dynamic shortcuts still update correctly

Bug 32945535

Change-Id: I5fbf28c26930abe0f50035e6c7830f94a05e2612
ndroid/contacts/DynamicShortcuts.java
455d082b6a1a570e06ba4d6f740bfb852d3a8be7 16-Nov-2016 yaolu <yaolu@google.com> Catch IllegalArgumentException during caching vCard and send feedback

Bug: 32948454
Test: Manually imported VCard oberserving VCardCacheThread working as
intended.

Change-Id: If57a3bf4fe2bbf660d2569f1f9a3a6c93cc97e5d
ndroid/contacts/common/vcard/ImportVCardActivity.java
d96b57aaadb6469c5b2c733ecef1b32c08a33232 17-Nov-2016 Marcus Hagerott <mhagerott@google.com> Tweak end padding for checkbox in SIM import am: 7c50467307
am: a0f20ff901

Change-Id: Ibc58eb0e6a7f26d21b19eb62572b551ffe6246ec
7c504673071be0219de0de58d6465932c8bd24e7 16-Nov-2016 Marcus Hagerott <mhagerott@google.com> Tweak end padding for checkbox in SIM import

test
manually verified appearance of SIM import screen

Change-Id: I07a18bee138b1704dcb8b113c0cab86fc400beff
ndroid/contacts/SimImportFragment.java
abb790c27428a856968293bd9e959473c586d89c 16-Nov-2016 Walter Jang <wjang@google.com> DO NOT MERGE Remove Yenta experiment (1/2)

Test: see I9e270d4c31b7a015c2bc9d421e3d841fb5f2cf85
Bug: 32948565
Change-Id: Ifbfb05f5004c017e4fcb202b85b25d4bedc12756
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
109afccce267339f0617333e65f17c42622ce001 16-Nov-2016 James Laskey <laskey@google.com> Remove about preference in GoogleContacts am: ff9a19d4a3
am: a6a9250621

Change-Id: I9d84817b6a21b943335d680713594ca63e3a59b4
a6a925062160f766f80114a76627f8412e85a945 16-Nov-2016 James Laskey <laskey@google.com> Remove about preference in GoogleContacts
am: ff9a19d4a3

Change-Id: I3107b636eaea7fb83a08e015759815a673b151b2
e649318166cdd0d701294c1d7b5e5995e0ed6172 16-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove about preference in GoogleContacts" into ub-contactsdialer-h-dev
f59f8d285678d2de83cdc1f132ae93d69ec935ac 16-Nov-2016 Gary Mai <garymai@google.com> Only send feedback for ExternalAccountType if not from tests am: e83e621c40
am: 0574a59bd7

Change-Id: I52e3fae869639451a8afbcfe5f0a0bdffe4ae17e
e83e621c40db9ed611675b4782b78c8e81003213 16-Nov-2016 Gary Mai <garymai@google.com> Only send feedback for ExternalAccountType if not from tests

Some tests have expected failures and we're currently always sending
feedback for them.
injectedMetadata will only be non-null if the constructor is called
from test code.

Test: added a debug statement within the condition and ran the tests
verifying no feedback was sent from the tests.

Bug: 32636761
Bug: 32635377
Change-Id: I6661e411a5b34daff777b05626d9192181082823
ndroid/contacts/common/model/account/ExternalAccountType.java
f139985e2b0707a0acb2a3e17ccf884fbe089a6c 16-Nov-2016 James Laskey <laskey@google.com> Toast clarity when deleting (no name) and named am: 56019ad8aa
am: c1321120bc

Change-Id: I59ed79da02f15588f2449848a7e8a2ab00478e82
8679f686292e1b00ae431ab5007f46d8c05f90a7 16-Nov-2016 Gary Mai <garymai@google.com> Use photo ids in aggregation suggestions am: 04926c0145
am: b111562984

Change-Id: Ib563adc2bd6c500e7446af288c0895125badc713
da64e5636ab1cf50a519f6aa76ecc28fc9bda5ac 16-Nov-2016 Marcus Hagerott <mhagerott@google.com> Check flag before adding observer in AccountTypeManager am: 511504f977
am: 94a2e1b433

Change-Id: I9e45d5ec4102ffe729c6d1fd05bfe9cc0991b17a
ef179f1f8e5f9bd7a30764bb5efb88eae626be07 16-Nov-2016 Wenyi Wang <wenyiw@google.com> Check if menu item is null before adding assistant new badge am: 1da57d88ae
am: 3d65baa61c

Change-Id: I4c35189b773db3ae677ba47ed94c2bd5ec739d0b
c1321120bc6e8a13bebaeb21776760c1d54acd03 16-Nov-2016 James Laskey <laskey@google.com> Toast clarity when deleting (no name) and named
am: 56019ad8aa

Change-Id: I6e6516ccd8ee49369f628600929936d73d30502d
4c9eb4dd3f161ee43684cab34e558002b17200f8 16-Nov-2016 Jim Laskey <laskey@google.com> Merge "Toast clarity when deleting (no name) and named" into ub-contactsdialer-h-dev
b1115629846bf33f89ec0789c0e46d4d0e39da40 16-Nov-2016 Gary Mai <garymai@google.com> Use photo ids in aggregation suggestions
am: 04926c0145

Change-Id: I1a00e409496642fa535db29e645549ecb6db9c6b
94a2e1b4330ed7bd6e1de69455e83de2f6373b07 16-Nov-2016 Marcus Hagerott <mhagerott@google.com> Check flag before adding observer in AccountTypeManager
am: 511504f977

Change-Id: I915dcfb1f7076aa1aa28c42462775c01d54530c3
59903ba1e840ee9315c5ab5df29236a9619bfea5 16-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use photo ids in aggregation suggestions" into ub-contactsdialer-h-dev
d8c917b2add53cc0e31853f47ba7df5a05cc4997 16-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Check flag before adding observer in AccountTypeManager" into ub-contactsdialer-h-dev
3d65baa61c839c857e589a38b342a320d028fc6d 16-Nov-2016 Wenyi Wang <wenyiw@google.com> Check if menu item is null before adding assistant new badge
am: 1da57d88ae

Change-Id: I498bc54f068becd3b985f1a2fb4cf953c046976d
f1b3dc4710eb69a4c196e74d2952bc2f0014a613 16-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Check if menu item is null before adding assistant new badge" into ub-contactsdialer-h-dev
04926c0145e5f0143d81265e2825415288cc94b4 16-Nov-2016 Gary Mai <garymai@google.com> Use photo ids in aggregation suggestions

Loading via a photo id seems to update quicker than if done by URI.

Test: manually followed repro steps in comment 4 of bug.
Verified photo always appears

Bug: 32617732
Change-Id: I94088231b30538ec584ff5fc552de1a5c6904c8a
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/AggregationSuggestionView.java
56019ad8aa25c50307bba9bdd0c56f72d2b03e36 15-Nov-2016 James Laskey <laskey@google.com> Toast clarity when deleting (no name) and named

Bug: 32243988
Test: Delete (no name) and normal contact to see "Contacts deleted"
toast.

Change-Id: I55d5cf8bea09977d7cf8c19fbbd179758d8a55a9
ndroid/contacts/ContactSaveService.java
e3eee2f0a8aee513e4eaa3dc0622878f3acf67c0 16-Nov-2016 kenji oda <kenji.x.oda@sonymobile.com> Call icon can't be displayed correctly
am: 168a7a790e

Change-Id: I38e7a9d4402d74b468777b968328d0bbc88c9319
8181d10f5e7e3eea04ce3f9d0f2d799145392690 16-Nov-2016 kenji oda <kenji.x.oda@sonymobile.com> Call icon can't be displayed correctly am: 168a7a790e
am: ab636810a1

Change-Id: I96e9a5d248153fa1eaa2a66d99cf6c522a13781c
ab636810a15fbc9b8f46c79cb943b89f2a8239bc 16-Nov-2016 kenji oda <kenji.x.oda@sonymobile.com> Call icon can't be displayed correctly
am: 168a7a790e

Change-Id: I1c22598b3521b7d66c197d013b45255c86061431
f5abe5155108836910712521d4c446905227fc7b 16-Nov-2016 Yao Lu <yaolu@google.com> Merge "Call icon can't be displayed correctly" into ub-contactsdialer-h-dev
1da57d88ae2bbc758f697523249be6227d22f151 16-Nov-2016 Wenyi Wang <wenyiw@google.com> Check if menu item is null before adding assistant new badge

It crashes because there's no assistant in AOSP Contacts.

Bug: 32915307

Test: manual - verified that there's no crash in opening AOSP Contacts
and that the new badge works well on GoogleContacts.

Change-Id: I3cc14da0c9e50fe0b2f4840645ded8c2563fbc65
ndroid/contacts/ContactsDrawerActivity.java
ff9a19d4a322287daefd55e716b65806ab6cb8e0 15-Nov-2016 James Laskey <laskey@google.com> Remove about preference in GoogleContacts

Bug: 30105414
Test: Open Contacts app and check that settings has About Contacts
section.
Test: Open GoogleContacts app and check that settings has no About
Contacts.

Change-Id: I24ec035be378a441e7dcdf6c495034cc6eda73d4
ndroid/contacts/common/preference/AboutPreferenceFragment.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
511504f977e83a60049bc051ee7e6064ca2b0264 15-Nov-2016 Marcus Hagerott <mhagerott@google.com> Check flag before adding observer in AccountTypeManager

The content observer in AccountTypeManager is only needed if OEM device
account detection is enabled.

Test
Observed logs to verify account type manager doesn't update after a
contact is added

Bug 32312206

Change-Id: Iab99d136055d0809698116d074014218a1e996d5
ndroid/contacts/common/model/AccountTypeManager.java
3783bd4d0d8c2a1e8df7901573136f65a8eb2d80 15-Nov-2016 Gary Mai <garymai@google.com> Implement linked contact menu option am: b9065ddb28
am: 3c23a05e38

Change-Id: Ica48eb87f4d70881b758daabe14fc69674110e76
3c23a05e384e4334998d5976b43eeac71cd3d919 15-Nov-2016 Gary Mai <garymai@google.com> Implement linked contact menu option
am: b9065ddb28

Change-Id: Iab1b06335ffb88c562e9baa320a16f5b3e369462
b9065ddb28a2040cabda251891be2062b5260217 08-Nov-2016 Gary Mai <garymai@google.com> Implement linked contact menu option

Remove unlink option from QuickContact.
Link now appears when the contact has only one raw contact.
Otherwise a new "View linked contacts" menu option appears.
This dialog shows all linked contacts (including read-only) and
has buttons for adding another contact or unlinking all of them.
Show progress dialogs for each of these actions.

Test: Manually verified:
* View linked contacts only appears when there are more than one
raw contacts
* Link appears otherwise
* Pressing add goes to the contact picker and correctly joins the
selected contact
* Pressing unlink opens the confirmation dialog
* Canceling or dismissing the confirmation closes everything
* Unlinking from the confirmation does the unlink
* Confirmed the above with rotating on each dialog and during the
progress dialogs

Bug: 32707898
Change-Id: I39435a07fefce4276e34ba302001ff3dab352516
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/PickRawContactLoader.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
168a7a790ea299842c7b6ae6532430efc8eddc79 27-Sep-2016 kenji oda <kenji.x.oda@sonymobile.com> Call icon can't be displayed correctly

In some case missed call is displayed as green icon,
in other case received call is displayed as red icon.
It is necessary to perform mutate() in setColorFilter.

Bug: 32501931
Change-Id: Ie7fc731daf0550e5a25bcced73ee340408f322cb
ndroid/contacts/interactions/CallLogInteraction.java
3b753e0eb14f3dc09774d362eab409d8309b1bd9 14-Nov-2016 Marcus Hagerott <mhagerott@google.com> Store selected state for all accounts in SIM import am: 48a2936c22
am: 62c1b7dda1

Change-Id: I66da66f514202da4c9fbaa8cf457f5f361188d91
9326612c7070eaf0cdcbf51d696d0b507a4a4e56 14-Nov-2016 Marcus Hagerott <mhagerott@google.com> Update SIM import UI to match designs am: 7217e6986c
am: 3b35556e71

Change-Id: Ib423cbf2371b37a42fc049be5fcd3f683e7cf156
62c1b7dda1e89a0ee86fb0a1005ce53d3f570cf9 14-Nov-2016 Marcus Hagerott <mhagerott@google.com> Store selected state for all accounts in SIM import
am: 48a2936c22

Change-Id: I1dbaec481591642965f156f655db1fad50a984a8
3b35556e716f87f88f0a8690279a1782574d0592 14-Nov-2016 Marcus Hagerott <mhagerott@google.com> Update SIM import UI to match designs
am: 7217e6986c

Change-Id: I59610ec9debdb0c861a665bfb26f609645430663
115495cdba32af45a96ce146bb6b7499016e95b9 14-Nov-2016 Marcus Hagerott <mhagerott@google.com> Merge "Store selected state for all accounts in SIM import" into ub-contactsdialer-h-dev
19a90b19e597dce7bdc00522e0176c2d0c6ba241 14-Nov-2016 Marcus Hagerott <mhagerott@google.com> Merge "Update SIM import UI to match designs" into ub-contactsdialer-h-dev
24e6c56f0865ad5b4c1d403d8de1545fa9def0fa 14-Nov-2016 Wenyi Wang <wenyiw@google.com> Dismiss import dialog after it's clicked am: c3322286a4
am: 1435553917

Change-Id: I00eb913ddbdfebaaa3b24185c16c404cae07f9ce
1435553917ab4ba69c16a0178efd57aa02856997 14-Nov-2016 Wenyi Wang <wenyiw@google.com> Dismiss import dialog after it's clicked
am: c3322286a4

Change-Id: I09c9a6ccc87fb45d6da8a995c4be6feb42feef6d
2219c604811264293c52d0de6d450a9d99111613 14-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Dismiss import dialog after it's clicked" into ub-contactsdialer-h-dev
48a2936c227b840ec93ebbd3c72786ccc9ccb006 14-Nov-2016 Marcus Hagerott <mhagerott@google.com> Store selected state for all accounts in SIM import

Previously only the selected state of the selected account were saved.

Test
manually verified that selection state for each account is the
preserved after rotating the screen

Bug 32841057

Change-Id: I681f3911348c056ba73b4208b1e2da5dc3fbc8ea
ndroid/contacts/SimImportFragment.java
1946d92df83652002d84286206b74dc143dbb34a 13-Nov-2016 Gary Mai <garymai@google.com> Fix ExternalAccountTypeTests am: a6c7a97e4f
am: 6c03e35a86

Change-Id: Ic49be342b3f0027c8cdeaa3db63b6c2e5e5550a7
6c03e35a86eb4b0b85c897b7d56a481fdfd9e307 13-Nov-2016 Gary Mai <garymai@google.com> Fix ExternalAccountTypeTests
am: a6c7a97e4f

Change-Id: I5f9ff22446a6eac437bed60d5779a1e0e5e9aa88
be7158495f1cbfc8528fa81bb05f2da937a4d1e9 13-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix ExternalAccountTypeTests" into ub-contactsdialer-h-dev
e20b751cb1ad083fa2a8e67b63b87da7c373b667 13-Nov-2016 Sean Midford <midfords@google.com> Fixed clickable buttons under assistants frag. am: b96df949fe
am: bb3b68c416

Change-Id: I9627b8009018cb7f8c3df3027122fec6b290f890
bb3b68c4165602ef2b33d22bb9470b6212ad34b5 13-Nov-2016 Sean Midford <midfords@google.com> Fixed clickable buttons under assistants frag.
am: b96df949fe

Change-Id: Iddf8bdb8a8f0856503ee5d199dd88c0bad47d359
bd7c52a9fbf6f8ef428d3c711f9a26b13bc10269 13-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fixed clickable buttons under assistants frag." into ub-contactsdialer-h-dev
7217e6986c333aebb885b0a07a0a9344ef7a814c 10-Nov-2016 Marcus Hagerott <mhagerott@google.com> Update SIM import UI to match designs

Test
manually verify appearance of SIM import screen

Bug 32748785

Change-Id: I660d848880e6416fdb9c25f8a3c52a6597e64e0a
ndroid/contacts/SimImportFragment.java
ndroid/contacts/editor/AccountHeaderPresenter.java
aa9eb8558dff73d6b0e14bbffe28fb0a798b5af8 12-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix occasional hang when loading from SIM am: cf5d261053
am: 7f97b309c0

Change-Id: I22bd23e576c804a25e5e7e036e458f6aec1e3647
7f97b309c0dd1d8fa9bedf3dc57ace96e045ec5f 12-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix occasional hang when loading from SIM
am: cf5d261053

Change-Id: Id8498e714525b7789a61a445042624bbd3460f01
a6c7a97e4fb1005da9de922375a775652ae63b39 12-Nov-2016 Gary Mai <garymai@google.com> Fix ExternalAccountTypeTests

The KindBuilder needs to match the BaseAccountType methods.

Test: Ran unit tests
Change-Id: I9d654b618c1e6f56ce475f896f056f13af1c157d
ndroid/contacts/common/model/account/BaseAccountType.java
b96df949fef8ee6573a31ae89a816ce19c74e0c4 12-Nov-2016 Sean Midford <midfords@google.com> Fixed clickable buttons under assistants frag.

Removed the unavailable contacts fragment under
assistants view to prevent user from clicking
buttons in unavailable contacts fragment

Test: Manual verified buttons are no longer clickable.

Bug: 32839351
Change-Id: I01535057163c1ade5bfd3d2120835553218bcec1
ndroid/contacts/activities/PeopleActivity.java
cf5d261053c7257770ec38385521042e6cccf0cd 12-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix occasional hang when loading from SIM

Reading the SIM from multiple threads concurrently can cause issues
in some cases.

Test
See Ib46c4521318547f50e4077e87d5daf6b47b760b4

Bug 32831092

Change-Id: I29cc67a126497c49468ca2ce830ed7732500f5ed
ndroid/contacts/common/database/SimContactDao.java
c3322286a4c26e987b59296e1f33399848816313 11-Nov-2016 Wenyi Wang <wenyiw@google.com> Dismiss import dialog after it's clicked

- The workflow we want to fix is opening account dialog from import dialog.

- Previously, we keep import dialog around until account is chosen; this
workflow never worked well on rotation since Lollipop.

- Now, we dismiss import dialog to simplify the workflow; and since we
dismiss the import dialog, we use activity as a listener.

- SelectAccountDialogFragment is used in:
- import contacts
- create a new group

Bug: 32502787

Test: manual - verify importing contacts and creating new groups
work well after rotation when there's 0, 1, and 2+ accounts.

Change-Id: Ic8b9c3f9987aeb3867ab2100097c235088507bdb
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/common/interactions/ImportDialogFragment.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
21827a3051b49ff40596ef3ac33936d4b6acc2c1 11-Nov-2016 Wenyi Wang <wenyiw@google.com> Guard against SecurityException in QuickContact am: 7a27b85c66
am: be85562ce9

Change-Id: Idf21c013c6373f843381b5bbfe834c851b081411
be85562ce90862c88bb299884206be6c27f928ef 11-Nov-2016 Wenyi Wang <wenyiw@google.com> Guard against SecurityException in QuickContact
am: 7a27b85c66

Change-Id: I8931a611ffd4e338b56aa9637b08db0c0988386a
054fbdcb2acb5a6b18273176b179a434f47e8f1b 11-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Guard against SecurityException in QuickContact" into ub-contactsdialer-h-dev
fc03de064472ed936635c8ebfd51021a42b81736 11-Nov-2016 Sean Midford <midfords@google.com> Updated picker UI for linking and send to labels. am: 85405d033a
am: e854d00643

Change-Id: I0a664779fc2f2c495bbf778f34a04f9498f59abf
e854d00643709b93f89c2f187ae5d2e0cb3a1ecb 11-Nov-2016 Sean Midford <midfords@google.com> Updated picker UI for linking and send to labels.
am: 85405d033a

Change-Id: Iebb7cb5d71be2e2cb70b460e52e975efdfc65977
a892ad00611a7fecaf16edc6bee73a45af0c3540 11-Nov-2016 Sean Midford <midfords@google.com> Merge "Updated picker UI for linking and send to labels." into ub-contactsdialer-h-dev
7a27b85c663171cf6ff95e25e27de7af9d95abee 11-Nov-2016 Wenyi Wang <wenyiw@google.com> Guard against SecurityException in QuickContact

Bug: 31304557

Test: manual - verify PhoneNumberListAdapter and QuickContact that
invoke the method are working as intended.

Change-Id: I72351a93b4da70892023a33fa1da6147dfe04fc5
ndroid/contacts/common/CallUtil.java
248eac9325194165e955d0cca8849f491438ef3d 11-Nov-2016 John Shao <johnshao@google.com> Migrate from depreated Guava APIs am: 0a7d717330
am: 7004a6a486

Change-Id: I134e74b8c80fc46c7ef02cf6315adf19c4260f7d
7004a6a486ff794b8500f4f69415cdd7a7f274e0 11-Nov-2016 John Shao <johnshao@google.com> Migrate from depreated Guava APIs
am: 0a7d717330

Change-Id: I5782a680b99a41b0b1b2a1e215f5ab6655d18be3
00b9dc34909e851d4547ca286bcf4dced1bf6918 11-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Migrate from depreated Guava APIs" into ub-contactsdialer-h-dev
0a7d717330876931ea9e355e5ddd33607e3b9aa0 11-Nov-2016 John Shao <johnshao@google.com> Migrate from depreated Guava APIs

Objects.toStringHelper -> MoreObjects.toStringHelper

Test: built Contacts and GoogleContacts

Bug: 32827405
Change-Id: I30a15e5ad8a2568d1c12735b86ff2903a08a4be7
ndroid/contacts/editor/AggregationSuggestionEngine.java
081e42dd04498065e04b1ebe6339c81d612d723b 11-Nov-2016 yaolu <yaolu@google.com> Fix recent card not updated on empty interaction history am: 38fa285d8a
am: 049c2c58ea

Change-Id: I35bc1ca5970691355ad938bd63682236a44941ed
049c2c58ea06d205213c0295c54f7234dfd8d4ef 11-Nov-2016 yaolu <yaolu@google.com> Fix recent card not updated on empty interaction history
am: 38fa285d8a

Change-Id: I413debac7edd9a181d96c2b497c1e03f1b649d14
38fa285d8a1f24182bc279dfcced595b4b5c4d68 10-Nov-2016 yaolu <yaolu@google.com> Fix recent card not updated on empty interaction history

When no interaction (calllog or event) is returned, QuickContact should
update UI also.

Bug: 32276191

Test: Manually verified recent card is cleared following repro steps.

Change-Id: I39d42383cee6cb5a2c12759aafdd0a0a4a17f5c2
ndroid/contacts/quickcontact/QuickContactActivity.java
85405d033aab3d6b5858ba0beb1e14acdca6b9a7 10-Nov-2016 Sean Midford <midfords@google.com> Updated picker UI for linking and send to labels.

Changed the look of the pickers to be more consistent,
also removed header indexes from send to labels picker
to make more room for displaying phones and emails.

Test: Manual, verified pickers were being displayed correctly
in both regular and RTL modes.

Bug: 30418005
Change-Id: I3d7b8aa43b1fb553aced494f3b7bb38bb2b45a27
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/MultiSelectEmailAddressesListAdapter.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectPhoneNumbersListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
10dfae05c099774b13f0844c47f4a2c25d382737 09-Nov-2016 Walter Jang <wjang@google.com> Revert "Revert "Ask for confirmation before importing from vcard""

This reverts commit dbe074559a69a1f1ace1ad831663f5380c27801e.

Test: same test cases as I0310c6e35cb378e1fe22691e5aecdb8ece1a3c9e.
Bug: 32219099
Change-Id: If8165c97514a1e61f20f8e44fc052c5d3b18d181
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/ImportVCardDialogFragment.java
0cbc6b99e67920f80d02bd2a2c127a0150789b9c 10-Nov-2016 yaolu <yaolu@google.com> Fix QuickContact is finished when cancelling link action am: f83db43ccf
am: e604701451

Change-Id: Ie141766fd8e8ed73b1f5a0a62656e47cf0257c01
e604701451bab5f6c122affa286c77e0b39aa61f 10-Nov-2016 yaolu <yaolu@google.com> Fix QuickContact is finished when cancelling link action
am: f83db43ccf

Change-Id: I44fb60a2bffee00e2d15c2ede2cd4b6d5ab33edf
f83db43ccf5250574ac521bbcc642ea3c4b8278c 10-Nov-2016 yaolu <yaolu@google.com> Fix QuickContact is finished when cancelling link action

If no contact to be linked selected, null intent is returned to
QuickContact Activity. Should just return instead of processing the
intent.

Bug: 32024874

Test: Manually tested when opening QuickContact from main contacts
list, label view, and account view, following repro steps previous
QuickContact view shows.

Change-Id: Id89413ade3f7dac227c160ae5ab8e96bc1e48960
ndroid/contacts/quickcontact/QuickContactActivity.java
2a320c7dffa9dbf7d53e41376fa3bd81bb5421bc 09-Nov-2016 yaolu <yaolu@google.com> Log Edit Raw Contacts modal (1/2) am: 341d10405b
am: b462f7503f

Change-Id: Iaaaee30961f58624a10e023bd338e6373a43d8d6
b462f7503f2a604b1946271f4305833623b01108 09-Nov-2016 yaolu <yaolu@google.com> Log Edit Raw Contacts modal (1/2)
am: 341d10405b

Change-Id: I71dac0c94458b547f457afba89620ed201c727d5
5834df9bb18be99c3885138d93b3c093d9c2770d 09-Nov-2016 Yao Lu <yaolu@google.com> Merge "Log Edit Raw Contacts modal (1/2)" into ub-contactsdialer-h-dev
341d10405bb9ce0e01827beec8ccfec95f901a0d 08-Nov-2016 yaolu <yaolu@google.com> Log Edit Raw Contacts modal (1/2)

Log this modal as Enum type SHOW_RAW_CONTACT_PICKER, so that we can have
more editor events added in the future.

When user clicks edit and this modal doesn't show, log EditorEvent as
(SHOW_RAW_CONTACT_PICKER, 0);
when user clicks edit and this modal does show, log EditorEvent as
(SHOW_RAW_CONTACT_PICKER, numberRawContacts).

Bug: 32678380

Test: Manually tested the log messages when edit a contact from
1) 1 writable
2) 2 and more writable
3) 1 read-only
4) 2 read-only
5) 1 writable and 1 read only

Change-Id: I8043e31d0051815b57f5f126ea4b66be551bcb9d
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/common/logging/EditorEvent.java
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
d935e636230e6265db85a7ee08de7c0b08242e53 09-Nov-2016 Marcus Hagerott <mhagerott@google.com> Use separate container for ContactsUnavailableFragment am: 89c512980c
am: a7f334d7a1

Change-Id: Ib6b0e3ffc77402fef30a899e2069471bd43a9c41
fe22c56ffd2ce481040690d1dfa1e16483f91d7b 09-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add ability to detect that SIM import is in progress am: 7333c37e85
am: 4961d5c3b7

Change-Id: I5cf90aeedf23687179b984ab76032897952556b6
a7f334d7a1d355990051121f4656629ff68684fc 09-Nov-2016 Marcus Hagerott <mhagerott@google.com> Use separate container for ContactsUnavailableFragment
am: 89c512980c

Change-Id: If3f0f0da59b57d97759912dafe1dec8521cf5ecd
4961d5c3b73f24ac4ff797c05b2a94db0f8b70dd 09-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add ability to detect that SIM import is in progress
am: 7333c37e85

Change-Id: I165cbb969e898f19ba8b72fde4c398363419254b
370c83f528532e0bf21a3d4c1c678cbdab10594b 09-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Use separate container for ContactsUnavailableFragment" into ub-contactsdialer-h-dev
827fafc209c7e9e4081652fea89f597047ec653a 09-Nov-2016 Marcus Hagerott <mhagerott@google.com> Merge "Add ability to detect that SIM import is in progress" into ub-contactsdialer-h-dev
89c512980c87e5c52fe83fa3ba52acfcd963e82c 09-Nov-2016 Marcus Hagerott <mhagerott@google.com> Use separate container for ContactsUnavailableFragment

Having 2 fragments in the same container view was causing issues
with the fragment back stack on older API levels when navigating in
suggestions screen.

Test
manually verified that navigation works as expected when the contacts
list is empty on API 22 and 23 emulators

Bug 32621879
Change-Id: I77d5accd822edfcf5ef1c3a50c0e3d3cdbe508ae
ndroid/contacts/activities/PeopleActivity.java
01a70432b678a2661bb3d566c95b73557e15dd5d 09-Nov-2016 Wenyi Wang <wenyiw@google.com> Fix crash after revoking all app permissions am: c3857fad83
am: ff3f120bc4

Change-Id: Idd3d1fb874ad534fdffd332d01c70752bc61a765
15ba933509b0c999fe5c597d7aeb18c16d4ad540 09-Nov-2016 John Shao <johnshao@google.com> resolve merge conflicts of 049e12f to master

Change-Id: I70c51e37ec249d020f6ec2201603745f6b58abe3
ff3f120bc444922ca9feceef1e1572bb8fc63d71 09-Nov-2016 Wenyi Wang <wenyiw@google.com> Fix crash after revoking all app permissions
am: c3857fad83

Change-Id: I8934ffe16c5403e3bac6e244ff1279da881d61a9
049e12f0ba4d801c9319fab5e734b2bf485076b2 08-Nov-2016 John Shao <johnshao@google.com> resolve merge conflicts of 5b1ffdc to ub-contactsdialer-master-dev

Change-Id: I73be19a553bf9a18a5a9a9b2b83c43be810d7de7
4ab7c1d45d2fbe943e4e62cecdbe7b911facea58 08-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix crash after revoking all app permissions" into ub-contactsdialer-h-dev
c3857fad838de15e6bf58ccf46d10f0fdc9e3aaa 08-Nov-2016 Wenyi Wang <wenyiw@google.com> Fix crash after revoking all app permissions

Bug: 32147415

Test: follow steps to repro in b/32147415.

Change-Id: Ib7c63ef86299b6d18ad3e9c80fe4e350cf3102d5
ndroid/contacts/common/list/ProviderStatusWatcher.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
5b1ffdcbc5f41189f54e69c4768e3e76ba2fce05 08-Nov-2016 John Shao <johnshao@google.com> Remove assistant experiment flag

See change I2959318e6f96365527d60cb9b1a7d539052a9c31

Bug: 32623647
Change-Id: If84828bb479d3096a5f58b1981252372c0cae7e9
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/database/SimContactDao.java
bfaec2d325a37c4943021dac1586fba42eaba32c 08-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix error in SIM imported state am: 76c06332bb
am: fc5efcddbb

Change-Id: Icfb884f02f61ed32dfc8dcb8aa1bb2424c101a0d
1350319753faa8504b2d1d2617c10675fb437377 08-Nov-2016 Gary Mai <garymai@google.com> Revert "Revert "Load the raw contact's photo in picker dialog"" am: 3a53328fe0
am: 36cda618d2

Change-Id: I715380a756566be6f7af7b660c8170022aeb282c
fc5efcddbb69ff447a177825270e3297a880f47f 08-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix error in SIM imported state
am: 76c06332bb

Change-Id: I55035273ec6f606ada9ec9786c223e8441bc77e2
36cda618d2cf8cbcb912ad14d8d8aec4c16f3bc4 08-Nov-2016 Gary Mai <garymai@google.com> Revert "Revert "Load the raw contact's photo in picker dialog""
am: 3a53328fe0

Change-Id: I5f20e98812d5baa155832b00a3fc76ad25056763
7895220aa510853f24e06b910abdfd827b314986 08-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Fix error in SIM imported state" into ub-contactsdialer-h-dev
ee9af7bad7b359c5f89072cc15506a96a91a2cac 08-Nov-2016 Gary Mai <garymai@google.com> Merge "Revert "Revert "Load the raw contact's photo in picker dialog""" into ub-contactsdialer-h-dev
43a4b9cbbc213bf2fc64302703f6f1659c7c9644 08-Nov-2016 Walter Jang <wjang@google.com> Merge "Revert "Ask for confirmation before importing from vcard""
76c06332bb0dcabad6c221b84a82f1813f289315 08-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix error in SIM imported state

The imported and dismissed flags were flipped

Test
see I24df1f6b658644aaf84edbf12eba9711ff4d1999

Bug 32698786

Change-Id: I221a5a3a0eefe8e95ff956ea260a04f4cf898df3
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/model/SimCard.java
acc0c91a96c03f5073fdaadea1846d8ad1b3b691 08-Nov-2016 Sean Midford <midfords@google.com> Changed picker to stay as long as chooser is shown am: 9970f301c1
am: 2ee4d7e021

Change-Id: I873cc8951baafed781ed615f3474df254c76dedc
2ee4d7e02105c245e26394aed1a324c3e2a36ed7 08-Nov-2016 Sean Midford <midfords@google.com> Changed picker to stay as long as chooser is shown
am: 9970f301c1

Change-Id: I72298fba457fedfd802eb7aa7e885877d7dee73e
9970f301c1944c3d8155e1718ac34abbe8f69199 07-Nov-2016 Sean Midford <midfords@google.com> Changed picker to stay as long as chooser is shown

Changed behavior of the picker to remain visible behind
the viewer as long as the chooser is active. When the
chooser is dismissed or an option is selected the picker
will finish.

Test: Manual, verified that picker remains visible until
the chooser is acted upon.

Bug: 32413513
Change-Id: I520e25de19d2290b0e52ce2212856afd6e3ee06e
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
3a53328fe057610d44f228666c92c3c5ac2d4799 08-Nov-2016 Gary Mai <garymai@google.com> Revert "Revert "Load the raw contact's photo in picker dialog""

This reverts commit 3a5f94ffdb600864dc2f29df599cbdaa80046ffc.

Roll forward with fixes.

Test: manually verified:
* contact photos load in the main list
* no crash on viewing picker dialog

Bug: 32096517
Bug: 32384257
Change-Id: I6f798787abc928f6d287cde48182f2643aad364a
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/PickRawContactLoader.java
7333c37e858802a02ae46c49e726ce9a2bf94c9e 07-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add ability to detect that SIM import is in progress

SIM import might be long running so things may need to be updated
when it starts rather then when it completes.

Test
See Iae69fe2d96bae6d268f77515ca85eb572c2dfe9b

Bug 31781331
Change-Id: I9efdb181b97f3fdf49cd31ba5d3eae43bcad674c
ndroid/contacts/ContactSaveService.java
ndroid/contacts/SimImportFragment.java
ndroid/contacts/common/database/SimContactDao.java
dbe074559a69a1f1ace1ad831663f5380c27801e 08-Nov-2016 Walter Jang <wjang@google.com> Revert "Ask for confirmation before importing from vcard"

This reverts commit 915ccdd279adcf61f26a78cf5c04595ae707b8d5.

Bug: 32219099

Change-Id: Ib141ad682488aeabf6d90e8d169d5fff6df7a8dd
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/ImportVCardDialogFragment.java
bd827ee4a0e81d0cc55e4a3bb478582cdcca8c5a 08-Nov-2016 Walter Jang <wjang@google.com> Revert "Load the raw contact's photo in picker dialog" am: 3a5f94ffdb
am: 735cd5b2d7

Change-Id: I589e6a468dea9b50cf4dccc33bde0db22f06ea87
735cd5b2d7a5f668fe19e6b6dafbdd28b75288ea 08-Nov-2016 Walter Jang <wjang@google.com> Revert "Load the raw contact's photo in picker dialog"
am: 3a5f94ffdb

Change-Id: I78637d887e45dfe0877eb140bab6efd43d9556c6
3ca4af5a1cfac361309a2a270be72c13a1d1e5fc 08-Nov-2016 Walter Jang <wjang@google.com> Merge "Revert "Load the raw contact's photo in picker dialog"" into ub-contactsdialer-h-dev
1a42d21bb97c5e62a799fb4703fa83052cde80cb 08-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add method to check if SimContacts are available am: 1dd622835d
am: a6caa6598a

Change-Id: I4880cfaa7131b288dfd39d8f2e4394eba3ef1bc5
a6caa6598a1aa6689a05fafa79df0639a9d2c6cb 08-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add method to check if SimContacts are available
am: 1dd622835d

Change-Id: I4315950145282c20a26065b452ee8812412f59c4
3a5f94ffdb600864dc2f29df599cbdaa80046ffc 08-Nov-2016 Walter Jang <wjang@google.com> Revert "Load the raw contact's photo in picker dialog"

This reverts commit 21bdf08ac2f7e53a1fd9ee69317302b1d035169c.

Bug: 32096517
Bug: 32384257

Change-Id: I5f5f2790a394c9bf27da60b0630474eb92701e12
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/PickRawContactLoader.java
a6c8fe48ffdcac4685114c75292f6b7fd9f63150 08-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add method to check if SimContacts are available" into ub-contactsdialer-h-dev
1dd622835daeb338aa428c336022c2cba2ad9178 08-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add method to check if SimContacts are available

Also added some better docs for the SimCard class. See
I3c5e6542908260a24ab77cc59fc96beadc23132a for motivation of this
change.

Test
see I3c5e6542908260a24ab77cc59fc96beadc23132a

Bug 32143935

Change-Id: Ibf227f88289ed9826f6d03677af7c85772225da1
ndroid/contacts/common/model/SimCard.java
29702ac9930f4a46a6432e6638ebc421c9ae2f3c 08-Nov-2016 Gary Mai <garymai@google.com> Load the raw contact's photo in picker dialog am: 21bdf08ac2
am: 3cbe51d197

Change-Id: I67202f8e1851f54c28815f46cf6953bf1bea17c1
3cbe51d197867726469bccf2849e81bfea727c69 08-Nov-2016 Gary Mai <garymai@google.com> Load the raw contact's photo in picker dialog
am: 21bdf08ac2

Change-Id: I896beb4e4db05f3a7fe6f0d2ca9543dd98634996
a2e4511ccf5f050524c147b4277d4d5283eeaa96 08-Nov-2016 Gary Mai <garymai@google.com> Copy display name from the correct raw contact am: 7b75145e9b
am: 0cb3ab25d6

Change-Id: I89ada5d6935c5b826baed4393a196380114cb1bb
74940e1fbed7edf7ae204a8fa8945c90b9e8e606 08-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Load the raw contact's photo in picker dialog" into ub-contactsdialer-h-dev
0cb3ab25d607932a88236f445c56db3422d01c79 08-Nov-2016 Gary Mai <garymai@google.com> Copy display name from the correct raw contact
am: 7b75145e9b

Change-Id: I76b7aa4bce5e3eb61eba1bfe982f7f1246602db3
21bdf08ac2f7e53a1fd9ee69317302b1d035169c 08-Nov-2016 Gary Mai <garymai@google.com> Load the raw contact's photo in picker dialog

Add a photo query to get the photoId for the raw contact.
Use the photoId to get the thumbail from ContactPhotoManager.

When loading a photo from the databases, pass in an empty byte array
instead of null to indicate that there just wasn't a photo instead
of null which gets interpreted as a failure to load and so the
special BITMAP_UNAVAILABLE holder is used to prevent further
attempts at loads (see b/21423350). Since the change only converts to
empty when reading from the database, that network bug should not
reoccur.

Test:
Verified:
* all photos for aggregates which have them appear in the
picker dialog
* removals, updates, additions to photos were reflected
immediately in the picker and main lists, including
to the me profile.

Bug: 32096517
Bug: 32384257

Change-Id: Ib704f84a351490bd2e34825d9602be813aa79b9b
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/PickRawContactLoader.java
7b75145e9b4fcd46c3cbb5678f8842934467b3aa 08-Nov-2016 Gary Mai <garymai@google.com> Copy display name from the correct raw contact

Save a copy of the loaded Contact.
If editing multiple read-only contacts, get the name from the
one that contributes it to the contact's display name.

Test:
Manually verified the correct behavior

Bug: 32477129
Change-Id: I6308d645b1030ed0f317aafc907db8ba762750c2
ndroid/contacts/editor/ContactEditorFragment.java
8c45f7c7badf8eea1ea4196fba3215da14d7faff 08-Nov-2016 Walter Jang <wjang@google.com> Merge "DO NOT MERGE Revert "First pass on account swicther (1/2)""
396574c9e9d6dabfdbfb9f3123f4eeaeab745425 08-Nov-2016 Wenyi Wang <wenyiw@google.com> Show account name in label view if account is group writable am: 96fb8b5ec9
am: a00285f781

Change-Id: I4212cbe2e722109697f023a8a4eab9ab7c6ba3ce
a00285f781ef6c5a10110bdfe2488657f141a38c 08-Nov-2016 Wenyi Wang <wenyiw@google.com> Show account name in label view if account is group writable
am: 96fb8b5ec9

Change-Id: Id92def2591d0d819be52bc0236c133a4560f3847
c0ab1383bfd72a5b883578d2e3e55dde30f0637a 08-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Show account name in label view if account is group writable" into ub-contactsdialer-h-dev
b1a62c4050ff3dde59268ce71e983fe5f71129d5 08-Nov-2016 Sean Midford <midfords@google.com> Fixed colour of cancel button in import dialog. am: 9da13abbfb
am: 1d4a46cc11

Change-Id: Ib5857caf8469deba036a22f8148515ef235dc7b6
1d4a46cc1155912345d2d8794800e285d39bc1b6 08-Nov-2016 Sean Midford <midfords@google.com> Fixed colour of cancel button in import dialog.
am: 9da13abbfb

Change-Id: Ie4d6c8de9888b9cc33a1803e0f403745871e63ee
96fb8b5ec9e6917bdc07f3d52110e92e52b9d178 07-Nov-2016 Wenyi Wang <wenyiw@google.com> Show account name in label view if account is group writable

Bug: 32116555

Test: manual - verify account name shows up in labels of
an Exchange account and Google account.

Change-Id: I17fb2ce8538984660b439a4667261b19367fc3c4
ndroid/contacts/list/MultiSelectContactsListFragment.java
91467fefb5898c0281f34e1b565d3950f0a5c305 08-Nov-2016 Sean Midford <midfords@google.com> Merge "Fixed colour of cancel button in import dialog." into ub-contactsdialer-h-dev
9da13abbfb16edfa866bf884a16b442b39208e13 07-Nov-2016 Sean Midford <midfords@google.com> Fixed colour of cancel button in import dialog.

Changed the colour of cancel button in import
dialog to primary theme colour.

Test: Manual, verified button displayed correctly in
lollipop.

Bug: 32622301
Change-Id: I10807114a02b8df289b4b1659525e084e8c47b3e
ndroid/contacts/common/interactions/ImportDialogFragment.java
454ee37654d45740d6be335b7f1dac306b9788cd 07-Nov-2016 Wenyi Wang <wenyiw@google.com> Remove an unused method am: f08e5d1020
am: 96897d0ba2

Change-Id: I8745024c535d3403b00b9cefb858cb91e3bba8a7
96897d0ba264b543a23ecfc3ad82b2b313a21c40 07-Nov-2016 Wenyi Wang <wenyiw@google.com> Remove an unused method
am: f08e5d1020

Change-Id: Ia1832d618d1643061cb8264b35232e2aa97ba4e6
b1f67d8c4f14ca96f36289ca080285b234c25200 07-Nov-2016 Gary Mai <garymai@google.com> Ignore read-only raw contacts in picker modal pt. 1 am: a172180513
am: 2add01d8e8

Change-Id: I17e8897c291d8eaf61d3d18abbf8fbb6a6f5176d
2f8005a7b1a216f4cdc0b7d2c7c577585bdbbca9 07-Nov-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove an unused method" into ub-contactsdialer-h-dev
2add01d8e815a2a9d88d992915d3da7cc530f802 07-Nov-2016 Gary Mai <garymai@google.com> Ignore read-only raw contacts in picker modal pt. 1
am: a172180513

Change-Id: I359f9f0b26d862ef3e8adb1c73ff45c92b7b9501
b9485a9c90054e80a0c3d18d50ab2832daae1c2f 04-Nov-2016 Walter Jang <wjang@google.com> DO NOT MERGE Revert "First pass on account swicther (1/2)"

This reverts commit c73a590e90781ee55b91970f3a4f0878a09db4bf.

Test: unit tests, diff to h-dev, and sanity test (opened
main list, editor, quick contacts, and labels)
Bug: 32634102
Change-Id: I9eb8941f9e570f8afe28f026874d4a63344cb06f
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/account/AccountDisplayInfo.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/common/util/DeviceLocalAccountTypeFactory.java
ndroid/contacts/common/util/NavigationDrawer.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
f08e5d10205da403d518d533999ed48c395433d9 07-Nov-2016 Wenyi Wang <wenyiw@google.com> Remove an unused method

Bug: 32673993

Test: see ag/1605120
Change-Id: I697c7957f0f402474bdcbff47971aa165cca5ea9
ndroid/contacts/editor/EditorIntents.java
a172180513fce7670fa1b2093c72966f6a377444 02-Nov-2016 Gary Mai <garymai@google.com> Ignore read-only raw contacts in picker modal pt. 1

Drop read-only contacts unless the SpringboardActivity is configured
not to.
Changed to using AsyncTaskLoader that returns a RawContactsMetadata
object which has all the information needed by the picker dialog.

Ignore legacy edit URIs and send silent feedback if they are given.

Test:
Manually checked the following scenarios has the correct behavior:
* Single writable raw contact
* Multiple writable raw contacts
* 1 read-only 1 writable
* 1 read-only
* 2 read-only
* Test app usage of legacy URI

Bug: 32640214
Bug: 32240763
Change-Id: Ia3542b927ea615a2b2d07f86cdc1ff8c91f99ba6
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/PickRawContactLoader.java
0ff9f97b55e46214bbb511e2111d6adf92caf069 07-Nov-2016 yaolu <yaolu@google.com> Show data entered in prefix, middle name and suffix in compact editor am: 6976549b3c
am: fc978b05f5

Change-Id: Iea552347c3d32e41a366c62a0b99de4a112a303e
fc978b05f56223d6716f589aabc5179699043629 07-Nov-2016 yaolu <yaolu@google.com> Show data entered in prefix, middle name and suffix in compact editor
am: 6976549b3c

Change-Id: I7c569ee4ea445c052ec61b1983bdcfbe71e0654f
110163d05c6a2670299892536e40b995eae6f77c 07-Nov-2016 Yao Lu <yaolu@google.com> Merge "Show data entered in prefix, middle name and suffix in compact editor" into ub-contactsdialer-h-dev
6976549b3c262174a71882923345a94128788eea 07-Nov-2016 yaolu <yaolu@google.com> Show data entered in prefix, middle name and suffix in compact editor

Bug: 32117557

Test: Manually tested that the prefix, middle name, or suffix field
will be shown in compact editor if there is data in that field.

Change-Id: I2c004e221cc9164820ea04b3b8db01d9a2d089c5
ndroid/contacts/common/model/account/BaseAccountType.java
81bbb68bbfcc2a44639384a6fadedd8ec8293e25 04-Nov-2016 Gary Mai <garymai@google.com> UX updates to read-only view of raw contact am: 079598fa2e
am: f6eb74d583

Change-Id: I5e3a4545f62f8fd721db71305296f9e2adfa8e39
f6eb74d583cf960de9bfc435f49378a4abbb0528 04-Nov-2016 Gary Mai <garymai@google.com> UX updates to read-only view of raw contact
am: 079598fa2e

Change-Id: Ide1b7e1892d3b898cc378025b57a27c28e410708
fd30f853da868b9cc0ed85905b9b280965cd246e 04-Nov-2016 Gary Mai <garymai@google.com> Merge "UX updates to read-only view of raw contact" into ub-contactsdialer-h-dev
079598fa2e09c22bb672715a9559b9d8973044d5 03-Nov-2016 Gary Mai <garymai@google.com> UX updates to read-only view of raw contact

Use back arrow for navigation icon.
Use "view only" string for title.
Change account header per screenshot in bug.

Test:
Manually checked and verified headers/navigation icons/titles of:
* view of read-only raw contact
* edit view of writable raw contact
* add new contact

Bug: 31868376
Change-Id: I1d390f785bf4c0de90102e6a9e02477a8c19ddee
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/RawContactEditorView.java
b840f2f9b85a5a0ab830cf0503a037d60101fd5a 03-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix talkback when tapping on disabled SIM contacts am: 25251581a3
am: 5812c11527

Change-Id: I8f4d31258ba046855697baae165bde6dfe9d89be
5812c1152786df08681a2cf15a8c8da74ebd2e54 03-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix talkback when tapping on disabled SIM contacts
am: 25251581a3

Change-Id: Ib1fc522b3a0b44d0391fe6bef8ebb9702cd56e5a
25251581a3045afa72a6771e29fb01929721be4a 03-Nov-2016 Marcus Hagerott <mhagerott@google.com> Fix talkback when tapping on disabled SIM contacts

Test
manually tap on disabled contact with Talkback on and verify that
snackbar is announced

Bug 31781331

Change-Id: I202349a5f7879f3446c632154ab7d9aa50eaacd6
ndroid/contacts/SimImportFragment.java
d5422621829173ce311f9a25f6b86db645abbac3 03-Nov-2016 Gary Mai <garymai@google.com> resolve merge conflicts of 3107b25 to ub-contactsdialer-master-dev
am: c80e7f1f0b

Change-Id: I960e095ecd856ac213337a994de8fcea00412ed3
c80e7f1f0bddee869b60f34d90cd254adf136c48 03-Nov-2016 Gary Mai <garymai@google.com> resolve merge conflicts of 3107b25 to ub-contactsdialer-master-dev

Change-Id: I6f2b3305d8d72fc01035f9c27d917b8e80ffb435
613dc67c7c6769651103ca484ab3192865e7a42e 03-Nov-2016 Gary Mai <garymai@google.com> Merge "Show "add account" dialog when it needs to appear" into ub-contactsdialer-h-dev
3107b25dcaea54943c58f984084fa9b348ea1885 03-Nov-2016 Gary Mai <garymai@google.com> Show "add account" dialog when it needs to appear

Don't show the dialog if the only account is not a device account.
Set the default to be the only account if it is *not* a device
account.

Test:
Manually checked:
* Removing only account and attempting to create a new account shows
dialog
* Clearing preferences shows dialog
* If dialog was canceled, verify dialog doesn't appear anymore.
* After adding a google account, (and without manually setting default)
verified adding a new contact did not show a dialog and the default was
automatically set to the only account on device.
* Having two accounts and no default shows the pick default account dialog
* Removing multiple accounts still has the same behavior as bullet 1

Bug:32555078
Change-Id: Iec664efca7e886d7376cd2aae7c5b2bdad3a8b84
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
7c898261046f63f79ade377df70a77128c65f6b6 03-Nov-2016 Walter Jang <wjang@google.com> Remove flags for removed opt-in server studies (1/2) am: 9adc9ef59d
am: 004d08eca3

Change-Id: Iba057cffb8d531e53cac48ba20fdaf28c8583ba0
004d08eca36bb76f196bebae6c07c22f5a598caa 03-Nov-2016 Walter Jang <wjang@google.com> Remove flags for removed opt-in server studies (1/2)
am: 9adc9ef59d

Change-Id: Ide03cae8efbedf114a0d5343d734d9cabd3a186d
9adc9ef59dd668a92dee7f913733a188eadde8b3 03-Nov-2016 Walter Jang <wjang@google.com> Remove flags for removed opt-in server studies (1/2)

Test: check that features are enabled even when prefs files
contains stale flag to turn the feature off.
Bug: 32623647

Change-Id: I4e1f06a9355d4befd7ff17600844b2c5786825c0
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
e0b1864c719cd4da168b097fab4f457429a2c80e 02-Nov-2016 Phil Weaver <pweaver@google.com> Force children to layout after listview layout. am: 80fc409de2
am: 108e7731a7

Change-Id: I5d9fdc928518aac7510ecf0321044a5e48354cfc
d40536eccc05dc028545de4aa2641d28a33598d8 02-Nov-2016 Sean Midford <midfords@google.com> Changed 'new' badge font to bold am: d0b2132f33
am: 1d4967f337

Change-Id: Ie271abbdb69260337ff0f1e91d87e330f32880f7
108e7731a7345691fbd5ed9978f7b8e4344c8521 02-Nov-2016 Phil Weaver <pweaver@google.com> Force children to layout after listview layout.
am: 80fc409de2

Change-Id: I71dd1af0989bff2cd524dd93866d07f9abcd2163
1d4967f3374b3d95ba601ce3c5269ced1b58658a 02-Nov-2016 Sean Midford <midfords@google.com> Changed 'new' badge font to bold
am: d0b2132f33

Change-Id: Ibbf5772959f4080836785cbac90e56dac3282925
817e9e6fdd5603250ea7aca1c1cbd73859350dcc 02-Nov-2016 Walter Jang <wjang@google.com> Merge "Force children to layout after listview layout." into ub-contactsdialer-h-dev
d0b2132f331fef85a06c441f3ed3a70c71fe4ff6 02-Nov-2016 Sean Midford <midfords@google.com> Changed 'new' badge font to bold

Changed 'new' badge font to bold for better look. Also
fixed badge showing while drawer is opening, then
disappearing when drawer is fully open.

Test: Manual, verified badge is displayed properly with
bold text. And verified badge disappears before nav drawer
is fully opened.

Bug: 32542932
Change-Id: If50e0611e468af892d8c7ec799a382a3cb8485fc
ndroid/contacts/ContactsDrawerActivity.java
80fc409de2cd035f3982e5a421ab09a5254d35bc 02-Nov-2016 Phil Weaver <pweaver@google.com> Force children to layout after listview layout.

This works around a bug in ListView in N and N-MR1.

Test: confirmed that the contact picker accepts clicks
immediately after load when fastscroll enabled on N-MR1

Bug: 31160338

Change-Id: I0aeef3d7554a88b0fb2c083234152be47beb3b2e
ndroid/contacts/common/list/AutoScrollListView.java
aa895731283334b65b55e8a8c3767a1f5a43f220 02-Nov-2016 Sean Midford <midfords@google.com> Merge commit 'dfd0b0d3c75bf46849a387b5a0109bcf17308bdf' into manual_merge_dfd0b0d
am: 524301ddc7

Change-Id: Ica471443f6722125cc8e7c46f6faec755f2a5f91
524301ddc74d00ecbb640814bd4b7fbc0d3f777d 02-Nov-2016 Sean Midford <midfords@google.com> Merge commit 'dfd0b0d3c75bf46849a387b5a0109bcf17308bdf' into manual_merge_dfd0b0d

Change-Id: Ibd1837b596b34476dc340d67661910146feae18d
9d96196f42b7c55f0444e7f476fce5b53f979079 02-Nov-2016 Sean Midford <midfords@google.com> Merge "Added 'new' badge to navigation drawer." into ub-contactsdialer-h-dev
dfd0b0d3c75bf46849a387b5a0109bcf17308bdf 01-Nov-2016 Sean Midford <midfords@google.com> Added 'new' badge to navigation drawer.

Added 'new' badge to navigation drawer for
assistant. The badge will show until the
welcome assistant card is dismissed.

Test: Manual, verified badge is displayed until user dismisses the
welcome card.

Bug: 32542932
Change-Id: I5145ebaefc88444773a1d25ff2bfb11e6e6b0678
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/util/SharedPreferenceUtil.java
edb1c56b818dbab93619818f030a0b1439e73848 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Remove avatars from SIM import am: b0914bcbaf
am: 8d95c8d362

Change-Id: I7e1225e69975b8eec4d13ccd30664f073c261d1b
8d95c8d362089840ed05d17ce36a71e19b0de6e6 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Remove avatars from SIM import
am: b0914bcbaf

Change-Id: I395e14f1765649d659a565fdf782b5358e520947
b0914bcbaff3dd494613d441466e1c549e57e97e 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Remove avatars from SIM import

SIM contacts can't have a photo anyways.
Also fixed clipping when the SIM import list is scrolled.

Test
manually verified that avatars aren't displayed on SIM import screen

Bug 31781331

Change-Id: Iee958c90dfb4759d5a18ecc2b5bce5cdffbaae99
ndroid/contacts/SimImportFragment.java
27e4b77581c0e5747c9f4e3e91f2c8e1d6c21953 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add experiment flag for device account detection. am: 7a756abd07
am: 8b3baee56d

Change-Id: Ifc1515e7a3c4400f0f76cf4e07d8b3e142ee8f21
8b3baee56d92040037253bab1714d8e72e3de86b 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add experiment flag for device account detection.
am: 7a756abd07

Change-Id: I99cf08562164137b22b01255f501537a50cc1433
928ae78f171cc022af1192be03c5f02ddbdf8800 02-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add experiment flag for device account detection." into ub-contactsdialer-h-dev
7a756abd07f2074374cea81aa4e9a0ac8d52b6f1 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add experiment flag for device account detection.

Device account detection does DB queries that could potentially block the UI
thread. Just returning the "null" account as the only device account is fine
for now.

Test
* manually verify that "device" account still shows in editor and default
account chooser when no other accounts exist
* manually verify that "device" account still shows in nav drawer when another
non-google account is added
* manually verify that "device" account is hidden after Google Account is
added

Bug 32312206

Change-Id: I347e9dcf0aa6252c7b0be79fea7757b03569edf7
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/Cp2DeviceLocalAccountLocator.java
ndroid/contacts/common/model/DeviceLocalAccountLocator.java
0ffac6ce876a29be3413d5c4ec498f1cc93f9029 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Disable only for current account in SIM import am: 6c42b4c3cd
am: 4d963c56ff

Change-Id: I6526b1b3ee273417a42331496e734e2dd48a7ec6
4d963c56ffac0dc496cbabd8c9d54088e29fc4c7 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Disable only for current account in SIM import
am: 6c42b4c3cd

Change-Id: If7f9e426f6e22348457d4e717d04f0e1b1625cb4
7d279aeaa3306d41d1e3a0d2ad811a2114a9930c 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Merge "Disable only for current account in SIM import" into ub-contactsdialer-h-dev
165490f4ad942a9eb6e7f385c7e5e660cebd89a0 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Don't show "device" on SIM import after account added am: d7a5c2a7f7
am: 091b634253

Change-Id: I8bbbfea6d8fcf11d66bddcd7a37dc04a111d5cdb
6f20ee58a36d5dfd38a01cb5f5785ddb5ec44da9 02-Nov-2016 Walter Jang <wjang@google.com> Revert "Fallback to CP2 when we don't get anything from yenta" am: d2c9b69e1f
am: 395b076b17

Change-Id: I3282477905af270176cb2b6c6acf16b0464d7d14
091b634253fefa59ea2a0aa075e1b984a16e4f78 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Don't show "device" on SIM import after account added
am: d7a5c2a7f7

Change-Id: If88a34c5d86bc02db87266a05c9bf41b12254d7b
395b076b1795b0e3f08454a24fedf6e49912f7ce 02-Nov-2016 Walter Jang <wjang@google.com> Revert "Fallback to CP2 when we don't get anything from yenta"
am: d2c9b69e1f

Change-Id: I41ca54ff3ddefee0576637de841a8bfb667502a0
d0bedf51a1e2c16cd1585a9741310bc3e0b0f3f6 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Merge "Don't show "device" on SIM import after account added" into ub-contactsdialer-h-dev
d7a5c2a7f795980212dce4a833c96729fee200cb 02-Nov-2016 Marcus Hagerott <mhagerott@google.com> Don't show "device" on SIM import after account added

If "Device" was set as the default it would stick on the SIM import screen
even after a Google account was later added.

Test
manual:
* have device with no accounts
* set default account to "Device"
* verify that "Device" is destination on SIM import screen
* add Google account
* verify that Google is destination account on SIM import screen
* verify that "Device" is no longer shown as option on SIM import screen

Bug 32571048

Change-Id: I0793ade5bd496442b536b2f8a6b22f7bd1a8cadc
ndroid/contacts/common/model/account/AccountWithDataSet.java
d2c9b69e1f341587bd484154bfb3f05905d05b8b 01-Nov-2016 Walter Jang <wjang@google.com> Revert "Fallback to CP2 when we don't get anything from yenta"

This reverts commit b064f94bfd0b872eefc4c581902df5bc43b29970.

Test: see I8da3a4b292448d547206c99a516683b0c98d215a
Bug: 30436991

Change-Id: I9d878599435373c49588e96857330afc667272ba
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
6c42b4c3cdfa23031b7cad5d90b68647b75a3948 31-Oct-2016 Marcus Hagerott <mhagerott@google.com> Disable only for current account in SIM import

SIM contacts are now only disabled if they exist in CP2 in the account that
is current selected in the SimImportFragment.

Test
manual:
1. have device with multiple accounts
2. import contacts from SIM card
3. go back to SIM import screen
4. verify that contacts are disabled and unselected when account from step 2
is selected
5. verify that contacts are enabled and selected when a different account is
selected

Bug 31781331
Bug 32575794
Change-Id: I682c678bfccf78abfcc67cb354efe7bd92fb3676
ndroid/contacts/SimImportFragment.java
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/model/SimContact.java
66860e481572fb3808657f98c3a29c37aabfbcb5 01-Nov-2016 Marcus Hagerott <mhagerott@google.com> UI tweaks to ImportDialogFragment am: 8636d1e7bb
am: fef66ac034

Change-Id: Ia8c1a3a85047ab3ec32cf2520caebe0dc4f33f3e
fef66ac034a0794d065d3d0e8f5c4933bf9744dc 01-Nov-2016 Marcus Hagerott <mhagerott@google.com> UI tweaks to ImportDialogFragment
am: 8636d1e7bb

Change-Id: I8ebb20145e813aa19741cc7d157c525ed885c2a1
939c34dcc9087f6c3573b5be6cff40366514f35c 01-Nov-2016 Marcus Hagerott <mhagerott@google.com> Merge "UI tweaks to ImportDialogFragment" into ub-contactsdialer-h-dev
8636d1e7bbc33ffcdefc80ef3f49472fe901d33a 28-Oct-2016 Marcus Hagerott <mhagerott@google.com> UI tweaks to ImportDialogFragment

It's now able to show the number of contacts on the SIM card for the
SIM options if the counts are passed as arguments.

Test
manual: verify that ImportDialogFragment UI reflects changes

Bug 31781331
Change-Id: I5b20287ae504470866af2ad83c61794876fdbf7e
ndroid/contacts/common/interactions/ExportDialogFragment.java
ndroid/contacts/common/interactions/ImportDialogFragment.java
ndroid/contacts/common/model/SimCard.java
14caf5340e5399cadcc16dd2762dd41229d2c34d 01-Nov-2016 Walter Jang <wjang@google.com> Fallback to CP2 when we don't get anything from yenta am: b064f94bfd
am: f9cc93ceaa

Change-Id: I9c902a4348547f689dcef3789fbf4a08beef2493
f9cc93ceaa661762d3f6ed3e0955df220618701c 01-Nov-2016 Walter Jang <wjang@google.com> Fallback to CP2 when we don't get anything from yenta
am: b064f94bfd

Change-Id: I342796124221440bbb802f933063ba1e0280882a
b064f94bfd0b872eefc4c581902df5bc43b29970 01-Nov-2016 Walter Jang <wjang@google.com> Fallback to CP2 when we don't get anything from yenta

Test: see I553a9b3f7056aa24943db222f8450d5e5a6a4932
Bug: 30436991
Change-Id: Ia9fa55e274cc8e95b0e4d8d88f7a0859cc6d4231
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
b0c938acbba9eb31dbe0a16f4fcfee05d348aa31 01-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add null check when loading telephony subscriptions am: 97c2358aa9
am: d4655d5b9d

Change-Id: I8d8375639155d68bdac7cb73d20f08ac294023e0
d4655d5b9d4ddd34fc7111820fc15a61b01fcb3e 01-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add null check when loading telephony subscriptions
am: 97c2358aa9

Change-Id: I2cf7dba48d90cd1d654fe31c2cd10107e6a78cb0
97c2358aa9dd142a08c475d308fc3bdd57b5464f 01-Nov-2016 Marcus Hagerott <mhagerott@google.com> Add null check when loading telephony subscriptions

SubscriptionManager.getActiveSubscriptionInfoLis() can return null and this
wasn't being handled. The linked bug was already fixed by a different change
but the additional check is good to do.

Test:
manual verify that ImportDialogFragment works with and without a SIM card

Bug 32556709

Change-Id: I325cb30b5559626d91f0f79aaa1c99b98a39b070
ndroid/contacts/common/database/SimContactDao.java
a3ff3cec4e0d603e8991b90d2b837215f78e303e 01-Nov-2016 Marcus Hagerott <mhagerott@google.com> Disable existing contacts on SIM import screen. am: 2aa3198b68
am: 5cbe6a2969

Change-Id: I7554f0658546f21177afdde811d75693b74449ed
5cbe6a2969f8e52a5617b4947bd87c6ca30b256e 01-Nov-2016 Marcus Hagerott <mhagerott@google.com> Disable existing contacts on SIM import screen.
am: 2aa3198b68

Change-Id: I5d35b1d4f5051099d1e70b087e0442b5a97d6cf8
01d4350f219422d2c3ae5284f41f6d86d2a1a3f8 01-Nov-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Disable existing contacts on SIM import screen." into ub-contactsdialer-h-dev
2aa3198b6881c3272a0295fec85646e7ef2282cf 25-Oct-2016 Marcus Hagerott <mhagerott@google.com> Disable existing contacts on SIM import screen.

Test
manual: import some SIM contacts and verify that they are disabled when opening
the SIM import screen the 2nd time.

Bug 31781331
Change-Id: I670a4650281246682dbce9320ef65e517bfe0f31
ndroid/contacts/SimImportFragment.java
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/model/SimCard.java
ndroid/contacts/common/model/SimContact.java
ndroid/contacts/util/SharedPreferenceUtil.java
586b88a77e4c28655769f47f58e01019078b8c0f 01-Nov-2016 Walter Jang <wjang@google.com> Hide the custom contacts view pref if no accounts am: 5928e70c47
am: 6047f7a3f5

Change-Id: I801a3c063168fea62b12ee39b9ddc321e45caf82
6047f7a3f513e36f4f2ac9680d5cbf87f8ba5426 01-Nov-2016 Walter Jang <wjang@google.com> Hide the custom contacts view pref if no accounts
am: 5928e70c47

Change-Id: Idffe5ac95b4ce3ef95fbbe92407fbb56718c5055
5928e70c473805e4dd9b3c4916e3d67dcc6e5bdc 01-Nov-2016 Walter Jang <wjang@google.com> Hide the custom contacts view pref if no accounts

Test: manually test it's hidden w/ no accounts

Bug: 32555062
Change-Id: If4fa0195df3c65367947069f28532537d98ff799
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
b66bf362ff05443647dfe8a64329fa8dbe2aa7ca 31-Oct-2016 Gary Mai <garymai@google.com> resolve merge conflicts of 4ac5629 to ub-contactsdialer-master-dev
am: a5ccbe3f70

Change-Id: Ie63f2c30e5f97c727186fe654c3a98b73a244ceb
a5ccbe3f709b7b53c0f9caf33a8be9c960413a2f 31-Oct-2016 Gary Mai <garymai@google.com> resolve merge conflicts of 4ac5629 to ub-contactsdialer-master-dev

Change-Id: I23cd9c9fcc0a52676a333d5415995799ae30257a
4ac5629ee600e59ccccf969c1a7371bbba20b0da 31-Oct-2016 Gary Mai <garymai@google.com> Fix overlapping tool bar and action bar in groups view

When the group action is removing a member from the group
call switchToOrUpdateGroupView so it uses the previous instance.
We need to remember that the fragment was in edit mode.

Test: Checked removing a contact from label using the delete icon
* Shows the correct toast
* Updates the list
* Doesn't show overlapping bars
* Allows the user to continue deleting contacts.
Also checked correct behavior for:
* Multiselect removals
* Multiselect additions
* Renaming the label

Bug: 32431977

Change-Id: I5597cc5e0ca0a5e0a54dfc3180352fbb90d403d9
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
d97194f1add95e5aced486f0abb2363c229e6432 31-Oct-2016 Walter Jang <wjang@google.com> Use MoreObjects.toStringHelper instead of Objects (1/2) am: 1a9b44e3fd
am: 4f827de171

Change-Id: I9a22fb5274dca2bbf077fee2b30e6801e1d0c2f5
4f827de171cf7a77d72f42227fe3840b856e2992 31-Oct-2016 Walter Jang <wjang@google.com> Use MoreObjects.toStringHelper instead of Objects (1/2)
am: 1a9b44e3fd

Change-Id: I8e41cb7808bb6d8de4f9ea05b21179a159cdaeb7
9a18fe641f4a3d97efb1359b967fbe52846c178b 31-Oct-2016 Walter Jang <wjang@google.com> Merge "Use MoreObjects.toStringHelper instead of Objects (1/2)" into ub-contactsdialer-h-dev
1c3c16b64c777ba371a46171238c55220bb6e570 31-Oct-2016 yaolu <yaolu@google.com> Fix QuickContact header color on avatar removal am: b120cd3c62
am: 9df032c10f

Change-Id: I29e4cc4e56fb4a89ea9ddf2a6ec8c1db4869612f
9df032c10fb31621b7951237621f4a0a9134360e 31-Oct-2016 yaolu <yaolu@google.com> Fix QuickContact header color on avatar removal
am: b120cd3c62

Change-Id: I16bb84e63f545db7cd630a99ebb7e04a613443cb
44ecf8a12c91143a34c965f767a2e6120ae059bc 31-Oct-2016 Yao Lu <yaolu@google.com> Merge "Fix QuickContact header color on avatar removal" into ub-contactsdialer-h-dev
1a9b44e3fde8e30a3a0f9429bf2f727a89691947 31-Oct-2016 Walter Jang <wjang@google.com> Use MoreObjects.toStringHelper instead of Objects (1/2)

To match clean up in google3 cl/137533342

Test: unit tests

Change-Id: I4f771ea0d699c5a4aaf95afab26c35fd12d73a05
ndroid/contacts/common/logging/ListEvent.java
ndroid/contacts/common/logging/QuickContactEvent.java
ndroid/contacts/common/logging/SearchState.java
ndroid/contacts/group/GroupMetaData.java
b120cd3c623087a92bed213cd8d64b1f8c0d7709 30-Oct-2016 yaolu <yaolu@google.com> Fix QuickContact header color on avatar removal

In landscape mode setting header color may not reflect the avatar
change. This fix always set the header tint, and let the photo view
decide to use it or not when its setImageDrawable() gets called.

Bug: 32380331

Test: manual test on Nexus 5x with NMF following repro steps observing
that the photo view restore the colored default drawable.

Change-Id: I4b54929bd34f168440e7bdb554ca37804a6a9bd7
ndroid/contacts/widget/MultiShrinkScroller.java
325149c925822ea17171ee66ac74d9ddb7bd8702 30-Oct-2016 Walter Jang <wjang@google.com> Ask for confirmation before importing from vcard am: 915ccdd279
am: 69ba1c6291

Change-Id: If76df52425ba2bba46b8d6b6db9085e0d4e950d0
69ba1c6291247c1aec86a7e3d388f710e9f95182 30-Oct-2016 Walter Jang <wjang@google.com> Ask for confirmation before importing from vcard
am: 915ccdd279

Change-Id: Ie0b0690d4388c47dd7ae0840fb16c0413ab15557
e3af4c5d9c25b02ab182bf5f8869b83fb4d2b3fa 30-Oct-2016 Walter Jang <wjang@google.com> Merge "Ask for confirmation before importing from vcard" into ub-contactsdialer-h-dev
915ccdd279adcf61f26a78cf5c04595ae707b8d5 24-Oct-2016 Walter Jang <wjang@google.com> Ask for confirmation before importing from vcard

But only when vcard import is started from outside
the contacts application itself.

Test: Manually confirmed the following behavior

1. When there is 0 or 1 writable contacts providing
account on the device:
- Importing contacts from the contacts app itself
DOES NOT SHOW the new confirmation dialog. On M+
devices, if the storage permission has not been
previously granted or dismissed, the new confirmation
dialog is also NOT SHOWN after granting the storage
permission.
- Sending a vcard to contacts from another application
DOES SHOW the new confirmation dialog. On M+
devices, if the storage permission has not been
previously granted or dismissed, the new confirmation
dialog is also SHOWN after granting the storage
permission.

2. When there are 2 or more writable contacts providing
accounts on the device:
- Importing contacts from the contacts app itself
DOES NOT SHOW the new confirmation dialog, instead the
existing account picker dialog is displayed. On M+
devices, if the storage permission has not been
previously granted or dismissed, the new confirmation
dialog is also NOT SHOWN after granting the storage
permission.
- Sending a vcard to contacts from another application
DOES NOT SHOW the new confirmation dialog, instead the
existing account picker dialog is displayed. On M+
devices, if the storage permission has not been
previously granted or dismissed, sending a vcard to
contacts from another application also DOES NOT SHOW
the new confirmation dialog.

Bug: 32219099

Change-Id: I0310c6e35cb378e1fe22691e5aecdb8ece1a3c9e
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/ImportVCardDialogFragment.java
a7f6ea4ad0aaae862a6669c7ede857330791b90b 30-Oct-2016 Walter Jang <wjang@google.com> Add getContext() to PickRawContactDialog Fragment am: 68de0a5baa
am: 8845501106

Change-Id: I8166380e899ece75489b2e9a14ae2bb0b7f64639
8845501106c36ded087997e77272456a136426e0 30-Oct-2016 Walter Jang <wjang@google.com> Add getContext() to PickRawContactDialog Fragment
am: 68de0a5baa

Change-Id: If20d98bd9ec95d1ccc2eb77fe4d1b5ed691cb33c
68de0a5baa8601e6b39f759b036c3d8bce0189c4 30-Oct-2016 Walter Jang <wjang@google.com> Add getContext() to PickRawContactDialog Fragment

Test: open editor on Nexus 5 LMP
Bug: 31088704
Change-Id: I320070cdbd87c2aaa9d4bed940b78d08170da686
ndroid/contacts/editor/PickRawContactDialogFragment.java
e061c50bc991b2e13c5237df9f2522430ccc269a 29-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when QuickContactActivity opened from dialer am: 677ee2bd9c
am: 29013fb838

Change-Id: Ide721e8ae05b4cb4b7a3f65722a12f41ee3b53bd
29013fb838a7065f93567be26a7e3e0f3a10def4 29-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when QuickContactActivity opened from dialer
am: 677ee2bd9c

Change-Id: I43b18890fa22788656ab62bb32049355b5412711
2a2cc48c03d28c7de8318d979de25932fc4d2bab 29-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge "Fix crash when QuickContactActivity opened from dialer" into ub-contactsdialer-h-dev
fd7616ea4d601b41e86829614363a72a2ef1ac37 29-Oct-2016 Sean Midford <midfords@google.com> Changed how defaults are picked for group send. am: 009bb75def
am: 78814904d2

Change-Id: I45ae8835bbee33187dce8912a067e0edd8971ff9
78814904d284d900cf3d8186e96c84489c943abf 29-Oct-2016 Sean Midford <midfords@google.com> Changed how defaults are picked for group send.
am: 009bb75def

Change-Id: Id9ff3437df6cbd211d011c8c761987c5a54dce1b
4ebeaab4fd70caf6597eef8c6f4fd662fe10e142 29-Oct-2016 Sean Midford <midfords@google.com> Merge "Changed how defaults are picked for group send." into ub-contactsdialer-h-dev
1fe3a1d535847103aebae090fe5438fe4d1b70ea 29-Oct-2016 Gary Mai <garymai@google.com> Add SharedPrefs util methods for restore dismissals am: 86f2771637
am: cdff7ad2f3

Change-Id: I1f0d29fc5528c9736f60999f7c0b39c741be5cc1
677ee2bd9c37f3bc4cbfd1f05b3c93f12a7299f3 29-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when QuickContactActivity opened from dialer

DynamicShortcuts did not do a null check on the lookup key for usage
reporting.

Test
Manual: verify app doesn't crash when opening a non-contact number from dialer

Bug 32512382

Change-Id: Idff54205b336a4976914f29d352d26b80c3ff21d
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/quickcontact/QuickContactActivity.java
cdff7ad2f3c0c13f30da7687f23753197ed1cf50 29-Oct-2016 Gary Mai <garymai@google.com> Add SharedPrefs util methods for restore dismissals
am: 86f2771637

Change-Id: I506b4ea1cff4471e1997da95adef7fcd248c19c8
15e640699e9fb0833dbbf08845ab249f8fa7f104 29-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add SharedPrefs util methods for restore dismissals" into ub-contactsdialer-h-dev
009bb75def94a2fd11509e6009d66565f2c54c49 27-Oct-2016 Sean Midford <midfords@google.com> Changed how defaults are picked for group send.

In the email/phone picker there will always be a defaut
selected for contacts. Defaults are based on if the
contact has a primary set, if the contact only has a
single email/phone, or lastly, which of the emails/
phones has the highest contact frequency.

Test: Manual test, defaults are now selected by picking
the item with the highest contact frequency.

Bug: 32460061
Change-Id: I1c0667d1a9825499cf6538df63270f2d0dfb21bf
ndroid/contacts/group/GroupMembersFragment.java
b2fc35f3c1ee43a9439d07f0c2c18d386ac3c96b 28-Oct-2016 James Laskey <laskey@google.com> resolve merge conflicts of 1387e78 to ub-contactsdialer-master-dev
am: ab0bd8ea3b

Change-Id: I6429482c5268e5a56756a4cd70d24a682aee7957
ab0bd8ea3b53044516f73bc7496667971d33b385 28-Oct-2016 James Laskey <laskey@google.com> resolve merge conflicts of 1387e78 to ub-contactsdialer-master-dev

Change-Id: I89e04522fc0332b59f6765858fadc2ffe59ea619
8fad26543446aea249c77152dd766933e5fec8dc 28-Oct-2016 Jim Laskey <laskey@google.com> Merge "Always display toast for creating group" into ub-contactsdialer-h-dev
86f27716376c0693d46188b25b6eaf6b94687930 28-Oct-2016 Gary Mai <garymai@google.com> Add SharedPrefs util methods for restore dismissals

Bug: 32174821
Change-Id: I3c42986777228bd9631824afbde22405ea31174e
ndroid/contacts/util/SharedPreferenceUtil.java
a4c8c6e4fc5f3053e04dc7db41919fcf7b7b6cf3 27-Oct-2016 Gary Mai <garymai@google.com> UX update to edit linked contact modal am: 27e8c3a364
am: fe829e601d

Change-Id: I4f2447ce1b6de543fc09193d63ae9eb50a2264ba
465f51181021f13834a966cfa162cf0d101b2853 27-Oct-2016 Gary Mai <garymai@google.com> Change aggregation suggestions to be raw contacts am: 678108ebb9
am: 9f616a0048

Change-Id: I0cb7f43985a0ea192bad886a39755835e87bda83
fe829e601d2676dd91dfa39735b479f0c01d5fcb 27-Oct-2016 Gary Mai <garymai@google.com> UX update to edit linked contact modal
am: 27e8c3a364

Change-Id: I1cbc1d0beafd433cabdf311d4b3a3501a29683c2
9f616a0048222a909833ebce812eb99f5bcef6a4 27-Oct-2016 Gary Mai <garymai@google.com> Change aggregation suggestions to be raw contacts
am: 678108ebb9

Change-Id: If7ed7c7b55594cf3fb67c0246f1d16f1a25cb431
c1fa9b75f2739c184294a65aa33887c82fc46a15 27-Oct-2016 Gary Mai <garymai@google.com> Merge "UX update to edit linked contact modal" into ub-contactsdialer-h-dev
173e2d524e6f684f5615fc317b2a1e50fb7d1ea0 27-Oct-2016 Gary Mai <garymai@google.com> Merge "Change aggregation suggestions to be raw contacts" into ub-contactsdialer-h-dev
1387e78663cd54e7e569ef4b8ab3e324c642f792 26-Oct-2016 James Laskey <laskey@google.com> Always display toast for creating group

Bug: 32243988
Bug: 32091619
Bug: 32432333
Test: Open left nav and create groups observing toast from browse and
duplicates screens.
Test: Add to and delete from group, observe toast.
Test: Rename group, observe toast.

Change-Id: I4885fcac570c9e0c4d04e68d2615ec8c69c6b61e
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
9586cb196214c7b9ac41177eacd0892111849270 27-Oct-2016 yaolu <yaolu@google.com> Change app icon, primary color, FAB color and snackbar action color(1/2) am: 14235e6799
am: 6b648ff7f1

Change-Id: Id18a9b0e4eb894bd5dbe0cbc89d1c6217768337a
4f7d4b9470e07ec4e661aada86c984efa5481b5c 27-Oct-2016 Marcus Hagerott <mhagerott@google.com> Use SimCard class in ImportDialogFragment am: 216e297d01
am: 40bacfb03a

Change-Id: Iaa4f519b67d0b975714892d4ebeef9ed4ad18483
10cbae5c2126cbaaa02561d50e40413a6b6534b2 27-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add better support for importing from multiple SIMs am: 66e8b228b4
am: 9fb40d30b4

Change-Id: I30bc71f5b49e0dee58b6b70a75dcb379a6da5d46
27e8c3a3643923dcd6b41b956b0e6067c1d92dbb 27-Oct-2016 Gary Mai <garymai@google.com> UX update to edit linked contact modal

Remove "(read only)" string.
Remove gray from read-only accounts.
Use ViewHolder pattern.

Test:
Manual test of modal with read-only raw contact.

Bug: 32460007
Change-Id: Id4d7fd45d120e1bebe6172e324efd3d20fcd7e46
ndroid/contacts/editor/PickRawContactDialogFragment.java
6b648ff7f1196cda09e5c21f00ae6459c8362e3f 27-Oct-2016 yaolu <yaolu@google.com> Change app icon, primary color, FAB color and snackbar action color(1/2)
am: 14235e6799

Change-Id: I6591f27f4b858e4fad194f56b3b4052e2ee79cd5
40bacfb03ad5b832a91400dc45c1c844ab284cb9 27-Oct-2016 Marcus Hagerott <mhagerott@google.com> Use SimCard class in ImportDialogFragment
am: 216e297d01

Change-Id: I31e3f48bde7a9f21e1b0813ab191d98bfce222aa
9fb40d30b41a59faed73f874035b23042094d0ad 27-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add better support for importing from multiple SIMs
am: 66e8b228b4

Change-Id: I8b2e8f48da8decb8ab609d65d4b16cc868737fda
b3705bc65564b13a60cc577e2fee2d543732c913 27-Oct-2016 Yao Lu <yaolu@google.com> Merge "Change app icon, primary color, FAB color and snackbar action color(1/2)" into ub-contactsdialer-h-dev
966a88e0fc0a6b55f3966504f0878f99311ec8e6 27-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes from topic 'contacts-multisim' into ub-contactsdialer-h-dev

* changes:
Use SimCard class in ImportDialogFragment
Add better support for importing from multiple SIMs
678108ebb9926a79ad0d7ac4f11417dec1583d42 26-Oct-2016 Gary Mai <garymai@google.com> Change aggregation suggestions to be raw contacts

Each suggestion is a raw contact that belongs to the same account
of the currently edited raw contact.
Surfaced data is the raw contact's data.
Pass the current changes to the newly selected raw contact.
Remove a few unneeded methods.
Removed the join option for tapping on a suggestion since all raw
contacts selected from here will be editable.

Since QuickContact depends on the aggregation suggestion engine to
return contact level suggestions also removed everything related to
it there since it's currently disabled.
b/29216287 tracks plans bring it back but it probably won't be in the
form of using the suggestion engine to populate the card, so it felt
okay to remove the code. Layouts were left in case they can be reused
later.

Test:
Opened QuickContact
Tested the suggestions for a contact with multiple raw contacts both
in and out of the current account and made sure only ones in the
current accountwere shown.
Checked contact with raw contacts which have different names, made
sure those displayed correctly. CP2 doesn't store the alternative
versions of raw contact names so the primary one is always shown
which is a non-regression.

Bug: 32277025
Bug: 32278866
Bug: 31088704
Bug: 31704115
Change-Id: Ibd4bdaaf100ffd5524eebac300d23763bbe6a22d
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/SuggestionEditConfirmationDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
216e297d01173fab5df9cd92bcbff0da87331967 27-Oct-2016 Marcus Hagerott <mhagerott@google.com> Use SimCard class in ImportDialogFragment

This simplifies the ImportDialogFragment and makes reading of the SIMs more
consistent in the App.

Test
manual: open ImportDialog fragment on phones with 1 and 2 SIM cards

Change-Id: Ie0f2ead2d29c2b7c208a060bee1292533c51b967
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/interactions/ImportDialogFragment.java
ndroid/contacts/common/model/SimCard.java
14235e6799d4b18d8fb439ef2e42cfe3bcaa344f 22-Oct-2016 yaolu <yaolu@google.com> Change app icon, primary color, FAB color and snackbar action color(1/2)

1) New round launcher with dark blue color for all devices
2) set primary color to #2a56c6 (including action bar, list headers,
all buttons)
3) set status bar color to #2a56c6
4) set fab color to #f50057
5) set snackbar action text color to #ffffff

Bug: 32243198

Test: Manual test on nexus 5x, nexus 7 and pixel

Change-Id: Iab8b224ee416729c17ba32d2cb5f3250c8298fcb
ndroid/contacts/activities/PeopleActivity.java
66e8b228b4dc76bf63a138de3087574adf694e87 24-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add better support for importing from multiple SIMs

For I102f4f14ae976e550f65c83ee695d7cdc241e4e1

Test
See I102f4f14ae976e550f65c83ee695d7cdc241e4e1

Bug 31781331
Change-Id: I849e441d1ab42bff135b300b34595eb8ed468005
ndroid/contacts/ContactSaveService.java
ndroid/contacts/SimImportFragment.java
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/model/SimCard.java
ndroid/contacts/util/SharedPreferenceUtil.java
e5171b13f0dcd8ce3d06a652062c1fc571aa6472 27-Oct-2016 yaolu <yaolu@google.com> Enable pull to refresh for custom filters am: 2bbc02db38
am: 8d8ff77a8c

Change-Id: I078b20054898271ec1da38b08130cfcb6fbbfc64
8d8ff77a8c54489f23b3cd2a9ffdce08632723d5 27-Oct-2016 yaolu <yaolu@google.com> Enable pull to refresh for custom filters
am: 2bbc02db38

Change-Id: I64e3a7f08632698cca58d3f9636fcd0dd9fc812f
c7ffa23e1677d7e11d0207341e383e30aaa113a7 27-Oct-2016 Yao Lu <yaolu@google.com> Merge "Enable pull to refresh for custom filters" into ub-contactsdialer-h-dev
2bbc02db38ae76c01678102fc244a0b499a4cb54 27-Oct-2016 yaolu <yaolu@google.com> Enable pull to refresh for custom filters

Bug: 32074448

Test: manually tested on customized view
1) pull to refresh works if there is at least 1 google account,
2) no pull to refresh if there is no google account on device.

Change-Id: I1b2233eece284d3cfbfc7c0b3be13a6ae43928b4
ndroid/contacts/common/list/ContactListFilter.java
17bc5d4f6f1b3b157e4062624e24cd69d6f45a23 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> Stop switching to main contacts list unnecessarily. am: 74295d346b
am: 49a64cd501

Change-Id: Ia372d802f3ab3dcf0c02dc005990375edf2e260d
49a64cd501d434fd713ff95b0a9d00a75da7a3d2 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> Stop switching to main contacts list unnecessarily.
am: 74295d346b

Change-Id: I5144b51c547459a48f7abdee2ebd42a270ff6416
bbc2ed5062a201417585d802e7e30c9b2eb56450 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge "Stop switching to main contacts list unnecessarily." into ub-contactsdialer-h-dev
52782df21f48d28ea102da00b2be1957228c47b9 26-Oct-2016 Sean Midford <midfords@google.com> Fixed ellipse not showing in search mode. am: ae1b8d385a
am: c6850e3c1f

Change-Id: Id3981afc093c26717db4386bebdd5a1a6e3c1bb6
c6850e3c1fb3826e2bf01293c95f7a098bdfd306 26-Oct-2016 Sean Midford <midfords@google.com> Fixed ellipse not showing in search mode.
am: ae1b8d385a

Change-Id: I493538287442362165d3c367338a6e22dc32ba73
841287c6da33cc91efda6f915dff2f4ae7bd24a3 26-Oct-2016 Sean Midford <midfords@google.com> Merge "Fixed ellipse not showing in search mode." into ub-contactsdialer-h-dev
74295d346b349b8cd39be9cc00b000cf36d20780 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> Stop switching to main contacts list unnecessarily.

Test
Manual: follow repro steps from each bug and verify expected behavior occurs

Bug 31838582
Bug 31829161
Bug 32068858
Bug 32379067
Bug 32377019
Bug 32339019

Change-Id: Ie2760ed144854f8c6e57b6b7ba7353864180c2e7
ndroid/contacts/activities/PeopleActivity.java
8bcd7ed214f86f6d55ae8dd1b3e5f237051fa0fc 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> New fix for title when account is opened from group am: 45451eaf60
am: 9175dbe4dc

Change-Id: I817bdc123d772219193d3b23a277bf80645ac3ad
b3c2c40d302c7fa433189832defb3997606d13c3 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> Revert "Fix title when account screen is opened from group." am: d6d5ad5044
am: de65f922ec

Change-Id: I7402ce41ca871bc37fa4240e4d42dfe77a163b43
9175dbe4dc9bcf2de206800ec1ef10e83f68a4a0 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> New fix for title when account is opened from group
am: 45451eaf60

Change-Id: If2ca689360184f91d452ba056287badc5383cc23
de65f922ecc783692431de6545afb6df22c8aff1 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> Revert "Fix title when account screen is opened from group."
am: d6d5ad5044

Change-Id: I806b5856559b0aee9c4df17ae1fc0820638cbf8f
45451eaf6098c579d6ccba67652812f48acca98b 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> New fix for title when account is opened from group

Test
same as I2bbb8887db26d26174daf2ae089f29a87c38ccc1

Bug 32223767
Change-Id: I3df42536b325ff974436d79266e9aa8917989b70
ndroid/contacts/activities/PeopleActivity.java
d6d5ad504473c640b67e1ee4922fde073943c074 26-Oct-2016 Marcus Hagerott <mhagerott@google.com> Revert "Fix title when account screen is opened from group."

This reverts commit c1698713a5eb01a34628753eea83e673ba44973b.

This fix introduced a new bug.

Bug 32337882
Change-Id: I62baca4a5808f35911838a09a4abe48adc086581
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/group/GroupListItem.java
ae1b8d385adf05f0a5cc7079b984b02c1f1650f7 26-Oct-2016 Sean Midford <midfords@google.com> Fixed ellipse not showing in search mode.

Fixed dimmensions for list items so ellipse shows
when in search mode.

Test: Manual test, verified that list items now
all show ellipse and that the fix does not change
the behavior of other list views.

Bug: 31070853
Change-Id: I46c418407b62987820858b21f756877f51815487
ndroid/contacts/common/list/ContactListItemView.java
f7a30e9611b500f97abedf58e5c8fc0518dfdbba 26-Oct-2016 yaolu <yaolu@google.com> Modify QuickContact options menu am: 58a1ac2d41
am: bb9e28eb81

Change-Id: I11d443a6298d7baa40d8ecd860b493ba70849499
bb9e28eb810b93412bf15b80f7f3da5366821a36 26-Oct-2016 yaolu <yaolu@google.com> Modify QuickContact options menu
am: 58a1ac2d41

Change-Id: I463db2e72943416227150fd0df217ae2699e2c88
314129bf3d8e4ab5b5eb5e63e8af5d9b4b30c456 26-Oct-2016 Yao Lu <yaolu@google.com> Merge "Modify QuickContact options menu" into ub-contactsdialer-h-dev
58a1ac2d418c716599b06bed1fa1aad1160dbf54 25-Oct-2016 yaolu <yaolu@google.com> Modify QuickContact options menu

Changes are made to "create shortcut", "set ringtone", and
"route/unroute to voicemail" options.

Bug: 32340183

Test: Manually tested
1) ringtone and voicemail options show in QuickContact and only for
editable, non-userProfile contacts
2) choose ringtone, and route/unroute voicemail
3) strings are changed

Change-Id: I0b97f6a038fa454a11ad6ccf2a8ebd6bfb0c95b0
ndroid/contacts/quickcontact/QuickContactActivity.java
31f016838dcbf07e76d2724dd3c3189d68f2c6b8 25-Oct-2016 John Shao <johnshao@google.com> Editor Insert or Edit intent helper am: f8f6f95154
am: 62a12a322a

Change-Id: Ic2f5362722e60e0bff1edb3e59db5df44eea05f6
62a12a322a941a01df01e4ac4af7307da1d14ed3 25-Oct-2016 John Shao <johnshao@google.com> Editor Insert or Edit intent helper
am: f8f6f95154

Change-Id: I593c638447b02da079678409248def1402e809b9
f8f6f95154dc89700823813a27149210e91ce89d 22-Oct-2016 John Shao <johnshao@google.com> Editor Insert or Edit intent helper

Add helper to start the insert or edit flow
from other places in the app.

Test: manual

Bug: 32081723
Change-Id: I3d8c2c4d4c6d25f3beae045941c10f6ba2b5f411
ndroid/contacts/editor/EditorIntents.java
37c1c566095bee62b502c0c6e182fdebbbfeda39 25-Oct-2016 yaolu <yaolu@google.com> Fix crash when creating/renaming a group am: 9b6159ca2c
am: 3b74bc8d2c

Change-Id: I4e611352545483778a94862f264756e504174f58
3b74bc8d2c503e7753aa67b1242c91a7fdda0eec 25-Oct-2016 yaolu <yaolu@google.com> Fix crash when creating/renaming a group
am: 9b6159ca2c

Change-Id: I4d60971e15061bd0f573b527f48aedf6d4ccefbd
f14d98104bbafbc310b4c331f611dd6e43f61414 25-Oct-2016 James Laskey <laskey@google.com> Fix crash when changing customized list setting am: 1842bb2d35
am: 24eb00b986

Change-Id: Iab43cd7d5d5693628423be10cedeea3ad800980f
24eb00b986dd2b17c91dd742237f92b45aedc5ab 25-Oct-2016 James Laskey <laskey@google.com> Fix crash when changing customized list setting
am: 1842bb2d35

Change-Id: I6ced301f32834817ee030064b92887471a9d27e4
bb7cfa31908b5fc9932defe92350d43da3b698c8 25-Oct-2016 Yao Lu <yaolu@google.com> Merge "Fix crash when creating/renaming a group" into ub-contactsdialer-h-dev
766e4fe0900f5522afc95677a7a73676ab86332f 25-Oct-2016 Jim Laskey <laskey@google.com> Merge "Fix crash when changing customized list setting" into ub-contactsdialer-h-dev
1457576db00761aa1123ffb44904632bdee554ce 25-Oct-2016 James Laskey <laskey@google.com> Toast Fixes am: f62b488f4f
am: a5943899ec

Change-Id: I58e2f130f23585ea726e08f044aad157a0197533
a5943899ec392a293313193d5870b9a09bf224f2 25-Oct-2016 James Laskey <laskey@google.com> Toast Fixes
am: f62b488f4f

Change-Id: I823d62fa3c8724cfe75e3d11be9b25b621a05253
e02d574e9dfad08196be91ab7187890f696f944f 25-Oct-2016 Jim Laskey <laskey@google.com> Merge "Toast Fixes" into ub-contactsdialer-h-dev
9b6159ca2c17d7696213d8941127a81dfdde94c3 25-Oct-2016 yaolu <yaolu@google.com> Fix crash when creating/renaming a group

Bug: 32223934
Test: manually follow repro steps oberserving no crash
Change-Id: I84178db28be7b8e4b8f09a760e9ea5f86cd4f88d
ndroid/contacts/activities/PeopleActivity.java
1fe45495331c62c58552dce191617eb11fbd73c9 25-Oct-2016 yaolu <yaolu@google.com> Modify provide status busy screen to just show spinner am: 8b3a1d8427
am: 61dd038485

Change-Id: I2571b625bb00c686cfe710e975961fa88b70cf50
61dd0384851addb479521e03f49328a76875f003 25-Oct-2016 yaolu <yaolu@google.com> Modify provide status busy screen to just show spinner
am: 8b3a1d8427

Change-Id: I969b1f44379616813ed72609e5f498a266decc89
1842bb2d35ea9d2d1f5d064448610906f872b74f 20-Oct-2016 James Laskey <laskey@google.com> Fix crash when changing customized list setting

Bug: 31838582
Test: Manual testing on nexus 6p following repro steps observing no
crash.

Change-Id: I5b9785a759bd4513237e859862ae0fb711173feb
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
8b3a1d842731ab666b240c92222d7e0403a4a4d5 18-Oct-2016 yaolu <yaolu@google.com> Modify provide status busy screen to just show spinner

Bug: 30566541

Test: Manual
https://drive.google.com/open?id=0BxaQ3Ze9jz_cMjA3QV9FMG5WUFk
https://drive.google.com/open?id=0BxaQ3Ze9jz_cbEhDZ2lYRjlLUmM

Change-Id: I381aef4d71300699fbb1ec3d38e4a1c4deec3022
ndroid/contacts/list/ContactsUnavailableFragment.java
f62b488f4f88a00aa932866e2a355f10aa0bc030 21-Oct-2016 James Laskey <laskey@google.com> Toast Fixes

Linking snackbar in duplicates respects name order.
(No Name) contact deletion in list view fix.
Linking toast for quick contacts.

Bug: 32243988
Test: Manual testing by selecting and linking toasts from quick contact
and duplicates.
Change-Id: I4fef5c250ab5bb960ffb34c04fec01062d6f1235
ndroid/contacts/ContactSaveService.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
3f46041c788033b5e75d7006869b19f762b884fc 24-Oct-2016 Gary Mai <garymai@google.com> Forward intent extras to editor activity from springboard am: 5336e6ef19
am: b67be2f03e

Change-Id: I738b3b925135f262597cd6ec1db02f378aad0fde
89be1e86780bc5a84b52d36a823e4cf0095274b1 24-Oct-2016 Marcus Hagerott <mhagerott@google.com> Preserve SIM import checked state after rotation am: 73b283f03c
am: 821f2a116c

Change-Id: I9ab3c87d968eb74a370662096023cf126d35da36
b67be2f03ecb400e71ce2253a2f457daca30f130 24-Oct-2016 Gary Mai <garymai@google.com> Forward intent extras to editor activity from springboard
am: 5336e6ef19

Change-Id: I421fb57c3440c4aa21b06336355c60419b455347
821f2a116cf53822caebfeef318643a3c1536acb 24-Oct-2016 Marcus Hagerott <mhagerott@google.com> Preserve SIM import checked state after rotation
am: 73b283f03c

Change-Id: I557b6ba4c2ac0f11a718385a1dbf02937b02713d
f5f2fd4cf938768cf97d00cb730efcfaf35d387a 24-Oct-2016 Gary Mai <garymai@google.com> Merge "Forward intent extras to editor activity from springboard" into ub-contactsdialer-h-dev
86a0c3b21eeef77e985ad1e3e8697e34acc02f41 24-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge "Preserve SIM import checked state after rotation" into ub-contactsdialer-h-dev
5336e6ef1924162b94942cbd8f69202d553822da 23-Oct-2016 Gary Mai <garymai@google.com> Forward intent extras to editor activity from springboard

Apply the extras once we have selected a raw contact to edit.

Test:
Selected an existing contact to add to and saw passed in
data was correctly applied.
Tested cases where editor auto loads, and picker dialog shows up.
In the case of the picker made sure that selecting any of them
would have the data passed through.

Bug: 32345528
Change-Id: I9a4088b3358ab532362c878394c657781965fb03
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/RawContactEditorView.java
28c142b43632145a1383865a2f1d57e37b10f28d 24-Oct-2016 Gary Mai <garymai@google.com> Update editor menu options am: a4adae163d
am: de3e699c50

Change-Id: If8d53d812cbf09cf5af275c789ac4f822e0a8c16
de3e699c509d083913bb1e6a015d78048d33ecbb 24-Oct-2016 Gary Mai <garymai@google.com> Update editor menu options
am: a4adae163d

Change-Id: I901f06131ce74cf874bc714b38f38183b259096c
36a3b6ee63f2c770f9b854a4a34448a5a006fc51 24-Oct-2016 Walter Jang <wjang@google.com> Prune unneeded AnalyticsUtil methods to sendScreenView (1/2) am: e2d431bb79
am: 1c997eb5f8

Change-Id: Ie816735968bd4969662588074b97d014acefb0dc
7595f10a11ec20eb54cbfe75f5933cb2a3b03d9d 24-Oct-2016 Gary Mai <garymai@google.com> Merge "Update editor menu options" into ub-contactsdialer-h-dev
1c997eb5f85698f92433d10bf9a1c39c711c4966 24-Oct-2016 Walter Jang <wjang@google.com> Prune unneeded AnalyticsUtil methods to sendScreenView (1/2)
am: e2d431bb79

Change-Id: I32e62a76e65eead32361fd78d7d82d8fcd427c00
a4adae163d83db9226b831f8c9705914e68b5cd1 23-Oct-2016 Gary Mai <garymai@google.com> Update editor menu options

Remove pick ringtone and send to voice mail options.
Add Help & Feedback option.

Test:
Checked options menu when:
* Adding new contact
* Editing existing contact
* Viewing read-only contact
Checked feedback screenshots for the above
Saw Help & Feedback had articles for both adding and editing contacts.

Bug: 32339015
Bug: 32336608
Change-Id: I7f591714062fed3bd70a2e1997305b2779148f89
ndroid/contacts/editor/ContactEditorFragment.java
e2d431bb79325a164b349e96b1ec27724610d1f4 23-Oct-2016 Walter Jang <wjang@google.com> Prune unneeded AnalyticsUtil methods to sendScreenView (1/2)

Test: see Ia305eef7c7073e5bd2d964f0054116ac21ed3f47
Bug: 28017432
Bug: 30759296
Change-Id: I4b09f0d7dee1f3eccf970ad3595d1dcb92226bf6
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
73b283f03cd2697ad0098711d62cd0956037952f 22-Oct-2016 Marcus Hagerott <mhagerott@google.com> Preserve SIM import checked state after rotation

Test
Manual:
* select import from SIM in settings
* uncheck some contacts
* rotate screen
* verify that same contacts are checked after rotation

Bug 32315354

Change-Id: Iad84d308ab61d813219bdd23e158f3c5acb969e8
ndroid/contacts/SimImportFragment.java
ndroid/contacts/editor/AccountHeaderPresenter.java
27d5b6654f59108336689e6933fae8fc993c196c 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method to check if Google account exists. am: 596eb7e7ce
am: 1c4131fc1f

Change-Id: I30705135b06282fedc97d491ce3087a21ae5638e
1c4131fc1ffd3b77c0fced551ffebe553e365add 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method to check if Google account exists.
am: 596eb7e7ce

Change-Id: I7e7133eaf7419d558fd32002dc2c03ab86095df2
eaf01c7047591753ebf4504589e5fce8496de7fd 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Make import dialog able to show just SIM options. am: 02f5dbaddf
am: 64d305ae7f

Change-Id: Ib5d1bf7274438a96c42e8b3b341aa374fb1f1809
64d305ae7f90da491705fdeb09fefc10378c5bd8 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Make import dialog able to show just SIM options.
am: 02f5dbaddf

Change-Id: I871c3e2eef86fe8844c3002e108e82248cb0fa9e
0f48685588d59e08e8f1844b4735158e76146ca5 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge "Add method to check if Google account exists." into ub-contactsdialer-h-dev
5202f1a35771eda5f7bec4321e4c9aba8afaf989 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge "Make import dialog able to show just SIM options." into ub-contactsdialer-h-dev
596eb7e7cefd97fddc738c0600c24b08cbba827f 18-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method to check if Google account exists.

For I55fab8185c5d9e2ae0db2f66702ce5e8c2a93907
Test: See above CL.

Change-Id: If98f2242222d476487a4d6789a88d822d5a2979c
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/util/SharedPreferenceUtil.java
aa86c1caa3434142bc4f9ac0454265b124125c42 21-Oct-2016 Sean Midford <midfords@google.com> Fixed hamburger menu showing in search select. am: fc4f692c0a
am: bfe61a931e

Change-Id: I8ca50239f0a96ade7ed231c3d5721863c8b122b5
d96311fb5fe4467659c9a643a3fc43513970d3a4 21-Oct-2016 Sean Midford <midfords@google.com> Hide select contacts option for empty group am: e6342c6ccc
am: 43c3131475

Change-Id: I372acbaf361bb1dd6744bf73f26e4fc639e2b7a5
bfe61a931eb3b0e7d6fb5223522e60ee86e135a1 21-Oct-2016 Sean Midford <midfords@google.com> Fixed hamburger menu showing in search select.
am: fc4f692c0a

Change-Id: I01294a4e83b77b08e223046413d236ab202168bc
43c3131475a1354307d59446ca2c4ba83e0502f1 21-Oct-2016 Sean Midford <midfords@google.com> Hide select contacts option for empty group
am: e6342c6ccc

Change-Id: I1c9a078b794c6dd6da9da68502b4bc981a66c89b
1e1d452ffbcedaa5bfa9bc267f08832bcbed4eb6 21-Oct-2016 Sean Midford <midfords@google.com> Merge "Fixed hamburger menu showing in search select." into ub-contactsdialer-h-dev
a5ebac4400a05235669fa30dded03848f79b89a2 21-Oct-2016 Sean Midford <midfords@google.com> Merge "Hide select contacts option for empty group" into ub-contactsdialer-h-dev
076a95f00cb05441316418dde40243950e97aba1 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when launching without READ_PHONE_STATE am: 2ea50f1e20
am: b3dd697167

Change-Id: I6b9d584a058e02f50154bfd7f0e281d7c2de062b
b3dd697167a1c482043972d06bb10cb997f29934 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when launching without READ_PHONE_STATE
am: 2ea50f1e20

Change-Id: I5a7a739addf7face494a8dc2b85d675b65c72a34
2ea50f1e20125a48016d0e26addb57582ef2dfda 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash when launching without READ_PHONE_STATE

This only occurs in the Google Contacts App and was introduced by the SIM
warmup query added here: If3245fad8fb8ea78424bd8d2eaf2ff1b1c8d9cf8

Test
$ adb shell pm revoke com.android.contacts android.permission.READ_CONTACTS
$ adb shell pm revoke com.android.contacts android.permission.WRITE_CONTACTS
$ adb shell pm revoke com.android.contacts android.permission.GET_ACCOUNTS
$ adb shell pm revoke com.android.contacts android.permission.READ_PHONE_STATE
$ adb shell pm revoke com.android.contacts android.permission.READ_CALL_LOG
$ adb shell pm revoke com.android.contacts android.permission.CALL_PHONE
$ adb shell am instrument -w \
$ com.google.android.contacts.tests/android.support.test.runner.AndroidJUnitRunner \
$ -e class com.android.contacts.NoPermissionsLaunchSmokeTest

Bug 31781331

Change-Id: I04d70f7622da94a2f0fb186fbbe053580ef5a025
ndroid/contacts/common/database/SimContactDao.java
1344862ff4d5e16fe1c2714cf752b59bc5ed157e 21-Oct-2016 yaolu <yaolu@google.com> Instantiate GroupMembersFragment when switch from duplicate to group am: 4c07509a10
am: 862d34c904

Change-Id: Ib5594d616a341c48f29573ea31161a000aef429a
862d34c90498ba0a2f5a005b51d6ed8a540a7898 21-Oct-2016 yaolu <yaolu@google.com> Instantiate GroupMembersFragment when switch from duplicate to group
am: 4c07509a10

Change-Id: I71f66f451fd60098eefb5f85036562ecd8a4014b
7de8380c8cee4106956fa1faa4076f0bf567fed3 21-Oct-2016 Yao Lu <yaolu@google.com> Merge "Instantiate GroupMembersFragment when switch from duplicate to group" into ub-contactsdialer-h-dev
6e0926f03fd601d75e3cf4c43445e7298f847963 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash after screen rotation in group view. am: f745113c49
am: 6c0b3a391b

Change-Id: Ib01ce8f24492d4541a28ac2ccba40b75ed3845f2
e6342c6ccc165314075ade40ea2187e0442c98b0 21-Oct-2016 Sean Midford <midfords@google.com> Hide select contacts option for empty group

Hide the option to select contacts from group picker
if there are no contacts listed in the group.

Test: Manual. Verified that the menu option is not
shown when the picker has 0 contacts.

Bug: 30251801
Change-Id: I2ee265cb603b487410d50ed265a172a8d76acb78
ndroid/contacts/list/GroupMemberPickerFragment.java
6c0b3a391b27a234394f3be309b974c9e8cec433 21-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash after screen rotation in group view.
am: f745113c49

Change-Id: Icf6715fb710f50ab10361dc0625543b621d17389
fc4f692c0a1f959662d8ff90379c05f6b0fade40 20-Oct-2016 Sean Midford <midfords@google.com> Fixed hamburger menu showing in search select.

Removed hamburger menu from toolbar when returning
to search or select mode.

Test: Manual test, verified that hamburger menu now
only shows when intended (while toolbar is not in search
or select mode).

Bug: 32118186, 32113866, 32096858
Change-Id: Icdbf357386df183b27d8310258ff24e3380dd941
ndroid/contacts/activities/PeopleActivity.java
f745113c4904821fb88cf41223f0093ac699c624 20-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix crash after screen rotation in group view.

Test
Manual:
* view group
* rotate screen
* switch back to main contacts list
* verify that the app doesn't crash.

Bug 32312692

Change-Id: I5f467d23f1c6eff75ded31795f3430ef71c7b535
ndroid/contacts/common/util/AccountFilterUtil.java
d818e2cb30a5d8481506b7ca8533dcc431ee22b1 20-Oct-2016 John Shao <johnshao@google.com> Move logic to SimContactDao am: 3ed3af2fdf
am: c6776002ef

Change-Id: Ic561f1add06cc9b2ecd3697fcf523d1b3dda4d08
c6776002efa9779b6670e64c85a44b397feeab51 20-Oct-2016 John Shao <johnshao@google.com> Move logic to SimContactDao
am: 3ed3af2fdf

Change-Id: I2c4d95567e59c4b7dcf64283fc476d733a6999b0
46e2c97dfde1bc2729870b7e6dc49c2bfc8a2bb0 20-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix title when account screen is opened from group. am: c1698713a5
am: e68806e870

Change-Id: I9aa0e459ff49f5542ece04ae331bc917677d2af2
e68806e870fcdb469a9251365d0c25103d16d941 20-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix title when account screen is opened from group.
am: c1698713a5

Change-Id: I184d80f40c558e58d18c2b941f56629b9a78966c
3ed3af2fdfe2f7404d7ff2ece1c370025072190d 19-Oct-2016 John Shao <johnshao@google.com> Move logic to SimContactDao

Move logic to do with sim contacts to the Dao
layer.
Only add duplicates util fragment if we are not
starting assistant

Test: manual

Bug:32030750
Change-Id: Ie57c0aed76f6b93b0dece591fc1f6e7ad8667f0c
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/util/SharedPreferenceUtil.java
fc1b96d89427ec1061aada235d6cdfb982d0d019 20-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge "Fix title when account screen is opened from group." into ub-contactsdialer-h-dev
a141a9bbf108ba6a4609b26514b7ea6a1e461a42 20-Oct-2016 Gary Mai <garymai@google.com> Update logic on when raw contact picker dialog is shown am: 5a00de3900
am: bb619577a5

Change-Id: I1c9c5d657d92963c09d91b96f3dfab61e1a09a87
bb619577a5233bd5ae1ccf8696f9cba02d353e6a 20-Oct-2016 Gary Mai <garymai@google.com> Update logic on when raw contact picker dialog is shown
am: 5a00de3900

Change-Id: I8dc06107fdc1eb14085d3d73a14d4ce2b992e59b
db22bd6950cde01af63fec7991d7aa3aea259244 20-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Update logic on when raw contact picker dialog is shown" into ub-contactsdialer-h-dev
5a00de39004d298de4daee3e183add5eff17102c 20-Oct-2016 Gary Mai <garymai@google.com> Update logic on when raw contact picker dialog is shown

Shouldn't be based on count of raw contacts, but whether writable
raw contacts exist.

Test:
Edit me profile that has 2 G+ accounts linked (where the me profile
has not already been created)
Edit an aggregate composed of 2 read-only accounts.
Edit aggregate of 1 write 1 read
Edit 1 read-only
Edit 1 write

Bug: 32289543
Bug: 31826229
Bug: 31088704
Change-Id: Ib01445b59fa9fc882a6d32d24f39917d726e6174
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/RawContactEditorView.java
4afcaefe806f37d9c0132e667a650d8b6d1b0dc0 20-Oct-2016 James Laskey <laskey@google.com> Toast fixes for deletion and save am: e5a140a1b6
am: 1ec22a45c4

Change-Id: I5818f7c78b6b8487dcdbe01d348b85b7597338bd
1ec22a45c425b372cfd28f71daa12c5e34535b18 20-Oct-2016 James Laskey <laskey@google.com> Toast fixes for deletion and save
am: e5a140a1b6

Change-Id: I23d042d2f9b8de805093ebd826402fcb43ca1903
92b36e91dc520ab744f399d253d63401d8107b09 20-Oct-2016 Jim Laskey <laskey@google.com> Merge "Toast fixes for deletion and save" into ub-contactsdialer-h-dev
c800a6b5568d967c7351b65e1fdba3045ba59841 20-Oct-2016 Gary Mai <garymai@google.com> Plug window leak in editor am: 85b15a6473
am: 4c083c1e0e

Change-Id: Id4b2163188e168f1142db024cf22c66287be1fda
e5a140a1b60854a08a0ea0dc2068e9bf7cb058e6 19-Oct-2016 James Laskey <laskey@google.com> Toast fixes for deletion and save

Bug: 32243988
Test: Save contact from editor in alternative display mode.
Test: Delete contact from editor in alternative display mode.
Test: Save contact from editor with only phonetic or email or company.
Test: Delete contacts from list view with default and alternative
display mode.

Change-Id: I82df2377692ea129a54a3f0f00948201d4d1411e
ndroid/contacts/ContactSaveService.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
4c083c1e0ecf7bd39e428bc94b472b4b7e279223 20-Oct-2016 Gary Mai <garymai@google.com> Plug window leak in editor
am: 85b15a6473

Change-Id: Id3e01cc830527ecc62e496f939b038ff352a08e7
c1698713a5eb01a34628753eea83e673ba44973b 20-Oct-2016 Marcus Hagerott <mhagerott@google.com> Fix title when account screen is opened from group.

The activity title would remain as the group title if an account was selected
from the nav drawer while viewing a group.

Test
Manual:
* view a group
* switch to an account
* verify that title is correct

Bug 32223767

Change-Id: I2bbb8887db26d26174daf2ae089f29a87c38ccc1
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/group/GroupListItem.java
557744647d1755d129ce252140aba555b398be49 20-Oct-2016 Gary Mai <garymai@google.com> Merge "Plug window leak in editor" into ub-contactsdialer-h-dev
4c07509a1018e286abc2218d10198389e2f93152 20-Oct-2016 yaolu <yaolu@google.com> Instantiate GroupMembersFragment when switch from duplicate to group

Bug: 32286353

Test: Manually verified that following repro steps, group loads and
able to add/remove contacts, rename/delete group.

Change-Id: Ieeb9d64f86484082b772ff816474a90a4ec44839
ndroid/contacts/activities/PeopleActivity.java
b7f0397040ca0ed3a0ef82f796119708ba39f18b 19-Oct-2016 Walter Jang <wjang@google.com> Fix build break do to upstream Flags change
am: e79df16981

Change-Id: If8103b4f28043d6c233e727cc2917789fc9110aa
e79df169818e0db283e7be4c06a950523391a82e 19-Oct-2016 Walter Jang <wjang@google.com> Fix build break do to upstream Flags change

Change-Id: Ib3abf71c5bba551e5b136e9dc79b48e54f986d39
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
85b15a6473e1ed0138efdd0c337793ec5c9e6580 19-Oct-2016 Gary Mai <garymai@google.com> Plug window leak in editor

Test:
Rotate and switch screens with the "choose default account"
dialog showing.

Bug: 32118572
Change-Id: I305fd06ffbc94fee761a93daaa0eb14b3980e87d
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
2484c1b0ea2e118ab06c1a36f779e6e8a8ec7035 19-Oct-2016 Walter Jang <wjang@google.com> Update phenotype usage for GMS V4 (1/2) am: df86ede210
am: 1f1ce5ac48

Change-Id: I2cec8ddd7947e18a7598bc7ca82dc0688181711f
1f1ce5ac48b3952d796d2e044b4dbcf3a5451e0e 19-Oct-2016 Walter Jang <wjang@google.com> Update phenotype usage for GMS V4 (1/2)
am: df86ede210

Change-Id: Ia5073985b68760337ed54ce0098adb13b7e12a14
df86ede2101d902eb95838adf4176c89d9263c89 19-Oct-2016 Walter Jang <wjang@google.com> Update phenotype usage for GMS V4 (1/2)

Test: see ag/1555402
Bug: 31989967
Bug: 26400050
Change-Id: I806129e8593e091e2aa120e530d588efa5a0d508
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
02f5dbaddfa2aacbcb6327f2192d5796687c33c9 18-Oct-2016 Marcus Hagerott <mhagerott@google.com> Make import dialog able to show just SIM options.

Also improve the display of the SIM options in this dialog.

Test
Manual: verify that SIM options are shown on a device with multiple
SIM cards.

Bug 31781331

Change-Id: I967df095b0a4ecf7ec690e5c2e79a6824a35b998
ndroid/contacts/common/interactions/ImportDialogFragment.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
91cd705e00f1db28711bdc8a118c1615224dc3fb 18-Oct-2016 yaolu <yaolu@google.com> Show error when user pulls to refresh without network connection am: 395c3f8baf
am: 8ca847cead

Change-Id: Ibe50615984e31085719a0b46b911ead286cd556c
8ca847cead3f211a4f459bc24cd2de264bb83c26 18-Oct-2016 yaolu <yaolu@google.com> Show error when user pulls to refresh without network connection
am: 395c3f8baf

Change-Id: I0862ebf05e1fc4ea8bfc460492eb1b62f61f1100
2694dee49ad3d7856215faa97aa416ab67fc0d27 18-Oct-2016 Yao Lu <yaolu@google.com> Merge "Show error when user pulls to refresh without network connection" into ub-contactsdialer-h-dev
343005ffda1a14d91c14c611fa23798b48d6d4ef 18-Oct-2016 Sean Midford <midfords@google.com> Item multi select now has defaults checked. am: 4b2ccd27db
am: 77424ed630

Change-Id: I6c37283024100fa8b781c9a7069dbfab5164c880
77424ed630ac5ba3bd9c2f9e1ffd342bb2e0e63d 18-Oct-2016 Sean Midford <midfords@google.com> Item multi select now has defaults checked.
am: 4b2ccd27db

Change-Id: I2810b8e5caed0c99fa16a566eabbab825796c2fd
4b2ccd27dbb05d7cc1d340ce18182ccb2b9a3326 14-Oct-2016 Sean Midford <midfords@google.com> Item multi select now has defaults checked.

Added ability to send a list of ids to a
multi select picker to precheck defaults.
Defaults will preselect if the aggregate
contact has a single email/phone, or if
there is a super primary set for the contact.

Test: Verified all features are working as intended.
Picker now shows all contact methods for group/selection,
which fixes some strange selection behavior.

Bug: 31648014
Change-Id: I21ee4e79f8c1d08d41b4edcdef62aa5b2f2eb4b9
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/MultiSelectEmailAddressesListAdapter.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectPhoneNumbersListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
ndroid/contacts/list/UiIntentActions.java
9076d720751970ad822bce719f50724ecff72466 18-Oct-2016 Sean Midford <midfords@google.com> Added send button to group/selection picker. am: b460f44f65
am: b9fafcc03f

Change-Id: I0473ca6306209077cd4eb13296c7cc0349822944
b9fafcc03f3cb630b2165e4b33099229ccfb2a73 18-Oct-2016 Sean Midford <midfords@google.com> Added send button to group/selection picker.
am: b460f44f65

Change-Id: I1d9ec3431cae039e0807759e2d497d21b1368de2
af010b175d492a43adf8da7627d74a020bce5bb5 18-Oct-2016 Sean Midford <midfords@google.com> Merge "Added send button to group/selection picker." into ub-contactsdialer-h-dev
30a325b021244f467b39bb2aab192d014ff4c076 18-Oct-2016 Sean Midford <midfords@google.com> Added group/selection email and sms sending. am: ff6f1bb678
am: b255aa9922

Change-Id: Id448f3bda7ef222ce2d93b0aa0853720617c9793
b255aa992293d91802daa9589350b6bcc31bc09c 18-Oct-2016 Sean Midford <midfords@google.com> Added group/selection email and sms sending.
am: ff6f1bb678

Change-Id: I6923f2e80575469c0a30ea6c22c74cd550139d7d
39ef79fd4c0c9b8838cbcc50fc64722c084ad4ae 18-Oct-2016 Sean Midford <midfords@google.com> Merge "Added group/selection email and sms sending." into ub-contactsdialer-h-dev
395c3f8bafa89578d4559cf108eb668040e5ac93 18-Oct-2016 yaolu <yaolu@google.com> Show error when user pulls to refresh without network connection

Bug: 32012818
Test: Manually test when network is connected/not connected.
Change-Id: Ic6aabc8c52dca0886f28dda136f7e6e265cfe1f5
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/util/SyncUtil.java
b460f44f6517f269bac35f339f57e603669f45d7 13-Oct-2016 Sean Midford <midfords@google.com> Added send button to group/selection picker.

Added send button for the picker fragments and
activity. All selected items will be added to
the send intent.

Test: Verified all features are working as intended.
Send button will only appear if at least one item is
selected

Bug: 31648014
Change-Id: Iaf51c9c750b4e824dfca455c2c3871fcbf4056cf
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
ndroid/contacts/list/UiIntentActions.java
ff6f1bb6782fe92b8745ef4acb6c622fef3d0cbc 12-Oct-2016 Sean Midford <midfords@google.com> Added group/selection email and sms sending.

Added options for user to send emails and sms texts to
all members of a group (or selection) at once. If there
are multiple emails/phones for a single contact, a picker
is displayed to specify which emails/phones to use.

Test: Verified all features are working as intended.
Menu options are only visible when relevant and edge
case of some or all users not having emails/phones
are handled by showing a toast to the user.

Bug: 31648014
Change-Id: I38066cf3be57bf205f7a3721d0064bb716e8a43f
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/MultiSelectEmailAddressesListAdapter.java
ndroid/contacts/list/MultiSelectEmailAddressesListFragment.java
ndroid/contacts/list/MultiSelectPhoneNumbersListAdapter.java
ndroid/contacts/list/MultiSelectPhoneNumbersListFragment.java
ndroid/contacts/list/UiIntentActions.java
8bbb538f5ca9d6e51a17b625d078b1c475565c69 18-Oct-2016 Gary Mai <garymai@google.com> Always write current state in EditorFragment am: 36ceb4235e
am: 6da7cafe3b

Change-Id: Ic3368fff8c34e51daae10be53b69d67981a565a1
6da7cafe3b60d57de72f23e345625dc297cebb71 18-Oct-2016 Gary Mai <garymai@google.com> Always write current state in EditorFragment
am: 36ceb4235e

Change-Id: I6806215d287a696b0b135323bd18029bac3c9f5b
c861a986867a27ce26eae118287f4ff43f72325f 18-Oct-2016 Gary Mai <garymai@google.com> Merge "Always write current state in EditorFragment" into ub-contactsdialer-h-dev
fbae25946c0b9f880e8a6abd9c872c5b68f31cbb 18-Oct-2016 Gary Mai <garymai@google.com> Use fragment arguments in picker dialog am: 445a7c6afe
am: 2b9a314130

Change-Id: I5d7c8e1deaa2b028bed0c8cb78de1c294339fcbe
2b9a314130a61be324db50d1357e352aafb67799 18-Oct-2016 Gary Mai <garymai@google.com> Use fragment arguments in picker dialog
am: 445a7c6afe

Change-Id: I4e07f54db87b842e9e7877de6f6f5ffa4430b994
51720afac7a9067b6a5ec5c69ef727224436231d 18-Oct-2016 Gary Mai <garymai@google.com> Merge "Use fragment arguments in picker dialog" into ub-contactsdialer-h-dev
445a7c6afe18c19fe84b204d1fe7dbe088193f7b 17-Oct-2016 Gary Mai <garymai@google.com> Use fragment arguments in picker dialog

Test:
Rotate device while picker is up and tap on a raw contact.

Bug: 32219954
Change-Id: I6223d0ba108c784d1c9edb171f13428498e2acfe
ndroid/contacts/editor/PickRawContactDialogFragment.java
3cc6c0c6dede71d297539e15b1f9c93897f24aec 17-Oct-2016 yaolu <yaolu@google.com> Set text for empty account view am: c67c7dc8af
am: c697772e8a

Change-Id: I6c28a1a7928b298c48741f9bf04641340ded9baf
c697772e8a1dde9b1dafb52d029bbd1391b6088a 17-Oct-2016 yaolu <yaolu@google.com> Set text for empty account view
am: c67c7dc8af

Change-Id: I687fee09138f19f1ba433291c9c0b04ae5de3fff
36ceb4235ed685a222af86076dcf160ba124a583 17-Oct-2016 Gary Mai <garymai@google.com> Always write current state in EditorFragment

When the choose default account activity dialog is shown,
mState in EditorFragment is empty, so it doesn't get written to the
out bundle. When we come back to the fragment save state exists
and null is read.

Test:
Followed repro steps in bug. Only repro'd when don't keep activities
was enabled.

Bug: 32118572
Change-Id: I80e972cf18ac1b460a849a8e5a2cc8853bac62c4
ndroid/contacts/editor/ContactEditorFragment.java
4f5c51e7526366fb078fd04fcf6daffd3d7d16c8 17-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method to do warmup query of SIM contacts am: 9c26abdc64
am: 6fd3eac495

Change-Id: I3a6e1b289c5e94110cba08f89e9e2c6d0a100c9a
0be1e25bd894aad362eca858b9a27a9efad91bfb 17-Oct-2016 Yao Lu <yaolu@google.com> Merge "Set text for empty account view" into ub-contactsdialer-h-dev
6fd3eac49526444668978a83072e766e7f70362b 17-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method to do warmup query of SIM contacts
am: 9c26abdc64

Change-Id: I4546d3ead0b39fbff978c270a23146ad2b526865
850a4ea5fdb738a1b758e34e44c0be249692d9e8 17-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge "Add method to do warmup query of SIM contacts" into ub-contactsdialer-h-dev
c67c7dc8af76afce6c06d19d8c47d39b7797c8bf 17-Oct-2016 yaolu <yaolu@google.com> Set text for empty account view

Bug: 32022538

Test: Manally verified when there is no account, empty account view is
shown with "Your contacts list is empty" text.

Change-Id: I3cdc07f323378fb4050e2a69a145e207f0473d39
ndroid/contacts/list/ContactsUnavailableFragment.java
9b5e1668ab457c02303ecd15050666471ed628ea 17-Oct-2016 Walter Jang <wjang@google.com> Add a flag for the restore assistant am: d5f6e47352
am: a50d52b667

Change-Id: I56425a94d17f131eeda34e90c1a59a209837fb31
93b265adda7a69b0246ffc7d9632394c6a352f4d 17-Oct-2016 yaolu <yaolu@google.com> Show spinner only when user pulls down (1/2) am: 9d99859f8a
am: f10faa8922

Change-Id: I21399efd50ecc6902f30e1368bc82803f94e56a4
4ae9b7415caef4292fd8f2989bd6cdfc0c8d976c 17-Oct-2016 Tingting Wang <tingtingw@google.com> resolve merge conflicts of e7bc734 to ub-contactsdialer-master-dev
am: a6dce413b9

Change-Id: Ib213cc708479cc0f3062fa1f5013044a75501fe4
a50d52b6675bc2a036c5a4f41c2b7be4264f5dbd 17-Oct-2016 Walter Jang <wjang@google.com> Add a flag for the restore assistant
am: d5f6e47352

Change-Id: I56ddcec19e5ffacde1104a1267c2d15414408b3c
f10faa8922208b5b93743ab323d05647b89287cc 17-Oct-2016 yaolu <yaolu@google.com> Show spinner only when user pulls down (1/2)
am: 9d99859f8a

Change-Id: Idcfbb62c7a143786c008d8ca7f458fed818a8cc5
a6dce413b94cfb2844ed26548abf4bb58a183665 17-Oct-2016 Tingting Wang <tingtingw@google.com> resolve merge conflicts of e7bc734 to ub-contactsdialer-master-dev

Change-Id: I767176094ab047bdbde40767c57136b28e03fc92
11e927a5a1d61a1aa22b4a0f3150cf977643fdda 17-Oct-2016 Walter Jang <wjang@google.com> Merge "Add a flag for the restore assistant" into ub-contactsdialer-h-dev
9c26abdc6458bb98c8354a2fb9ee9dda44ce2c45 14-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method to do warmup query of SIM contacts

See If3245fad8fb8ea78424bd8d2eaf2ff1b1c8d9cf8

Test
Same as above change

Change-Id: Ide369827fafc7504d460daab021b94090fa115bd
ndroid/contacts/common/database/SimContactDao.java
9d99859f8a11be8c9966157cedf840a237bd0843 15-Oct-2016 yaolu <yaolu@google.com> Show spinner only when user pulls down (1/2)

1. show spinner only when user pulls down;
2. stop showing spinner if sync is not finished after 30s;
3. add max time to show spinner into Flags.

Bug: 28625097
Bug: 31993722

Test: Manually verified scenarios:
Only pulling down can trigger spinner to show up, spinner won't be
shown for any other background sync(add/remove account, edit contacts);
refresh an account with over 2000 contacts, spinner disappears after
30s;
refresh without internet connection, spinner disappears after 30s;
refresh twice within 30s, spinner disappears after 30s since the second
refreshing.

Change-Id: Ib88c14a40fc8787527baa9d5ac99da910fdd352b
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
d5f6e47352d537b3692673434b88160877b67070 16-Oct-2016 Walter Jang <wjang@google.com> Add a flag for the restore assistant

Test: see Ifec64dc7069f1b703cfa210816cd1a43f9a562db
Bug: 1529883
Change-Id: I52c3d02e59e5e489aaa10a664f6d80ce3a3390d9
ndroid/contacts/common/Experiments.java
f454b2a86e5c857bb626116557bb568d5142bc65 15-Oct-2016 Tingting Wang <tingtingw@google.com> Merge "Remove Lychee toggle from AOSP Contacts." into ub-contactsdialer-h-dev
c8f2e1633f3ebe59f5f4da62ab56aa03d3d090d5 15-Oct-2016 yaolu <yaolu@google.com> Rename method in master to be consistent with h to fix build breakage
am: 315f713dd3

Change-Id: Ibc40ba6d893bdc99a23fd0fa37c0b867871b1c16
315f713dd33f50641771579772216fce0ca6472f 15-Oct-2016 yaolu <yaolu@google.com> Rename method in master to be consistent with h to fix build breakage

Bug:
Test: build locally and pass
Change-Id: Ieea7970e334c40e5d9e8029792dcfff05b61e926
ndroid/contacts/common/list/ContactListFilter.java
8757d5aed6423a822a5f1699c44616dd33ecee69 15-Oct-2016 yaolu <yaolu@google.com> Show sync-off alert am: 491cca5773
am: bcb07594eb

Change-Id: I4be709cf51d7053d4af2f9adffb0c7945f334d36
bcb07594ebfae6d1c4ace54f32a6ff24db7e9dab 15-Oct-2016 yaolu <yaolu@google.com> Show sync-off alert
am: 491cca5773

Change-Id: Ibee09c8b5f370ae9750ef851461743bf018d0ef1
491cca577389d6b38f969a167f817f5f3a1013d4 30-Sep-2016 yaolu <yaolu@google.com> Show sync-off alert

In all contacts list:
alert user when global sync is off if user never dismissed before,
until sync setting is toggled on then off again.

In account view:
when global sync is off, show alert with the same logic for all
contacts list;
when global sync is on, alert user when contacts sync for this account
is off if user never dismissed before, until contacts sync is toggled
on then off again.

Bug: 31755559

Test: Manually tested the scenarios:
1) Add/remove account,
2) switch between all contacts list, account view, and label views,
3) update contacts information,
3) turn on sync/dismiss from alert,
when global sync is on/off, contacts syncs are all on/off, contacts
sync is on/off for a particular account.

Change-Id: Id5001847270d5a984942c63a42edb5f9401bc2c2
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/EnableGlobalSyncDialogFragment.java
ndroid/contacts/util/SharedPreferenceUtil.java
ndroid/contacts/util/SyncUtil.java
e7bc734b0082a9602ff38fbd049cb7ab06a7857b 14-Oct-2016 Tingting Wang <tingtingw@google.com> Remove Lychee toggle from AOSP Contacts.

BUG 32125083

Change-Id: I6cd6c052694e4ee1c419f299f6903244e26cb906
ndroid/contacts/common/compat/MetadataSyncEnabledCompat.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/preference/PreferenceManager.java
f10e3e6e7ca3b6500adb03daa5bc51ae181b7b74 14-Oct-2016 Marcus Hagerott <mhagerott@google.com> Don't show null account on customize contacts to display. am: 67a0639c91
am: df5f047938

Change-Id: I551ae87d58294110ee0ee3cd7416ebfa9b6190d3
df5f047938a7ff438cba3354b72fbe0f1593d68b 14-Oct-2016 Marcus Hagerott <mhagerott@google.com> Don't show null account on customize contacts to display.
am: 67a0639c91

Change-Id: I8d7e49ef541fe5b64dd11a7b342a09577e60a49d
87e1428899354f699cbb4af146a1950d6b07588e 14-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge "Don't show null account on customize contacts to display." into ub-contactsdialer-h-dev
328b6cf046a76152b4b373040defc3f11fc80915 14-Oct-2016 Gary Mai <garymai@google.com> Fix regression with editing me profile am: ba10be290e
am: e3a1c68ecd

Change-Id: Ida0c3c001651a244da648ee62ed4bbbd7dbd813e
67a0639c912ce5bed209d791f0bf8d09853bdbbd 14-Oct-2016 Marcus Hagerott <mhagerott@google.com> Don't show null account on customize contacts to display.

Test
Manual: verified that "Device" account isn't shown on customize screen.

Bug 31994490

Change-Id: I6ec3ebfdeace1e259e7433c8c93db13496d2e03d
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/model/AccountTypeManager.java
684b80aea3e5f2b9192bbca211e35bd7438ed478 14-Oct-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of d846ec8 to master

Change-Id: I8c4af1486d413f72686b74f3051611d84b260127
e3a1c68ecdc6d145215a88525b552d0bdf903884 14-Oct-2016 Gary Mai <garymai@google.com> Fix regression with editing me profile
am: ba10be290e

Change-Id: Icc2504d0e692c8af953978f3ceab81503bf37909
ba10be290e9a1b105743784ab6cc602bbf3078d8 13-Oct-2016 Gary Mai <garymai@google.com> Fix regression with editing me profile

Use Profile.CONTENT_RAW_CONTACTS_URI in PickRawContactLoader
if we're loading the me profile.
Changed rendering accounts attribution to be consistent with
the duplicates view.
* Me profile -> "My local profile"
* Focus Google account -> account name
* All others -> account type display string (Google+, LinkedIn etc.)

Test:
Edit me-profile with G+ account attached
Edit me-profile without G+ account
Edit linked contact with device raw contacts
Edit linked contact with SIM raw contacts
Edit linked contact with Samsung raw contact

Bug:32113893

Change-Id: I904e64eee262d0ddf95240915911228439c2c46f
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/PickRawContactLoader.java
d846ec8e29c46497a61fd2058a8a7e2bde48882d 13-Oct-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of da071fb to ub-contactsdialer-master-dev

Change-Id: I01ebd24f590843f1984186090de099648ce310eb
781ded437fe9d7dd9551f3ce0fdd4ccf0e373383 13-Oct-2016 Walter Jang <wjang@google.com> Remove inappropriate contat loader error log am: dcaed0775f
am: 7458a00728

Change-Id: I73d29db9a03694ab240d66ae8d36a9d67c2d4e4f
7458a00728debae08798438dc5acbaddeaede6f0 13-Oct-2016 Walter Jang <wjang@google.com> Remove inappropriate contat loader error log
am: dcaed0775f

Change-Id: I47bfadc35194a1815768f5abc9ff217a007adc67
a61605c4ba4c7e4c974222e4d4d39f365a729315 13-Oct-2016 Gary Mai <garymai@google.com> Prevent multiple editors from opening am: bd66c449f0
am: eb4f73d17d

Change-Id: I37a9335cf001fa9778a495124f8ffaa87e42c7da
89a8f8407099c639ba4944b9cb6c875c274dc19d 13-Oct-2016 Marcus Hagerott <mhagerott@google.com> Merge changes Ie5886646,Id14651f0 into ub-contactsdialer-h-dev

* changes:
Improve talkback usability of SIM import dialog.
Adjustments to MockContentProvider for tests.
ee5b3b9fc31a375939d05ea6fc2cdcdf822b6090 13-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Remove inappropriate contat loader error log" into ub-contactsdialer-h-dev
eb4f73d17d6bbfe9e1142ac0f6abb3b4ee61199d 13-Oct-2016 Gary Mai <garymai@google.com> Prevent multiple editors from opening
am: bd66c449f0

Change-Id: Ib1b6bdca8152d78ecb649de0b44ffb513abce188
dcaed0775fa4c3bf2086fc6ba4de0426d570e43a 13-Oct-2016 Walter Jang <wjang@google.com> Remove inappropriate contat loader error log

Change-Id: I14d268dc66f094afc93beeecfbb8196b0e0b00d6
ndroid/contacts/common/model/ContactLoader.java
da071fbbb186288a1c0363c0ecc1c3c3b1f31ed9 13-Oct-2016 Marcus Hagerott <mhagerott@google.com> Improve talkback usability of SIM import dialog.

Test
Manual: navigated SIM import dialog with talkback enabled

Bug 31781331

Change-Id: Ie58866469f816fae586ae1fa1878c905daea0d60
ndroid/contacts/SimImportFragment.java
bd66c449f043061a387d3319e5e4701ca2ecb964 13-Oct-2016 Gary Mai <garymai@google.com> Prevent multiple editors from opening

Before we start the editor, destroy the loader so it isn't listening
for changes to CP2 which would cause it to reload and go through the
loadEditor code path again.

Test:
Added a manual forceLoad (after the loadEditor call) in
onLoadFinished and saw that it started more than one editor.
Added the destroyLoader call and confirmed even with the above only
one instance opened.

Bug: 32119921
Change-Id: Ib683cb60175fd816b38bd8b6d12b445ca236cd9e
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
073a091b4f94d7321b4e8f51e0ca240c5c264915 29-Sep-2016 Marcus Hagerott <mhagerott@google.com> Adjustments to MockContentProvider for tests.

Also add some helper methods to change the default account.

Test
Ran GoogleContactsTests

Change-Id: Id14651f07cb0e046cc7b1e1dc387492cdb12bb18
ndroid/contacts/common/preference/ContactsPreferences.java
70d8f995433f4904f906d240bf13f2dd886a4f3e 13-Oct-2016 Walter Jang <wjang@google.com> Send feedback for some caught contacts app exceptions (1/2) am: 3a0b483ff7
am: 0109c00523

Change-Id: I07a85a1ee2c159ba005e67a5fc896cec22391e5c
0109c00523c7ffd0f23ebf379d2bc0d21167af20 13-Oct-2016 Walter Jang <wjang@google.com> Send feedback for some caught contacts app exceptions (1/2)
am: 3a0b483ff7

Change-Id: I314a341e8f3d0cab5c764b1f41f09ed7b99a2b9f
f785a2a2a685d972aa47cdbd36779e9d14b9ab04 13-Oct-2016 Walter Jang <wjang@google.com> Merge "Send feedback for some caught contacts app exceptions (1/2)" into ub-contactsdialer-h-dev
3007b792dade4f43d52ff25d568baec942304553 13-Oct-2016 Walter Jang <wjang@google.com> Guard against null SimpleDateFormats when editing events am: 5f8932def1
am: d2320d0ff6

Change-Id: I54d13c9a3d0426444df8e9dac5c794d050d8dff2
3a0b483ff715959b88d7ef20877a7c89d211fde2 12-Oct-2016 Walter Jang <wjang@google.com> Send feedback for some caught contacts app exceptions (1/2)

Test: see ag/I9c9222c8429df8ea654571fb88328394e303c900
Bug: 31308027
Change-Id: I6432c3ca7cf496a3053bb4c752068f8c1110eb84
ndroid/contacts/ContactSaveService.java
ndroid/contacts/common/model/account/ExchangeAccountType.java
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/model/account/GoogleAccountType.java
ndroid/contacts/common/model/account/SamsungAccountType.java
ndroid/contacts/common/vcard/ExportProcessor.java
ndroid/contacts/common/vcard/ImportProcessor.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/NfcImportVCardActivity.java
ndroid/contacts/common/vcard/ShareVCardActivity.java
d2320d0ff600d4e3b2f14e08605e3b3cd4865a9a 13-Oct-2016 Walter Jang <wjang@google.com> Guard against null SimpleDateFormats when editing events
am: 5f8932def1

Change-Id: I58a858f21c168b15f50db1cb756549afba57f824
e5c6d9fccd5acb30c341184e2010c0b2d21c1bb0 13-Oct-2016 Walter Jang <wjang@google.com> Merge "Guard against null SimpleDateFormats when editing events" into ub-contactsdialer-h-dev
5f8932def1e28419908cd8ccf53129914bda82b4 13-Oct-2016 Walter Jang <wjang@google.com> Guard against null SimpleDateFormats when editing events

Test: manually test that event dates are formatted
correctly for google account type
Bug: 31683447

Change-Id: I3c2d240c6a44c6e6bd74c8054d8f9fe6d4c4704f
ndroid/contacts/editor/EventFieldEditorView.java
d904b49f27771910346b4315c891ac3dd91b1de0 12-Oct-2016 Gary Mai <garymai@google.com> Prevent raw contact picker dialog from flashing am: ea2f357213
am: f440180f70

Change-Id: I72b0e52a3247572915bcf7cea3d7c706f1d377a2
f440180f70aaa6547340533998e1209f3615d971 12-Oct-2016 Gary Mai <garymai@google.com> Prevent raw contact picker dialog from flashing
am: ea2f357213

Change-Id: Ia224e5dc2fc0d4ca8a90f0926446ec1cb1b8f072
86c7576a2dd37c6490a86ec25ce223164e111f7b 12-Oct-2016 Gary Mai <garymai@google.com> Merge "Prevent raw contact picker dialog from flashing" into ub-contactsdialer-h-dev
ee9da0ec7b249026411a8bc00c55d81557e7b55a 12-Oct-2016 Gary Mai <garymai@google.com> Skip psuedo name mimetype during delta parse am: ac5bd644bc
am: e75d1e599b

Change-Id: I70bdcfebe93a4fdf4c49dad06d0c6a067df28ea5
e75d1e599bafef405bc73ea550dbc02af6144e41 12-Oct-2016 Gary Mai <garymai@google.com> Skip psuedo name mimetype during delta parse
am: ac5bd644bc

Change-Id: I23941367db1bc8be566680592b1e6865676515f3
8dc115b246083b00d40974fd951d9130747af070 12-Oct-2016 Gary Mai <garymai@google.com> Merge "Skip psuedo name mimetype during delta parse" into ub-contactsdialer-h-dev
d882d9d5b06a0b27e4f439c173a62e50f7b420f5 12-Oct-2016 Gary Mai <garymai@google.com> Use given DefaultImageRequest when loading from Uris am: f682a8afbf
am: e19a02bfb7

Change-Id: I0780598e152ae8b607ae1d85b162ca310c5c9db1
640fb60f2c2566bfcbf9a1da77e88252c7c59c95 12-Oct-2016 Gary Mai <garymai@google.com> Use raw contact's photo in picker dialog am: ac70468a21
am: 99fdacc7be

Change-Id: I40fc65c6b2bc8695858c543184631ba79e570579
e19a02bfb7a25473c74016cdfa770e2dbd0f3eb8 12-Oct-2016 Gary Mai <garymai@google.com> Use given DefaultImageRequest when loading from Uris
am: f682a8afbf

Change-Id: I75825905ff57cbfe1d9bc1de911ba28a9c947587
ae349748c10132769aa63ae7dde7b906f1c4d97c 12-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method runner instrumentation am: fd79e87e89
am: 863d223c97

Change-Id: Ib277d05fefe434b8db6a6743472835a8cb8c48f0
99fdacc7be3832281cbd8b80fe8b06de9e36f6be 12-Oct-2016 Gary Mai <garymai@google.com> Use raw contact's photo in picker dialog
am: ac70468a21

Change-Id: I5e23921cee9c10376de96a1653d6b0acf18e43f2
863d223c97df0f83d8418c04ed5daa47f5d353f4 12-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method runner instrumentation
am: fd79e87e89

Change-Id: I65d16302d3aeab33dbb1c33908b0f07e67f71b12
b3e609a74b6284addebfee7bf3b1b94edfd88d22 12-Oct-2016 Gary Mai <garymai@google.com> Merge "Use given DefaultImageRequest when loading from Uris" into ub-contactsdialer-h-dev
ddbeec26c383ca64d5abcf615f74b75380918df1 12-Oct-2016 Gary Mai <garymai@google.com> Merge "Use raw contact's photo in picker dialog" into ub-contactsdialer-h-dev
ac5bd644bcd2c27294a70774abfa9e24fb3d5c52 12-Oct-2016 Gary Mai <garymai@google.com> Skip psuedo name mimetype during delta parse

Missed this in ag/1527652, an extra name field was appearing
because of it.

Test:
Hit "more fields" and see no extra name fields.

Bug: 32023197
Bug: 21758689
Change-Id: I8b8f0cd1d8556dd79162a6c723b4bd108d1ed476
ndroid/contacts/editor/RawContactEditorView.java
25dc2e4ae7377c2dd51a324347182408a553c900 12-Oct-2016 Gary Mai <garymai@google.com> Disable delete and unlink in editor am: 5eda257528
am: 90fc7f13fb

Change-Id: I213e7caa7a712ba02adf0daca437a16edc2ca6fa
a269be46f62dee15ead056ca7ecf6afadb57a403 12-Oct-2016 John Shao <johnshao@google.com> resolve merge conflicts of a3ce3c7 to ub-contactsdialer-master-dev
am: 9edd9944e8

Change-Id: Ib6cc7b9a55798b3075938bae8b9ffc84faa95b43
90fc7f13fb0210bf9e10fe74f88ce9e04df7db69 12-Oct-2016 Gary Mai <garymai@google.com> Disable delete and unlink in editor
am: 5eda257528

Change-Id: I9f6a6e9877fc9939ea83fceca0107cbba7bfa5e1
fd79e87e893054e20f86cbe5e0c48aa64ecd3955 12-Oct-2016 Marcus Hagerott <mhagerott@google.com> Add method runner instrumentation

This can be used to run single static methods for setup and inspecting the app
state.

Test
Ran GoogleContactsTests

Change-Id: I132a7e9dc8f2ee2e14b8a1c583f3d5236ab548ce
ndroid/contacts/common/database/SimContactDao.java
9edd9944e8f3efea8617cb8d18ad2fa24d85b707 12-Oct-2016 John Shao <johnshao@google.com> resolve merge conflicts of a3ce3c7 to ub-contactsdialer-master-dev

Change-Id: I745d35dc89405a22fc580a0c17bda3e2037cf70e
f682a8afbfd8ff5f8f6b4663824992558518ffa1 12-Oct-2016 Gary Mai <garymai@google.com> Use given DefaultImageRequest when loading from Uris

Add empty bytes array check. Without this the photo would be
blank if one did not exist.
The given DefaultImageRequest was only used if the Uri was null,
changed Request to also hold the given DIR to use if a photo couldn't
be loaded.

Test:
Manual usage of the raw contact picker dialog.

Bug: 31826229
Bug: 32096517
Change-Id: Ied938552326f8a258b558040e1b1c1b5d5723239
ndroid/contacts/common/ContactPhotoManager.java
cf2dc067c53cc2b869ce697e7484473ea2894d05 12-Oct-2016 Gary Mai <garymai@google.com> Merge "Disable delete and unlink in editor" into ub-contactsdialer-h-dev
a3ce3c749ead38b68a4022ca03ecb9a438e5b243 11-Oct-2016 John Shao <johnshao@google.com> Hide assistant left nav behind flag

Add flag to flip between assistant and duplicates
in left nav.

Test: manual
- default flag to false - see duplicates and navigate to and from
- flip flag to true - see assistant and navigate to and from

Bug:32091041
Change-Id: I74979d4fcbd8c6d99f09007d4354d16e9ba9104e
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/Experiments.java
5eda257528e45fe6ae59cca3f1178590b53662f8 12-Oct-2016 Gary Mai <garymai@google.com> Disable delete and unlink in editor

They currently work on a Contact level, so that functionality
has been moved to QuickContact.
They'll be re-enabled once they're raw contact based.
The attached bugs are tracking that effort.

Also disable link. That also makes more sense to live in
QuickContact since you're linking another Contact.

Test:
Manual check to see those items aren't in the menu

Bug: 30771904
Bug: 31827701
Change-Id: I96ba7d10c78a157c0d1374e81ad096cec414815b
ndroid/contacts/editor/ContactEditorFragment.java
ea2f357213deac0bf6a930ad26394a6ee23eacf3 12-Oct-2016 Gary Mai <garymai@google.com> Prevent raw contact picker dialog from flashing

If the dialog is currently shown and the loader calls onLoadFinished
again, update the cursor without doing another fragment transaction.

Test:
Followed repro steps in bug, confirming that the dialog doesn't
flash in and out, along with debug log statements to confirm
it goes through the setCursor call.

Bug: 32096586
Change-Id: Ia021c66e65adb6b4e34b0d4e3a0e521a31e3086f
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ac70468a213748842a98281a8e8331cd0f9672e7 12-Oct-2016 Gary Mai <garymai@google.com> Use raw contact's photo in picker dialog

Use the letter tile for the raw contact's display name if there
is no photo set.

Test:
Used picker dialog for raw contacts with and without photos.

Bug: 31826229
Bug: 32096517
Change-Id: I9934e370c6bb0c574364807c6fa5ee2d67b9146b
ndroid/contacts/editor/PickRawContactDialogFragment.java
36210d7a8496f7a297a1b1337746dd1f406d651d 12-Oct-2016 Gary Mai <garymai@google.com> Reintroduce pseudo mimetype for name am: 7a6daea69e
am: 39f86af78e

Change-Id: Ida426f0ba6ca427674d6c70a639cef7237e81574
39f86af78e7731842ee2b20a19eec79c241e5874 11-Oct-2016 Gary Mai <garymai@google.com> Reintroduce pseudo mimetype for name
am: 7a6daea69e

Change-Id: I197979f728539a6ab9fd521ac5cd0ccb241daec0
7a6daea69ea47c31a1b838a423e7cdaceafae753 11-Oct-2016 Gary Mai <garymai@google.com> Reintroduce pseudo mimetype for name

In order to have a separate edit DataKind for phonetic name
we need a pseudo mimetype for just the name as well. The pseudo
DataKinds are used to render the actual text fields while the
StructuredName mimetype DataKind is used for checking if any
thing was changed.

Test:
Unit tests
Save a new contact while entering only the phonetic name

Bug: 32023197
Bug: 21758689

Change-Id: I151b37b7be091705974e3f36770e4bb0e150a64d
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/ExchangeAccountType.java
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/model/account/GoogleAccountType.java
ndroid/contacts/common/model/account/SamsungAccountType.java
ndroid/contacts/common/model/account/SimAccountType.java
ndroid/contacts/common/model/dataitem/DataKind.java
ndroid/contacts/editor/KindSectionView.java
b17fa8cc748ceae3683eaf88e8d7949b65c65037 11-Oct-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of 50e2f5e to master

Change-Id: Ifc0cc9afe7ad140ff2b267c36362ae91cef0038c
a4546212c4557f58943f172ceb9378f33e8c48f3 11-Oct-2016 Gary Mai <garymai@google.com> Remove account selector when editing a raw contact am: d7faa65c13
am: 5ee60410b9

Change-Id: I47b7c125dc86320d086f4fc408914cd49567636e
a09d26aea509ca17bd9bcab6eee61e9c71aa9fdb 11-Oct-2016 Walter Jang <wjang@google.com> Start QuickContact fully opened after creating a new contact am: 1d93091e42
am: 6518ab86da

Change-Id: I21e65ad50ac7fd7b783343e2ad1f22faf230caab
f782b0f253d38207b8acfa318306ba67392c4dc4 15-Sep-2016 Wenyi Wang <wenyiw@google.com> DO NOT MERGE First pass on account swicther (1/2)

Bug: 31595958

Test:
- manual: turn on flag and verify it works (incl. local accounts).
- unit tests

Change-Id: I362975ea97356f2cbcf8a9bbbe1bb26dccbc9493
(cherry picked from commit c73a590e90781ee55b91970f3a4f0878a09db4bf)
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/account/AccountDisplayInfo.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/common/util/DeviceLocalAccountTypeFactory.java
ndroid/contacts/common/util/NavigationDrawer.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
9cfcd049108ae3065c27bc52da948e565cc3336d 11-Oct-2016 John Shao <johnshao@google.com> resolve merge conflicts of cc58ba8 to master

Test: built Contacts

Change-Id: Id4d805cf80e6c861df5644fbbc940ce3b264b825
50e2f5ed293c6287e1a926bd3fd0bf32dae29b3e 11-Oct-2016 Marcus Hagerott <mhagerott@google.com> Create new SIM contacts import screen.
am: 819214d472

Change-Id: I556c119947958d3b9eebd637b336cf9220b3d09c
e7781ec0385d880054b9aff65ee3085cff4ae2b6 11-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Create new SIM contacts import screen." into ub-contactsdialer-h-dev
819214d472fdadf3d69cb4580e238506194ed30e 29-Sep-2016 Marcus Hagerott <mhagerott@google.com> Create new SIM contacts import screen.

This is needed since SIM import is going be surfaced more prominently via an
assistant.

Test
Automated: Ran GoogleContactsTests
Manual: verify that contacts are imported when launched from settings

Bug 31781331

Change-Id: I55ea078056038d348d5b6f05f91f5159e1ee39d3
ndroid/contacts/ContactSaveService.java
ndroid/contacts/SimImportFragment.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/database/SimContactDao.java
ndroid/contacts/common/interactions/ImportDialogFragment.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/model/SimContact.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/editor/AccountHeaderPresenter.java
6518ab86da1c85bb37aed07407ef381f55355b9f 10-Oct-2016 Walter Jang <wjang@google.com> Start QuickContact fully opened after creating a new contact
am: 1d93091e42

Change-Id: Iddea2047208cba5120aada1c5efab94009b21d45
527e114ee6dfd7c707592c0300cbc73cca3e72ca 10-Oct-2016 Gary Mai <garymai@google.com> Ensure structured name exists when creating a new delta
am: 62ec0b10c0

Change-Id: I637d77d4c0fa0bf6596a5e12cf3c051b3b631a9e
cb7e4b29e820c6c717bcb66e66ee393c11c11ebd 10-Oct-2016 Wenyi Wang <wenyiw@google.com> Don't show welcome screen when talkback is on and on pre-L-MR1
am: 4cc72d5234

Change-Id: Ib9bf46e6d1a9aefb219f87fe547720dcb24157f0
7150257ebc6f852e8f34d5c78d5482e86b52bf0d 10-Oct-2016 Gary Mai <garymai@google.com> Implement editor springboard activity
am: a6c80b378e

Change-Id: I1723e8dd6cd9b7ed6c9a0ec4a7d4f3c3827bb738
0c9d7ee0ea3cf357cc1dd16cc52bfb84644cff68 10-Oct-2016 Marcus Hagerott <mhagerott@google.com> Check permissions before creating dynamic shortcuts. am: 8ac989cfc4
am: f3b4f0eace

Change-Id: I2e6e13816954dd6f851304193b59ff87acbb2915
d7faa65c1349a7ded4d2d478822c07d024e5e792 03-Oct-2016 Gary Mai <garymai@google.com> Remove account selector when editing a raw contact

Keep the header, but remove the onClick drop down.
Remove the boolean for if the raw contact is read only,
and use the current state to determine if that's true.

Test:
Applied this commit on top of the spring board one and tested:
1) edit read only raw contact
2) edit writable raw contact
3) edit contact made of single read only raw contact still opens
the insert a new raw contact version
4) insert new contact

Bug: 31826229
Bug: 31088704
Change-Id: Ia8e5b0a5965b77b0c160336ce81ddac801b201ff
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/RawContactEditorView.java
82f521db5d21332bc54c41f1f400ab052416f04a 10-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Start QuickContact fully opened after creating a new contact" into ub-contactsdialer-h-dev
52dd5d79620f2054136b2760e9284d92b4fc34f8 07-Oct-2016 John Shao <johnshao@google.com> First pass on assistants left nav

Create new assistant and remove duplicates menu item for
Google Contacts. Duplicates will live in the new assistants
fragment.

Test: manual
- Open left nav to see new Assistant
- Click on assistant to view new section

Bug:31822010
Change-Id: I0b9d77dd73e45c12fa3853864d09f555563def9a
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
1d93091e42228b4fb4ea3c2fb7ee83da27789707 10-Oct-2016 Walter Jang <wjang@google.com> Start QuickContact fully opened after creating a new contact

Test: manual, create a new contact

Bug: 31666272
Bug: 31775484
Change-Id: I68b0fb625c6fda005cea11de458060827532a71f
ndroid/contacts/activities/ContactEditorActivity.java
62ec0b10c0ddc00053df39aeaed1f3316116e849 07-Oct-2016 Gary Mai <garymai@google.com> Ensure structured name exists when creating a new delta

When I was able to repro the NPE, the RawContactDelta had the five
entries that were ensured in createNewRawContactDelta. The only
likely cause is mIntentExtras is either null or empty so
nothing is copied over and the entries are empty.

Test:
Opened the editor for a single read-only contact a bunch of times.

Bug: 31874062
Change-Id: I7f47ff766457f3daf2099344661a3f5caf92388d
ndroid/contacts/editor/ContactEditorFragment.java
adf7ad4128ee21ccdf3b370d31134023e2049c94 07-Oct-2016 Wenyi Wang <wenyiw@google.com> Merge "Don't show welcome screen when talkback is on and on pre-L-MR1" into ub-contactsdialer-h-dev
80b8738ccd23734abe043f834220e9de9596f82b 07-Oct-2016 Gary Mai <garymai@google.com> Merge "Implement editor springboard activity" into ub-contactsdialer-h-dev
17fe7989ea5fffbac93808a9c412fb91f820a698 05-Oct-2016 Wenyi Wang <wenyiw@google.com> DO NOT MERGE Re-use existing group and duplicates fragments if possible

- If group fragment is added and visible and we are loading another
group, we simply update the existing group fragment.
- Always see if a fragment is in fargment manager before creating and
adding another one.
- Scroll to top when switching to all contacts view.
- Address a TODO to pop group fragment rather than finishing activity.

Bug: 30944495

Test: manual - navigate b/w fragments (w/ rotation), add and remove
groups; and observe fragment manager's behavior.

Change-Id: Idff71e62ed6ff6e2a12884b2f232336fe3edbf38
(cherry picked from commit febd4a7508b0c33d6dc3da10c8792d3c4f6b665d)
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
92d7e5162c40211026dca4c96a4905efe91e5172 03-Oct-2016 Wenyi Wang <wenyiw@google.com> DO NOT MERGE Make labels view have grey app bar

Bug: 31268067

Test: manual
- navigate b/w fragments + rotate screen
- create a new label and delete a label
- enter/exit edit mode of group fragment and contacts fragment

Change-Id: Ie4bc38456dae8840df3ae511c2fbbd0d336038bc
(cherry picked from commit 3dd13761f1c2c615004af129afa5ebc56efe8ada)
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/util/MaterialColorMapUtils.java
a6c80b378e03ebdf6b654dbdb12f2c665fe98a80 01-Oct-2016 Gary Mai <garymai@google.com> Implement editor springboard activity

Have the springboard handle edit intents.
Show a dialog if the contact is made of multiple raw contacts.
Go straight to editor if:
* Single raw contact
* Given a raw contact Uri
In the case of 1 read 1 writable, we still show the dialog
since there would otherwise be no way to view what data comes
from the read only raw contact.
The springboard does not handle legacy contact Uris and will throw
an exception if one is received.

Test:
Tested these scenarios:
1) Edit a single raw contact
2) Edit a single read only raw contact
3) Edit a contact made of >2 raws
4) Add new contact
5) Edit a contact made of one read only, one writable
6) Made edits and checked if quick contact continued to update
7) The relevant edit intents from the Test app

Bug: 31826229
Bug: 31088704
Change-Id: I4c1c44accc86521efce2081744189d25f00ec541
ndroid/contacts/activities/ContactEditorSpringBoardActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/PickRawContactDialogFragment.java
ndroid/contacts/editor/PickRawContactLoader.java
4cc72d52345dbd5d0736101d052e4f78f6b96c37 06-Oct-2016 Wenyi Wang <wenyiw@google.com> Don't show welcome screen when talkback is on and on pre-L-MR1

- This is a workaround.

Bug: 31180524

Test: manual - welcome screen is not shown if we are on Lollipop
and Talkbak is on.

Change-Id: I02636d2d5f305b9d0281f5a6cce88af79573b847
ndroid/contacts/list/DefaultContactBrowseListFragment.java
33aafc2af0f707b5c8ffd5f0312e0bf10dd1ecba 06-Oct-2016 Wenyi Wang <wenyiw@google.com> Merge "First pass on account swicther (1/2)"
f3b4f0eace7afd31e13c55af6ea3fd149d6420c5 06-Oct-2016 Marcus Hagerott <mhagerott@google.com> Check permissions before creating dynamic shortcuts.
am: 8ac989cfc4

Change-Id: Ia52a657329f605b2ab92aea88c10b46fae713b0f
febd4a7508b0c33d6dc3da10c8792d3c4f6b665d 05-Oct-2016 Wenyi Wang <wenyiw@google.com> Re-use existing group and duplicates fragments if possible

- If group fragment is added and visible and we are loading another
group, we simply update the existing group fragment.
- Always see if a fragment is in fargment manager before creating and
adding another one.
- Scroll to top when switching to all contacts view.
- Address a TODO to pop group fragment rather than finishing activity.

Bug: 30944495

Test: manual - navigate b/w fragments (w/ rotation), add and remove
groups; and observe fragment manager's behavior.

Change-Id: Idff71e62ed6ff6e2a12884b2f232336fe3edbf38
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
c73a590e90781ee55b91970f3a4f0878a09db4bf 15-Sep-2016 Wenyi Wang <wenyiw@google.com> First pass on account swicther (1/2)

Bug: 31595958

Test:
- manual: turn on flag and verify it works (incl. local accounts).
- unit tests

Change-Id: I362975ea97356f2cbcf8a9bbbe1bb26dccbc9493
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/account/AccountDisplayInfo.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/common/util/DeviceLocalAccountTypeFactory.java
ndroid/contacts/common/util/NavigationDrawer.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
0b6330f0f3a7469312d119a9d237f01d83874a1f 03-Oct-2016 Wenyi Wang <wenyiw@google.com> Make labels view have grey app bar

Bug: 31268067

Test: manual
- navigate b/w fragments + rotate screen
- create a new label and delete a label
- enter/exit edit mode of group fragment and contacts fragment

Change-Id: I88205faf7b97b6547b9783547dc35a51bec9fa71
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/util/MaterialColorMapUtils.java
082273bd687613e67c96d8087b964c5dc41e52a5 04-Oct-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of d105c1e to master

Change-Id: If53abe8be5d8bd18e5f66699a113fdf27e01cfa3
67430c6eb631e00b9a3295e3313cb39e1ca8c79d 04-Oct-2016 Wenyi Wang <wenyiw@google.com> Merge "Set action bar title in fragment rather than PeopleActivity"
8ac989cfc4de29743f946f00df7a78ecccb73802 04-Oct-2016 Marcus Hagerott <mhagerott@google.com> Check permissions before creating dynamic shortcuts.

Dynamic shortcuts is initialized before permissions may have been granted so
it needs to check permissions before running queries.

Test
Ran the following:
$ adb shell pm revoke com.android.contacts android.permission.READ_CONTACTS
$ adb shell pm revoke com.android.contacts android.permission.WRITE_CONTACTS
$ adb shell pm revoke com.android.contacts android.permission.GET_ACCOUNTS
$ adb shell pm revoke com.android.contacts android.permission.READ_PHONE_STATE
$ adb shell pm revoke com.android.contacts android.permission.READ_CALL_LOG
$ adb shell pm revoke com.android.contacts android.permission.CALL_PHONE
$ adb shell am instrument -w \
com.google.android.contacts.tests/android.support.test.runner.AndroidJUnitRunner \
-e class com.android.contacts.NoPermissionsLaunchSmokeTest

Bug 30189449

Change-Id: I3e7f865559d142c12f3b026a9d6aa2d7e1a1e5f9
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
2ae439e7d604b5ed476d79bf32deb9316dfa3395 04-Oct-2016 yaolu <yaolu@google.com> Show starred contacts from only selected groups in customized view
am: e81000ba15

Change-Id: I636f2d2f19d3ed68bc14f85928f00f710e97c1db
cfe94650934ec079a1f69138334f546defc5e49c 04-Oct-2016 Wenyi Wang <wenyiw@google.com> Set action bar title in fragment rather than PeopleActivity

Bug: 31920908
Bug: 30944495

Test: manual - follow steps to repro in the bug and navigate b/w
fragments (tested all acounts incl. Device).

Change-Id: I085628bd98685f9d1f07cf3c526d36b4127f5376
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
e81000ba15c41165d23263b561ba20b0ac1b011c 04-Oct-2016 yaolu <yaolu@google.com> Show starred contacts from only selected groups in customized view

Bug: 31710454

Test: Manually verified
1. All starred contacts show in all contacts list;
2. No starred contacts show when no group is selected in customized
view;
3. Only starred contacts from selected groups show in customized
view.

Change-Id: I73672ea472753b5194856da2354e5c87a2549648
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
f66060737a193d2d726806ac1563571ef7b3f3c1 04-Oct-2016 Wenyi Wang <wenyiw@google.com> Show group fragment before updating existing group fragment

Bug: 30944495
Bug: 31914654

Test: manual - follow steps to repro in b/31914654 and navigate b/w fragments

Change-Id: Iae6e6d3ff0f4fc59dc7f98ce718ae51d7033603c
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
9c1974f6f46f45a65cf17811e109c86b28cd768c 03-Oct-2016 Yao Lu <yaolu@google.com> Merge "Add link/unlink options to QuickContact"
567f955781395cc995c84a9235745e43de79ebaf 03-Oct-2016 Gary Mai <garymai@google.com> Merge "Load all groups data from editor"
d105c1e23485927b408ee6041d6fac8a71267768 30-Sep-2016 Marcus Hagerott <mhagerott@google.com> Report usage of dynamic shortcuts.

Test
Manual:
* verify that app doesn't crash when quick contacts activity is opened on
pre-N_MR1 device
* verify that usage is reported on N_MR1 with debugger
* Verify that shortcuts still update when a contact is favorited.

Bug 30189449

Change-Id: If2f959857dbb232482047637f8da94b610964c87
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/quickcontact/QuickContactActivity.java
2de7c8e0d319b977bdaf665abbd5a8a5ed41b7bf 26-Sep-2016 yaolu <yaolu@google.com> Add link/unlink options to QuickContact

Bug: 31122952
Test: Manually tested
1) link contact from 1 raw contact, contact from multiple raw contacts
2) unlink contact from multiple raw contacts
3) for non-editable contact, me contact, link and unlink are not shown

Change-Id: I21137ee353a65ad50e800cbb2dd013c23408a5ea
ndroid/contacts/common/model/Contact.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
f2b7bf31d2f4a71e8e37e48aefe84fe2ea8948be 02-Oct-2016 Wenyi Wang <wenyiw@google.com> Merge "Set directory search mode earlier"
5c1bff2efa542ea112c3f2a1d1ed1e271c7691a7 01-Oct-2016 Gary Mai <garymai@google.com> Load all groups data from editor

GroupMembershipView needs all group data to determine which group
is favorites/default, so when we load from the editor use the old
selection string.

Test:
Followed steps in bug and made sure the contact wasn't booted from
the My Contacts list, and the selected labels were updated properly.
Also tested adding multiple new labels and saving those.

Bug: 31750797
Change-Id: I84b1be6c17f2acf46efc202fb81a2c180cc2bcae
ndroid/contacts/GroupListLoader.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupUtil.java
e8e746bb4fed4f010c3103151393bb15f29178a4 01-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Guard against null data cursor before binding list header"
b19d71b6cf8d7ae51ea369311c2ec4be857b6268 01-Oct-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "First pass on consolidating usage of AccountManager (1/2)"
a773fb92493ba4f75832b8443f9b6111f5c66e4a 01-Oct-2016 Walter Jang <wjang@google.com> Guard against null data cursor before binding list header

Test: see Ie0842b1a3809953b44464ce5268b393183bc4888
Bug: 30919642
Change-Id: I8604a0aa764af4253891b662cfdd4770d05b7066
ndroid/contacts/list/DefaultContactBrowseListFragment.java
72b0f455878e1296fdb57d72449af73f84e34f1b 01-Oct-2016 Wenyi Wang <wenyiw@google.com> Set directory search mode earlier

* The cause of the crash is that in ag/1424283 we set directory search
mode in onResume in fragment (rather than before onStart), so loader
and adapter gets old directory search mode (0). Then it will invoke
DirectoryListLoader.getDefaultDirectories and IllegalArgumentException
is thrown.

* We set it earlier now so that loader and adapter will set it correctly
accordingly, which is consistent with the logic prior to ag/1424283.

Bug: 31778407

Test: manual:
- follow steps to reproduce in the bug
- verify search actions in tests APK work well

Change-Id: I5b2eaeaac5f3d1b45b9f9be722b76d94035a51e5
ndroid/contacts/common/list/DirectoryListLoader.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
56c8a0cce9ea98e0f088e74474a57968a02810ab 30-Sep-2016 Wenyi Wang <wenyiw@google.com> First pass on consolidating usage of AccountManager (1/2)

* Move AccountUtil.getDefaultGoogleAccount to AccountTypeManager

Bug: 31776692

Test:
- manual: turn on Search__yenta flag and see if we can get default
Google account
- unit tests all passed

Change-Id: I068a44b0870867cec6dd4ff240e0006df8b8f24d
ndroid/contacts/common/model/AccountTypeManager.java
32912ebfdf65963acb22324bc4120cacffec3c75 30-Sep-2016 Wenyi Wang <wenyiw@google.com> Move ContactListFilterListener back to PeopleActivity

- It's not a good idea to put the listener in a fragment since
we need to do a lot in PeopleActivity when filter changes, and
filter may change when fragment is not added (and this is when
b/31838582 happens).
- Change the style of ProviderStatusListener.

Bug: 31838582
Bug: 31829161
Bug: 30944495

Test: manual
- follow steps to repro in the first 2 bugs
- navigate between fragments
- Add a contact to an account w/o contact and remove the only contact
from it, to make sure ProviderStatusListener works.

Change-Id: Ie45065152db67bf2c7c7873a72038c6f1145d678
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ca9734476a53fd927847a1207a065ae5fd46b70c 30-Sep-2016 Gary Mai <garymai@google.com> Merge "Remove sort accounts method from AccountTypeManager"
ac33359ec62ff26c57da4328c2fa7b0f091b4e13 29-Sep-2016 Gary Mai <garymai@google.com> Remove sort accounts method from AccountTypeManager

Add a getSortedAccounts method.
sortAccounts was only called from the AccountFilterUtil loader
and could cause threading issues if there was more than loader
running at the same time.
Return copies of account lists from AccountTypeManagerImpl.

Test:
Made sure side nav still had the right account filters.

Bug: 31799230
Change-Id: I80ec22cdb4deb98a826f97ca3726c74d23e3edb1
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/util/AccountFilterUtil.java
363af60ea23e5a3b945005712a16564ab69db18b 28-Sep-2016 Gary Mai <garymai@google.com> Rename editor files

Drop the Compact prefix since we only have one editor now.
Remove KindSectionDataList since it's now unused.

Test:
Tested build

Bug: 31088704
Change-Id: Ia5ac295804a14f79d0c837b151e33aabc60aa3d0
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/editor/CancelEditDialogFragment.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/JoinContactConfirmationDialogFragment.java
ndroid/contacts/editor/JoinSuggestedContactDialogFragment.java
ndroid/contacts/editor/KindSectionDataList.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/editor/SuggestionEditConfirmationDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ce4c0a083064e22611136847a78cd09b397bcf0f 19-Aug-2016 Wenyi Wang <wenyiw@google.com> Remove getDayDifference and its test

* The method is not in use after merging contacts and contactsCommon.
* And its test is flaky.

Bug 27346234

Change-Id: If7a9f18bbc57b76a2fc60a8ecc0d0e636547867f
(cherry picked from commit b6a0256a9f9f67964f2129049179f30e90abd5ea)
ndroid/contacts/common/util/DateUtils.java
26e23463a166f0e838ac12cba58dec3f878d6b90 29-Sep-2016 Gary Mai <garymai@google.com> Merge "Split display name into first and last"
698cee7d410f06b0c883c11f53481bfa5b2b787a 20-Sep-2016 Gary Mai <garymai@google.com> Split display name into first and last

Remove all support for directly entering the display
name.
Minor fix for getting focus after text editor expands.

Test:
Tested the following editor scenarios:
1) new contact
2) edit writable raw contact
3) edit read-only raw contact (joins a new writable raw contact to it)
a) Not editing the name and saving doesn't save the new writable
raw contact
b) making edits to the name and swapping accounts saves those edits
c) swapping around a lot doesn't create multiple writable raws
4) edit aggregate w/ 1 writable and 1 read-only raw contact
5) edit aggregate w/ 2 writable raw contacts
6) swapping accounts doesn't lose entered data

Bug: 21758689
Change-Id: I8d97083ae1e0db1031ee8e4d860f65d77022a1a1
ndroid/contacts/common/model/RawContactDeltaList.java
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/common/model/ValuesDelta.java
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/ExchangeAccountType.java
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/model/account/GoogleAccountType.java
ndroid/contacts/common/model/account/SamsungAccountType.java
ndroid/contacts/common/model/account/SimAccountType.java
ndroid/contacts/common/util/NameConverter.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
9702063aa4e5f6bba57d7fd035251476bf57bf5b 28-Sep-2016 Marcus Hagerott <mhagerott@google.com> Remove FloatingActionButtonBehavior

This depends on an internal support library class that is being changed.

Test
manual: deleted a group and verified that FAB does not overlap snackbar

Change-Id: Id4b0fb858624c598353b6ed6dacc8cc8a84309cd
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/widget/FloatingActionButtonBehavior.java
f333e2048f065425c8e2046a996451e570bf9d17 27-Sep-2016 Gary Mai <garymai@google.com> Merge "Promote aggregation suggestions to all contacts"
b34545baaec9890b3bdf75f6a1ccbe96890f918d 26-Sep-2016 Walter Jang <wjang@google.com> Merge "Read autocomplete timeout from phenotype (1/2)"
e48746654178e9448819f86b3129fd32f539b3c9 26-Sep-2016 Gary Mai <garymai@google.com> Promote aggregation suggestions to all contacts

If an invisible contact is selected from the aggregation
suggestion pop-up, add it to the default "all contacts"
group.

Test:
Edited an invisible contact from the aggregation popup,
saved and checked that it appeared in the main list.

Bug: 31703249
Change-Id: Ie8ee277ad6a8c3e07d5478036f109bfa1837fac3
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
e405c12a914e55a321fc96a611e6da609aa5c0de 26-Sep-2016 Gary Mai <garymai@google.com> Merge "Restrict aggregation suggestions"
01dec57196af1ce07eaa13111331282e002af9a4 24-Sep-2016 Walter Jang <wjang@google.com> Read autocomplete timeout from phenotype (1/2)

Test: see Ie4fd41153541cbe554291e234f9c36ffb491b396

Bug: 30921207
Bug: 30436991

Change-Id: I6fe23632d48b0efa447a60fb480360e0ddbf336f
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
e4f23ba7449dc25529762716692c7d25f47fbeda 26-Sep-2016 Walter Jang <wjang@google.com> resolve merge conflicts of 996e80f to master

Change-Id: I717e5abd94ac57ca94152b90a31e8a2066654f6b
220d10cd7095f5ab803ff6155d7adaa576a8c4ff 23-Sep-2016 Gary Mai <garymai@google.com> Restrict aggregation suggestions

Only show contacts which have a raw contact that's in the same
account as the raw contact that's currently being edited.
This also implies no single read only contact will be suggested
since you can't trigger the suggestions from a read-only account.

Test:
Tested entering a name that matches another contact within the same
account shows the suggestion popup when:
1) suggested contact has only 1 writable raw contact.
2) suggested contact has multiple writable raw contacts.
3) suggested contact has a mix of writable and read only contacts.
Checked no suggested contact appears when entering a contact name
that exists in a different account
Checked the above is still true when switching between the different
accounts in the account switcher.

Bug:31704115
Bug:31088704
Change-Id: I45e36e1e61b04069af419c47669c338985eb583d
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
aebf3206766a05cce290245f09506adb789b6e37 23-Sep-2016 Gary Mai <garymai@google.com> Remove support for custom edit activities

Test:
Tested the following editor scenarios:
1) new contact
2) edit other contact
3) edit writable raw contact
4) edit read-only raw contact (joins a new writable raw contact to it)
5) edit aggregate w/ 1 writable and 1 read-only raw contact
6) edit aggregate w/ 2 writable raw contacts
7) edit local me raw contact
8) edit local me raw contact joined with a read-only raw contact

Bug:31682268
Bug:31088704

Change-Id: I4000b4cef0d3c7beaa05cdef51ebdf978288c80f
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/common/model/account/AccountType.java
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/editor/CompactContactEditorFragment.java
996e80f8b429311b0d8099e47716e304bec95d13 22-Sep-2016 Walter Jang <wjang@google.com> Put dynamic shortcuts constants in alphabetical order (1/2)

Test: just GoogleContactsTests unit tests

Bug: 30189449
Change-Id: I3c1dc6867d84d5215d61b8debb771390e1a9225e
ndroid/contacts/common/Experiments.java
a41c1e9237198dbc6a8131fe63fa2dca62523b0b 23-Sep-2016 Marcus Hagerott <mhagerott@google.com> Remove shortcuts update job when experiment is disabled.
am: 020f041f25

Change-Id: I1421aaaf866eaf8668857541f9c2d28611466089
78215d5fe1dd4cf1366af5ffc885bbb6f82de65d 23-Sep-2016 Marcus Hagerott <mhagerott@google.com> Merge "Remove shortcuts update job when experiment is disabled." into ub-contactsdialer-g-dev
9194403bad74d4aa1819068eaf988a003017131b 23-Sep-2016 yaolu <yaolu@google.com> Log third party action MIMETYPE in QuickContact events
am: a92b2d193d

Change-Id: Ic989777663a42017ac325795c44ee2456fd74de7
d259cefacf6effdde46de89272f61263e5738e59 23-Sep-2016 Yao Lu <yaolu@google.com> Merge "Log third party action MIMETYPE in QuickContact events" into ub-contactsdialer-g-dev
a92b2d193ddab97597334075a824a3575d71cb8a 22-Sep-2016 yaolu <yaolu@google.com> Log third party action MIMETYPE in QuickContact events

Bug: 30979088
Test: manual
Change-Id: Ib3d905e8f03c9d6aa71dd65b73a6dc141e63bb39
ndroid/contacts/quickcontact/QuickContactActivity.java
a7978d5bc3fcbe62a40e59e29aebea668385a98a 23-Sep-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of 949d4e8 to master

Change-Id: I399652b6a1b756a8045c1fef092d10581d56400d
0493a6dfc6f0329b13a3bdd0f8eb7b1bb6728faf 22-Sep-2016 Marcus Hagerott <mhagerott@google.com> Merge "Prevent device default account from sticking." into ub-contactsdialer-g-dev
949d4e88400761dac02992978f6b79997b5f0055 20-Sep-2016 Marcus Hagerott <mhagerott@google.com> Prevent device default account from sticking.

When a Google account is added and the default is the null device account then
the default should be cleared.

Test
ran unit tests:
$ adb shell am instrument -w com.android.contacts.tests/android.test.InstrumentationTestRunner
Manual test
* Setup nexus phone with no Google account but one outlook account
* Set default to "Device"
* Create new contact and verify that editor shows "Device"
* Add Google Account
* Create new contact and verify that default account chooser is displayed
* Choose the Google account
* verify that editor shows Google Account
* Remove Google account
* verify that default account chooser is shown again when creating new contact
* Set default to Outlook account
* Add Google account
* Create new contact
* verify that account picker is not shown and editor shows outlook

Bug 31603714

Change-Id: I46c87107727a8b50117e70066a4ef4d162970e84
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DefaultAccountPreference.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/editor/AccountsChangedBroadcastReceiver.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
581585d9ad2e7d3d4b65798acaa0fa462d30710d 22-Sep-2016 Walter Jang <wjang@google.com> Start ContactSheet instead of QuickContacts (1/2)

Test: Manually start QuickContact and ContactSheet from
1. DefaultContactBrowseListFragment
2. Me profile (preferences)
3. Group members
4. Duplicates (with result)
5. Editor (known issue here that ContactSheet doesn't refresh)
6. Shortcuts (this one always ones QuickContact)

Bug: 31666272
Change-Id: Ia939b89fee4f18b62b3d72c87a5077cf350ded24
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
ndroid/contacts/editor/CompactContactEditorFragment.java
d10391e96ab09eac3c707c7744504b1b03b9c71c 22-Sep-2016 Arthur Wang <wuwang@google.com> resolve merge conflicts of 8debbac to master

Change-Id: Icc5cf705caa767de5962ea1cb684f0768c6bbec8
020f041f25b41d1315ab67078e524f4fa595f6c7 22-Sep-2016 Marcus Hagerott <mhagerott@google.com> Remove shortcuts update job when experiment is disabled.

Test
manual: verify that shortcuts are shown after setting, clearing then setting
the flag again.

Bug 31682523
Change-Id: Ibe3a306654eb6f89082e3636efa82f54860b1a15
ndroid/contacts/DynamicShortcuts.java
ff12b660f0a6adf4d0351c0a2bfb0e327747ba89 22-Sep-2016 Walter Jang <wjang@google.com> Flag to start ContactSheet instead of QuickContacts (1/2)

Test: none

Bug: 31666272

Change-Id: I1e30a804830041ebad396b7c08eb8c8b053b4c0e
ndroid/contacts/common/Experiments.java
0396cf7a2b80c4cb1a63e4fdc8d60a1cf6f486f5 21-Sep-2016 Walter Jang <wjang@google.com> Consolidate utility methods to start QuickContact (1/2)

Test: Manually start QuickContact from
1. DefaultContactBrowseListFragment
2. Me profile (preferences)
3. Group members
4. Duplicates (with result)
5. Editor (after save)
6. Shortcuts

Bug: 31666272

Change-Id: I0ad41bdefb69bcc680488dd39e74f02b2b8a4c65
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
8debbac602d98b63602a27c29e9d78d2468c3d45 22-Sep-2016 Arthur Wang <wuwang@google.com> Add flags to retrieve values from phenotype for DynamicShortcuts.

Add getInteger to Flags class.

bug:30189449
Change-Id: Ie74ae57cd8b0010f7ec6bb8a916fbf42cee8ab40
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/common/Experiments.java
24035f6a8765f1039b08ea674c2a69340636d993 22-Sep-2016 yaolu <yaolu@google.com> Provide only "add phone number" option in QuickContact for SIM contact
am: 95a134512b

Change-Id: I3088b6364761ae1dced463716eab47b8db3a2bae
e1dcafeb0de6688644fece3c1da37b768a1afdc4 22-Sep-2016 Yao Lu <yaolu@google.com> Merge "Provide only "add phone number" option in QuickContact for SIM contact" into ub-contactsdialer-g-dev
4e0e969b0bdfcfedfa2f09b914d323b6f116cbca 22-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Write null into file ID when removing photo"
95a134512bcdca22f3cb149967acb9dbfea309b5 21-Sep-2016 yaolu <yaolu@google.com> Provide only "add phone number" option in QuickContact for SIM contact

Bug: 31547071

Test: Manually test for
1, a SIM contact;
2, linked contact from a SIM contact and a non-SIM contact;
3, linked contact all from SIM contacts.

Change-Id: Iab5b5161574d644c9a7c4289a7a3d175ae86169c
ndroid/contacts/common/model/Contact.java
ndroid/contacts/quickcontact/QuickContactActivity.java
8d66f45f45032ddfa22290fd7cdb0eba72501a74 21-Sep-2016 Jim Laskey <laskey@google.com> Merge "Save contact toast shows display name"
dbda990041e2ad8a80df18bac7eb89fa8c2439ec 21-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Initialize ContactsUnavailableFragment in onAttachFragment"
18724188d3abe065b0a030fb2d9d5557dcb6163e 21-Sep-2016 Gary Mai <garymai@google.com> Write null into file ID when removing photo

Writing null into the file ID of the photos value delta
'after' will prevent the editor from trying to read it after a
rotation.
Have the photo editor view hold on to the MaterialPalette so we
use the same color for the default once a photo is removed.

Test: Manual usage of removing a photo from a contact with one and
rotating.

Bug: 25978539

Change-Id: I84c4b22c4064de1d788b08921a5c0164475865af
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
d5aebc5908a78d673d12f4315218a7b7de57a382 21-Sep-2016 Gary Mai <garymai@google.com> Merge "Remove compact photo picker code"
b1671053e48d14f2c620f48bc5f2cd915b51a002 16-Sep-2016 James Laskey <laskey@google.com> Save contact toast shows display name

Bug: 29882910
Change-Id: Icdf0ea1e8c4fac9104d97de83d6ff6f5cbe59142
Test: manual tests with fresh contact (only name, only number)
Test: manual tests with updating old contact (change name)
ndroid/contacts/editor/CompactContactEditorFragment.java
da20b47c2b85390a2c3772379e71203c5aab513c 20-Sep-2016 Gary Mai <garymai@google.com> Remove compact photo picker code

Removed code/classes that related to selecting one of the raw
contact photos to be the photo for the aggregate contact.
After this the only way to set the aggregate contact photo is
to change the photo of one of the raw contacts.

Test:
Tested the following editor scenarios:
1) new contact
2) edit other contact
3) edit writable raw contact
4) edit read-only raw contact (joins a new writable raw contact to it)
5) edit aggregate w/ 1 writable and 1 read-only raw contact
6) edit aggregate w/ 2 writable raw contacts
7) edit local me raw contact
8) edit local me raw contact joined with a read-only raw contact
9) editing photo of a raw contact that is part of an aggregate
updates the aggregate photo
10) each raw contact had the correct photo when
we switched to it.
11) changing a photo for multiple raw contacts within
an aggregate and saving changed all of them. (the last one
changed was marked as primary)

Bug: 31088704
Change-Id: Ia704ae5c6cf81836abe6e48c83922ca1dd036d32
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
d05c2a381d05e6996591d7119d903b8f9782b980 21-Sep-2016 Wenyi Wang <wenyiw@google.com> Initialize ContactsUnavailableFragment in onAttachFragment

- This block of code was removed by mistake in ag/1452346.
- Here's the original history of the block:
- ag/57051, ag/80412, ag/120732, ag/483115.

Bug: 31633212
Bug: 30944495

Test: manual
- follow steps to repro in b/31633212.
- follow steps in ag/1452346.

Change-Id: I90c60abd900e0edb2f941339fdb0fee3a3e7d9e5
ndroid/contacts/activities/PeopleActivity.java
c0cd2acb560070fbcc8e8509246c962e82d84ec4 21-Sep-2016 Marcus Hagerott <mhagerott@google.com> Add dynamic launcher shortcuts.
am: c5083f9a9c

Change-Id: I2b28decf59e7eb4fdbac8eecbc017ee962a843cd
22a46701a75e4de82f00302ce34a4d9685ba31e0 21-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add dynamic launcher shortcuts." into ub-contactsdialer-g-dev
c5083f9a9cf22f3b4acc2f8a6f098a37c6759800 14-Sep-2016 Marcus Hagerott <mhagerott@google.com> Add dynamic launcher shortcuts.

Currently the shortcuts are created for the top 3 contacts returned from
Contacts.CONTENT_STREQUENT_URI

Test:
Added unit tests for DynamicShortcuts but currently suppressed because they
require AndroidJUnitRunner
Manual:
* Use N_MR1 device with recent dogfood Nexus launcher installed.
* launch app
* star some contacts if needed
* press home
* long press launcher icon
* verify that starred contacts show in list of shortcuts
* unstar some contacts
* verify that shortcuts change
* pin a shortcut
* remove contact for pinned shortcut
* verify that pinned shortcut is disabled
* pin a shortcut
* change name of contact for pinned shortcut
* verify that name on pinned shortcut changes

Also prevent disambiguation dialog for other home screen shortcuts

Bug 30189449
Bug 31628994
Change-Id: Iace4b1c88b51ba1f7973c6f4ef90002fb92d0784
ndroid/contacts/ContactsJobService.java
ndroid/contacts/DynamicShortcuts.java
ndroid/contacts/common/list/ShortcutIntentBuilder.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
0981a5888177e85144f60684ddd80e491dba72b3 20-Sep-2016 Gary Mai <garymai@google.com> Merge "Remove all List forms of KindSectionData"
78bb40ce9a22edfd3678856342aa3c1167506c11 20-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "resolve merge conflicts of 9fa8987 to master"
b36388bbe699baf60ee8700c0807be528cb8775f 20-Sep-2016 Jim Laskey <laskey@google.com> Merge "Split Import and Export Dialogs"
4ceabed629c43cb247fd4a0faa36c09bd5ec999a 16-Sep-2016 Gary Mai <garymai@google.com> Remove all List forms of KindSectionData

Pick and render one raw contact delta at a time in editor.
Have the account selector always visible.
- When viewing a read only contact, header will say "Viewing"
- Otherwise it says "Saving to"
Swap between raw contact deltas when an account is selected in the
drop down
Keep menu options available even when viewing just one raw contact.
Remove some code related to photo picker.

Test:
Tested the following editor scenarios:
1) new contact
2) edit other contact
3) edit writable raw contact
4) edit read-only raw contact (joins a new writable raw contact to it)
5) edit aggregate w/ 1 writable and 1 read-only raw contact
6) edit aggregate w/ 2 writable raw contacts
7) edit local me raw contact
8) edit local me raw contact joined with a read-only raw contact
9) editing photo of a raw contact that is part of an aggregate
updates the aggregate photo
10) same with editing the name

Change-Id: Id797619e656d3a9974cc9454a3d26fee471569d5
ndroid/contacts/common/model/RawContactDelta.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
40b026f415e0ae6f7f0bd8ed711f44308e63f738 20-Sep-2016 Gary Mai <garymai@google.com> resolve merge conflicts of 9fa8987 to master

Change-Id: I41e488cb0a1472233ccf9e6c26095f26920671ca
1e2102f33b63f3d2c4e745a0977dae5c0b0ce20c 19-Sep-2016 James Laskey <laskey@google.com> Split Import and Export Dialogs

Bug: 28942286
Test: manually entering the settings with 0 and non-zero numbers of
contacts checking that export option appears only with non-zero contacts

Change-Id: I4a5b2714081fab1f6ed387a821e3df59d4b36eee
ndroid/contacts/common/interactions/ExportDialogFragment.java
ndroid/contacts/common/interactions/ImportDialogFragment.java
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
4554066246ef8a7a3170d1ee9566e5d547f1ecec 20-Sep-2016 Marcus Hagerott <mhagerott@google.com> Merge "DO NOT MERGE Add flag to control dynamic shortcuts experment" into ub-contactsdialer-g-dev
710802c3cc918a0d604d3c23ac7469f48fedf69d 20-Sep-2016 Gary Mai <garymai@google.com> Fix showing aggregation suggestion

Accidently broke the aggregation anchor view retrieval method.
Now returning the proper anchor view.

Test: Typing a name that would trigger the aggregation suggestion
and seeing the pop-up appear.

Bug: 31575242
Change-Id: I7e20712d89ce58106000cdcf7402aa29b279ce8a
ndroid/contacts/editor/CompactRawContactsEditorView.java
9fa8987d511857fafddadc082982aef6816c2b4f 20-Sep-2016 Gary Mai <garymai@google.com> Don't render account name for device and sim

In the raw contact selector, ignore account name for
DeviceLocalAccountType and SimAccountType since they don't have
good renderable names.

Test:
Manually checked drop down for linked contacts that contain
Device and Sim accounts.

Bug: 31544599
Change-Id: I37db95e585077d1f2a37474705b4a5ed645804b6
ndroid/contacts/editor/CompactRawContactsEditorView.java
d5cbb9eff63386f884645fba40fed34dd03bd070 18-Aug-2016 Walter Jang <wjang@google.com> DO NOT MERGE Add flag to control dynamic shortcuts experment

Also fix the format of pull to refresh experiment flag

Bug 30630964
Bug 30189449

Change-Id: Ib297cee400b5e864a6ca71566c3d4182cb041226
(cherry picked from commit 4846b68b921514384e7701ff96d6d43b9fd2210a)
ndroid/contacts/common/Experiments.java
b52ef42a64f541aef38169742eac6012c8fa628f 19-Sep-2016 Walter Jang <wjang@google.com> Enable group member edits for external accounts
am: 0fed9b621f

Change-Id: I5be4e8686bddabbae1a316db857049481c08e5ae
fd1d9dd0f64187462e091bc77687e9e615c91b0e 19-Sep-2016 Walter Jang <wjang@google.com> Merge "Enable group member edits for external accounts" into ub-contactsdialer-g-dev
b179625adfa1ee31e4c8ec5d83a130b4d2464663 19-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Flip mFromOnNewIntent to false after configuring fragment"
a730d9dcda9197fe190b4beea4d3c6ad8adb61e3 17-Sep-2016 Wenyi Wang <wenyiw@google.com> Flip mFromOnNewIntent to false after configuring fragment

- We need to change it to false so that it doesn't stay true forever.

Bug: 30944495
Bug: 31575582

Test: manual
- step 1: open Contacts app, press Home button and re-open it
- step 2: search for any contact and press on a search result to open
QuickContact
- step 3: close QuickContact and observe: contacts list shouldn't
quit search mode

Change-Id: Ieb9f0dcd6d303103b5f6e357d123d1ffa47494a8
ndroid/contacts/list/DefaultContactBrowseListFragment.java
1649d42233c75e31f489e3969614c6401964bb87 18-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Hide phonetic name view when phonetic name data kind is not present" into ub-contactsdialer-g-dev
0fed9b621f8e9c3a3dada1f9ecb93bcca30f5507 08-Sep-2016 Walter Jang <wjang@google.com> Enable group member edits for external accounts

But only if the account is also writable.
Also, only use writable accounts for new labels.

Test: Manually verified that some writable external acccount
types (ContactsTest and MyLocalAccount) are offered as an
option for new labels.

Bug: 31216444
Change-Id: I3dea4e76988f8d6e9be7d1bd41cda891d08999d9
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/account/ExternalAccountType.java
f9704d63feae14aa8f8d845a40a9fbb958438876 17-Sep-2016 Gary Mai <garymai@google.com> Merge "Fix crash when switching to Samsung account in editor."
d3d2800fb9fe3229a77e1cb28a64dd7f3dd2ea14 17-Sep-2016 Walter Jang <wjang@google.com> Fix the ContactsTest account type and sync adapter (1/2)
am: 98d41d714f

Change-Id: Ic30c8e6f2e617871b305a47a0da63d57fcb0ac75
95130ade398017fa2e035b798e8b9607f2cf6709 17-Sep-2016 Wenyi Wang <wenyiw@google.com> Hide phonetic name view when phonetic name data kind is not present

Bug: 31547816

Test: manual
- follow steps to repro in bug
- also rotate screen

Change-Id: Ic7e04268e426bf1e58d8c4fa9df40fca52ed7a15
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
6a9817185248a30e1553fa5da5db89f081b6fcf1 17-Sep-2016 Gary Mai <garymai@google.com> Fix crash when switching to Samsung account in editor.

Need to clear the current sorted mimetypes when setting state,
since each account type might not support the same mimetypes.
In the case of Google -> Samsung, Samsung doesn't have SIP
addresses.

Test:
Tested switching from Google Account to Samsung account.

Bug: 31552749
Change-Id: I1504040716c1ba3929747d84940a3b2da10959e4
ndroid/contacts/editor/CompactRawContactsEditorView.java
ea89eec68ceae3e9234fd35b49b468426f7a4efb 16-Sep-2016 Jim Laskey <laskey@google.com> Merge "Insert name into toast during contact deletion"
af338dd08e8460443a3d31ac4f0a446f3cd4db6e 16-Sep-2016 Gary Mai <garymai@google.com> Merge "Remove more editor view classes"
98d41d714f8631e0988624df5b566eb62d63a8e5 15-Sep-2016 Walter Jang <wjang@google.com> Fix the ContactsTest account type and sync adapter (1/2)

* Add TestSyncService$Basic to the AndroidManifest and give
it the fallback account type unit test contacts.xml.

* Remove "common" from the testauth package name

* Change the test accountType to end with testauth.basic
instead of authtest.basic since it's testauth
everywhere else.

* UI changes
- Give the test account type the same name as the app
- Remove the ic_contact_picture test account type icon
since it just looks like a black square and we can
just use the default (after we add a guard against
null icons in the DrawerActivity)

Test: manually add a user of the test account type and
toggle sync, then add a contact of the test account
type in the app.

Bug: 30759296
Bug: 31549157

Change-Id: I363fff8dfbce3d2d1b888e23abe6e20a40da2d1c
ndroid/contacts/ContactsDrawerActivity.java
65971d0f87dbee0b5ff93a7d64cdaab0940f56f5 16-Sep-2016 Gary Mai <garymai@google.com> Remove more editor view classes

Got rid of KindSectionView and the base and read only editor views.
Moved most of the read-only editor field rendering logic to
CompactRawContactsEditorView.
Dropped the expandable functionality of the read only view.
Dropped the edit externally functionality as it doesn't look like
it's being used.

Test:
Viewed the single raw contact only view from the account list.

Bug: 31088704

Change-Id: I9ba0172f4002b2fe24cd397ea65298cf486f5873
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
9300be76a7071ce20a7754e1c4659e7dd93cbe6f 16-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove OnContactsUnavailableActionListener"
46dff681b462bad98cf9af082d2a1cb008199885 16-Sep-2016 Wenyi Wang <wenyiw@google.com> Remove OnContactsUnavailableActionListener

- Also add back updateButtonVisibility(View.VISIBLE) which was
deleted in ag/1338636 by mistake.

Bug: 30944495

Test: manual
- Add account and import contacts from no contacts view

Change-Id: I98bd002474ec4e656422473f9954834fc6c21f46
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/OnContactsUnavailableActionListener.java
532ff3423bc11db4cad8be9e05db51ee335583d7 16-Sep-2016 yaolu <yaolu@google.com> Modify log message to avoid logging null String
am: 5d1ee91438

Change-Id: I0479ae162f4d7b0eca8f2f281e0f6ea05efd5c0c
da3a453bcf5e9afa025b22f96f4758f12ed496ff 16-Sep-2016 Yao Lu <yaolu@google.com> Merge "Modify log message to avoid logging null String" into ub-contactsdialer-g-dev
5d1ee91438dc6021da07706c018b162cf94819ea 15-Sep-2016 yaolu <yaolu@google.com> Modify log message to avoid logging null String

ClearcutLoggerApiImpl throws NullPointerException for log message with
null input.

Bug: 30979088
Test: Manually verified message is logged to server.

Change-Id: I0022344a329707b1f8037f9d08e07380b4952772
ndroid/contacts/common/logging/Logger.java
4beed7e96dfaaaebd8c3f5ca86dfa8683eb3569f 15-Sep-2016 James Laskey <laskey@google.com> Insert name into toast during contact deletion

Bug: 29882910
Test: manual inspection of toast contents

Change-Id: I0816163e430680a5b76c185a7fd1c466c86f3894
ndroid/contacts/interactions/ContactDeletionInteraction.java
b0361f915ef9bbfd4202a75430824414ab897b0b 15-Sep-2016 yaolu <yaolu@google.com> Format phone numbers in Recent card call logs
am: 3c5e3122c0

Change-Id: I7bec63d1453db8e45b79b7dc00b1dd67ce0ace0d
5725d88c16e8c306ed8c33065cdd453490003f23 15-Sep-2016 Yao Lu <yaolu@google.com> Merge "Format phone numbers in Recent card call logs" into ub-contactsdialer-g-dev
4f35e44ac682f5cb1e372550e222b56d26ec3029 15-Sep-2016 Marcus Hagerott <mhagerott@google.com> Don't skip querying raw_contacts for device accounts.
am: e6a1202e18

Change-Id: I20afbdbdd0092742b9716278ba97138285d1b409
3c5e3122c015c43bc93a79d23c7ed6f207ec598d 14-Sep-2016 yaolu <yaolu@google.com> Format phone numbers in Recent card call logs

Use PhoneNumberUtilsCompat to format phone numbers
Force phone number always displayed LTR

Bug: 19236849
Test: Manually verified phone numbers are formatted and still LTR when
in RTL language.

Change-Id: Ia419e55e05be25028b0190946d096cf0269955ba
ndroid/contacts/interactions/CallLogInteraction.java
8a25b29d25fc82d9059d8924eb8935467a7e499f 15-Sep-2016 Gary Mai <garymai@google.com> Merge "Remove multi account grouping of data in compact editor"
e6a1202e188f788a32e2396eab1f095f4c2c2305 15-Sep-2016 Marcus Hagerott <mhagerott@google.com> Don't skip querying raw_contacts for device accounts.

Querying the raw_contacts is necessary for the second SIM account to be
displayed on the LG G5 when 2 SIM cards are installed.

Test:
Manual
* Put a second SIM card in an LG G5
* Verify that there are 2 SIM accounts when adding new contact with FAB
* If necessary add contacts so that there are contacts associated with both
SIM accounts
* Verify that there are 2 SIM account in the accounts section of the nav drawer

Bug 30868406
Change-Id: Ia29d50ae1a67a65562c6294e518b9b995e924366
ndroid/contacts/common/model/DeviceLocalAccountLocator.java
98868d33107de0dd539441e80e94b856f2269057 14-Sep-2016 Gary Mai <garymai@google.com> Remove multi account grouping of data in compact editor

Remove most List versions of KindSectionData and KindSectionViews,
with exception of photo section data, since we still want to show
the correct photo. In the aggregate screen with the multi account
selector, we show the photo of the aggregate in read only. Once
a raw contact is chosen to edit, we show the photo of that raw
contact.
Removed sorting that dealt with multiple accounts. Still sorting
the mimetypes.
Drop custom field data kinds until we're ready to render them.
Use for loops instead of for each where possible.

Test: Tested the following editor scenarios:
1) new contact
2) edit other contact
3) edit writable raw contact
4) edit read-only raw contact (joins a new writable raw contact to it)
5) edit aggregate w/ 1 writable and 1 read-only raw contact
6) edit aggregate w/ 2 writable raw contacts
7) edit local me raw contact
8) edit local me raw contact joined with a read-only raw contact
9) editing photo of a raw contact that is part of an aggregate
updates the aggregate photo
10) same with editing the name

Bug: 31088704
Change-Id: I39219af0bfd1ac0899b6518983be942d78bda9aa
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionData.java
82c137c0df0c1668e0d951e708bebf95bd6959ae 15-Sep-2016 Walter Jang <wjang@google.com> Merge "resolve merge conflicts of 3cf4db4 to master"
3ae864760d5e8ea3f77f70bba97b74a938e5016a 14-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Refactor onBackPressed to make it easier to read"
792dae7da5009eb8de31f240235b256079bcdbc2 14-Sep-2016 Walter Jang <wjang@google.com> resolve merge conflicts of 3cf4db4 to master

Change-Id: I990bc8cf9dc3d1ecd1ade5fc60aa21c120ead7d5
fdfcaf242d93542dde55f684f19cc4372343e483 14-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Include data set when getting raw contacts to add to label" into ub-contactsdialer-g-dev
3cf4db4cb1a2f4cb7b346838dffe09e9aa69377c 14-Sep-2016 Walter Jang <wjang@google.com> Include data set when getting raw contacts to add to label

Test: manually create group w/ some members for account
types w/ and w/o a dataSet

Bug: 31393749
Change-Id: Iafcfd926f9c886d91ac7abbf1d3102a9f977eb7a
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/common/list/ContactListFilter.java
f99050625b7df278f8da9432ba67f50ba9c50aac 14-Sep-2016 Wenyi Wang <wenyiw@google.com> Refactor onBackPressed to make it easier to read

Bug: 30944495

Test: manual
- press Back button in:
- All contacts view, and in search/selection mode.
- Duplicates view
- Label view, and in selection mode.
- Account view, and in search/selection mode.
- No contacts view.

Change-Id: Ie6ef9c5c2b701b3d8e7f97f1bba31cb247661d30
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
d3caf162097f870306945e07bc37bc630b0b3d52 14-Sep-2016 John Shao <johnshao@google.com> Display error when failed to link some contacts
am: a3c507a226

Change-Id: If8ca4b977d10f324ba4b98b83088dbeb3744f0b2
60ca24d89fea34b1b7b8f4a4bc53ffaa3adfbcc3 14-Sep-2016 Wenyi Wang <wenyiw@google.com> resolve merge conflicts of 51819e8 to master

Change-Id: Ic4ca267c2f2726763aba2921940f4d8d32d3eb14
bd512f85c48448fae88cd71617e2cd7a8c02eae7 14-Sep-2016 yaolu <yaolu@google.com> Remove unnecessay icons on QuickContact Recent card
am: dfc138f445

Change-Id: I648c7191c75c3147e709b4b2c3e443a10326eb47
a3c507a2262848b9de45c306f7cd1a4a56da2850 13-Sep-2016 John Shao <johnshao@google.com> Display error when failed to link some contacts

SIM Raw contacts are unlinkable on some OEM devices
like samsung s4 and s5. Their native contact app disables
the feature but we still support it for Nexus and newer
devices like s7. Show error toast when failing to link
these contacts instead of showing a success toast.

Test: manual
- Link "unlinkable" contacts and see new error message
- Link linkable contacts and see success path
- Link sim contacts and see error message on s5

Bug:28637870
Bug:28622373

Change-Id: Ia124f4f2a842c8b8ad3b57367a19edea9fc0fbab
ndroid/contacts/ContactSaveService.java
69935f0672af992f44eaaacea0233b399427607e 14-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Dismiss promo when Back button is pressed (1/2)" into ub-contactsdialer-g-dev
6086076d3e8ea66ec6069c1c3d47015ca30e2de8 13-Sep-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of bc51084 to master

Change-Id: I209fc7c8ade6a96ed2a2a6641f92b7a2258d315c
2813d924c1cdaff76039b6ca2b5987cc32557c10 13-Sep-2016 Marcus Hagerott <mhagerott@google.com> Fix NPE in CustomContactListFilterActivity
am: 3148fef4d6

Change-Id: I6313747e66ae8d1558287b061f55fe89094fc522
dfc138f4451c1207a16220b8a6591472819bb9a7 13-Sep-2016 yaolu <yaolu@google.com> Remove unnecessay icons on QuickContact Recent card

Bug: 28944282
Test: Manually verified icons are removed and the rest UI stays the same
when:
1. recent card has no expand button
2. recent card is expanded/collapsed in portrait, landscape, RTL

Change-Id: I550eb75b716f0ef15d8f243c4c1f0a57d726a3e5
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
159e85fe75d52df5ef1152798d114006d22d7e59 13-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Detect empty device accounts." into ub-contactsdialer-g-dev
bc5108495a35010073b925f9c7e04ee35fe1120e 10-Sep-2016 Marcus Hagerott <mhagerott@google.com> Detect empty device accounts.

This queries groups and settings to find device accounts in the case that
there are no raw_contacts associated with an account

Test:
Manual test
* Remove all device contacts from LG G5
* relaunch app
* verify that "Device" doesn't show in nav drawer
* press FAB
* verify that "Device" does show in account picker in the editor
* add the contact to the device account
* verify that "Device" now shows in the nav drawer

Bug 30867780
Change-Id: I12bba7a1b5a5f37048517264cb82a599197f6d05
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/model/DeviceLocalAccountLocator.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/util/AccountFilterUtil.java
328769092ca2d77ef1f3c335f7cd1451b6a8dd7c 13-Sep-2016 Marcus Hagerott <mhagerott@google.com> Merge "Fix NPE in CustomContactListFilterActivity" into ub-contactsdialer-g-dev
410eee311c7dbaf1b29c1f034bbd317ae7d57dfb 13-Sep-2016 Gary Mai <garymai@google.com> resolve merge conflicts of b6e28d2 to master

Change-Id: Ic8adea7525406a376b598954f33ee2642ccb1b88
cc3e9a584bffc68387d77197d7a08678b9fd1847 12-Sep-2016 Gary Mai <garymai@google.com> Focus label edit view on click
am: f862233695

Change-Id: Id59c5f5162a9b26c335fd23d2ff5105ccfcc4dcd
3148fef4d6d7106e864faa89d0ceecc69b7dd2c8 12-Sep-2016 Marcus Hagerott <mhagerott@google.com> Fix NPE in CustomContactListFilterActivity

This is the same change as I7cbc63f35fbf7d7befc2ce26445e1b0ccd0f94e1. The
change wasn't automerged because the repositories were reorganized.

Bug 31180545

Change-Id: I100898083916399df486efb180bd160f2ce760ab
ndroid/contacts/common/list/CustomContactListFilterActivity.java
5ab17a20873bea733dca47ba4cead97cd51f1354 12-Sep-2016 Gary Mai <garymai@google.com> Merge "Remove layout transition from photo view in editor" into ub-contactsdialer-g-dev
f8622336951554047a10ab0c7dda8199970f2f8c 09-Sep-2016 Gary Mai <garymai@google.com> Focus label edit view on click

Take focus away from previously focused fields so that the
the background view doesn't scroll up when the new label
dialog is shown.

Test:
Manual
Tested opening the create new label dialog while another
edit text had focus.
Tested canceling the dialog and committing a new label.
In the case of committing made sure the label edit view
was in the viewport so the entire popup is visible.

Bug: 29055820
Bug: 29211998

Change-Id: I45c604f9b94ab03a67bc1d5c64d98364140f931f
ndroid/contacts/editor/GroupMembershipView.java
b6e28d2da2a36462e0d6cb93430ee26f753a17d9 12-Sep-2016 Gary Mai <garymai@google.com> Remove layout transition from photo view in editor

Test:
Tested repro steps in the bug, made sure there wasn't animation for
the photo edit view

Bug: 31403085
Change-Id: I1934a3d7c10cf9de80836ce7958aae3de4783b34
ndroid/contacts/editor/CompactRawContactsEditorView.java
51819e8072cc7c01f704fab1d19b9bc359e7d528 12-Sep-2016 Wenyi Wang <wenyiw@google.com> Dismiss promo when Back button is pressed (1/2)

Bug: 30930004

Test: see http://ag/1432879
Change-Id: I6a477ced7fb4ac53900c04b0d5c70a8f8714745a
ndroid/contacts/activities/PeopleActivity.java
6171596fae7cbbf246571a736ea5d431258ca0fe 12-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge changes Ic2db8b07,I870760a8

* changes:
Clean up getters and setters of filters
Move more logic to DefaultContactBrowseListFragment
2b875aab92954400c4ed058e0e9876da36d36993 12-Sep-2016 Gary Mai <garymai@google.com> Editor expander changes
am: 1c6298b67f

Change-Id: Ic2a545e5344bcae36a8d940d9200d1c3ce52c6a4
1c6298b67fe3f25562b50793e610334a43d6a34c 09-Sep-2016 Gary Mai <garymai@google.com> Editor expander changes

Missed tinting the phonetic name expander in ag/1417505.
Went ahead and did some refactoring since
phonetic_name_edit_expansion_view was the same as the name_edit one
but with a different content description. Removed it since content
description should be dynamic with the state of the expander anyway.
Along that line also made accessibility improvements and fixed a bug
with the state of the icon after rotation.

Test:
Checked the color of the phonetic name expander.
Actioned the expanders with Talkback on and made sure the correct
announcements were made.
Checked state of icon after rotation was consistent.

Bug: 30160325
Bug: 31033553
Change-Id: Ia62ed1a03b4edda81815387e3bcf4f48449699e2
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
df3e84934f5ed33ed8e457bf0a0a1a435db3e4d9 09-Sep-2016 Wenyi Wang <wenyiw@google.com> Clean up getters and setters of filters

- In DefaultContactBrowseListFragment, there were 2 ways to
get filter; now, there's just one - from singeton
ContactListFilterController.
- In DefaultContactBrowseListFragment and its super class
ContactBrowseListFragment, there were multiple methods to
set filter; now, there's just one - from singeton
ContactListFilterController.

Bug: 30944495

Test: manual - change filter from side nav; switch to custom
filter; create a contact from an account; list
event logging (from logcat).

Change-Id: Ic2db8b07880272afd420b747c1ab6aa821311bb4
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ed9f9747b07f5de8f0e73cd78043b2b00ef558db 08-Sep-2016 Wenyi Wang <wenyiw@google.com> Move more logic to DefaultContactBrowseListFragment

- PeopleActivity#configureFragments configures
DefaultContactBrowseListFragment only, so it's moved to the
fragment and is renamed as "configureFragment".
- configureFragment is now called from onResume instead of onStart,
because we can count on onResume() being called after onNewIntent().
- onKeyDown() is also moved to fragment.

Bug: 30944495

Test: manual - navigate between fragments, rotate, press Back/Home/Recent
button, search, multi-select and when no contacts view is
shown.

Change-Id: I870760a816e53428e42362675545083b8e791d9a
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
f056972aa3d4e17c8c7d6f66a746c9baa2d15812 12-Sep-2016 Walter Jang <wjang@google.com> resolve merge conflicts of 552e582 to master

Change-Id: I1f7c08d9be9bec632186acb489ac2881c0c2d666
552e5828fb8217da69fb68d045f5d3a613d76951 10-Sep-2016 Walter Jang <wjang@google.com> Only auto select group writable accounts for new labels

Test: manually create new labels with 0, 1, and 2 group writable
accounts

Bug: 31408843
Change-Id: I550885373734c0398d81ddb109e37dbd74a52259
ndroid/contacts/ContactsDrawerActivity.java
5a49696d7f82a395980ed918f3e86c93222734d4 10-Sep-2016 Walter Jang <wjang@google.com> Merge commit '428824eaca7ed60c14add0a1d45edfe4535059bb' into manual_merge_428824e

Change-Id: I049ee9066aaa7ccd29cd9efddc46850f7fa3f018
428824eaca7ed60c14add0a1d45edfe4535059bb 09-Sep-2016 Walter Jang <wjang@google.com> Consolidate the two group metadata classes

* group.GroupMetadata is renamed to GroupMetaData

* The defaultGroup and favorites fields from
common.GroupMetaData are added to group.GroupMetaData.

Test: manual tests
- Add and edit a group
- Load quick contacts w/ and w/o groups
- Add invisible and directory contacts to default group

Change-Id: I7f53ae6e4409c414918ffc5615fb5e3bd25d116d
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/common/GroupMetaData.java
ndroid/contacts/common/model/Contact.java
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupMetaData.java
ndroid/contacts/group/GroupMetadata.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
453a110b63aa3d7d9672a4f600db6733d75e51c1 09-Sep-2016 Walter Jang <wjang@google.com> Merge commit 'dd2d8e27d8548893122c469bd1b68d5117fc5318' into manual_merge_dd2d8e2

Change-Id: I438cc9613c527bd0ca14caa8a08dbff6a7c0aa9d
dd2d8e27d8548893122c469bd1b68d5117fc5318 09-Sep-2016 Walter Jang <wjang@google.com> Rename GroupMemberPickerFragment rawContactsIds

... and all associated ARG and KEY constants to
contactsIds, since that's what it really is. Also

* Share the selection clause between GroupMetaDataLoader
and GroupListLoader -- we were inconsistent in filtering
out auto add and favorites groups.

* Remove unsued groups methods:
- GroupMemberPicker.Listener#onGroupMembersSelected
- GroupUtil#bindPhoto

* Remove some obsolete comments, fix some others

Test: Manually create and edit editable and read-only groups

Change-Id: I9607225d1a61f8673b7d1461149ae30e253c781d
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/GroupMemberPickerFragment.java
532554e10e9b4e2575ad45327f8916f285731412 09-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "resolve merge conflicts of cf7f295 to master"
3e05750864383d55157fc535981fc8568cda756e 09-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Second pass on fragments navigation"
f04c975dc39fe9b49e51c05807006c5164fbe0ba 09-Sep-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of cf7f295 to master

Change-Id: I49249472948c29b97be8fe33cda8fa022d8e62f6
cc8f272af38bd46710b8186424caf515215f2582 07-Sep-2016 Wenyi Wang <wenyiw@google.com> Second pass on fragments navigation

1. Fix some janky animation when opening or updating groups.
a. Use FragmentTransaction#replace instead of FragmentTransaction#add
so that mAllFragment will not appear before group members are loaded.
b. Change group URI and reuse existing group fragment to reload group
members, instead of popping old group fragment and adding new group
fragment, when user opens another group from a group view.
2. Fix an error in ContactsDrawerActivity#updateFilterMenu.
3. Move code to handle new Intent from PeopleActivity to group fragment.
4. Initialize ContactListFilterController in
DefaultContactBrowseListFragment#onCreate rather than onActivityCreated.
Because onActivityCreated will be called when fragment is removed and
added back, and we don't want to set filter again and again.
5. Fix a bug where activity title is not updated when nagivating from
account A --> group X --> account A.
6. Move all group actions from GroupUtil to ContactSaveService.
7. Other minor refactoring and cleanup.

Bug: 30944495

Test: manual - navigate between fragments, rotate, press Back/Home/Recent
button, search, multi-select, modify group members,
add/delete groups, view/edit/add groups from
ContactsTests.apk and when no contacts view is shown.

Change-Id: I27c89b4125e55b67921a37f2092fde839a9f8ed4
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
e472b50865ef5fef3ad6186e7f1f79c8c16b8d3e 08-Sep-2016 John Shao <johnshao@google.com> Hide empty FFC groups for non Google accounts
am: f9dd12948a

Change-Id: I1852187bdfaa83f194cbf3162c21160e0429bf98
f639b7c673c148a8f8e0a5a73d9ceaa424385805 08-Sep-2016 Marcus Hagerott <mhagerott@google.com> Merge "Restrict fields supported by SimAccountType" into ub-contactsdialer-g-dev
f9dd12948a7844ddcf5edb8778d7edbf50dd0e82 08-Sep-2016 John Shao <johnshao@google.com> Hide empty FFC groups for non Google accounts

OEM devices are creating system FFC groups that are not
being hidden because of a check for Google account. Relaxing
that check to allow account account type label to be hidden
if its an empty FFC.

Bug:30575974
Change-Id: I85b312bfb6a6904cd2236d2ee5cbe07d9a724ee6
ndroid/contacts/group/GroupUtil.java
e9c6dda462dfabac4dd0d21b32bf5c08cbfc85d4 08-Sep-2016 Walter Jang <wjang@google.com> Load groups even when there are no group writable accounts
am: 060f3240cd

Change-Id: I737f09782dca1dd59e24723cafe1e33d3d1b2872
4d5e389ad7819465c4c6eff86dd864adf6f9a319 08-Sep-2016 Walter Jang <wjang@google.com> Merge "Load groups even when there are no group writable accounts" into ub-contactsdialer-g-dev
cf7f295a05bd356ea8715ea456fbe5f6ced9d823 06-Sep-2016 Marcus Hagerott <mhagerott@google.com> Restrict fields supported by SimAccountType

Test:
Manual test
* Create new contact using FAB
* Select SIM account
* Verify that only name and phone number are editable
* flip to landscape
* verify that name and phone number are still editable

Bug 30868406
Change-Id: Ifd067db57f64208a71191000bdee6fab1aa99767
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/common/model/account/SimAccountType.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
060f3240cd1abe62b9cab0641a5b7ecbd37998e7 08-Sep-2016 Walter Jang <wjang@google.com> Load groups even when there are no group writable accounts

Test: Manually verified drawer shows read-only group
with and without a writable account on the device.

Bug: 31347049

Change-Id: I288ebc7e7cd4d2044f3415e3f06e43f6b10962a7
ndroid/contacts/ContactsDrawerActivity.java
68c265862346328fe9b700cbb467b9ad7247da8f 08-Sep-2016 Gary Mai <garymai@google.com> Format phone numbers when inserting a new contact
am: c03cfc04a8

Change-Id: Ida51773110228e025773f1b26977de72686fdcbf
c03cfc04a8f66dc30360f3eb7ec876d4cae64237 08-Sep-2016 Gary Mai <garymai@google.com> Format phone numbers when inserting a new contact

Set formatAfterWatcherSet to true when inserting a new contact.

Test:
Tested opening and closing a contact with an unformatted number
doesn't prompt to discard changes.
Tested adding a new contact from Allo has formatted number.

Bug: 26754145
Change-Id: I82546e86aec1e901e9b508eeaf7b87cf9f28d22f
ndroid/contacts/editor/TextFieldsEditorView.java
f2a1fc77f697561ff31bea5a7d01c5f34120d2f4 07-Sep-2016 Gary Mai <garymai@google.com> Import new expand icons
am: 3e9637f91b

Change-Id: I6a134aa6c1f1ae2e574c07561e0770eb5bbd4a36
d7e88b57ea80ce1cac341f363c9b74e168ef1064 07-Sep-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add changes lost in I467a8b4fa5cc610c3e1627f30631a55ecd6c91c1"
87de74950dac5ca9b472fcbe8025069c6aba6dae 07-Sep-2016 Gary Mai <garymai@google.com> Merge "Import new expand icons" into ub-contactsdialer-g-dev
15c6f183b56a6c26d3316154569700be7359107e 07-Sep-2016 yaolu <yaolu@google.com> Update QuickContactEvent field names to match proto file (1/2)
am: 7a09c70af8

Change-Id: I00b70363693b4c573922cbfa3f9506eff5fe6183
3e9637f91b3b7f985212e1c9d6d94c996c13100e 07-Sep-2016 Gary Mai <garymai@google.com> Import new expand icons

Also update X close icons to be vector drawables, tinting
them to the proper colors where they are currently used.

Test:
Manually verified the following with Bullhead on M (MDA70B):
1. Dropdown icons in compact and full editors are 54% transparent
black.
2. X's next to edit text views are 38% transparent black.
3. X's in search and selection bar are still 54% transparent
black.

Bug: 30160325
Change-Id: Ice24a70f02141f641c389060c37bdc87b727b230
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
870ea400609bcbcc35f87aab701e24bb30d4356b 07-Sep-2016 Yao Lu <yaolu@google.com> Merge "Update QuickContactEvent field names to match proto file (1/2)" into ub-contactsdialer-g-dev
935b56aabd5ee1562df1d16324ce8e3f51005651 07-Sep-2016 Marcus Hagerott <mhagerott@google.com> Add changes lost in I467a8b4fa5cc610c3e1627f30631a55ecd6c91c1

This allows contacts to be created in a null device account without showing the
account chooser. It also shows the correct title in the action bar when viewing
device accounts.

Change-Id: I3ee096d1ed70d544fd719e930dcb49953c162eb3
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
7a09c70af86b9f3bae52c102ebfb6a32b99e7409 02-Sep-2016 yaolu <yaolu@google.com> Update QuickContactEvent field names to match proto file (1/2)

Follow up cl for ag/1370511 and ag/1370459.
The proto change: cl/131608869

Bug: 30979088
Test: Manually started QuickContact from Contacts, home screen shortcut,
and Dialer, edited contact, perform actions, then observed from logcat
for log messages.

Change-Id: Id0f268796d2e31fd149f424b1750735476753522
ndroid/contacts/common/logging/QuickContactEvent.java
ndroid/contacts/quickcontact/QuickContactActivity.java
5ea7f5a8ab7379e09f20aca12924af6839a7b2b5 07-Sep-2016 yaolu <yaolu@google.com> Remove the expand/collapse behavior of the QuickContact contact card
am: 139a03bd82

Change-Id: I3ecf9a6e0045335847e206f62dbdaf3b52811da0
ad43f1bc6c5e50a41a3ed15d74114c9861699ff4 07-Sep-2016 Yao Lu <yaolu@google.com> Merge "Remove the expand/collapse behavior of the QuickContact contact card" into ub-contactsdialer-g-dev
139a03bd82f45338402e747154dd7b3d61bf1747 03-Sep-2016 yaolu <yaolu@google.com> Remove the expand/collapse behavior of the QuickContact contact card

Also remove the prioritization for showing the
EXTRA_PRIORITIZED_MIMETYPE, which is used only for collapsed contact
card.

bug: 30979328
bug: 26063493

test: Manually opened QuickContact from Contacts and Dialer.
Manually added/removed contact information to have less than 3, 3,
and more than 3 entries shown in contact card.

Change-Id: Ifeabc7012306a5c35e8572a823cb1b7004218409
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
3c1153ffe62484e83764fbed7668d52c065fa518 07-Sep-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of fac695a to master

Change-Id: I467a8b4fa5cc610c3e1627f30631a55ecd6c91c1
668f748c7bf34a9dc2914b44d6e7d7aa7d7538a7 07-Sep-2016 Gary Mai <garymai@google.com> resolve merge conflicts of 46cb310 to master

Change-Id: Iae98c5320fec2e26bc692df029e483b7977dcd62
fac695a36b227f5591eac064ded8e8dad3398400 25-Aug-2016 Marcus Hagerott <mhagerott@google.com> Add device and SIM to AccountTypeManager

This makes these account types available throughout the app rather than
just the Nav drawer.

Test:
Added unit tests for new classes; run with:
$ adb shell am instrument -w \
com.google.android.tests/android.test.InstrumentationTestRunner

Manually on Nexus 6, LG G5 and Samsung S7 with device and SIM contacts
in CP2 by verifying "Device" and "SIM" options were available in
* nav drawer
* account list accessed by Pressing FAB without default account set
* editor account dropdown for new contact
* editor account label when editing existing contact
* picker for default account in settings
* settings customize screen account list

Bug 30867780

Change-Id: I329381ccc58d59f2e27f65a3d9dc0164fb20c971
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/DeviceLocalAccountLocator.java
ndroid/contacts/common/model/account/AccountDisplayInfo.java
ndroid/contacts/common/model/account/AccountDisplayInfoFactory.java
ndroid/contacts/common/model/account/AccountType.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/model/account/DeviceLocalAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/model/account/SimAccountType.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DefaultAccountPreference.java
ndroid/contacts/common/util/AccountsListAdapter.java
ndroid/contacts/common/util/DeviceAccountFilter.java
ndroid/contacts/common/util/DeviceAccountPresentationValues.java
ndroid/contacts/common/util/DeviceLocalAccountTypeFactory.java
ndroid/contacts/common/util/DeviceLocalContactsFilterProvider.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/interactions/AccountFiltersFragment.java
46cb310fdaddc40cc7872fa7a7514a2a00757c1c 11-Aug-2016 Gary Mai <garymai@google.com> Show icon of account being saved to

Remove unused layouts for various account header types and simplify to
two:
One for linked contacts (editor_all_rawcontacts_account_selector) which
displays a linked chain icon and one which displays the account icon and
an optional expander icon (editor_account_header). The account icon one
is used in the single account case and when creating a new contact.

Test:
Manual usage of the new selector:
1. Single account case
2. Linked account case shows linked chain with a selector dropdown
3. Creating a new contact shows icon of account being saved to
3b. 3 but with multiple accounts so the selector is visible
3c. 3b with swapping accounts and making sure the icon updates correctly

Bug: 29455526
Change-Id: Ic7784cc6e77b934468795176ee774a5247cce9a9
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
24ee2f283dc056f365450ea88f5a16ddb17ba422 06-Sep-2016 Gary Mai <garymai@google.com> Update default account preference settings dialog
am: fd866c064f

Change-Id: Ie2e2f65d2a06cfc8ce2ad579ccc3b93b9a7c65b5
fd866c064feab57fcd13f4fd7b99e3bc1cc013ff 06-Sep-2016 Gary Mai <garymai@google.com> Update default account preference settings dialog

Make it look like the other account picker dialogs in the app.

Test: Manual usage of default account selector in settings menu.
Tested swapping between three accounts with going back to the main
view to see if the settings stick.
Tested making a new contact would save to the proper default.

Bug: 29282755
Change-Id: Ib09d9bbe3e2cf29413e012b3aeb3218eb0782753
ndroid/contacts/common/preference/DefaultAccountPreference.java
62ebf8302890486e29645ac60ff0b9f203a85ab4 02-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Make labels view have grey app bar (1/2)" into ub-contactsdialer-g-dev
4d0f452205db13c67f36a336acf1fdecdc9b14ef 02-Sep-2016 Wenyi Wang <wenyiw@google.com> Make labels view have grey app bar (1/2)

- Set toolbar and status color programmatically
- Create GroupActivityTheme and override colorPrimaryDark
so that status bar color doesn't turn blue on drawer opened.

Bug: 30416708

Test: manual - open a label

Change-Id: Ic3cb97fa5f64748b99b334875226afddfd4aa7b5
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/GroupMembersActivity.java
380f8130fd61b0b98061d1a7ceb5cd1c10e16b48 02-Sep-2016 Wenyi Wang <wenyiw@google.com> Show favorites in customized view
am: 6575129508

Change-Id: I2b36c357d6b22409b10a2f6bf324fdd84991c58e
145dc0a666299ec0a04d552e9bc872a08db80c09 02-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Show favorites in customized view" into ub-contactsdialer-g-dev
d412685d2bef5a1d40ca78bec0960ebec6a4275c 02-Sep-2016 yaolu <yaolu@google.com> Log QuickContactActivity events (1/2)
am: 79525d0245

Change-Id: I1537cf3574119ca9cf51aa30ebc58390fe087cc6
86e99c5d0170c556dba8710e83ded775385133f6 02-Sep-2016 Yao Lu <yaolu@google.com> Merge "Log QuickContactActivity events (1/2)" into ub-contactsdialer-g-dev
8deacfc9073498ed1d3e18bd7f8ef3d5bb852b60 02-Sep-2016 Walter Jang <wjang@google.com> Merge "Merge base and compact editor fragments"
657512950824b469c1066181ca4bf8243340f637 02-Sep-2016 Wenyi Wang <wenyiw@google.com> Show favorites in customized view

Bug: 30362858
Test: manual - switch to customized view from settings and observe
contacts list.

Change-Id: Ib0e870415a4c9667ccfc722b74e30e8047a8116d
ndroid/contacts/list/ContactBrowseListFragment.java
c55b39d312008d0d9f2994fc83c3e4d373cbc42c 02-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Fix editor crash in multi-window mode" into ub-contactsdialer-g-dev
190a062984d873c13a7d59317b049d6e7eb001e5 01-Sep-2016 yaolu <yaolu@google.com> Wrap calllog query into try-catch to log exceptions am: 2eed60bcb6
am: 4a301bd00a

Change-Id: Ie21b23a9d82ee222e31881dbb49fa65290dba432
4a301bd00ac2076221238d0d359e4ec4c974dcc1 01-Sep-2016 yaolu <yaolu@google.com> Wrap calllog query into try-catch to log exceptions
am: 2eed60bcb6

Change-Id: I4200cb934ea9f3599d0d20c687d1f6cee987e262
7b0970fd1db1a97f1be915d66d07f4dc8499f96d 01-Sep-2016 Walter Jang <wjang@google.com> Merge base and compact editor fragments

Base editor constants, inner classes, members,
and methods were moved to the compact fragment
unchanged except:

* isAggregationSuggestionRawContactId was unused so just
removed it.

* maybeConvertToLegacyLookupUri was moved to
ContactEditorUtils

Test: Manually tested the following editor scenarios:
1) new contact
2) edit other contact
3) edit writable raw contact
4) edit read-only raw contact (joins a new writable raw contact to it)
5) edit aggregate w/ 1 writable and 1 read-only raw contact
6) edit aggregate w/ 2 writable raw contacts
7) edit local me raw contact
8) edit local me raw contact joined with a read-only raw contact

Bug: 31088704
Change-Id: If3652dffef6a428aa0534ffbc639ae66601d6ab4
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/editor/CancelEditDialogFragment.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/JoinContactConfirmationDialogFragment.java
ndroid/contacts/editor/JoinSuggestedContactDialogFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/editor/SuggestionEditConfirmationDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
be3305505a2e6343a5296198459e4ec4ed907c17 01-Sep-2016 Wenyi Wang <wenyiw@google.com> Fix editor crash in multi-window mode

Bug: 31236427
Test: manual - based on "steps to reproduce" in the bug.
Change-Id: Iea187b7b1389a9f8ebd4acfd603cf51376c22c11
ndroid/contacts/editor/ContactEditorFragment.java
8d45cdbd4e1e0b37d705fd1dca3d8f941f75e772 01-Sep-2016 Walter Jang <wjang@google.com> Merge base and compact editor activities (1/2)

* The ContactEditorBaseActivity.ContactEditor interface
and subinterfaces are moved w/o modification except
ununecassay modifiers (public, public final static)
were removed.

* Base class members were moved w/o only visibilty
changed to private. The ContactEditorBaseFragment.Listener
mFragmentListener implementation was unchanged.

* Base class Methods were moved directly over with only
slight changes (a few finals added). onCreate and
onBackPressed were just moved inline into the corresponding
CompactContactEditorActivity where the super method
was being invoked.

Test: Manually tested the following editor scenarios:
1) new contact
2) edit other contact
3) edit writable raw contact
4) edit read-only raw contact (joins a new writable raw contact to it)
5) edit aggregate w/ 1 writable and 1 read-only raw contact
6) edit aggregate w/ 2 writable raw contacts
7) edit local me raw contact
8) edit local me raw contact joined with a read-only raw contact

Test: Also tested that duplicate culusters are updated are after a
quick contact edit

Bug: 31088704
Change-Id: I620c345fc6339b6b0807a44bafbac3201ca7b81f
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
86b351d0e2b4d11b5e3b9f33e9f978407277ed84 01-Sep-2016 Wenyi Wang <wenyiw@google.com> Merge "Open group fragment and duplicates fragment from PeopleActivity"
7967545e62b473503473b2c9e127cef405f67201 17-Aug-2016 Wenyi Wang <wenyiw@google.com> Open group fragment and duplicates fragment from PeopleActivity

* Also handle some side nav menu logic

Bug: 30944495

Test: manual - navigate between fragments, rotation, press Back/Home/Recent
button, search, multi-select, modify group members,
add/delete groups.

Change-Id: I4feeed89557a5c07852a1e2d2a39306cfa59c918
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/group/UpdateGroupMembersAsyncTask.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
55d0e7146d7c4fe5008bd664c44c25a29934fd87 01-Sep-2016 Walter Jang <wjang@google.com> Move SelectAccountDialogFragment from common.editor to editor

Removed the SelectAccountDialogFragment.Listener from
QuickContacts since the dialog is not displayed anymore.
It stopped being used in ag/522326 but we forgot to delete
the listener implementation.

Test: Exercised the moved dialog by: 1) creating a label and
2) import contacts from SIM on a device with more that one
writable account.

Bug: 31088704
Bug: 30759296

Change-Id: Id78b41b80556fd44adb1f20e0ba9217918d23ff3
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/common/editor/SelectAccountDialogFragment.java
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
c6405c15d1e501a711f813c9e1a4db6e9fcaa11d 31-Aug-2016 Gary Mai <garymai@google.com> Remove account switcher from full editor
am: 127c86e70b

Change-Id: I21e4e80822f52677898ddb84c6eb42ee1e3e27f4
127c86e70b4083defdcf4907c68254006211c197 31-Aug-2016 Gary Mai <garymai@google.com> Remove account switcher from full editor

Was causing an NPE.

Test: Manually opened different types of raw contacts in full editor
from an LG-H860
1) read-only contact
2) phone contact (treated as read-only)
3) writable contact linked with read-only
4) 2 writable contacts linked


Bug: 31181339
Change-Id: I1dcb7b93025d92cb58a735dbb887cf99d45d1518
ndroid/contacts/editor/ContactEditorFragment.java
2eed60bcb6d062e6d2c305dc08e574470e995d72 31-Aug-2016 yaolu <yaolu@google.com> Wrap calllog query into try-catch to log exceptions

Bug: 31186013
Test: manual - start QuickContact w/o any call log interactions

Change-Id: I270f9405b6e4e5c8a4cca473792bad4fff9b1482
ndroid/contacts/interactions/CallLogInteractionsLoader.java
8bac28bebae51e53885a404cdf2dd4991000ba42 30-Aug-2016 Walter Jang <wjang@google.com> Remove full editor (1/2)

Test: Tested the following editor scenarios:
1) new contact
2) edit other contact
3) edit writable raw contact
4) edit read-only raw contact (joins a new writable raw contact to it)
5) edit aggregate w/ 1 writable and 1 read-only raw contact
6) edit aggregate w/ 2 writable raw contacts
7) edit local me raw contact
8) edit local me raw contact joined with a read-only raw contact

Bug: 31088704
Change-Id: I1fce2873facefa39d7b468f1deda02acc674e3e1
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
d428026d8fdd524a878895d13a14a6b0a8166b30 31-Aug-2016 Wenyi Wang <wenyiw@google.com> Fix NPE in loading group items am: 6942b708b6
am: 28583f8825

Change-Id: Ide2515e87958d0239c7fe857d9db66ec16e44fff
28583f882553f960c1f12be98cdf1e738bdcf74a 31-Aug-2016 Wenyi Wang <wenyiw@google.com> Fix NPE in loading group items
am: 6942b708b6

Change-Id: I1ea601888ffa53252490b5f79edcf694cdfafca1
6942b708b66430ad7d6e8127067adedfc08850f9 31-Aug-2016 Wenyi Wang <wenyiw@google.com> Fix NPE in loading group items

Bug 31182164

Change-Id: I194130c0f2ecfaab3dd789aa891015a94115d93d
ndroid/contacts/group/GroupsFragment.java
79525d024526e0f26b9dff40162b91f7c53f17a6 24-Aug-2016 yaolu <yaolu@google.com> Log QuickContactActivity events (1/2)

* Added loggings:
1. when QuickContactActivity is launched, log the package name from
where QuickContact is from, log the type of the contact viewed, log
the type of action as START;
2. log the type of the contact when user change it;
3. log the type of the card when displayed for the first time;
4. the action that the user takes, including from header options
and from Contact card;
5. the third party defined action that the user takes.
* Added Logger method to send QuickContactEvent to clearcut.

bug 30979088

Change-Id: I7803d2fbcccbc14ec05b34c21e25644f550cb2c0
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/logging/QuickContactEvent.java
ndroid/contacts/quickcontact/QuickContactActivity.java
a83b09bcaf85811a06a0e836ef77a1f9447a7c8c 30-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Fix intent to pick group members" into ub-contactsdialer-g-dev
8857b943ccea433447b63e7e5422798d1e040647 29-Aug-2016 Tingting Wang <tingtingw@google.com> resolve merge conflicts of 2fc12b1 to master

Change-Id: I7fdcd4be8e858861f37d8a5bdc1d88b407e329c2
d5e0f4f4d8030311a346ab81ae18bb97b55d27f4 29-Aug-2016 Tingting Wang <tingtingw@google.com> Merge "Remove FeatureHighlight lib from AOSP contacts." into ub-contactsdialer-g-dev
2fc12b16d143f5c45b17820d67aae0456189da3d 23-Aug-2016 Tingting Wang <tingtingw@google.com> Remove FeatureHighlight lib from AOSP contacts.

BUG 31039865

Change-Id: Iddbd3e62bcaf62f16ace928058297d7dac9c4a47
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
eb2f93a475203683fc0505e158460f71e6f514cd 29-Aug-2016 Wenyi Wang <wenyiw@google.com> Fix intent to pick group members

Bug: 31148217
Bug: 30601104
Change-Id: If4a451ca5bbaa6ad986eb344a57e1edaaf58062c
ndroid/contacts/group/GroupUtil.java
88a9f246fec065dfa0c25a7d321232b465d889b0 26-Aug-2016 Wenyi Wang <wenyiw@google.com> Change listener implementation to inner classes in group fragment

Bug: 30944495

Change-Id: I65496b38cb579973e445b1f782a7985ec173ebf7
ndroid/contacts/group/GroupMembersFragment.java
1498d5bdde8293c42d1cd40fa020b6aadcfe935b 26-Aug-2016 Marcus Hagerott <mhagerott@google.com> Add tests for DeviceLocalContactsFilterProvider.
am: a02aefa087

Change-Id: I8de0b85ea041e66eb8c485935764e3a5109d1d1b
f70f2d07285a154d6d24b9979ea1579cd6d8e435 26-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Let DefaultContactBrowseListFragment control actionbar, menu and more."
a02aefa08720d0ab8536f10b756ee895b7a92b2e 26-Aug-2016 Marcus Hagerott <mhagerott@google.com> Add tests for DeviceLocalContactsFilterProvider.

Bug 28637652
Change-Id: I7c1773610217765794ad4a3b326a07eca62def47
ndroid/contacts/common/util/DeviceLocalContactsFilterProvider.java
587b8f22be5f0e0a7e0b7ea362d81632e4bada66 18-Aug-2016 Wenyi Wang <wenyiw@google.com> Let DefaultContactBrowseListFragment control actionbar, menu and more.

Test: manual or use GoogleContactsTests.apk

Bug: 30944495

Change-Id: Ic31df5cfe946363ff78254b7c82b042c13b107f4
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
663be3af51eb4e7eae6ed6d83bf626303d5d93be 26-Aug-2016 Walter Jang <wjang@google.com> Merge "Change editor raw contact selector to open the compact editor"
666d6194ca0a954c55450081f6e855edcaf230a1 26-Aug-2016 Walter Jang <wjang@google.com> Merge "Check res IDs before setting label content descriptions"
9a55237f705453caae1f8aa3576a9acd7596d5ec 24-Aug-2016 Walter Jang <wjang@google.com> Change editor raw contact selector to open the compact editor

* Whe editing more than one raw contact, just show the
raw contact selector with no input fields.
Eventually we'll be displaying the raw contacts in
a list instead of a drop down.
* When a raw contact selector item is clicked, open
the compact editor instead of the full one.
* We do the same trickery that the full editor does
to render a single raw contact -- even though
ContactLoader loads the aggregate, we pass along
the raw contact ID in the Intent to start the compact
editor and ignore all the other raw contacts in the
RawContactDeltaList.
* The compact editor is updated to be able to render
read-only raw contacts.

Test: Tested the following editor scenarios:
1) new contact
2) edit writable raw contact
3) edit read-only raw contact (joins a new writable raw contact to it)
4) edit aggregate w/ 1 writable and 1 read-only raw contact
5) edit aggregate w/ 2 writable raw contacts
6) edit local me raw contact
7) edit local me raw contact joined with a read-only raw contact

Bug: 31088704

Change-Id: I86a7fde976af8b318c7fb3da4f74f29f08a69eef
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorIntents.java
afec1e5df7884f000bc87fbb223d1a5c8da97aa4 25-Aug-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of 6caf23f to master

Change-Id: If52e1830c5b1f55b3dd80ba95c119d3af27bb65e
155299e727607ad397f21481d251e7f0c990c343 25-Aug-2016 Walter Jang <wjang@google.com> Check res IDs before setting label content descriptions

Bug 31088704

Change-Id: Ia0cbe1cee0c3b2735d4baa0a98776104b5c09e08
ndroid/contacts/editor/LabeledEditorView.java
6caf23f93b68818a2b8dae63578dbb942b901d2a 19-Aug-2016 Marcus Hagerott <mhagerott@google.com> Show device "account" in nav drawer menu

If there are contacts with a "null" account name and type (indicating that they
are device local contacts) then an item is included in the account section of
the nav drawer for "Device" contacts.

Bug 28637652
Bug 28637715
Change-Id: I975d20c8ab2bb14b9a9441e585d13237f7c09cb2
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/common/util/DeviceAccountFilter.java
ndroid/contacts/common/util/DeviceAccountPresentationValues.java
ndroid/contacts/common/util/DeviceLocalContactsFilterProvider.java
ndroid/contacts/interactions/AccountFiltersFragment.java
3ab1178953480c7eaaeb9d9795ca4e72646474f6 22-Aug-2016 Walter Jang <wjang@google.com> resolve merge conflicts of 6bb8718 to master

Change-Id: I62258095e91ad4874e403e35142fbc1cedd1b120
fd64b253a9df174c497e688ad75706c63cbabbb4 22-Aug-2016 Walter Jang <wjang@google.com> Merge "Replace @NeededForTesting w/ proguard keep flags (1/2)" into ub-contactsdialer-g-dev
2aa48f202cbc98f8f6c025f08f242fa06ad85114 22-Aug-2016 John Shao <johnshao@google.com> Fix for LMP crash for Fragment.getContext()
am: 4a28965efa

Change-Id: I21e6b67a37a397e315608993d3f6701aa2494bba
e4ee77787d50dbdf64433ed5e916bc2bc477b1ed 22-Aug-2016 Walter Jang <wjang@google.com> Move spanned utility class only needed for tests
am: 54b53a5740

Change-Id: I6d050aeb5618528f1db4ded84e0a7096fbdd4411
ad3526f87d54958b1f48745e6f1315f3f52c0c3d 22-Aug-2016 John Shao <johnshao@google.com> Merge "Fix for LMP crash for Fragment.getContext()" into ub-contactsdialer-g-dev
8a8e6fa06e890ec2b0b690ed5300487a4be8bb89 22-Aug-2016 Walter Jang <wjang@google.com> Merge "Move spanned utility class only needed for tests" into ub-contactsdialer-g-dev
4a28965efa79c78e9e0f1144c08f87887a5e763e 22-Aug-2016 John Shao <johnshao@google.com> Fix for LMP crash for Fragment.getContext()

Fragment.getContext() was added in API level 23 so changing
usage from getContext() to mContext and adding override to
the fragment just in case.

Bug 30601104

Change-Id: I682cb28b60ca3d4103cb41f34d331ef761cde2f2
ndroid/contacts/editor/ContactEditorBaseFragment.java
6bb8718b04da174f3642fbdcefea0fee6086db3d 22-Aug-2016 Walter Jang <wjang@google.com> Replace @NeededForTesting w/ proguard keep flags (1/2)

* Replace -keep of entire c.a.c.common package
with individual classes
* Remove all use of @NeededForTesting annotations
(and the file itself since @VisibleForTesting
accomplishes the same thing)

Test: Ran user build ContactsTests on Nexus 5 MOB30H

Bug: 30976481

Change-Id: I8d9a4d6b3409a159a108b39c1c4837a19e2325ca
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/location/CountryDetector.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/RawContactDelta.java
ndroid/contacts/common/model/ValuesDelta.java
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/testing/InjectedServices.java
ndroid/contacts/common/testing/NeededForTesting.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/interactions/ContactInteractionUtil.java
ndroid/contacts/interactions/TestLoaderManagerBase.java
ndroid/contacts/widget/CompositeListAdapter.java
1d559fea9a4b8b78f5cbf946523c70f84639010a 22-Aug-2016 yaolu <yaolu@google.com> Modify g+ icon in Contact card to read from CP2 and stop color filtering
am: 8c3ff2c7fd

Change-Id: I694fdaa6e3426b207b63d6d74ccc1d210612ab15
54b53a574085d39d28d50e48d8341690f45df187 22-Aug-2016 Walter Jang <wjang@google.com> Move spanned utility class only needed for tests

Bug 30976481

Change-Id: Iee3d28849701d5a189ac01c1d64056a862f8e8dc
ndroid/contacts/common/format/SpannedTestUtils.java
38ec37211c0eaa26e96e8657482860cb06e94888 22-Aug-2016 Yao Lu <yaolu@google.com> Merge "Modify g+ icon in Contact card to read from CP2 and stop color filtering" into ub-contactsdialer-g-dev
8c3ff2c7fdff3c82e927b43fd3bdcab1b0a8b866 19-Aug-2016 yaolu <yaolu@google.com> Modify g+ icon in Contact card to read from CP2 and stop color filtering

bug 29452635

Change-Id: I59618ba3083ad5f20b3c1e0e32c193bb5131ff41
ndroid/contacts/quickcontact/QuickContactActivity.java
4910f8de3d4a8fa76ac9b5c0d009e8a87d0d4c1d 20-Aug-2016 Walter Jang <wjang@google.com> Add @NeededForTesting to GroupsDao
am: 6f5fd21191

Change-Id: I13f22f575753fc7f7ee46fb55ef79f4d5f4f22f8
92a3d860c9976185d2a27e208a779af58b587b6e 20-Aug-2016 Walter Jang <wjang@google.com> Merge "Add @NeededForTesting to GroupsDao" into ub-contactsdialer-g-dev
bb0f302a7f022a4595df7207c79c8f041d94e949 20-Aug-2016 John Shao <johnshao@google.com> Hide fast scroll preview for favorites section
am: da188719c7

Change-Id: I8bf2d71dfe9b8d3acc097250c801283853d452bd
da188719c71cbf034eabb58361508cc7de9e7237 19-Aug-2016 John Shao <johnshao@google.com> Hide fast scroll preview for favorites section

Change favorites section title to be empty string
and make the distinction between null and empty titles.

Removes some unused custom scrollbar drawables to save some
APK size.

Bug:30893029
Change-Id: I6ac5d17299cb9bb09f42a7b00dd19f3dd39588a6
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/ContactsSectionIndexer.java
ndroid/contacts/common/list/PinnedHeaderListView.java
6f5fd2119158840f3ffa09ef4aa2a17cff78a095 19-Aug-2016 Walter Jang <wjang@google.com> Add @NeededForTesting to GroupsDao

Test: Ran user build GoogleContacts tests on
Nexus 5 LMY49R, MOB30H, and Nexus 6P NDR90M

Bug: 30976481

Change-Id: I14afa38ca481064ae7e5b031723d148f415133f5
ndroid/contacts/ContactSaveService.java
cd737662b9442c924952bacd27b68bd59d580b35 19-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove tab pager and related resources"
d8f7a91c1b206c889cf9176bc712a7a3a3539bb0 19-Aug-2016 yaolu <yaolu@google.com> Show custom contact fields in Contact card About card
am: 1bd8826c81

Change-Id: I9755c30380b551bcd8354bc9079715e754d9fe2c
adcd043f71c557638ffc0425315a9a518b8c23bc 19-Aug-2016 Yao Lu <yaolu@google.com> Merge "Show custom contact fields in Contact card About card" into ub-contactsdialer-g-dev
ca6018dbd827d72730d6564b3d65b7dfc8f5f347 19-Aug-2016 Wenyi Wang <wenyiw@google.com> Remove tab pager and related resources

Bug 30944495

Change-Id: I0b42268bf15704d507fdbacd25a8b1b9accb6cbd
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/list/ViewPagerTabStrip.java
ndroid/contacts/common/list/ViewPagerTabs.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
b6a0256a9f9f67964f2129049179f30e90abd5ea 19-Aug-2016 Wenyi Wang <wenyiw@google.com> Remove getDayDifference and its test

* The method is not in use after merging contacts and contactsCommon.
* And its test is flaky.

Bug 27346234

Change-Id: If7a9f18bbc57b76a2fc60a8ecc0d0e636547867f
ndroid/contacts/common/util/DateUtils.java
1bd8826c81eff79551c79c3042aca22a1d905524 18-Aug-2016 yaolu <yaolu@google.com> Show custom contact fields in Contact card About card

bug 3457984

Change-Id: Id1963a258842f665123c63a75fb2726f48ddc552
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/GoogleAccountType.java
ndroid/contacts/common/model/dataitem/CustomDataItem.java
ndroid/contacts/common/model/dataitem/DataItem.java
ndroid/contacts/quickcontact/QuickContactActivity.java
6927bf35fa2d1b4261e25c46bcd4951cd7b3208a 16-Aug-2016 Wenyi Wang <wenyiw@google.com> Let GroupMembersFragment control actionbar, menu and more.

* Create mActionBarAdapter from GroupMembersFragment and remove
mActionBarAdapter from GroupMembersActivity.
* Move creation of group-related menu to GroupMembersFragment.
* Move the following listeners to GroupMembersFragment:
- ActionBarAdapter.Listener
- MultiSelectContactsListFragment.OnCheckBoxListActionListener
* Move UpdateGroupMembersAsyncTask a new class.
* Remove mGroupMetadata from GroupMembersActivity and get it from
GroupMembersFragment instead.
* Remove GroupMembersListener, since the actions can be done within
GroupMembersFragment now.

Bug 30944495

Change-Id: Ie6a7c51afecdc67f953f185369f64f2192c46bc1
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/group/UpdateGroupMembersAsyncTask.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
325e7bb1fd8636b17635a54b5b4e59ace7868c5e 18-Aug-2016 John Shao <johnshao@google.com> Force intents to start in app wherever possible
am: 41c6886cab

Change-Id: Ic45640a041a13f1487d68e304c8bbc3b6a6f4c90
41c6886cabf68370f160ccd68d173bd6a59a1a07 18-Aug-2016 John Shao <johnshao@google.com> Force intents to start in app wherever possible

Add class/package names wherever possible for intents that are
started within the app itself. This is to avoid the intents picker
dialog that makes the user choose which app to handle the intent.

Bug: 30601104
Change-Id: I98d3a5a5c2112f1ba0c944b37c9b6754837dfa9c
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/quickcontact/QuickContactActivity.java
4846b68b921514384e7701ff96d6d43b9fd2210a 18-Aug-2016 Walter Jang <wjang@google.com> Add flag to control dynamic shortcuts experment

Also fix the format of pull to refresh experiment flag

Bug 30630964
Bug 30189449

Change-Id: Ib297cee400b5e864a6ca71566c3d4182cb041226
ndroid/contacts/common/Experiments.java
3d695f1927412e1c43679250ac3443aff93c6e6d 17-Aug-2016 Marcus Hagerott <mhagerott@google.com> resolve merge conflicts of bea2b85 to master

Change-Id: Id78bdbfe5f430f2383beb7e2bda4e88c32552c3c
d26a825edc3b6c03cf207ea702c50f9b012d9069 17-Aug-2016 Marcus Hagerott <mhagerott@google.com> Merge "Show snackbar with "undo" action when deleting group." into ub-contactsdialer-g-dev
bea2b8508930630a4665d83bc2e95a4ddf9557cc 11-Aug-2016 Marcus Hagerott <mhagerott@google.com> Show snackbar with "undo" action when deleting group.

Bug 28955365
Bug 30223734
Change-Id: I16f175835815600e7fdb9d49794bb79002723ac0
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/widget/FloatingActionButtonBehavior.java
db6b7f9a112e336c24f4a255f0758eb24bc66bc2 17-Aug-2016 Marcus Hagerott <mhagerott@google.com> Show confirmation dialog when leaving customize screen.
am: 10f856c4bf

Change-Id: I365e071b7bfecb25aa07b21884b324bde8850d34
ba5f6a10d2c1f8d7c99f4e44a4038fa14927b9ff 17-Aug-2016 Marcus Hagerott <mhagerott@google.com> Allow creation of duplicates of empty system groups
am: 2d97b5f89a

Change-Id: I3dc4d29b9b985c96075c8f26c90a8e6521c869c5
4139f9083a85cf316f7c6f5efefc1a88b16aaaab 17-Aug-2016 Marcus Hagerott <mhagerott@google.com> Merge "Show confirmation dialog when leaving customize screen." into ub-contactsdialer-g-dev
10f856c4bf6a6cac7a914747f11c6cd0a71f7267 16-Aug-2016 Marcus Hagerott <mhagerott@google.com> Show confirmation dialog when leaving customize screen.

Bug 30871834

Change-Id: I5cc7d00bf75bca60c8c18d8154948e68b9ccee56
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
daecf84fbb2400c64c2663caac4e75cdf02b32ec 17-Aug-2016 Marcus Hagerott <mhagerott@google.com> Merge "Allow creation of duplicates of empty system groups" into ub-contactsdialer-g-dev
fddbb83d48d1115a34c4e7b8e62c19bae99744de 16-Aug-2016 Walter Jang <wjang@google.com> First pass on yenta autocomplete powered search (1/2)

Test: Basic searches with the autocomplete experiment on/off
Bug: 30436991

Change-Id: I9b756bd65a9714542c879cbd2a056d34a51cc359
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
a3b53a66ebdff5bf575b117b57af04fe031118ef 16-Aug-2016 yaolu <yaolu@google.com> Show the duration of the call in QuickContact "Recent card"
am: 0dd79bbd24

Change-Id: Ice8d582830d099ff9abeff0daf519ff78c3c9718
16a33db72f9ba044998211e95ce3fc8ce7020167 16-Aug-2016 yaolu <yaolu@google.com> Make Contact card entry list alignment work on RTL am: 7c6c48ab12
am: 9089130f6e

Change-Id: Ic67170e2f56845246f29c520ae0958db85dd0663
a6a846cfc787d64fa305befa4ecfbd3453a0a88f 16-Aug-2016 Yao Lu <yaolu@google.com> Merge "Show the duration of the call in QuickContact "Recent card"" into ub-contactsdialer-g-dev
0dd79bbd24568df38f52a904fe294ffb6a5b942f 09-Aug-2016 yaolu <yaolu@google.com> Show the duration of the call in QuickContact "Recent card"

bug 28806182

Change-Id: I3bc21dbe0096221264d7ffb955281a16a40c54f6
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/ContactInteractionUtil.java
9089130f6e08ced90490f1a114897c89714a503d 16-Aug-2016 yaolu <yaolu@google.com> Make Contact card entry list alignment work on RTL
am: 7c6c48ab12

Change-Id: I1606458abef184335f5b3d1f6dfbced64a9647fe
2d97b5f89ae1ae1b5e782e40b82ba60f0588f964 11-Aug-2016 Marcus Hagerott <mhagerott@google.com> Allow creation of duplicates of empty system groups

Empty system groups are not shown in the nav drawer so showing an error that
they already exist when a user tries to create them is confusing.

Bug 28718604

Change-Id: I5f96ef862272cc35ad25ac028b785a4ecf07e6e7
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/group/GroupUtil.java
a4fe1ee4eb4b73dece0f26f2e75578fef7f39fe7 16-Aug-2016 Marcus Hagerott <mhagerott@google.com> Merge "Prevent user from creating duplicate labels." into ub-contactsdialer-g-dev
7c6c48ab12ce4dabe4609db847e747f6629d47e8 16-Aug-2016 yaolu <yaolu@google.com> Make Contact card entry list alignment work on RTL

screenshot:
https://drive.google.com/a/google.com/file/d/0BxaQ3Ze9jz_ccEc4MUZfMU1NZHc/view?usp=sharing

bug 30397892

Change-Id: I338a5f645c085ae3c4efa1025b5cd1f6da0bba73
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
6367d2a3cb148d9a16e34e7bb1fe400ad72a3d30 15-Aug-2016 Walter Jang <wjang@google.com> Fix imports after upstream commonbind package rename

Test: Ran ContactsTests unit tests
Bug: 30759296

Change-Id: Ie86cbaa6591f959247764ef47fde9def1cdefd1f
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
c057c569a2a096d711f8f6eaba2ed37ad371a246 15-Aug-2016 Walter Jang <wjang@google.com> Consolidate commonbind and contactsbind (1/2)
am: e837ae3e14

Change-Id: I490e18776aca2da0fd61790eeea4e6d0b52db285
e837ae3e14c3e5a3f22a1bc69fe462caa278d7d8 15-Aug-2016 Walter Jang <wjang@google.com> Consolidate commonbind and contactsbind (1/2)

On the AOSP contacts side, we simple change the
name of the commonbind package to contactsbind.

Test: Ran ContactsTests unit tests
Bug: 30759296

Change-Id: I0b3d1eed637a7f48705f8ec22e6fb97078444b88
ndroid/contacts/ContactsApplication.java
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
94af84368c3ffe2289203599535bad7302850fa4 15-Aug-2016 Wenyi Wang <wenyiw@google.com> Modify name text bound if delete button is visible
am: d348a90b9b

Change-Id: I2d48835cb83a1e2651ad84f7593008e73cc0a37a
17ffa65718746cc42ca7ecaff015bc872c74edbc 15-Aug-2016 Gary Mai <garymai@google.com> Add highlight to selected item in editor dropdowns
am: 186d791128

Change-Id: I9dae86d240922897e94478e9fe8cc1f2e570bd5f
8c21a2ae86b8d95eed1fe6070b3f1a9079ddb0dc 15-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Modify name text bound if delete button is visible" into ub-contactsdialer-g-dev
d3f2417d0156a5d2f343e999915ea9d090641a60 15-Aug-2016 Gary Mai <garymai@google.com> Merge "Add highlight to selected item in editor dropdowns" into ub-contactsdialer-g-dev
d2ef1260046b64bb78b4460f8fc60db9e56648a5 14-Aug-2016 Wenyi Wang <wenyiw@google.com> Add animation to status bar when entering/exiting selection mode
am: 11ff39a611

Change-Id: Ibeb534faae5fe35c2e74b4349430c09b0885230a
d348a90b9bf7942642e3f1ed59153af416c12fc1 14-Aug-2016 Wenyi Wang <wenyiw@google.com> Modify name text bound if delete button is visible

* RTL is also handled.

Bug 30288998

Change-Id: I458fe0a44722b1ad14b1216dfe3d15c34d036a1b
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
8df90ee4aa8ef020f0c7f93472fcf2ac9b058a71 14-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Add animation to status bar when entering/exiting selection mode" into ub-contactsdialer-g-dev
f7d733a0319956d05735d13a2b7ee46fb0f0d994 12-Aug-2016 Walter Jang <wjang@google.com> Manualy sync Contacts to match ContactsCommon (1/2)

Bug 30759296

Change-Id: I3f1d1960c7a44ebcd9b8e12db5f8da7989e367ab
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/vcard/NfcImportVCardActivity.java
96acccfb02da0f319ca9005f68dd3ce65f9f96c7 12-Aug-2016 Walter Jang <wjang@google.com> Fix build after copy of ContactsCommon dirs to Contacts
am: a6fb6d2b6f

Change-Id: I437c35c82b61d684433a3780f6abc9fe509e2c05
b699ce7b7ba8d9380525f7fc17d718e099dfb53e 12-Aug-2016 kuantung <kuantung@google.com> Merge src/com/android/contacts/common/ from platform/packages/apps/ContactsCommon to src/com/android/contacts/common/
am: d568c8dfd9

Change-Id: Iebeaf0e37f8662e5dcd33289151ef0c0e2bf643a
a6fb6d2b6f0461871797f11faf72eb19b7f55373 10-Aug-2016 Walter Jang <wjang@google.com> Fix build after copy of ContactsCommon dirs to Contacts

* Remove all references to the GoogleContactsCommon and
ContactsCommon dirs
* Rename the aosp_contacts_dir variable to just contacts_dir
* Move contactsbind and commonbind to src-bind so that they
can be excluded from the GoogleContacts build

Bug 30759296

Change-Id: I1a1efd20bce41049e311283fb7b4d9f214b24863
ndroid/contacts/commonbind/ObjectFactory.java
ndroid/contacts/commonbind/analytics/AnalyticsUtil.java
ndroid/contacts/commonbind/experiments/Flags.java
ndroid/contacts/commonbind/util/UserAgentGenerator.java
ndroid/contactsbind/Assistants.java
ndroid/contactsbind/HelpUtils.java
d568c8dfd955170a8308f8afd9917dfbd80e1dce 12-Aug-2016 kuantung <kuantung@google.com> Merge src/com/android/contacts/common/ from platform/packages/apps/ContactsCommon to src/com/android/contacts/common/
ccb5ffdb960a57598e4dc1e3e64b4deb92d76e42 11-Aug-2016 yaolu <yaolu@google.com> Show the exact time of the call in Quick contact "Recent card"
am: bddb3155e0

Change-Id: I5c6d3ccaa066a0331de2312e3489c7af4dd5e2cb
6ac30f001c3b4ba6541d2e0aa029df7652169050 11-Aug-2016 Wenyi Wang <wenyiw@google.com> Update list header only when contacts in default directory are loaded
am: 5db1821bab

Change-Id: I016b39e9f940452cab04360d14fbb44d549968d5
2d05cde49e8bc8158d1156a8d30c60e2f25c5123 11-Aug-2016 yaolu <yaolu@google.com> Remove "Add to circles" action from QuickContact for G+ profile
am: 3904fb54a1

Change-Id: I87b3e519d0cc53a7364bede56a71e5bbbca7b000
43b4a5229d1a39373a8b564435f6cc83df93c911 11-Aug-2016 Gary Mai <garymai@google.com> UX changes for compact editor
am: b0550f0265

Change-Id: I512dc58e00bebfe92f60deb516485efc3386deef
e530ba2be9460f0eda24db9df614a3f149b03910 11-Aug-2016 Wenyi Wang <wenyiw@google.com> resolve merge conflicts of 5db1821 to master

Change-Id: Ib2c22866b492c5fec2bc31709cac900486fc2fbc
5db1821bab4dc832d40621fdb9517d904a91ced8 11-Aug-2016 Wenyi Wang <wenyiw@google.com> Update list header only when contacts in default directory are loaded

* We don't need to consider non-default directory when updating main view
and account view anyway.

* The bug doesn't always manifest because:
- It takes some extra time for non-default directory contacts to be loaded.
https://cs.corp.google.com/android/packages/apps/ContactsCommon/src/com/android/contacts/common/list/ContactEntryListFragment.java?l=393
- The contacts in non-default directory may be empty.

Bug 30792969

Change-Id: I7b02af3012cdcf815165986daeb61efb3c5c70b1
ndroid/contacts/list/DefaultContactBrowseListFragment.java
186d791128b43a1e75aba879bd14bffa6fd47b7b 10-Aug-2016 Gary Mai <garymai@google.com> Add highlight to selected item in editor dropdowns

Using the same selector background as in the nav drawer.

Bug: 28945806
Change-Id: I6711cf16c99f0f257b32c10d6a43eb1e9e7b1401
ndroid/contacts/editor/LabeledEditorView.java
bc66bbaf1274d4fe1a3df92690fc378e5c49b694 02-Aug-2016 Marcus Hagerott <mhagerott@google.com> Prevent user from creating duplicate labels.

This isn't enforced at the data layer just in the UI's that
allow editting of the group name.

Bug 28718604
Change-Id: I969b0298bd895fdbdd7f8609da05f2b801707c0a
(cherry picked from commit 8d62cd2c5c855fd5483c030c1d59e50830ce4dfc)
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/group/GroupsFragment.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
bddb3155e06a99e43a7a36ae380ed2ef79d8f253 09-Aug-2016 yaolu <yaolu@google.com> Show the exact time of the call in Quick contact "Recent card"

bug 28806890

Change-Id: Ie814f8fe7cbaa7fa1eb2395c5b60c9d82eb59abb
ndroid/contacts/interactions/ContactInteractionUtil.java
b9d76e878ceafb6715146b1c4dde2ac50dc59103 10-Aug-2016 Yao Lu <yaolu@google.com> Merge "Remove "Add to circles" action from QuickContact for G+ profile" into ub-contactsdialer-g-dev
11ff39a61121c3774d15578f28d3e60d93cbee0c 08-Aug-2016 Wenyi Wang <wenyiw@google.com> Add animation to status bar when entering/exiting selection mode

* When action bar enters/exits selection mode, we should add animation.
* We shouldn't add animation during initialization (and initialization
means isSelectionModeChanging and isSearchModeChanging).

Bug 30095979

Change-Id: I4391af5a1600fc05a24f30faf7499467f2c60da7
ndroid/contacts/activities/ActionBarAdapter.java
b0550f0265523d836e2b6ab0bf33256413f5c558 09-Aug-2016 Gary Mai <garymai@google.com> UX changes for compact editor

Back button changed to X symbol.
Save checkmark changed to SAVE.
Discard changes dialog wording changed per b/28945754.

Bug:28945754
Change-Id: I767538fb69b97754765e27af49ab62d5028d9a27
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
3904fb54a1ab93992eacc03d29c93cf57337ea7f 05-Aug-2016 yaolu <yaolu@google.com> Remove "Add to circles" action from QuickContact for G+ profile

bug 30281870

Change-Id: I32a2b1de880b64dec8aecbf2342abf4034aa0d95
ndroid/contacts/quickcontact/QuickContactActivity.java
207772930fb15444bd86dc537a480506479e628b 08-Aug-2016 Tingting Wang <tingtingw@google.com> Add white circle for hamburger promo inner icon.
am: 4573646de9

Change-Id: I9c161579319a226b2c79b92d159f31af65e5fec3
9e933043cbe15f255dd7752bb09b98228713388c 08-Aug-2016 Tingting Wang <tingtingw@google.com> Merge "Add white circle for hamburger promo inner icon." into ub-contactsdialer-f-dev
4573646de9ea826e6b7513059a9d43c2ac1eec5f 08-Aug-2016 Tingting Wang <tingtingw@google.com> Add white circle for hamburger promo inner icon.

BUG 30741927

Change-Id: I6b3624a7591554dda2d317e748bc5a2d41adbb44
ndroid/contacts/activities/ActionBarAdapter.java
be79dab36a055eb14aa498d6b5f50a9c6a491f25 08-Aug-2016 Wenyi Wang <wenyiw@google.com> Finish current group and duplicates activities after creating new groups
am: d4bfa339ff

Change-Id: I87768b897433ce283a3807e2feadc2d8a754a2b5
d4bfa339ffceab359b9b028d385495e97b51aba7 08-Aug-2016 Wenyi Wang <wenyiw@google.com> Finish current group and duplicates activities after creating new groups

Bug 30047708
Bug 30261767

Change-Id: Ic5933f861d2003fc9d979ce45db9d8a2363addf8
ndroid/contacts/ContactsDrawerActivity.java
5d567c46576becdd7b7cc1730870d00ae2f262d2 08-Aug-2016 Wenyi Wang <wenyiw@google.com> Fix IllegalStateException in multi-window mode
am: 3cb77bbf71

Change-Id: I9b1e3ca870571e72b66b7c331547728653d92326
3cb77bbf7119749ed4854a4b981fcabcf55823be 28-Jul-2016 Wenyi Wang <wenyiw@google.com> Fix IllegalStateException in multi-window mode

Bug 30302153

Change-Id: Ie9ca55bf9b3ddc3d1cc2aab10ebffeccc035d5f0
ndroid/contacts/editor/CompactContactEditorFragment.java
5d612da2b223d951638757cb7dcea065fab93056 08-Aug-2016 Tingting Wang <tingtingw@google.com> resolve merge conflicts of 1243cb4 to master

Change-Id: Ib619fe1ac6e52203f47a88345c6060f11e490815
1243cb4e9b000ef3bd54e6b285607afede31ccae 06-Aug-2016 Tingting Wang <tingtingw@google.com> Show promo after reloading data when stopping from search.

BUG 30706521

Change-Id: I36697d54ec2171a3568178b25fb86b39e18bcf1d
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
f21b3ee11e769ae76df411d85a458e43b59eb2ba 06-Aug-2016 Wenyi Wang <wenyiw@google.com> Hide read-only accounts from side nav

* Load writable accounts only so we don't need to remove read-only accounts.
* We don't need to add local account in side nav for now, because:
- we only show writable accounts in side nav
- and we add local account only when there's no writable account
- and we don't show any account in side nav when the number of accounts
to display in side nav is smaller than 2.
* Revert the lines to filter accounts (line 139-141) to the status before
ag/1198595.
* With this CL, Skype account will not show up in side nav because it's
read-only; however, the label that belongs to Skype still shows up in
the label section of side nav (see b/29046877).

Bug 30707025

Change-Id: I3337894880db2ad787ab42fe7a10b29371ed5f16
ndroid/contacts/common/util/AccountFilterUtil.java
8d62cd2c5c855fd5483c030c1d59e50830ce4dfc 02-Aug-2016 Marcus Hagerott <mhagerott@google.com> Prevent user from creating duplicate labels.

This isn't enforced at the data layer just in the UI's that
allow editting of the group name.

Bug 28718604
Change-Id: I969b0298bd895fdbdd7f8609da05f2b801707c0a
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/group/GroupsFragment.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
d277297985d62bed17efc5f2763c9378bd78c4c8 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Add all intents accpeted by PeopleActivity to AllIntentsActivity
am: 9868692a95

Change-Id: Id83c09f20ac00b92cefc2b4a0f7e51797dd8b4ef
9a580bd9f19310e75f58a42624c30d4e67606702 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Add all intents accpeted by PeopleActivity to AllIntentsActivity" into ub-contactsdialer-f-dev
9868692a95ef9e7a7901ba0a4c4cc6dbae74513d 03-Aug-2016 Wenyi Wang <wenyiw@google.com> Add all intents accpeted by PeopleActivity to AllIntentsActivity

Bug 30628327

Change-Id: I2528e1766a70b8aa6833797ff279ecf5e21f817d
ndroid/contacts/list/UiIntentActions.java
9fa445bc6a2f5c0525a707ac187ef3f5ef0ac856 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Revert "Avoid selecting group item every time when groups are loaded"
am: c1c8baae33

Change-Id: I30f377a2005437cb35f6190997d0ddc80f97fe54
2858abfbf3fbe35e8fd5f324ab23640627c15bf3 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Set elevation when the first item is not completely visible
am: 141b837b5e

Change-Id: I3e3094eaf99578630cd64a0eecfe3b9c37034aa0
fec7ba2506df5a4d26b1b02b5129b80a39650f28 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Don't scroll menu when drawer is open
am: 7b33436af7

Change-Id: I119166a32de57465346491eeb872821a308018a0
5b9215ab2b8456d52453ad61107446e72293283c 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Revert "Avoid selecting group item every time when groups are loaded"" into ub-contactsdialer-f-dev
91c8356aac12ffe215869fe50a8a31541d2e09ba 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Set elevation when the first item is not completely visible" into ub-contactsdialer-f-dev
81fab7a3cb14240003210aa5a210838b05afff19 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Don't scroll menu when drawer is open" into ub-contactsdialer-f-dev
09677e39deb66ee13dcdfa9b366b4430f92694c7 04-Aug-2016 Xi Chen <samchen@google.com> Merge "Missing contacts & accounts issue"
a455bd58203ba4b4e8001fb0bffd665146556d24 26-Jul-2016 Xi Chen <samchen@google.com> Missing contacts & accounts issue

This CL is to solve missing contacts & accounts after adding new
accounts from Settings. New accounts will appear in the app immediately.
If the sync of the Google account is not initialized, it uses spinning circle
to indicate sync is in progress.

BUG 30378161

Change-Id: I370e63e10b16791011f533cf7ca325bff8ccd3f2
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/util/SyncUtil.java
c1c8baae33a0268f4b5123dcb79cedf874d02c21 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Revert "Avoid selecting group item every time when groups are loaded"

This reverts commit a755e17b84e012d11743cf8aa6053fc8df3597e4.

Bug 30306059

Change-Id: I112a43eb705102900a45934dd500ba373095c36d
ndroid/contacts/group/GroupListItem.java
ndroid/contacts/group/GroupsFragment.java
7b33436af7c8095af9a460a08075805e8fe5bba1 04-Aug-2016 Wenyi Wang <wenyiw@google.com> Don't scroll menu when drawer is open

Bug 30306059

Change-Id: I773d4be232029013556b448b78a8630aabca4695
ndroid/contacts/ContactsDrawerActivity.java
62ab56299a3d4a1502c42b9c6a0a2c68567e3662 03-Aug-2016 Tingting Wang <tingtingw@google.com> resolve merge conflicts of ac9596e to master

Change-Id: Id08db44c63196399f89e0becc56326b34e13ecb4
a7b0e00f77f7c7e4616f46757e63b2d9f50cb1d1 03-Aug-2016 Tingting Wang <tingtingw@google.com> Merge "Show hamburger promo after users start using the App." into ub-contactsdialer-f-dev
ac9596e825bf8256487d836a266862e79a24206d 03-Aug-2016 Tingting Wang <tingtingw@google.com> Show hamburger promo after users start using the App.

When users
1) clicked a contact to quickcontact and back to PeopleActivity,
2) clicked search and back to PeopleActivity,
hamburger promo should be displayed.
Do not show the promo when hamburger is clicked before.

BUG 29877098

Change-Id: Ic3ae8076de1e925765df06bf9140c479f4ce3504
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/SharedPreferenceUtil.java
141b837b5e8ad1509f9f3990b10048ba2c90b751 03-Aug-2016 Wenyi Wang <wenyiw@google.com> Set elevation when the first item is not completely visible

* This CL fixes a bug where elevation is not seen in group view when the
first item is not completely visible.
* The bug is only seen in group view and not in account view, because
there is a "search_header" in account view. The "search_header" is an
item in list view but is not a visible contact. So the first contact
in account view is actually the second item in the list view.

Bug 30358448

Change-Id: I04b9d7f54a154f8aea9515f376886abe13781df0
ndroid/contacts/list/MultiSelectContactsListFragment.java
9620d6a2305243d54454f3915f76441730b4c379 03-Aug-2016 Gary Mai <garymai@google.com> Change initial load animation of main list
am: 967cffda17

Change-Id: I9b3f26cd8b21d67ea4329877333d359e59d6bc98
d3aef2d43683b970c16b8d6ad76621151669a332 03-Aug-2016 Gary Mai <garymai@google.com> Merge "Make content lists gone until they've loaded" into ub-contactsdialer-f-dev
967cffda17f453721dc863992d1d2b3474c02fb6 02-Aug-2016 Gary Mai <garymai@google.com> Change initial load animation of main list

Make each row slide up and fade in

Bug: 30318643

Change-Id: Ie05352a92142cbfb15c942896abf8d479f4e915d
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
398bca96c6584f6bb85439aadc182faed45a63d7 02-Aug-2016 Walter Jang <wjang@google.com> Use the persisted filter to set custom setting description

Bug 30601155

Change-Id: I6d18fd064efc4db94d25406cceff9fe87e3536e5
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
a8719e1ff7d15c0359b138f49eb515de8615edb5 02-Aug-2016 Tingting Wang <tingtingw@google.com> resolve merge conflicts of dce1e68 to master

Change-Id: I1520967702ac5e1e84e259ef270644028a096c4d
f69e8561c8493c0f06b2c8e5bf732e3fb8d06f19 02-Aug-2016 Gary Mai <garymai@google.com> Make content lists gone until they've loaded

Bug: 30318643

Change-Id: I93d20a223784ae4ba262b2d6a046b88d1667514c
ndroid/contacts/common/list/ContactEntryListFragment.java
b5ebbfa01c40a94cb63941d312bc7d9175af36fe 02-Aug-2016 Tingting Wang <tingtingw@google.com> Merge "Add feature highlight to hamburger icon." into ub-contactsdialer-f-dev
dce1e68dc18f08d4574dfe64740cdca0876d090b 28-Jul-2016 Tingting Wang <tingtingw@google.com> Add feature highlight to hamburger icon.

BUG 29877098

Change-Id: I16c60c464bb281b1a4a08da28a14f37f8a65d4e5
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
47957ad234de7253e95b41a8bc11e41b3b59e728 02-Aug-2016 yaolu <yaolu@google.com> Modify contacts empty view: no accounts screen to new spec
am: 189036a1b4

Change-Id: I0e57a20a2ba99a23652c84473b502a110566a220
189036a1b42e2974ba9c844552a71ed77bf86d09 30-Jul-2016 yaolu <yaolu@google.com> Modify contacts empty view: no accounts screen to new spec

Spec and doc: go/empty-view, under "Empty no account view".

Screenshots of new empty view on N5:
https://drive.google.com/open?id=0BxaQ3Ze9jz_ceXlIVWNXZ1k0aGc
https://drive.google.com/open?id=0BxaQ3Ze9jz_cUC0zdVM5Z0dCajQ

Bug 30481628

Change-Id: I35f120ac177314cbedd17baeac13a5a8c33b0c8c
ndroid/contacts/list/ContactsUnavailableFragment.java
96375600450be9c6fca1a21a868ae9b4af78941b 02-Aug-2016 Wenyi Wang <wenyiw@google.com> Stop displaying checkboxes when exiting selection mode
am: 5a48cd9118

Change-Id: I7f7f2cd5df72969b822529f7156b2b2ff5f5cc21
73d5d554d71f5ea0c9beafdc763cada9c2ca360d 02-Aug-2016 Wenyi Wang <wenyiw@google.com> Update state of menu items when group members are loaded
am: 35e6f748ae

Change-Id: I36a6c6a24f95a102c58d6782371e7ba6bbe643a1
fae60291c273b30fe6e5f4ac2ed4540cd112c5e7 02-Aug-2016 Wenyi Wang <wenyiw@google.com> resolve merge conflicts of f128ea8 to master

Change-Id: I9a99bb1f5deb913f4409914cc6c356ba6ff8a256
a755b9e2cb2c9a7455cd8b26914ae887251b3cad 02-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Stop displaying checkboxes when exiting selection mode" into ub-contactsdialer-f-dev
5a48cd9118d6abaca6c345a7140b71ba92d2d95e 02-Aug-2016 Wenyi Wang <wenyiw@google.com> Stop displaying checkboxes when exiting selection mode

Bug 30570447

Change-Id: I592b4771a1134993332e5aedbb3fba29bc362584
ndroid/contacts/activities/ContactSelectionActivity.java
d9bd0d715604cc260191b4b35944af0e84f1ec11 02-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Update state of menu items when group members are loaded" into ub-contactsdialer-f-dev
4c29593685d255219805295d942194cf51d5facd 02-Aug-2016 Wenyi Wang <wenyiw@google.com> Merge "Empty view for main list and account view" into ub-contactsdialer-f-dev
cf98f5896d5473e135820afd590683f181b067a9 02-Aug-2016 guanxiongliu <guanxiongliu@google.com> Updating creating group dialog up to spec
am: 4e69d9cc54

Change-Id: Iffe63236b7cfacf7637de107b6f0133815e138c0
db57e38927e360c90765567066e96216c85db19f 02-Aug-2016 Sean Liu <guanxiongliu@google.com> Merge "Updating creating group dialog up to spec" into ub-contactsdialer-f-dev
f128ea89cae42496331915b245b2f1d836b1b9e1 25-Jul-2016 Wenyi Wang <wenyiw@google.com> Empty view for main list and account view

Doc and screenshots: go/empty-view

Bug 30477177
Bug 30359207

Change-Id: Ie2921b1741cca0a1fcd1e34908a320cf70c035a0
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
35e6f748ae51c279172d218d2adfcb1b5e4260d2 02-Aug-2016 Wenyi Wang <wenyiw@google.com> Update state of menu items when group members are loaded

Bug 30565153

Change-Id: Ic9b364248d1f366a43e7433f0c64d01f1afd3c35
ndroid/contacts/group/GroupMembersFragment.java
c9dcf2ffec728c2050ac4681725f68fb286e4c0f 01-Aug-2016 yaolu <yaolu@google.com> Fix the "Add Contacts" button too small in empty label view
am: b504605f49

Change-Id: I026c39ce70d6c80c48e7d5a61d628fd3fa21c4e0
a2afb70db64734eb97e7ed72ee729fdf4a445e55 01-Aug-2016 Yao Lu <yaolu@google.com> Merge "Fix the "Add Contacts" button too small in empty label view" into ub-contactsdialer-f-dev
4e69d9cc54b16867e790437e69978feccf64e64e 01-Aug-2016 guanxiongliu <guanxiongliu@google.com> Updating creating group dialog up to spec

- Updating title layout
- Moving edit line aligned with title

Bug:30079784
Change-Id: I72b79feb74ee29008cd72c566bde72f8d17a0cad
ndroid/contacts/group/GroupNameEditDialogFragment.java
b504605f49a944cc27f49b778e753a1411677c00 29-Jul-2016 yaolu <yaolu@google.com> Fix the "Add Contacts" button too small in empty label view

Change the "Add Contacts" button style so that clickable area is
larger and meets a11y requirement.
Remove the padding between the text and button.

Screenshots on N5 with clickable area shown:
https://drive.google.com/open?id=0BxaQ3Ze9jz_cWkwwT1p5a2ZrRWc
https://drive.google.com/open?id=0BxaQ3Ze9jz_cb2FFMVhnUXdKT00

Bug 30442846

Change-Id: I34a6bdea0ba52ed5f358633d40d15d94b6e4785f
ndroid/contacts/group/GroupMembersFragment.java
17aee4a846f1b8e4d36c6dbe7ad2f6fdf6512632 01-Aug-2016 Marcus Hagerott <mhagerott@google.com> Return display_name after joining multiple contacts.
am: 3bb8514aa1

Change-Id: I4e3c08f62a9b1e4aa05825b3549f3a92c84a2f93
d27f1ab6ab19dc20dff6dd04d714a3727464a9e5 01-Aug-2016 Marcus Hagerott <mhagerott@google.com> Merge "Return display_name after joining multiple contacts." into ub-contactsdialer-f-dev
efa042935e61f910e873e525850e6d37a85dac5a 01-Aug-2016 guanxiongliu <guanxiongliu@google.com> Bringing import/export dialog and edit photo dialog up to spec (1/2)
am: f34bd4235c

Change-Id: I0460a2b64899a92c50f6d183213e0d7fca1fb9dd
8bc98583fee6e5f2553a1cdf7adf5c81b3b6dbfb 01-Aug-2016 Sean Liu <guanxiongliu@google.com> Merge "Bringing import/export dialog and select photo dialog up to spec (2/2)" into ub-contactsdialer-f-dev
65b084c82312c5933017a5db215340be4fc2bccf 01-Aug-2016 Sean Liu <guanxiongliu@google.com> Merge "Bringing import/export dialog and edit photo dialog up to spec (1/2)" into ub-contactsdialer-f-dev
d85a8d7592dc18b1deab9b118af388632fadd27b 01-Aug-2016 guanxiongliu <guanxiongliu@google.com> Making adding account dialogs up to spec (2/2)
am: cb26b3721d

Change-Id: I86fd19b134f2a6bbe3df6f60aa86a1cf6f457a9e
5820558badb037a8f01dcba4db66c462705c5d99 01-Aug-2016 Sean Liu <guanxiongliu@google.com> Merge "Making adding account dialogs up to spec (1/2)" into ub-contactsdialer-f-dev
39e0e13be6166c9d177de7ed6740262a0facee42 01-Aug-2016 Sean Liu <guanxiongliu@google.com> Merge "Making adding account dialogs up to spec (2/2)" into ub-contactsdialer-f-dev
5831d1de22daee9ca9915efad358fedfd0846379 30-Jul-2016 Xi Chen <samchen@google.com> Merge "Selection mode still has pullToRefresh feature"
981d0b124446b653e4392da62cc55a7d52bc75c4 30-Jul-2016 Xi Chen <samchen@google.com> Merge "PullToRefresh not work after exiting search mode"
7c3ad7d6ea24d8e772ae8ab837d6e12b683d78ee 30-Jul-2016 Gary Mai <garymai@google.com> Add fade in animation when loading initial all contacts list
am: 2a2e8c6c4b

Change-Id: Ie53ca5a27e4d952b209e00714425954de5d45105
fdae13bf5f6f9c78cb8a6f2b1f3c94ab436b9e10 30-Jul-2016 guanxiongliu <guanxiongliu@google.com> Bringing import/export dialog and select photo dialog up to spec (2/2)

Bug:30079784
Change-Id: I5fcb59293141df1cb26e2cf7de7a6ef7dbacad0a
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
f34bd4235c0ca3f1cf8b192bb572a4e463bc36ff 30-Jul-2016 guanxiongliu <guanxiongliu@google.com> Bringing import/export dialog and edit photo dialog up to spec (1/2)

Bug:30079784
Change-Id: I7e05b5ec089ad7b612d19afe349ce52ea3b3334a
ndroid/contacts/editor/PhotoSourceDialogFragment.java
3bb8514aa11f24f81c508871248b81c3eb5a4087 29-Jul-2016 Marcus Hagerott <mhagerott@google.com> Return display_name after joining multiple contacts.

The ContactSaveService includes the display name of the resulting
contact in the data bundle when several contacts are joined.

Bug: 29687036
Change-Id: I14c0ae151178d279a4c0c71f574247cc645cfea9
ndroid/contacts/ContactSaveService.java
cb26b3721de204be1e652d843f2db0e388fda870 30-Jul-2016 guanxiongliu <guanxiongliu@google.com> Making adding account dialogs up to spec (2/2)

Bug:30079784
Change-Id: I2c6ab596b0cd125bd2ef10cc6ced359b31fab0fb
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
84a6e65105256922ea82c37a186b682aaa285901 30-Jul-2016 guanxiongliu <guanxiongliu@google.com> Making adding account dialogs up to spec (1/2)

Bug:30079784
Change-Id: I4bd38edee4cfab77a00da79b841b831aeeb60f8e
ndroid/contacts/common/util/AccountsListAdapter.java
2a2e8c6c4bafc6833fecceb871de087603f4393a 29-Jul-2016 Gary Mai <garymai@google.com> Add fade in animation when loading initial all contacts list

Bug: 30318643
Change-Id: I77c0eac6b3f73e3d2772aee12d33afc136f824cc
ndroid/contacts/activities/PeopleActivity.java
1d6320d88f7c897e1250774cab8dfbace13fbd0f 29-Jul-2016 Xi Chen <samchen@google.com> Selection mode still has pullToRefresh feature

We have to disable pullToRefresh feature while deleting contacts.

BUG 30503197

Change-Id: Ic437e3182bd6dcc23dadd871052afe35633b3995
ndroid/contacts/activities/PeopleActivity.java
704667ed694f26d4f75dffc8a0c091fd871bdfc4 29-Jul-2016 Yao Lu <yaolu@google.com> Merge "Update default account list in settings on account change" into ub-contactsdialer-f-dev
6d29c04a52500466bb06138d63220b28cd8df40d 28-Jul-2016 yaolu <yaolu@google.com> Update default account list in settings on account change

Update default account list when creating dialog to reflect account removal/addition.

Bug 30436629

Change-Id: Ib624fb290e1a7072f9816fb0627870648926cb30
ndroid/contacts/common/preference/DefaultAccountPreference.java
77b4ea8d337e90ee8552fe398c488322164c586b 29-Jul-2016 Walter Jang <wjang@google.com> Exit edit mode when the last group member is removed
am: 550c3e0fb6

Change-Id: Ie9a6dca7c608393824134d2cb6eb9dac200a4a99
550c3e0fb65ddeb9b2c14dce47df20f0405bc85f 29-Jul-2016 Walter Jang <wjang@google.com> Exit edit mode when the last group member is removed

Bug 30470170

Change-Id: I74f19c40baffaba9396520f9d36bb22c3ea6347d
ndroid/contacts/activities/GroupMembersActivity.java
5295444c062074e1522df512ee1d12b096332bf1 29-Jul-2016 Sean Liu <guanxiongliu@google.com> Merge "Moving up avatar by 1dp (2/2)" into ub-contactsdialer-f-dev
4d7715bd510d3bb7f071867054cc1ce0220bdeb4 28-Jul-2016 guanxiongliu <guanxiongliu@google.com> Moving up avatar by 1dp (2/2)

Bug:30404485
Change-Id: I7ec20320fa74fbb801a81c9c096a9265fb994e7c
ndroid/contacts/common/list/ContactListItemView.java
d8b5ee645f811cb4150275d487daaa90177a8765 29-Jul-2016 Walter Jang <wjang@google.com> Exit selection mode before search on group member picker
am: 794dbd0aa2

Change-Id: Iefc58817436a0458016613bcf1efb2e995186bd2
794dbd0aa20eb6f291750adf7e88b0d6163659d6 28-Jul-2016 Walter Jang <wjang@google.com> Exit selection mode before search on group member picker

This is the same order as the main contacts list activity
onBackPressed now so if you search, enter multi select mode,
then hit back, you go back to search mode.

Bug 30475739

Change-Id: Ib36b4a85951aace9a2268b90ae621507ee6e951b
ndroid/contacts/activities/ContactSelectionActivity.java
e0188c7e6933223ddaf93be5a609a52e6d41a274 28-Jul-2016 yaolu <yaolu@google.com> Set empty label view to new spec
am: 6afd44d319

Change-Id: I8ba5afa29f74cb95d1432245ff455d01de11088f
b7b790b38fceb958d0207f5ceea5a628bd036c36 28-Jul-2016 Yao Lu <yaolu@google.com> Merge "Set empty label view to new spec" into ub-contactsdialer-f-dev
cf07957df9f8696222b66b101e6ba8fa29438238 28-Jul-2016 Wenyi Wang <wenyiw@google.com> resolve merge conflicts of 81067f5 to master

Change-Id: I39a672c2fd92577f93a4e62723be0788abd5cb46
6afd44d3191ae057f5fae370ebde7085bdef73a1 28-Jul-2016 yaolu <yaolu@google.com> Set empty label view to new spec

Bug 30420455

Change-Id: I6406944af849457e90027aa9253bb417ad9df18c
ndroid/contacts/group/GroupMembersFragment.java
07a8802e064065585ceb4a1bec7742b01ef26deb 28-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "Bring account view up to spec (E2)" into ub-contactsdialer-f-dev
f5b3964246be8d6765e2a497fb7903dab9e27a54 27-Jul-2016 Walter Jang <wjang@google.com> Fix stack overflow when reading AOSP experiment flags

Introduced in ag/1181298

Change-Id: I6f1369954a5c81d66064220fc3cc13f96b5bd731
ndroid/contacts/commonbind/experiments/Flags.java
43cadaa2412cf91c3d1bc2e43344b2f47f827536 27-Jul-2016 Gary Mai <garymai@google.com> Side nav accounts menu a11y improvements
am: f354d18623

Change-Id: I5b9b3c257fe8aa60d6e2b3ce1f514831ea787da2
c691c18f2bd33d45975567aa9d0bab6a7bfbe314 27-Jul-2016 Gary Mai <garymai@google.com> Merge "Side nav accounts menu a11y improvements" into ub-contactsdialer-f-dev
81067f503bca35b866663f737dd411c6372a33c1 27-Jul-2016 Wenyi Wang <wenyiw@google.com> Bring account view up to spec (E2)

* Use elevation instead of divider for list header
* Change icon size and margin programmatically.

Bug 30358448

Change-Id: Ib707c116c23ee39d43c265a5c26184d6944bedc0
ndroid/contacts/list/MultiSelectContactsListFragment.java
777ba55f78702019828e8f30d8f0a5c3a40c392e 27-Jul-2016 Gary Mai <garymai@google.com> Remove aggregation exceptions when undo-ing link from dupes view
am: 53fe0d2793

Change-Id: I537402cd27ba3a69fe9a536163930a64c76e417c
27a444249da1733a75766bb35afabae6177b5026 27-Jul-2016 Gary Mai <garymai@google.com> Merge "Remove aggregation exceptions when undo-ing link from dupes view" into ub-contactsdialer-f-dev
9560d8d7f80d67092322e0284b5951349e460bb1 27-Jul-2016 Walter Jang <wjang@google.com> Check for telephony before asking of SMS permission on QuickContact
am: 5a16ef8637

Change-Id: I13480c4acb82247de67b1eb74679ae5b79152e22
5a16ef8637b16ef7c2032ea15a9dbead2314e356 27-Jul-2016 Walter Jang <wjang@google.com> Check for telephony before asking of SMS permission on QuickContact

Bug 30252285

Change-Id: I2814bd77e93b7e34e7d24dd5d8cd7fe0cf845838
ndroid/contacts/quickcontact/QuickContactActivity.java
d3217ed7f12a7c8d30aed53628a330ac670ee823 27-Jul-2016 John Shao <johnshao@google.com> Cleanup GroupMembers classes
am: 2b0d298285

Change-Id: I6321a99d3f45c68d846d5764136cc01722076cfd
53fe0d2793af48b1b2aeeca49c72ad6645fb527a 27-Jul-2016 Gary Mai <garymai@google.com> Remove aggregation exceptions when undo-ing link from dupes view

Instead of setting the exceptions to TYPE_KEEP_SEPARATE, make it
TYPE_AUTOMATIC, making undo link a true undo instead of an unlink.

Bug: 30277501
Change-Id: I3198ede94294dbfa58af73a5bf918fa5bdc9b8e6
ndroid/contacts/ContactSaveService.java
f354d186236c99c17c7e755f5bdbe1d5d254d55f 25-Jul-2016 Gary Mai <garymai@google.com> Side nav accounts menu a11y improvements

Add account type string to the content description for the
account filters menu items so Talkback reads them as well.

Bug: 29152997

Change-Id: Id7034b79769dce36479615b7e841b096f998ac28
ndroid/contacts/ContactsDrawerActivity.java
2b0d298285b80041bd779eb55d2b412d0860e5ad 26-Jul-2016 John Shao <johnshao@google.com> Cleanup GroupMembers classes

Remove redundant calls and fix some cursor stuff.

Bug: 29160869
Bug: 30287073
Change-Id: Ib38dde331480f9e02eae55ad5f1ba9b9ea55cf0b
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/GroupMemberPickerFragment.java
1a913d4c41ff0f735a3ce052bd20e9b11921f47e 26-Jul-2016 Xi Chen <samchen@google.com> PullToRefresh not work after exiting search mode

BUG 30402345

Change-Id: I54ed192a27887e53f871061c85f01aa5938e39f1
ndroid/contacts/activities/PeopleActivity.java
43cf576a12224bd0bcbfc55bce1c67b2d95ee36d 26-Jul-2016 John Shao <johnshao@google.com> Add stable IDs to multiselect view for talkback

GroupMemberAdapter was not reading _ID column so view ID
was different from Adapter.getItemId. Provide the appropriate
overrides so those IDs stay consistent and talkback doesn't
get confused when views are refreshed.

Bug: 29160869
Bug: 30287073
Change-Id: I87719b0b9f8eede57c036b829dc06f8e52857e97
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
34ab8e039f4c75ccfb469f4730df88eaaed584c6 26-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "Show gap b/w indexer and image when inderxer is disabled." into ub-contactsdialer-f-dev
fd10e74385e558fd01b768ba01c696893fa4297e 26-Jul-2016 Wenyi Wang <wenyiw@google.com> Show gap b/w indexer and image when inderxer is disabled.

Also move directory header to right by 16dp to make it aligned with
contact list items.

Bug 29831679

Change-Id: I0ec82ceba8d94f2699cdfa9641f237eae8b9ad9d
ndroid/contacts/common/list/ContactListItemView.java
5fe4328bfc43c65ef9c825d5c0923a0bdedb9f96 26-Jul-2016 Walter Jang <wjang@google.com> Hide \"Remove contacts\" menu item for empty groups
am: b41fe30cf6

Change-Id: Iefa666426c0aae7244d7218d23a41271979f923f
7d5be056e6b68c2ebd3946e1b78d42d65d0a54de 25-Jul-2016 Wenyi Wang <wenyiw@google.com> Show star icon explicitly if needed

Bug 30370500
Bug 28426878

Change-Id: Ic7df26dc7926d6efbe1d1ae926dbcd2b019c9935
ndroid/contacts/common/list/ContactListItemView.java
2ea75a2f16b8fe9910a9c0646acf2450fd50c9b1 26-Jul-2016 Xi Chen <samchen@google.com> Merge "Get and show new focus sync status on pullToRefresh (Flag Control)"
b41fe30cf653c4f850ed071dd1a9d86729fdbba8 25-Jul-2016 Walter Jang <wjang@google.com> Hide "Remove contacts" menu item for empty groups

Bug 30369711

Change-Id: I0e80955a3ea657e2bac67c7e39ae4b2755badae5
ndroid/contacts/activities/GroupMembersActivity.java
a1f7b0080416ed7fecb068a14cedb9808ca6683e 25-Jul-2016 Wenyi Wang <wenyiw@google.com> Avoid selecting group item every time when groups are loaded
am: a755e17b84

Change-Id: If1e21f40743ed39bd3681153560e37fdd0b9873f
b4e7e9fe440e194dcdc393bdd93fc514bf3fb31d 25-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Avoid selecting group item every time when groups are loaded" into ub-contactsdialer-f-dev
38d7b1566ecf3d0f2721766f5508332bb9393d80 25-Jul-2016 Walter Jang <wjang@google.com> Fix group member picker mime type
am: 7c596c7c8b

Change-Id: Iceb44d27b5864b609dc82db77dda8a9bb4cfb83c
08ca04637e533bbaab4d59087ed64bc4109fc0ea 25-Jul-2016 Wenyi Wang <wenyiw@google.com> Remove edge shadows in list view on tablets (1/2)

* Remove leef and right margines from contact_list_card.
* Remove ContactListViewUtils.applyCardPaddingToView
so that we can use the same layout on tablets.

Bug 30359040

Change-Id: I5209b32f8afe6c9e86ac29ba0239d32b21d643eb
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/util/ContactListViewUtils.java
4a7a9ea9ce12734da8e7ac19b8a260544d713c22 20-Jul-2016 Xi Chen <samchen@google.com> Get and show new focus sync status on pullToRefresh (Flag Control)

This feature only supports Google accounts. It will get and show
sync status for current filter account.

BUG 28625097

Change-Id: I6439638f4fd99f3e8991d87e538259859bc7a6e5
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/util/SyncUtil.java
a755e17b84e012d11743cf8aa6053fc8df3597e4 23-Jul-2016 Wenyi Wang <wenyiw@google.com> Avoid selecting group item every time when groups are loaded

* Cause: when there are a great number of contacts in the a newly-added
account, onGroupsLoaded will be called many times during contacts
sync. As we set seletced menu item in it, the navigation drawer
menu will jump again and again.
* Solution: we notify listener only when the loaded groups are changed.

Bug 30306059

Change-Id: I93c039861fbe74e672d95d03c4644b6d31b8bbe5
ndroid/contacts/group/GroupListItem.java
ndroid/contacts/group/GroupsFragment.java
7c596c7c8b21fdb274cd6f8db4acf45f9f69f8b7 25-Jul-2016 Walter Jang <wjang@google.com> Fix group member picker mime type

Bug 29902305

Change-Id: Icb54b2a0b7f00cc0e83062555945f7373bee16d0
ndroid/contacts/list/ContactsIntentResolver.java
d444d06efafee1d04e3d16e8f9674816f9f656c7 25-Jul-2016 Walter Jang <wjang@google.com> Revert \"Revert \"Handle group insert, view, and edit intents (1/2)\"\"
am: 1110d678ae

Change-Id: I17b356a83fbf94318c9c622e68e55796d8368c5b
7872d262f9ef87186ea53b4218f0f71e53c62059 25-Jul-2016 Walter Jang <wjang@google.com> Revert \"Handle group insert, view, and edit intents (1/2)\"
am: 6bf9394371

Change-Id: If2bb713d2b6aeaa3273679179ac65dd24e147d7f
1110d678aee0b1967898e83334a63df49a7e30f6 25-Jul-2016 Walter Jang <wjang@google.com> Revert "Revert "Handle group insert, view, and edit intents (1/2)""

This reverts commit 6bf9394371218adfc81123c236b81cdb6b855639.

Bug 29902305

Change-Id: I0e6f23a3ac4be8d7a6785aece0cfe0db37287308
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
a7dad42a500ff8b4495450189c9812e5afa28974 25-Jul-2016 Walter Jang <wjang@google.com> Merge "Revert "Handle group insert, view, and edit intents (1/2)"" into ub-contactsdialer-f-dev
6bf9394371218adfc81123c236b81cdb6b855639 25-Jul-2016 Walter Jang <wjang@google.com> Revert "Handle group insert, view, and edit intents (1/2)"

This reverts commit 01c2f7f2e324dbf7ce70229ecb29f9c33542be0e.

Change-Id: I161c7a2277979f281d7579894b8f64e918082e7f
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
8c0d7822c45bfcde6363adc49a1b15fead44ab08 25-Jul-2016 Walter Jang <wjang@google.com> Handle group insert, view, and edit intents (1/2)
am: 01c2f7f2e3

Change-Id: I31dd586de472739b3cb9944c091136b77f4954e3
c9545cb26ea7c2cb4e892c6578297da26196101f 25-Jul-2016 Walter Jang <wjang@google.com> Merge "Handle group insert, view, and edit intents (1/2)" into ub-contactsdialer-f-dev
23a3035c8eaa25756aec767ecc93f32d117ee678 25-Jul-2016 Sean Liu <guanxiongliu@google.com> Merge "Bringing Choose account dialog up to spec" into ub-contactsdialer-f-dev
01c2f7f2e324dbf7ce70229ecb29f9c33542be0e 24-Jul-2016 Walter Jang <wjang@google.com> Handle group insert, view, and edit intents (1/2)

Bug 29902305

Change-Id: I59ddb4bf55cd28943f31aeaed6c2f3c0adba1403
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
d0b4e6c1777bf344e9e77ae105b308c3c5a3a2a7 22-Jul-2016 guanxiongliu <guanxiongliu@google.com> Bringing Choose account dialog up to spec

Bug:30079784
Change-Id: I7daa8e24b4bca03c22cfbe013babfadde72b895a
ndroid/contacts/common/editor/SelectAccountDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
6eb8e0d5d8304e5220c95a07bfd54c6a44674fdd 21-Jul-2016 Gary Mai <garymai@google.com> [DO NOT MERGE] Contact editor RTL rendering fixes

Force LTR on an AggregationSuggestionView when the data being surfaced is
a phone number.
Don't allow full screen editing in landscape mode.

Bug: 30152819
Change-Id: I810ada236ce5f75b9923159bbfe3f1d5fd4f5faf
(cherry picked from commit 6773ea1d6a3e2e060bec193251da2d5ab057c6ae)
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/TextFieldsEditorView.java
d8676293edeef632f1f366f30304b8e226ae1dc9 24-Jul-2016 Wenyi Wang <wenyiw@google.com> Speed up app bar and FAB animation (1/2)
am: bd114976b3

Change-Id: I4c8f129d4140fc3f871b2a9e3f665e4c8a1746aa
a5be4d7c27d8477fd204c94f6d0139f935923a64 24-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "Speed up app bar and FAB animation (2/2)" into ub-contactsdialer-f-dev
bd114976b35ae18c8f3544f74b75fe33a8f6ee01 22-Jul-2016 Wenyi Wang <wenyiw@google.com> Speed up app bar and FAB animation (1/2)

* Speed up app bar fade in/out to 195ms

Bug 30288176

Change-Id: Ib642a827c9a8a173b74f0b423ed9b88605f408f1
ndroid/contacts/activities/ActionBarAdapter.java
d31b3d38f562acdb2b437f9b1bc464ad2f66499c 23-Jul-2016 Sean Liu <guanxiongliu@google.com> Merge "Updating People activity avatar." into ub-contactsdialer-f-dev
7c30f7ba026c4415286d8338453aa08319ba954f 22-Jul-2016 guanxiongliu <guanxiongliu@google.com> Updating People activity avatar.

-- Using new person icon
-- 54% opacity on letter and person icon
-- Reducing font weight

Bug:30020174
Change-Id: I547fee54026a3bcd90b503cb8dc7549492ad0498
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
e383ecf2b067289ae467bc69fb4e82481059ddcc 22-Jul-2016 Wenyi Wang <wenyiw@google.com> Speed up app bar and FAB animation (2/2)

* Make FAB animation 30% faster.

Bug 30288176

Change-Id: I5163c9b4daddb0cfd872d54c0027b52278ab3af1
ndroid/contacts/common/widget/FloatingActionButtonController.java
3658f0f332dc513492b5f8c4b28040c4295f5cb9 22-Jul-2016 Tingting Wang <tingtingw@google.com> Merge "Truncate account string at end." into ub-contactsdialer-f-dev
9c129d59f61f08b03c04ac04523818d4806c025a 22-Jul-2016 John Shao <johnshao@google.com> Can't select first contact in multiselect mode

Intercept handler was intercepting touch events thinking
they were made on the header since adjustment was not made
for RTL.

Force set content description for header

Bug: 29996629
Bug: 29155704
Change-Id: Ifa537a494de06eece8cda2cdf25d0b8436eeb6fe
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/PinnedHeaderListView.java
01164c8e2c8c951f5fe48e3629fabcc0b4ee458a 22-Jul-2016 Walter Jang <wjang@google.com> Change the title of GroupMembersActivity when removing contacts
am: d772515911

Change-Id: Ibf74a4f811ca8b2d8abb9773d022c0bedbe75f54
6202e983254f33ab93bb31efad975b4d364c3bbc 22-Jul-2016 Walter Jang <wjang@google.com> Merge "Change the title of GroupMembersActivity when removing contacts" into ub-contactsdialer-f-dev
22c1f002854703495d3e0265f96a14ee9e4e6b67 22-Jul-2016 yaolu <yaolu@google.com> Set group activity title to label name.
am: 61d84d18b0

Change-Id: Ib5b008e521c3db6eb0bd53dd988364a4fbdd4a6f
d5403fac530e9ee13dfd09a958f587793f779b4e 21-Jul-2016 Wenyi Wang <wenyiw@google.com> Use image view when it's section header is a star

* Define mHeaderTextView as a View so that it can be ImageView and TextView
and rename it as mHeaderView.
* Hide pinned header when it's a star.
* Move section header to left by 14dp and make text and image center aligned.
* Make section header size 16sp.
* Make star pink.

Bug 28426878

Change-Id: I1aa563e5201e41487a7edd7cd861a62d8b662ff5
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/PinnedHeaderListView.java
d772515911e8884351f8f78f07c56612cb20ccf9 22-Jul-2016 Walter Jang <wjang@google.com> Change the title of GroupMembersActivity when removing contacts

Bug 30266214

Change-Id: Iabdf52cc324aaa4124e453ae2d4b782d49e89b4e
ndroid/contacts/activities/GroupMembersActivity.java
416d02411236a7b020cb801065b7ce47298592a0 22-Jul-2016 Walter Jang <wjang@google.com> Move \"Edit\" label option to overflow and rename to Remove contacts
am: 9a717ec501

Change-Id: Id80b1066ac7d4ff579ae713f7df830e95b091347
332f5d4ef7b062ce33536c99fbd04b7e87165a9c 22-Jul-2016 guanxiongliu <guanxiongliu@google.com> Making talkback announce title for account view
am: 83fcbbe881

Change-Id: I91bbbf45573a1bcca9307a9beea4f9f47c2e4aea
278e15c724af9af12eb4eb7c6df5c5162b644a54 22-Jul-2016 Tingting Wang <tingtingw@google.com> Change g+ icon with latest version in QuickContact UI.
am: e93f2746bd

Change-Id: Ica1bc6e47a2af1f32187a87fdb78a31638244e09
2632bb9496464447db59e52a9ca23df11f5173d2 22-Jul-2016 Walter Jang <wjang@google.com> Log device, custom, and picker list types (1/3)
am: 6158b814d3

Change-Id: I59e5ac4946cb23a65e2eca8a96ec49a0866e92ce
61d84d18b0c33a83330f4aa5146dd811b3dc3842 21-Jul-2016 yaolu <yaolu@google.com> Set group activity title to label name.

Bug: 30253953
Change-Id: I8a0e91364f50b4aecc114f0485f4be2b75036117
ndroid/contacts/activities/GroupMembersActivity.java
0c4c15840e8407b1119c5dfd1a14c5b1547a6e1d 22-Jul-2016 Tingting Wang <tingtingw@google.com> Truncate account string at end.

BUG 30143241

Change-Id: Ie8a69776126c407747f2d282aeedabf3c0710ac9
ndroid/contacts/common/util/AccountsListAdapter.java
a5e4e21a0b582819c6be0bc524cc346249a9c974 21-Jul-2016 Walter Jang <wjang@google.com> Merge "Move "Edit" label option to overflow and rename to “Remove contacts”" into ub-contactsdialer-f-dev
4f3bcb4504ca3287697f7995984f19e2a4e44188 21-Jul-2016 Sean Liu <guanxiongliu@google.com> Merge "Making talkback announce title for account view" into ub-contactsdialer-f-dev
055b4e6731306b5237b6eee47e81d6f1323c9cb9 21-Jul-2016 Gary Mai <garymai@google.com> Merge \\"Contact editor RTL rendering fixes\\" into nyc-mr1-dev am: ae86b24674
am: 7342e4814b

Change-Id: I8acaef27babf69955f8fdc8df113c87e4ea61109
9a717ec50132879924c8bf69f22ddf8cbf5febd8 21-Jul-2016 Walter Jang <wjang@google.com> Move "Edit" label option to overflow and rename to “Remove contacts”

Bug 30266214

Change-Id: Id450fa9fb461c72f81d5d96d905ac678c925a413
ndroid/contacts/activities/GroupMembersActivity.java
e808621e17ec956a6f5159d450e648db7399143f 21-Jul-2016 Tingting Wang <tingtingw@google.com> Shift checkboxes more to left.

BUG 29773516

Change-Id: I692dc639394ac35a250d3aa39ad56f1893e1d458
ndroid/contacts/common/list/ContactListItemView.java
f9265fb0c0a67ccb76bf58759659e7955602e233 21-Jul-2016 Tingting Wang <tingtingw@google.com> Merge "Change g+ icon with latest version in QuickContact UI." into ub-contactsdialer-f-dev
e93f2746bd90dc14d5bf3f604d13a1802cde1634 21-Jul-2016 Tingting Wang <tingtingw@google.com> Change g+ icon with latest version in QuickContact UI.

BUG 29452635

Change-Id: Ib4d9099529abd0172ad2eba952ad820f662a1026
ndroid/contacts/quickcontact/QuickContactActivity.java
6773ea1d6a3e2e060bec193251da2d5ab057c6ae 21-Jul-2016 Gary Mai <garymai@google.com> Contact editor RTL rendering fixes

Force LTR on an AggregationSuggestionView when the data being surfaced is
a phone number.
Don't allow full screen editing in landscape mode.

Bug: 30152819
Change-Id: I810ada236ce5f75b9923159bbfe3f1d5fd4f5faf
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/TextFieldsEditorView.java
83fcbbe881211738244140bbb7e8f9d5af05009f 20-Jul-2016 guanxiongliu <guanxiongliu@google.com> Making talkback announce title for account view

Bug:30140426
Change-Id: I6fc09b6caf4b3539990e12d0c0536b49fe74513f
ndroid/contacts/activities/PeopleActivity.java
6935e6d7ab9fd124af0db51617bdd0adc8376abf 20-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "[DO NOT MERGE] Contacts to display UI improvements (1/2)" into ub-contactsdialer-f-dev
5945456de24538a16ee09ef7b0dfe2c6a470f3fb 20-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "[DO NOT MERGE] Contacts to display UI improvements (2/2)" into ub-contactsdialer-f-dev
f6281262fd873c907c63de781a2c66b1f948c718 20-Jul-2016 Walter Jang <wjang@google.com> Merge "Log device, custom, and picker list types (2/3)" into ub-contactsdialer-f-dev
20db985dea84a3ce30dd328e0ac2381b9cc050b7 19-Jul-2016 Wenyi Wang <wenyiw@google.com> [DO NOT MERGE] Contacts to display UI improvements (2/2)

* Make icon image view gone for custom filter

Bug 30198034

Change-Id: I4eaa9d8edf0b11ae8a5aa8e4b7d2e071a2accd9f
(cherry picked from commit b66f4ac0a441d7e020a12c398cb06151c1a8607d)
ndroid/contacts/list/MultiSelectContactsListFragment.java
cfcffdcc8b4ce454cd3a630afbf689aa5e4f2d7f 19-Jul-2016 Wenyi Wang <wenyiw@google.com> [DO NOT MERGE] Contacts to display UI improvements (1/2)

* Remove the wrench icon.
* Move arrow to the right.
* Move list item to the left to be aligned with back button.
* Remove tablets layout so that it looks similar on phones and tablets.
* Add SAVE button to toolbar.
* Left-align "Contacts in custom view" header with hamburger menu.
* Change account text color when it's expanded/collapsed.
* Add divider view below group item so that we can show dividers between accounts
by wrapping the existing content in custom_contact_list_filter_group with a
LinearLayout and putting a divider below.
* Change text color.

Bug 30198034

Change-Id: Id4bc9e65fbf163195e7e1ce3847735e5d9af848c
(cherry picked from commit 56432fc8c78305d9f108a83f3c9a92153dc5ab5c)
ndroid/contacts/common/list/ContactListFilterView.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
54205a82c6d7d79a1fed67c44c4b938bad343200 20-Jul-2016 Tingting Wang <tingtingw@google.com> Revert "Hide section header if list is small and no starred."

This reverts commit 14c9446727dfe93c4c4a86492c8221cbfabc31b8.

BUG 28753662
BUG 30250023

Change-Id: I8e3f6760972a8afd43152efd350b7de091454d00
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
6158b814d330f2c61522387b9e0ce40208b5ef63 20-Jul-2016 Walter Jang <wjang@google.com> Log device, custom, and picker list types (1/3)

Bug 28718104

Change-Id: Ib386795e900848732e8c29ce41c1196630fbeb98
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/JoinContactListFragment.java
aa684b67b0a7d2997556bbb85ee271b6695589d3 20-Jul-2016 Xi Chen <samchen@google.com> Merge "PullToRefresh feature for syncing contacts (Flag Control)"
947c23df9b52081fea8ff3958420475973d53e53 01-Jul-2016 Xi Chen <samchen@google.com> PullToRefresh feature for syncing contacts (Flag Control)

This feature only supports Google accounts. It will sync all Google
accounts in all contacts view, and will sync Google account itself in
Google contacts view.

BUG 28625097

Change-Id: Icdfff5e201d827d3f6866ad1d8835ef3fdbd43b0
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
1bdef2f43675c9fcd4385acfda7779bcfe257cb8 20-Jul-2016 Walter Jang <wjang@google.com> Log device, custom, and picker list types (2/3)

Bug 28718104

Change-Id: Id1c5076ad00c9c81277c7a89f2af721cdf6eda8f
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/logging/ListEvent.java
2b1aa123cf6ef45615198ed41989eabe472545d1 20-Jul-2016 Wenyi Wang <wenyiw@google.com> Replace "custom view" with "customized view"

* Remove string list_filter_custom_preference so that we can use
string listCustomView in both Contacts and ContactsCommon packages
to avoid creating another CL in Contacts package.

Bug 30198034

Change-Id: I8e0bf2a948991546ae6652a3a6d2bd544c6bc738
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
108f7837abf35bab3186709cedc55e190b02ed1f 20-Jul-2016 Tingting Wang <tingtingw@google.com> Add content description for no name and starred header.

BUG 30125507

Change-Id: Ia5d2be51eba88f3d59afa591f8f3aedf175efbc9
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactsSectionIndexer.java
b66f4ac0a441d7e020a12c398cb06151c1a8607d 19-Jul-2016 Wenyi Wang <wenyiw@google.com> Contacts to display UI improvements (2/2)

* Make icon image view gone for custom filter

Bug 30198034

Change-Id: I4eaa9d8edf0b11ae8a5aa8e4b7d2e071a2accd9f
ndroid/contacts/list/MultiSelectContactsListFragment.java
b8e90f1aa85e461afad53c20ea0da902606bde60 19-Jul-2016 Walter Jang <wjang@google.com> Contacts to display preference UI tweaks (1/2)

Use non-static version of ContactListFilter.isContactsFilterType

Bug 29185471

Change-Id: Id1a6d86959357defac771a05cf3101ae5df85f33
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
362b733e4cf768e3bfd22d3c599956b5a2b5afc1 19-Jul-2016 Walter Jang <wjang@google.com> Contacts to display preference UI tweaks (2/2)

* Make ContactListFilter.isContactsFilterType non-static
and also accept the DEFAULT filter type.
* Move the Contacts to display preference under default account
* Show a summary string for the the Contact to display preference

Bug 29185471

Change-Id: I4464d108bfe6cc52102718ba75bb869ba234cfc8
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
3d8803e4d597da33275b4a67271cb74fed2cdea8 18-Jul-2016 Wenyi Wang <wenyiw@google.com> Use different strings for list header

Bug 30189545

Change-Id: Iddcacad2af15b09083e7da1692ceaddb10db20e6
ndroid/contacts/list/MultiSelectContactsListFragment.java
7cd9af38ceb0e6ab3a61f1068e87f18d6b628d9f 18-Jul-2016 Wenyi Wang <wenyiw@google.com> Avoid changing list view padding to zero

When we set top padding, we also set other paddings to zero,
which caused the layout of list view on tablets to be wrong.

Bug 30180750
Bug 29190106

Change-Id: Ief1519e20df403d83b0682081b0160144890383b
ndroid/contacts/list/MultiSelectContactsListFragment.java
f2cad223c3af20889767ac39b9176522d8d67f45 14-Jul-2016 Walter Jang <wjang@google.com> Restore the "Contacts to display" custom filter (2/3)

* Revert "Remove AccountFilterActivity and its usage (ContactsCommon)"
This reverts commit cc8f7406b3c34587941dac11ad24966ab3f8e417.
* ContactListFilterView and CustomContatListFilterActivity are
unchanged from their state before when they were removed.
* AccountFilterActitivy has been altered to only show
FILTER_TYPE_ALL_ACCOUNTS and FILTER_TYPE_CUSTOM filter types
(instead of using AccountFilterUtil.FilterLoader) and to
set which one is checked based on the persisted state and not
the extra passed to the Activity. So the KEY_EXTRA_CURRENT_FILTER
has been removed.
* AccountFitlerUtil#updateAccountFilterTitleForPeople
and #updateAccountFitlerTitleForPhone methods were not restored
since the list header titles are now set elsewhere.
* Finally, we added a new "Contacts to display" item to Settings
after "Name format" and make a call to
AccountFilterUtil.handleAccountFilterResult when the
AccountFilterActivity returns to persist either the
FILTER_TYPE_ALL_ACCOUNTS or FILTER_TYPE_CUSTOM filter type.

Bug 29185471

Change-Id: I5f199f47f9d0098065790d4d8483d786ad9fcb5b
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/list/ContactListFilterView.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/util/AccountFilterUtil.java
9294263258a44d6ee42ac1dba964eb3765d2f494 14-Jul-2016 Walter Jang <wjang@google.com> Restore the "Contacts to display" custom filter (1/3)

* Revert "Remove AccountFilterActivity and its usage (Contacts)"
This reverts commit 1fc8847aa6bef1b6ceb017870d3de90f5960757e.
* But we don't restore the changes to DefaultContactBrowseListFragment
since we won't be starting the "Contacts to display" filter
from an overflow menu option on PeopleActivity.
* In DrawerActivity and PeopleActivity, everywhere we check for
FITLER_TYPE_ALL_ACCOUNTS, we must also accept FILTER_TYPE_CUSTOM,
since either of those can be used for the default/main contacts
list again.

Bug 29185471

Change-Id: Ie77e8acb16980b9015bd1f1f4af9fb7a014f3c51
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
45c210a8900445b557b296cc3e1f0070fd461eb6 15-Jul-2016 Wenyi Wang <wenyiw@google.com> Auto-scroll navigation view to make selected item always visible

* Set order # to each selectable menu item (i.e. excluding Settings and
Help&feedback) so that we know scroll position. The order # is based
on # of groups and # of filters.
* Update scroll position when we set selection status of menu items.
* Scroll to the position with an offset so that the visible item appear
in the middle of the screen (in fact 1/3 height of the screen).
* Modify the way to make status bar transparent so that it's transparent
in the new green duplicates activity.

Bug 29792209

Change-Id: I9dddc6cceeed835eaf7e7157cc7bad0adb24b1ff
ndroid/contacts/ContactsDrawerActivity.java
97ec382441af727583ed33e027f28c479f16fbd3 16-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "Bring action bar up to spec (E3)"
db66269662b9b106ed76f70270b6ce7774d230db 15-Jul-2016 Wenyi Wang <wenyiw@google.com> Bring action bar up to spec (E3)

* Now selection bar is in white.
* Show label name on action bar in edit mode.

Bug 29831679
Bug 30105429

Change-Id: I22ef1c98e4d8da1fbfc7a836ec584ffa0a9bcfc6
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/GroupMembersActivity.java
3bae6dba033e29518ea097b3456d734839408fb7 15-Jul-2016 Sean Liu <guanxiongliu@google.com> Merge "Adding circle ripple for X button"
f5103c608aa826ab901e582f4081398523571dc7 15-Jul-2016 Sean Liu <guanxiongliu@google.com> Merge "Using VectorDrawableCompat for svg to avoid crash on Lollipop"
8e56edfe8ac14879e40825cc10a73a9e2626803d 14-Jul-2016 guanxiongliu <guanxiongliu@google.com> Using VectorDrawableCompat for svg to avoid crash on Lollipop

Bug:30115017
Change-Id: I6031a2ddb8d2da779fb04afbf1bff59bba070ef2
ndroid/contacts/quickcontact/QuickContactActivity.java
ae94993429d2abb028c05ac02146f14aa09917fd 15-Jul-2016 guanxiongliu <guanxiongliu@google.com> Adding circle ripple for X button

Bug:29882904
Change-Id: Iab5f08a74dc59c3cb4f1c5624f432dd4cfdc8f32
ndroid/contacts/common/list/ContactListItemView.java
305dede05942b0ed125bb9ba27c049ded30df98b 15-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Bring action bar up to spec (E2)"
f5493a638ad3faa5183ab7d33872585bcd6e178d 11-Jul-2016 Wenyi Wang <wenyiw@google.com> Bring action bar up to spec (E2)

* Reorder delete, link and share and show icons.
* Replace check mark with "Add" TextView in multi select mode of
ContactSelectionActivity

Bug 29831679

Change-Id: I87988019d4fc59d674ae0cf13ce26a7d4ef27db3
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/GroupMemberPickerFragment.java
2b37503348095eb595b1e3dbde9e92cb1773279d 15-Jul-2016 Tingting Wang <tingtingw@google.com> Merge "Set delete button description for editor view without type."
cfa628c4006e6122a60fafa573a472474f886fe0 14-Jul-2016 Tingting Wang <tingtingw@google.com> Set delete button description for editor view without type.

Current logic only sets content description for:
1) editor view with type.
2) editor view without type but has text changed on TextFieldEditorView.
This cl will fix the bug to set description for editor view without type.

BUG 29162515
BUG 29162517

Change-Id: Ieea82f8c0f288894c819cfd12800d59e57d002c6
ndroid/contacts/editor/LabeledEditorView.java
f13cb2fd72f9fb5d4b07b84ce11c4584c6e5c10a 14-Jul-2016 Walter Jang <wjang@google.com> Prompts to "Add account" should add a google one (2/2)

* Also replace use of deprecated
FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET with
FLAG_ACTIVITY_NEW_DOCUMENT
* Switch ACTION_SYNC_SETTINGS for contacts
providers so the Settings activity says
"Accounts" instead of "Add Account"

Bug 29185471
Bug 30080351

Change-Id: Ibb5fee73021a4f2a11c3dd2241fcd92e2c93220d
ndroid/contacts/common/util/ImplicitIntentsUtil.java
5e19c23aaf658c7e050aa15971ac648f29f797f2 14-Jul-2016 Walter Jang <wjang@google.com> Prompts to "Add account" should add a google one (1/2)

Bug 30080351

Change-Id: I80eb9454f0fee0c730348bb81c5980835c1f077e
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/PeopleActivity.java
8bee30db12bb386f3a3ceacedc28b61171e7baff 14-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Add account icon image view and change style of list header"
1114fde42037be1cf83c577bbbc9eaaa5cb46369 12-Jul-2016 Wenyi Wang <wenyiw@google.com> Show count of contacts in account and group view

* Change contact list item height from 64dp to 56dp per b/29831679.
* Move name view in contact list item up by 2dp, per UX.
* Change the top padding to 8dp per b/29831679.

* Show the header in: account view, group member view and group member
picker view.
* Set top padding for list view only when there's no account header.
* Change action bar title to "From <account>" in account view.
* Override onScrollListener to hide and show header divider.

Bug 29190106
Bug 29831679

Change-Id: I36a2083c91b6b052bf887a8e7c639085d2bf4691
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
2cf389622f504115bc62d5a4380e95f1e3978c44 27-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge contacts src-N/ and src-pre-N/ dirs (1/3)

Bug 30124466

(cherry picked from commit 5289a29b88f436e6061c49e90fea8266437714ab)

Change-Id: I2ad91c9148132f80eca588cc0458ef6158bc37ac
ndroid/contacts/activities/PeopleActivity.java
804e5ceb3d900c725f3c25a72e992b4f97f60414 13-Jul-2016 Tingting Wang <tingtingw@google.com> Change description of delete button in group view.

BUG 30116136

Change-Id: Id463a738c661aafbe137fee4a43d006855896387
ndroid/contacts/common/list/ContactListItemView.java
88904e41f1e94830750f8351f1367c7e9814c420 13-Jul-2016 Yao Lu <yaolu@google.com> Merge "Add empty view for empty groups"
baf2622d70a51b14d91c5820c1badaf917a285fa 12-Jul-2016 Wenyi Wang <wenyiw@google.com> Add account icon image view and change style of list header

And move search hint to left per UX.

Bug 29831679
Bug 29190106

Change-Id: I3ea68bd953be5d81ffb90dd0733ef33eac93e4e1
ndroid/contacts/common/list/ContactListItemView.java
d8effeb5adf3fc9d81e552c41450400eb86076c7 29-Jun-2016 yaolu <yaolu@google.com> Add empty view for empty groups

Bug 28982874

Change-Id: I757651e3fd2897d65609ab233722160e0b267b01
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
4502d936525d1476ff24fb23fd458f2188beff74 12-Jul-2016 Tingting Wang <tingtingw@google.com> Hide section header if list is small and no starred.

BUG 28753662

Change-Id: I0642a2dad3c0aa17d29b7e7e71862f91e4b1a4e8
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
64a6bc4cf06044c44df38b66685d34ec5a3fcf61 08-Jul-2016 Wenyi Wang <wenyiw@google.com> Bring action bar up to spec (E1)

* Show title "Edit Label" when editing a label.
* Change "Label name" to "Label" in editor and in group name edit dialog.

Bug 29831679
Fixes 29981743

Change-Id: I4bbd1185045d902831b7dbefc381ef6fcb92cdf4
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/GroupMembersActivity.java
a45044c35e24d21c8f7d476970c005c084b37128 11-Jul-2016 Walter Jang <wjang@google.com> Merge "Group name edit input fixes"
92d68785b8a2e55fcd854f6196f9e9b8e2897cd3 10-Jul-2016 Walter Jang <wjang@google.com> Finish current group activity after creating new groups

Bug 30047708

Change-Id: I70aca1320dfb8a44d1a140d154a6f172ab438315
ndroid/contacts/ContactsDrawerActivity.java
76931b4654a42c6088496f4f0c18121016be8614 09-Jul-2016 Walter Jang <wjang@google.com> Group name edit input fixes

* Make the input open more consistently when
editing group names
* Close the keyboard when group name edit dialog
is dismissed via cancel button
* Allow spell check when editing the group name.
Also, set the same input type on the editor
group name dialog.

Bug 29536575
Bug 29537527

Change-Id: Icc12a5168dc7429274edd42c3f7da20e1c1a723a
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
13710d5d60ad9edd3aae73db3551065160645aa8 08-Jul-2016 Walter Jang <wjang@google.com> Move add group dialogs to base drawer activity

Bug 29537664

Change-Id: I678a5a7dbcb28eb5860fdb90f43d0b440af684e8
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMetadata.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/group/GroupUtil.java
1178a592b3d03a45f109b2e9c68209bcca644368 09-Jul-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Move writable Google accounts up and move default account at the top"
aa0e6ffbb780316a4e6e96e64085afb6e8679867 07-Jul-2016 Wenyi Wang <wenyiw@google.com> Move writable Google accounts up and move default account at the top

Design: http://b/28494094#comment24

Bug 28494094

Change-Id: I0e945ca76a47bfe423a85813dbf3b42b52cc0e25
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/util/AccountFilterUtil.java
33308f196d80a1fe491694e9a300e2e4220eb341 08-Jul-2016 Walter Jang <wjang@google.com> Merge "Added optional uses-feature telephony to enable tablet installs (2/3)"
0e723d937f3fc9a0bda2602d97d9fbeda7300d51 08-Jul-2016 Walter Jang <wjang@google.com> Added optional uses-feature telephony to enable tablet installs (1/3)

Also, just use the Manifest.permission constants directly in
QuickContactActivity instead of referencing them through
the Activity that asks the user for dessired permissions.

Bug 30000144

Change-Id: I56da60bf54cdf5118500e9717b0980425f02c467
ndroid/contacts/quickcontact/QuickContactActivity.java
bf6fcf92db9257f6698b80443d78767e1c9fd7cc 08-Jul-2016 Walter Jang <wjang@google.com> Added optional uses-feature telephony to enable tablet installs (2/3)

* Check for the telephony feature before asking for the permission.
* Also, stop asking for all permission, both required and desired,
when a required permission is missing. Now that this behavior is
gone we can also stop requiring RequestPermissionsActivityBase
instances to provide two differnt sets of permissions.

Bug 29874465
Bug 30000144

Change-Id: I44590e667f89eb217cc42cbb4ee186f3213509fa
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
8be7701cfd50ae29610e53417f44ea275312a557 08-Jul-2016 Walter Jang <wjang@google.com> Open the old add account Settings Activity

..that filters on contacts providers when
you click "Accounts" in the Contacts app settings.

Bug 29184035

Change-Id: I0c9c727b128d25e00661a77b743b8c91d32893b6
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
f99acf71bbe4875d6ce15025a8a743bc922e5069 07-Jul-2016 Sean Liu <guanxiongliu@google.com> Merge "Avoid leaking ServiceConnection"
cca57302692694dd4f7f836e40e1d881ff88063c 09-Jun-2016 guanxiongliu <guanxiongliu@google.com> Avoid leaking ServiceConnection

Service is connected in onCreate(), but not unbound in onDestroy().
Bug:28760730

Change-Id: I9a5a77e8b720975a3df6c113c83bbfa4ee342ae7
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/ShareVCardActivity.java
fb729464a3d105463d04a4b7e0eb407b40b006cc 07-Jul-2016 Tingting Wang <tingtingw@google.com> Merge "Change Accounts preference action in Settings."
5a5c2045d7b6cbcf168a03348fd812398ba7f1dc 06-Jul-2016 Tingting Wang <tingtingw@google.com> Change Accounts preference action in Settings.

Open the accounts activity in OS->Settings->Accounts.

BUG 29184035

Change-Id: I2bcd27eacaf96d3a0ac6b96ecf21621abe8fe319
ndroid/contacts/common/preference/AccountsPreferenceFragment.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
3a2fe3b2cab150db0dde8d3cd86e2e942a500438 06-Jul-2016 Wenyi Wang <wenyiw@google.com> Reset scroll position AFTER account filter is changed

Bug 29964994
Bug 29618694

Change-Id: Ic289e8e1e48ff70ae0f98cd2dc97c61c7dba298d
ndroid/contacts/activities/PeopleActivity.java
ff7476f1363c73d75bea9bf74cddedc7a75e92b0 06-Jul-2016 Wenyi Wang <wenyiw@google.com> Revert "Reset scroll position when account filter is changed"

This CL caused b/29964994.

This reverts commit 074ada153664cccc4b4baca7b43b0d7fa1764e66.

Change-Id: I32b41eb25cc574e3a0e2738936105bf74ba3551c
ndroid/contacts/activities/PeopleActivity.java
8d3c29aa459997b66b9ca0c2e83e03c4c8c0f307 06-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "Merge src-N/ and src-pre-N/ and target API 24 (1/3)"
ae5c3a08ddb90bc416779bedffec51235b16923d 27-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge src-N/ and src-pre-N/ and target API 24 (2/3)

Bug 29725318
Bug 29328819
Bug 29536552

Change-Id: I71720f5b63933c51aa2a3ecb325e0dccdb5bf33e
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/compat/CallSdkCompat.java
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/compat/DirectorySdkCompat.java
ndroid/contacts/common/compat/MetadataSyncEnabledCompat.java
ndroid/contacts/common/compat/MultiWindowCompat.java
ndroid/contacts/common/compat/PhoneAccountSdkCompat.java
ndroid/contacts/common/compat/PhoneLookupSdkCompat.java
ndroid/contacts/common/compat/TelecomManagerUtil.java
ndroid/contacts/common/compat/TelephonyManagerSdkCompat.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
0ac73ba01aa1f9fc9cc2cc23703cf6c24e40f488 06-Jul-2016 Tingting Wang <tingtingw@google.com> Show "Device" in account filter if no writable acounts.(2/2)

Also, hide read-only account if there is no contact for it.

BUG 29879881
BUG 28943577

Change-Id: Icc6250e3359f54b47e9c06826480f4fdd1c24ff9
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/util/AccountFilterUtil.java
2dc340cc4e7f553c433d07f5d231802d5a3bed25 06-Jul-2016 Tingting Wang <tingtingw@google.com> Show "Device" in account filter if no writable accounts. (1/2)

BUG 29879881

Change-Id: I62e70b0250866b0cfe21179b9bed2f3231192775
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
5289a29b88f436e6061c49e90fea8266437714ab 27-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge src-N/ and src-pre-N/ and target API 24 (1/3)

Bug 29725318
Bug 29328819
Bug 29536552

Change-Id: I21854806fbf5c9a6e0fff3d12702bfaa96e04b26
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/group/GroupUtil.java
cefb358910c1e25766fb46d90a0d2b56aa742364 01-Jul-2016 Tingting Wang <tingtingw@google.com> Merge "Move "Blocked numbers" to Settings."
170ed2f4a7a6400bb72ea7bb8a42838fd5e0f6e0 01-Jul-2016 Tingting Wang <tingtingw@google.com> Merge "Move "Blocked numbers" to better location."
a5b06ce36db878f2c056fce9bf68d3ca0dcda41b 01-Jul-2016 Tingting Wang <tingtingw@google.com> Move "Blocked numbers" to better location.

Delete it from lef nav.

BUG 29515648

Change-Id: I04d1311c0a240650f5df2a540f8ba386284dda6f
ndroid/contacts/ContactsDrawerActivity.java
2b5ea323ad579c1b3a76517c79af4c5a86f7b3dd 01-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "Better name for local account (2/2)"
48e108d6758c1fd88abafe2e436a2d163c7126d7 30-Jun-2016 Wenyi Wang <wenyiw@google.com> Better name for local account (2/2)

Bug 29882162

Change-Id: I437cee2819d1abb717bc97683ec35752e17d153a
ndroid/contacts/common/model/account/FallbackAccountType.java
efc467f909fccd601723c63a97b14b719c331f24 01-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "Reset scroll position when account filter is changed"
f5b12583188658d497ec5a2015682890fe171fdf 01-Jul-2016 Tingting Wang <tingtingw@google.com> Move "Blocked numbers" to Settings.

Add it between "import/export" and "about contacts".

BUG 29515648

Change-Id: Ia8b2ee83feb2113faf5654915d69534acd2e0831
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
541743ce471222a1eacf8a6366eebc0ee7c1e273 30-Jun-2016 Wenyi Wang <wenyiw@google.com> Better name for local account (1/2)

Bug 29882162

Change-Id: I046b81f62dec109c3502f84ee19eae008217ae98
ndroid/contacts/editor/EditorUiUtils.java
a52be703f64796e04ac2f440141c33d92c5c1206 01-Jul-2016 Tingting Wang <tingtingw@google.com> Merge "Add "Accounts" and "Add account" to Settings."
940f015a3b0e423eb29daf4dd1e15bee8341a12c 30-Jun-2016 Tingting Wang <tingtingw@google.com> Add "Accounts" and "Add account" to Settings.

BUG 29184035

Change-Id: I460b1f0d51d29895d86f60cda997e14c8ceee04e
ndroid/contacts/common/preference/AccountsPreferenceFragment.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
4d27a2396c7e2d1b32e791d6cbdff60c0cdd1e67 01-Jul-2016 Wenyi Wang <wenyiw@google.com> Merge "Pass group name to group activity"
074ada153664cccc4b4baca7b43b0d7fa1764e66 30-Jun-2016 Wenyi Wang <wenyiw@google.com> Reset scroll position when account filter is changed

Bug 29618694

Change-Id: Ie0b3b813b439726dc71da85ed01e4bf298bdce07
ndroid/contacts/activities/PeopleActivity.java
128f7d80d80bd3b476fc657dda3aa73b9d4015e0 30-Jun-2016 Wenyi Wang <wenyiw@google.com> Don't always show FAB after stopping search or selection

Bug 28505361
Bug 29905068

Change-Id: I4f32ac6db89032f39b50c1904dd1a7468dc56b0d
ndroid/contacts/activities/PeopleActivity.java
c37b86b5b6e43863c10fa60b32009e4e5507dae0 30-Jun-2016 Walter Jang <wjang@google.com> Merge "Remove strequent search experiment flags (1/2)"
8607705d53732bb046573697550d688855696335 30-Jun-2016 Wenyi Wang <wenyiw@google.com> Pass group name to group activity

Bug 29455543

Change-Id: I167b1232846d2d58312ef0ebba701e938d3ae275
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupUtil.java
90f625d82ac8dda60db97a323c7bf08214b2dd82 29-Jun-2016 Tingting Wang <tingtingw@google.com> Merge "Make delete action only triggered by delete button."
408b0231ea7401ca33a0e43bdcfcd4a2a6f803ff 29-Jun-2016 Tingting Wang <tingtingw@google.com> Make delete action only triggered by delete button.

Also change delete button layout to make its touch target bigger.

BUG 29764785

Change-Id: Ieeb83b5a34aa9dff39ae71917407efdb77dba345
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
4e2656fb3fee1c8f1e0885f7a154740851b722fc 29-Jun-2016 Tingting Wang <tingtingw@google.com> Make delete action only triggered by delete button.

BUG 29764785

Change-Id: I4c5f4c93aad081a7267231ce2e56c08bf573c9dc
ndroid/contacts/group/GroupMembersAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
c462653e7d753d8c5811be31e3f9658e56d7e336 21-Jun-2016 Walter Jang <wjang@google.com> Remove strequent search experiment flags (1/2)

Bug 28933685

Change-Id: I454013039332f70a198dba04560bf9570cafcea9
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/commonbind/experiments/Flags.java
f9289ecb726900ba838f122b4b7f5a3acb2e94a2 29-Jun-2016 Wenyi Wang <wenyiw@google.com> Make status bar transparent when activity is paused (rotated)

Previously, when drawer is open, we make status bar transparent;
then if screen is rotated, status bar will be opaque again. This
CL addresses this issue by making it transparent again on resume.

Bug 28891044

Change-Id: I0379275a544c3eab616c07c789d8ec0bc0a26550
ndroid/contacts/ContactsDrawerActivity.java
9746ad84589cc4c1012baaff2b01f92675eecc09 28-Jun-2016 Wenyi Wang <wenyiw@google.com> Truncate strings in menu item of NavigationView

Also:
* don't show "All contacts" header in main search mode
* remove some unused resources

Bug 28762946
Bug 28555607

Change-Id: I817433a18ac0cf1f9b5c48ea7cc5a9aaf7730012
ndroid/contacts/list/DefaultContactBrowseListFragment.java
5e46db32bcecb60bf343872a5675e809274a7224 28-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Wait until drawer closes before lauching activities (1/2)"
0c99a7685a653a2db779b5055a519c7c49ca6f08 28-Jun-2016 Tingting Wang <tingtingw@google.com> Merge "Hide directory header when searching on group view."
6f164197982b2eb29d9e3aa6e2a9cf8991d85c4c 28-Jun-2016 Tingting Wang <tingtingw@google.com> Merge "Add account header to label view."
6406adb14e9e711309c1ffbf62778cfdc095479e 28-Jun-2016 Tingting Wang <tingtingw@google.com> Add account header to label view.

Add the account that owns the group to:
1) the group members fragment (including edit mode)
and
2) the group member picker activity (including in search mode)

BUG 29766091

Change-Id: If476445ff0fe6e34e8213cffb993832eddc18b9a
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/GroupMemberPickerFragment.java
8e73c3694cf108cb19b279f0fdf6f5cc028f0579 24-Jun-2016 Wenyi Wang <wenyiw@google.com> Wait until drawer closes before lauching activities (1/2)

Also:
* set transparent status bar when drawer starts to move.
* move some logic to base activity so as to simplify logic.

Bug 29425259
Bug 28891044

Change-Id: I71cc84fcebac6e0eab840c83353279bdc197944d
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
3376835e9af9b2a7c04de4f7ea6bde63e5be3c23 28-Jun-2016 Tingting Wang <tingtingw@google.com> Hide directory header when searching on group view.

BUG 29766091

Change-Id: I818aab3ea6987dad983e6e7e2f52ef955c99e61a
ndroid/contacts/common/list/ContactEntryListFragment.java
76f649ba810cf9ab69fc017424a83c56572743d0 28-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Indicate selected menu item state in drawer (1/2)"
57c5576356777d8b2ac2b63da68c589a17212d0d 27-Jun-2016 Walter Jang <wjang@google.com> Fix group multi select done button visibilty after search

Bug 29768728
Bug 18641067

Change-Id: I62ff2b7db499a1c92d777b62ce5b47fafa03a7b2
ndroid/contacts/list/GroupMemberPickerFragment.java
cfba1b9d9e3b3d3b73d9ab8cce431c4601fd1fe1 27-Jun-2016 Walter Jang <wjang@google.com> Don't require default to be passed to get flags (1/3)

Change-Id: If9335120cb6c4a73dcd4ca04d45e1fed840b5559
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/commonbind/experiments/Flags.java
f8a5ab475ff9fa61e85744d91968aa1d0d0b5154 26-May-2016 Wenyi Wang <wenyiw@google.com> Indicate selected menu item state in drawer (1/2)

Bug 28754805

Change-Id: Ie3aa9bab80266515b49ab33d75be4b188b7eb954
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ec807e1cb7eb8f607b1dafa4475e7a30776ce538 27-Jun-2016 Walter Jang <wjang@google.com> Only show add contact to label button in edit mode

* Also disable long press to remove members in edit mode.
* And change the group member picker title to be "Select"

Bug 28707265
Bug 18641067

Change-Id: I0e5f31b675c143ca32165d5bf13dba3e2f5214d3
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersFragment.java
3095ae026ad96751100c47b985f8eeeb85eea5e0 27-Jun-2016 Wenyi Wang <wenyiw@google.com> Hide edit group button in selection mode

Bug 29757042

Change-Id: I867839d52f4aa22865654a6dc3c2974b98f4ff37
ndroid/contacts/activities/GroupMembersActivity.java
7e760f95aab82c2c9559ed264730b7cdd3af1e3d 25-Jun-2016 Tingting Wang <tingtingw@google.com> Merge "Fix bug on full editor note view."
38860a58d52eacbeb922412bbfc31905cdd8bdc1 25-Jun-2016 Wenyi Wang <wenyiw@google.com> Update section indexer in group member list

Fixes 29159876

Change-Id: I0fcb9435052d78fcc41de1f74594b6e49b68d7f6
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/list/GroupMemberPickerFragment.java
611c435f639caa7dc8aa15e4e8919b48bf34d287 25-Jun-2016 Tingting Wang <tingtingw@google.com> Fix bug on full editor note view.

ValuesDelta with empty ops should not be ignored, since
all empty editor will be process in UpdateEmptyEditors() method.

BUG 29506357

Change-Id: I734e9a104ceab17d80a113d84eae34f70ac72ac2
ndroid/contacts/editor/KindSectionView.java
9a6330e2282111d86fde2e16f4bc945026b1f50e 24-Jun-2016 Walter Jang <wjang@google.com> Update delete group member button image

Bug 28707265
Bug 18641067

Change-Id: Ie928317d5c57678c49738705262054bcb8c67f95
ndroid/contacts/common/list/ContactListItemView.java
fc699523efe08a921e41387041fac0417b2240f4 24-Jun-2016 Walter Jang <wjang@google.com> Merge "Add delete image view to ContactListItemView"
13d848c9b190d235ca8ced696780bc22f55914f7 24-Jun-2016 Walter Jang <wjang@google.com> Merge "Delete group members one by one in edit mode"
d0843dd46b413b2ac9217175bec4f16aec7f42bc 24-Jun-2016 Walter Jang <wjang@google.com> Use an ellipsis for unknown alpha index bucket

So that < N devices match N+ more closely

Bug 28245773

Change-Id: I0b74159c7fc99c3b52efb18e854956598fbb9a87
ndroid/contacts/common/list/ContactsSectionIndexer.java
05e7147f7caa202daf67172857d0dbe498833676 24-Jun-2016 Walter Jang <wjang@google.com> Delete group members one by one in edit mode

Also fixed toast message when group members
are removed by multiselect or the new
delete button in edit mode.

Bug 28707265
Bug 18641067

Change-Id: Ia3c8250b5116d07a798a2646fb6f98acee75f4c8
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
379ff853c8dddda2333c4015ca9b487a62713123 22-May-2016 Walter Jang <wjang@google.com> Add delete image view to ContactListItemView

Bug 28707265
Bug 18641067

Change-Id: I1b453bb0c5f8f38df2e8494a4242bc801d810651
ndroid/contacts/common/list/ContactListItemView.java
451e109e5d450e7d9b49d628b170aea3a869e154 24-Jun-2016 Tingting Wang <tingtingw@google.com> Disallow "rename label" for FFC groups.

BUG 29603525

Change-Id: I39a6407a1e1219ae3168a4f11afcdfbefebf132f
ndroid/contacts/activities/GroupMembersActivity.java
0ef05187bc9a6457b2e172ca869a475420efe115 24-Jun-2016 Walter Jang <wjang@google.com> Save group picker multi select state on rotates

Bug 18641067

Change-Id: I0ca2c505e23c9086c5efc0de4ae75b99a9718cec
ndroid/contacts/activities/ContactSelectionActivity.java
5af2a2e904d11360c68542ca79335f7b248b7518 24-Jun-2016 Walter Jang <wjang@google.com> Merge "Constrain group names to 40 chars on the editor"
756d36f7ba8606ba370002d136f0d4c39002f6c6 23-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Recalculate section header when filtering raw contacts"
a5cae5d3be2bc6abd1ab190c2e4df9068304649c 23-Jun-2016 Wenyi Wang <wenyiw@google.com> Add getter to get positions from indexer

Bug 29159876
Bug 18641067

Change-Id: I25358b87cea897adabdab0a4b15a0b3fa7f8ebd5
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactsSectionIndexer.java
104e93a224f2d22fc3c490b24fa3542920ab4ccd 23-Jun-2016 Wenyi Wang <wenyiw@google.com> Recalculate section header when filtering raw contacts

Bug 29159876
Bug 18641067

Change-Id: Ia4c1d0e1f562798675aa1e0e64833086e574f683
ndroid/contacts/list/GroupMemberPickerFragment.java
f1bb74d467ad2ef65de6365c9cbd6fcf37b5ff95 23-Jun-2016 Walter Jang <wjang@google.com> Constrain group names to 40 chars on the editor

Also, guard against previously created group
names that are > 40 chars on the add label dialog

Bug 29253677
Bug 18641067

Change-Id: I7a9a0d65b4f18eb7d392b9f3f771070b51b44371
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
acf7cefdcadd4fe6f7fc4c07c3f5c8b7f94c49a4 23-Jun-2016 TreeHugger Robot <treehugger-gerrit@google.com> Merge "Restore contact picker list when exiting search mode"
b236b7c8ecd881795f8fff06210c0e89bcb2e99e 23-Jun-2016 Wenyi Wang <wenyiw@google.com> Restore contact picker list when exiting search mode

Bug 29586400
Bug 18641067

Change-Id: I6fc6d16e9936487eb98bc0b75737cfcbf99375e5
ndroid/contacts/activities/ContactSelectionActivity.java
9434cd1bbc3e3f32f9d1e8a7a38ae9ed932f5f2f 23-Jun-2016 Walter Jang <wjang@google.com> Remove all raw contacts from group on GroupMembersActivity

Bug 29550107
Bug 18641067

Change-Id: I8c0d9e83acaf568a2b278e3be9c449f9c55cc7a7
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersAdapter.java
ae824fa00702957674270a37e1129971a15b075f 23-Jun-2016 Walter Jang <wjang@google.com> Merge "Add multiselect to contact picker"
a489721e65c5f549ab26272af08eb2d05a869976 22-Jun-2016 Walter Jang <wjang@google.com> Add multiselect to contact picker

Bug 29502243
Bug 18641067

Change-Id: If5e0c500de752f19589817773c0ee59eb2217da3
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/UiIntentActions.java
814d89cfa699507989cf3398855185235766599f 22-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Don't set fastScrollAlwaysVisible to true"
57a5e07b8eb293ee14bb15fd5f542919a4fcb2ad 20-Jun-2016 Wenyi Wang <wenyiw@google.com> Don't set fastScrollAlwaysVisible to true

And add an empty view in layout to prevent scroll bar showing
up on start.

Bug 28944480
Bug 28879507

Change-Id: Ib7d44702a4888b94acbf279262ad9fc5b82a6a36
ndroid/contacts/common/list/ContactEntryListFragment.java
37ad9fbba748664acfeaf058a36c221600aa62d5 21-Jun-2016 Tingting Wang <tingtingw@google.com> Always hide default account picker when one writable account.

BUG 25467864

Change-Id: I81fa329831a6cb3d7252702b8a68bb19ead22b85
ndroid/contacts/editor/ContactEditorUtils.java
1842e14286d2df2af98a62ca12e32c81e456c5a4 31-Mar-2016 Walter Jang <wjang@google.com> Remove display name search experiment (1/2)

Bug 28933685

Change-Id: I7e40a9e0215dc829dc28ebe4a24552305b864448
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
09bbebff1b730c8436a99f9bdf5e1820bc0fe836 21-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Use FAB to create a contact in a specific account"
303b9493d764dd9f16aa17501cfd9de3fc5c3fee 21-Jun-2016 Wenyi Wang <wenyiw@google.com> Use FAB to create a contact in a specific account

Bug 28495292

Change-Id: If1c05508c1f2d782f2ead0626874da840ac406d0
ndroid/contacts/activities/PeopleActivity.java
ed2267584ea7e3acf5b7fbcdf5f0a8cb765bb28b 17-Jun-2016 Wenyi Wang <wenyiw@google.com> Avoid showing "Contacts" title before group metadata is loaded.

Bug 29455543

Change-Id: Ia6866dfd036b4d33f3e9ae39c438943a4a6de6c2
ndroid/contacts/activities/GroupMembersActivity.java
debf9dae3b6c579f9f86980907b108302c61bc59 20-Jun-2016 Walter Jang <wjang@google.com> Add section headers back to group lists

Bug 29509309
Bug 18641067

Change-Id: I94a4ae9c9bc6f0df5f8f8e51c13dd2e9435d63cd
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/list/GroupMemberPickerFragment.java
90f2fe537afe593e95c1b9ed93ac62a90d9a959d 18-Jun-2016 Walter Jang <wjang@google.com> Rename GroupMembersList to GroupMembers

GroupMembersActivity doesn't host mulitple group
fragments anymore so we can shorten it.

Bug 18641067

Change-Id: Ie7f6b753fed87c256b7eac218361c756d9496a6f
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersAdapter.java
ndroid/contacts/group/GroupMembersFragment.java
ndroid/contacts/group/GroupMembersListAdapter.java
ndroid/contacts/group/GroupMembersListFragment.java
f7b513fe1dbea3eb0b2690b08ce29f13e61257a6 18-Jun-2016 Walter Jang <wjang@google.com> Merge "Show distinct group member aggregate contacts"
2552c11d827ed0d9af049aa21783e56ec2ab6872 17-Jun-2016 Walter Jang <wjang@google.com> Show distinct group member aggregate contacts

Bug 29455514
Bug 18641067

Change-Id: Icf5c24ab26177dd3b8d46750978fcabc486f9be4
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/group/GroupMetadata.java
ndroid/contacts/list/GroupMemberPickerFragment.java
4a526b294a76ce04cc0352e75d8b1d3337f5f16b 18-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Reload groups and filters when provider status changes"
cb117bd9a24d285e905d1a53791bc1a550f6d615 17-Jun-2016 Wenyi Wang <wenyiw@google.com> Reload groups and filters when provider status changes

And avoid showing "Create new..." when no group-writable accounts
are available.

Bug 29450322
Bug 28842403

Change-Id: Iac024b1a23e317930b6ac6ceaa175e50a2dd7d84
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/PeopleActivity.java
d89f89c870353709aaa0a917b2f9c8f892c39428 17-Jun-2016 Walter Jang <wjang@google.com> Bind list item group member section headers

Bug 29159876
Bug 18641067

Change-Id: I695f56740c4f0e662216fe1f9b6b0ffcabf51933
ndroid/contacts/group/GroupMembersListAdapter.java
8a8884bdec818053a0cc79c8cdbfeddbcb54791e 17-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Use correct container for group member fragment"
237c2287ff237b745c3b07081c913f4b91ee3396 17-Jun-2016 Walter Jang <wjang@google.com> Merge "Replace group members fragment with state loss"
c9559224a5c85b55c53d0c1b1ea96a1d71c3043b 17-Jun-2016 Wenyi Wang <wenyiw@google.com> Use correct container for group member fragment

Bug 29448865
Bug 18641067

Change-Id: I3ad27f5ce87f1151f6e9e32aa768e4ba495be25c
ndroid/contacts/activities/GroupMembersActivity.java
c5414218b5903d1bc133de6d637ac5624db7e5f9 17-Jun-2016 Walter Jang <wjang@google.com> Replace group members fragment with state loss

Bug 29251005
Bug 18641067

Change-Id: I3794ae49bad5233de8409421083632337e39d9ee
ndroid/contacts/activities/GroupMembersActivity.java
6ae9f162cc75948dd2323a762800c593721f3dc1 17-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Sort group metadata in a localized way"
9afaddec062bc1c9f3d7bb30992d70198fbe0840 17-Jun-2016 Wenyi Wang <wenyiw@google.com> Sort group metadata in a localized way

Bug 28936603
Bug 28946142

Change-Id: I1aa5a3bbcc9e53cfa67f5c12497eb95ff2114436
ndroid/contacts/GroupListLoader.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/group/GroupUtil.java
765630696a8c18890d5c1682f2ec10970900c4ca 17-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Use "+" icon for FAB"
8cd7c5c54f00a7be9cbed833b195c49f151a35e3 16-Jun-2016 Wenyi Wang <wenyiw@google.com> Use "+" icon for FAB

* Reuse the icon for creating a group.
* This change doesn't affect the FAB in Dialer.

Bug 28942847

Change-Id: I111f429c6bef7905c523725c51c5989481ec4538
ndroid/contacts/ContactsDrawerActivity.java
43ec18406902c8b1676c0a2a3716c96cce9f9085 16-Jun-2016 Walter Jang <wjang@google.com> Merge "Workaround AccountWithDataSet problems on work profiles"
6c5a5580c49db0e3cc5372beec82231e0aa76901 16-Jun-2016 Walter Jang <wjang@google.com> Workaround AccountWithDataSet problems on work profiles

Bug 29417435
Bug 18641067

Change-Id: I31084b0f69a8e56b88610afe6e18d6f01e6cabe9
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/UiIntentActions.java
29b56fc00a2d640513cdd09be515e95a00854917 16-Jun-2016 Wenyi Wang <wenyiw@google.com> Use a dash for no name contacts

Bug 28245773

Change-Id: Ibeaac23507a21b3ca4c7a806f2fa23f4471af0d4
ndroid/contacts/common/list/ContactsSectionIndexer.java
497226590fc8b8ec5164ee33f1ff9d6086d06c0e 16-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Use application context to avoid memory leak"
bb229241404466393bf97e908a871d1919241b55 26-May-2016 Wenyi Wang <wenyiw@google.com> Add hamburger menu to groups

Bug 28427279
Bug 28891044

Change-Id: Ib5c261ccac48342e5f5447b3042931bb778d62b5
ndroid/contacts/ContactsDrawerActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/compat/ProviderStatusCompat.java
ndroid/contacts/interactions/AccountFiltersFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/ProviderStatusWatcher.java
6f3dadc2b248dc9f087804c1c9c42ef1f927736c 16-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Hide FAB if the account is read-only"
08379b128b8ca537132fdbc777b527c1e3d234e8 15-Jun-2016 Walter Jang <wjang@google.com> Pick from aggregate contacts when adding to a group (2/2)

* Add a new group members filter type to the main
ContactListAdapater.

Bug 28707265
Bug 18641067

Change-Id: Ie035df3e31b03e11c410dc52a0f8b41de39b19f2
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
16c29591f6ca97ae621fe6dfc9bfb9fef150870d 15-Jun-2016 Walter Jang <wjang@google.com> Pick from aggregate contacts when adding to a group (1/2)

* Searching for new group members happens on the standard
contact seletion activity now so we remove the separate
search menu item and the old SuggestedMemberListAdapter
used by the autocomplete text view.
* When a new group member is selected, we add all the raw
contacts in the selected contact that are owned by the
group account owner to the group.
* Also use the same unknown name string "(No name)" on the
the new group member picker that is used on the other
contact lists.

Bug 28720761
Bug 28716004
Bug 28707265
Bug 18641067

Change-Id: I152bf1caf6652aa474f8f2915248ee19fb5fccf8
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersListAdapter.java
ndroid/contacts/group/Member.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/GroupMemberPickListAdapter.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/UiIntentActions.java
0cc64cde32b49f91dbace702d3c27f3a346b978f 15-Jun-2016 Walter Jang <wjang@google.com> Remove javadoc references to groups code in Contacts

Missed it in ag/1081863

Bug 18641067

Change-Id: I2d275b9e559f568c76c811bbb1319bf2b81d42b0
ndroid/contacts/common/list/ContactTileAdapter.java
b658a270d9b7528c71f099a606cbc2e5f6785c04 15-Jun-2016 Walter Jang <wjang@google.com> Remove unused code for the old group detail activity

Missed it in ag/1081863

Bug 18641067

Change-Id: I643e408fd15d96e3e43e3b77b73b43ab4f3c37fd
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/list/GroupMemberTileAdapter.java
2c0790a1c48de962c35b06d13de7731b77e6c273 14-Jun-2016 Wenyi Wang <wenyiw@google.com> Make group name edit dialog appcompat

Bug 29359799
Bug 29121773
Bug 18641067

Change-Id: I5c55fe5f3401a58a23186270e09df364368f50a2
ndroid/contacts/group/GroupNameEditDialogFragment.java
c134dda7e200f9da87fd710fec58f601044a7c8f 15-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Revert "Make group name edit dialog appcompat""
4a084e40dea1978f64f1dacf6a038af7c2402fd4 14-Jun-2016 Wenyi Wang <wenyiw@google.com> Revert "Make group name edit dialog appcompat"

This reverts commit 0c9a0617379cd9ab2649f87a67fad1a16a8e6874.

Change-Id: Ifb3165329435a8c2e7f59335a32c96467d3f0a97
ndroid/contacts/group/GroupNameEditDialogFragment.java
bf6933018122b3395a3f1395d78724100bc7df31 14-Jun-2016 Wenyi Wang <wenyiw@google.com> Hide FAB if the account is read-only

Bug 28505361

Change-Id: Ib19f8dfcea3d23bc480c450076cbd9aeffdd7452
ndroid/contacts/activities/PeopleActivity.java
4be1bea453eec162fe95ff124df16c39f17c96f8 13-Jun-2016 Gary Mai <garymai@google.com> Merge "Pass an edited result back from the editor if changes were made"
6bf22f5f573b24fa910af1a6a8ec9873ef29f081 11-Jun-2016 Xi Chen <samchen@google.com> Merge "No prompt is seen when new contact is saved"
250fc1699c72966a5118b9afd814ca2445628ae3 11-Jun-2016 Gary Mai <garymai@google.com> Pass an edited result back from the editor if changes were made

Bug: 28968298
Change-Id: I23658aad6012500535dc6e2ac5198376f0337c2e
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
378461ea75216f566236edb5970a84c6d4e62774 11-Jun-2016 Xi Chen <samchen@google.com> No prompt is seen when new contact is saved

If the default account is removed and added back, the app also
saves this account as the default account.

Bug 28878992

Change-Id: I6265502bf774a32387d3ca84b8ca393071b8f620
ndroid/contacts/editor/AccountsChangedBroadcastReceiver.java
912c5df10e978740a61361181d209b9e386ecc10 10-Jun-2016 Wenyi Wang <wenyiw@google.com> Remove string "Me Contact"

Bug 29272673

Change-Id: I796819b44598b4c2409dcd2ead11a3fd824d2733
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
14cb7fa673bee89ae93e512b496ae583f341dd94 10-Jun-2016 Wenyi Wang <wenyiw@google.com> Use application context to avoid memory leak

Also:
* Move ProviderStatusWatcher to ContactsCommon.
* Use ProviderStatusWatcher to get status directly in Settings.

Bug 28427279

Change-Id: I2d3b183cfd50f7ae8cdde23d2440031b2f2fc09f
ndroid/contacts/common/compat/ProviderStatusCompat.java
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/list/ProviderStatusWatcher.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
9a0aec277353f5a1ec9cf5cc5ceadd9b57d82926 08-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Get rid of invisible contacts from group member picker using Data Uri"
ea127e8ac300e952e50114b56302a34879f79dbc 08-Jun-2016 Gary Mai <garymai@google.com> Merge "Disable duplicates suggestions card in QuickContact"
ecc222b80e68bc3ebbced6e93b285dbef9dfff28 06-Jun-2016 Wenyi Wang <wenyiw@google.com> Get rid of invisible contacts from group member picker using Data Uri

Bug 29126479

Change-Id: Ia28eeccb15c789394bdbe8221a49f48dcaf96d50
ndroid/contacts/list/GroupMemberPickListAdapter.java
ndroid/contacts/list/GroupMemberPickerFragment.java
a163f404723cc2bc2f28c03647a3a9a146953e00 08-Jun-2016 Tingting Wang <tingtingw@google.com> Merge \\"Stop relying on BuildCompat to tell whether N+ devices.\\" into nyc-mr1-dev am: d9cbd8ae8e
am: a884a7a0bd

Change-Id: Ic9623013dff99e54be9a3688e96df2cce16ff03d
8a8b01c241bd4e2511c987f7f45461048a10ccfe 08-Jun-2016 Tingting Wang <tingtingw@google.com> Merge \"Stop relying on BuildCompat to tell whether N+ devices.\" into nyc-mr1-dev
am: d9cbd8ae8e

Change-Id: I0872751bf946d24f2d57f0ee92cce66dce7c957b
159b1c3c0194b4ee0c10355b74404457e51d7b3d 08-Jun-2016 Tingting Wang <tingtingw@google.com> Stop relying on BuildCompat to tell whether N+ devices.

BUG 29180192

Change-Id: If862a6e33f217c4bdb7ae98a440c63f30ac1e56f
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/compat/CompatUtils.java
d1d8a7a272155af7b6140ac542db63e55fadb431 07-Jun-2016 Gary Mai <garymai@google.com> Disable duplicates suggestions card in QuickContact

Bug: 29070494
Change-Id: If10bf260ee5f73de14962f4bfaf9a15425e165d7
ndroid/contacts/quickcontact/QuickContactActivity.java
52bccef315b7ad271de76817566d9dfafd2c6d37 07-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Check newly-created group rather than the last one"
21fd2aa95aff19c0eb4b069206c4324610e8603a 06-Jun-2016 Wenyi Wang <wenyiw@google.com> Sort favorites in main contact list

Bug 28790551

Change-Id: I982c78b711d2d108d90fc6bbbe434b39e780249c
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
a989bc7bdaa801372c7a03b27d8763b8c5c959e5 04-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Sort groups across accounts and hide empty FFC groups"
08fbeaa1405b327fbfb93fab93a0de6a210e91fc 04-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Make FILTER_TYPE_ALL_ACCOUNTS default"
55f6b0bb77bf1fcdda7d436e282cf6794ec8e7f1 04-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Don't persist filter other than FILTER_TYPE_ALL_ACCOUNTS"
3fafbb29c949ba998af2104451859ed81b06f663 03-Jun-2016 Wenyi Wang <wenyiw@google.com> Sort groups across accounts and hide empty FFC groups

Bug 28426020
Bug 28946142

Change-Id: Ic56fe75ae3e29daf0c7c3cd4875edb14de0c590b
ndroid/contacts/GroupListLoader.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupListItem.java
ndroid/contacts/group/GroupUtil.java
05f47b582446f420382a14f69681142296e4af0d 03-Jun-2016 Wenyi Wang <wenyiw@google.com> Check newly-created group rather than the last one

Bug 29055640

Change-Id: Id0534ea9f2a0f6f6b485a062fe6faadb15e0c124
ndroid/contacts/editor/GroupMembershipView.java
268d12506dcee6f757259ae27172daed440ba769 04-Jun-2016 Gary Mai <garymai@google.com> Merge "Return error for bad arguments from ContactSaveService"
31d572e245d49ad0f879bcedfe5d8c7670004873 03-Jun-2016 Gary Mai <garymai@google.com> Return error for bad arguments from ContactSaveService

Let the result receiver know when a request is bad.

Bug: 28968298
Change-Id: Ia28988f0e8ec407ca20c3cf9ba862170a14e0fda
ndroid/contacts/ContactSaveService.java
0c9a0617379cd9ab2649f87a67fad1a16a8e6874 03-Jun-2016 Wenyi Wang <wenyiw@google.com> Make group name edit dialog appcompat

Bug 29121773
Bug 18641067

Change-Id: If8e59ef691e1ff263e0fa5aee37667122c799757
ndroid/contacts/group/GroupNameEditDialogFragment.java
2e5a4041c4b563a71079b8846d64c23b4b364a92 03-Jun-2016 John Shao <johnshao@google.com> Stop sending GoogleAnalytics in Contacts

Remove AnalyticsUtil sendScreenView and getFriendlyName types
in ContactsCode since we only want to get screen events from clearcut.

Bug:28017432
Change-Id: I3de1179aef2d4c9a87ba7896ef054bc325503019
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/logging/ScreenEvent.java
1cfe9c62a71061caba6db5f070767fdb1a8a821c 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Don't persist filter other than FILTER_TYPE_ALL_ACCOUNTS

Bug 28882119
Bug 29056572

Change-Id: I02937efbf00529329996d7a807ef266b4ebe47fb
ndroid/contacts/common/util/AccountFilterUtil.java
40e79105d8491aecd73db4d302192770a75c1cb0 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Make FILTER_TYPE_ALL_ACCOUNTS default

* Use FILTER_TYPE_ALL_ACCOUNTS filter if the activity opens for the
first time (i.e. is not re-created).
* Don't persist filter other than FILTER_TYPE_ALL_ACCOUNTS.
* Handle back button behavior based on filter type: if type is not
FILTER_TYPE_ALL_ACCOUNTS, change filter to FILTER_TYPE_ALL_ACCOUNTS.

Bug 28882119
Bug 29056572

Change-Id: I93c86ab80aeb91ea18f125ee779a9642a40b49b0
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
1c3b5c20380feec007d045d2864993a2ce604d23 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove import/export from side nav"
92c3293ed1aa82b43142bac20e331ea399bdae02 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Merge "Move import/export to Settings"
808f0f93be668f785311033dd4b39bf4d14a74e9 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Get rid of CODENAME and use BuildCompat instead am: edbbd6d891 am: 2f0ccf664e
am: 616f536e34

* commit '616f536e34450e2a74510c2145d8228cd066d467':
Get rid of CODENAME and use BuildCompat instead

Change-Id: I1080374d6e5890834363232a00a6fd07af52858e
6e822e21fb592063a65c794441fd05c370e395dc 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Get rid of CODENAME and use BuildCompat instead am: edbbd6d891
am: 2f0ccf664e

* commit '2f0ccf664e1703add7dbbeae7c9fc835eaa87305':
Get rid of CODENAME and use BuildCompat instead

Change-Id: Ie1b1b9aebc040cf8ef69c0624915a63ee9dde0af
1edb5e4204097863ac0276a76c3026a3d83468d8 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Get rid of CODENAME and use BuildCompat instead
am: edbbd6d891

* commit 'edbbd6d89137a3addf82d121cb3d785fe3074889':
Get rid of CODENAME and use BuildCompat instead

Change-Id: If73e1085bfd040e6215a7cf345ad96145900744a
dc640be7249dd4c16512625746180b5519743554 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Get rid of CODENAME and use BuildCompat instead
am: edbbd6d891

* commit 'edbbd6d89137a3addf82d121cb3d785fe3074889':
Get rid of CODENAME and use BuildCompat instead

Change-Id: I8f14ae7f97f10b2878ac247d702f3faf3d0c0cf6
3512e96b7b89000b0b2ec8dc12eee8e5c6a9c8e0 02-Jun-2016 Wenyi Wang <wenyiw@google.com> Get rid of CODENAME and use BuildCompat instead

Bug 28954561

Change-Id: I5323833c42484e71a885c0bb2bc1ecf884e873b1
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/compat/CompatUtils.java
bad5daba871a7d2cf5bb93a24a9c205c5430ac92 28-May-2016 Wenyi Wang <wenyiw@google.com> Remove import/export from side nav

Also
* pass areContactsAvailable to Settings
* make ContactsPreferenceActivity singleTop so it won't
be opened multiple times.

Bug 28944076

Change-Id: I75b192cd05b3ed1f9647db945b6e254bdda6991f
ndroid/contacts/activities/PeopleActivity.java
138740111f128fe4983fafd76a235502e08d96b9 28-May-2016 Wenyi Wang <wenyiw@google.com> Move import/export to Settings

And improve the way of setting listener to fragment
by doing so in onAttach().

Bug 28944076

Change-Id: I3233902caba99830a311a5650b19132693c5a49a
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
52e76329dbf61ae5105f18d1f3f5e587434a2b73 31-May-2016 Wenyi Wang <wenyiw@google.com> Fix helper methods in contacts utils am: f0f6f3110f am: 2c6e956f8b
am: 8a1067c1b3

* commit '8a1067c1b3543459541e37fb742ad15c025372a3':
Fix helper methods in contacts utils

Change-Id: I30103b8e92bfc74c998274979e7e5b4a5ac7cbaf
42d645b64f47a17e1a49b141ae78e306665fad98 31-May-2016 Wenyi Wang <wenyiw@google.com> Fix helper methods in contacts utils am: f0f6f3110f
am: 2c6e956f8b

* commit '2c6e956f8b9543c2f9b68dcd0cec8d5a2f2b0d53':
Fix helper methods in contacts utils

Change-Id: I8aa0b9156561953f72bcf8c9f9eb850a50ccec13
e270975283033240609d8f566c842adf31b7b198 31-May-2016 Wenyi Wang <wenyiw@google.com> Fix helper methods in contacts utils
am: f0f6f3110f

* commit 'f0f6f3110faa155fe36d93fd521e3f94c9624bb9':
Fix helper methods in contacts utils

Change-Id: Ia89f1e3b2ec0b97fded0ae6c2d186d33fbdd9966
42c15133bd4f04a89465150c8df8f150a4f9f40a 31-May-2016 Wenyi Wang <wenyiw@google.com> Fix helper methods in contacts utils
am: f0f6f3110f

* commit 'f0f6f3110faa155fe36d93fd521e3f94c9624bb9':
Fix helper methods in contacts utils

Change-Id: Ic675c308f95c8387eb1cdeda23bc62cc2b892077
7256d34a434db3680a1bea6e21ebb56414d1b28e 31-May-2016 Wenyi Wang <wenyiw@google.com> Fix helper methods in contacts utils

Bug 28954561

Change-Id: I4af27b4f6c05eaad7a10a10a3f007d3792fc4803
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/compat/CompatUtils.java
c5681201a1ef4fe3768babd292946da7a086ebf9 31-May-2016 Wenyi Wang <wenyiw@google.com> Use targetSdkVersion 24 and remove startsWith("N") am: f9adef9d8c am: f8a4b03a7f
am: 405468b7ff

* commit '405468b7ff122c3bf149c63f89c5ead779024040':
Use targetSdkVersion 24 and remove startsWith("N")

Change-Id: I142172cb7c2396d98f9c198c616e097f75725131
daadd5b2bc253d7672ebab997bc9c043243c86ab 31-May-2016 Wenyi Wang <wenyiw@google.com> Use targetSdkVersion 24 and remove startsWith("N") am: f9adef9d8c
am: f8a4b03a7f

* commit 'f8a4b03a7f61bf5f7c44761418b77dbc9f6157c6':
Use targetSdkVersion 24 and remove startsWith("N")

Change-Id: I070e4450b430360d9b88b7f87e4a42d6bc6271d9
b8b19d7c1f3e87bbd6729aec8d7b06db9b14ea75 31-May-2016 Wenyi Wang <wenyiw@google.com> Use targetSdkVersion 24 and remove startsWith("N")
am: f9adef9d8c

* commit 'f9adef9d8c5d38501e4006917712c1338f26f220':
Use targetSdkVersion 24 and remove startsWith("N")

Change-Id: I3e4b4759fdfbf45d47cde1efdea9a7b61e7ea3fe
a8231e1c46a9d04b70ac224a2aa73e4344ad08e9 31-May-2016 Wenyi Wang <wenyiw@google.com> Use targetSdkVersion 24 and remove startsWith("N")
am: f9adef9d8c

* commit 'f9adef9d8c5d38501e4006917712c1338f26f220':
Use targetSdkVersion 24 and remove startsWith("N")

Change-Id: Ia04387083b23025906c425ee70a61cacb63cd579
281689f7b6e932e15f138645dbadd19d746e2740 30-May-2016 Wenyi Wang <wenyiw@google.com> Use quantitiy string for sharing contacts

Bug 28718104

Change-Id: Iea2d3fe05da75e5988e6ad5aace790fe064cf383
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
efb1cbe911840995f8e5a5744097ba4bed76d0ad 28-May-2016 Walter Jang <wjang@google.com> Improve scrolling on group member picker

Bug 28707265
Bug 18641067

Change-Id: I9f939c0ba804c1a0482b589126bb57dcb80d7fdf
ndroid/contacts/list/GroupMemberPickListAdapter.java
ndroid/contacts/list/GroupMemberPickerFragment.java
f9779ef9d0c74886b2c495f9e4993017f5192242 25-May-2016 Walter Jang <wjang@google.com> Add group member selection to ContentSelectionActivity (1/2)

* The GroupMemberPickListAdapter queries RawContacts to get
the list of potential group members
* The raw contact IDs of existing group members are passed
in to the pick fragment and these are filtered out of
results by a CursorWrapper.
* Since we can't get the contact photo ID and contact lookup
URI from the RawContacts query, these are also provided
by the CursorWrapper.
* Finally, we move the current search to add contact to group
functionality in place behind the ActionBar search icon,
moved to the overflow menu.

Bug 28707265
Bug 18641067

Change-Id: Ifde5446e8ce9c0ed27cd2f98fd704ca669c45f59
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersListAdapter.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/GroupMemberPickListAdapter.java
ndroid/contacts/list/GroupMemberPickerFragment.java
ndroid/contacts/list/UiIntentActions.java
cd923992c350c86f974533c59709875455982245 27-May-2016 Wenyi Wang <wenyiw@google.com> Use targetSdkVersion 24 and remove startsWith("N")

Bug 28954561

Change-Id: I318eed3f5723014c9dec4326ca9077aa4491d56b
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/compat/CompatUtils.java
d6f1be4d054fd3512971939cc5804c2f865e5559 27-May-2016 Gary Mai <garymai@google.com> Merge "Pass results from QuickContactActivity to calling activities"
5dde93f6c73cfc3ac362bbc1641b216dfe2b1add 26-May-2016 Walter Jang <wjang@google.com> Remove old groups browse, editor, and detail activities (1/3)

Bug 18641067

Change-Id: I51182dee9afa9c95f3ad0bffb5c6909a8ff37a95
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailDisplayUtils.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
72f9988a76fcc06e68b9ffa9fc9075b58fc7302f 26-May-2016 Walter Jang <wjang@google.com> Address various groups TODOs and small bug fixes

* Style the group name edit dialog with standard min
width style. Also restrict names to be a single
line and add a hint to the EditText. Finally,
bring up the keyboard when the dialog is first created.
* Change the "edit" group menu option name to "rename",
remove the icon, and keep it under the overflow.
* Sort groups consistently on the main list and contact
editor spinnner.
* Don't load deleted groups. We don't need to handle
deleted groups in the members loader because the metadata
loader omits them in the selection clause.
* Show a toast after deleting a group. Also don't prompt
for confirmation when deleting if the group is empty.
* Remove some unnecessary header binding in the group member
list adapter.

Bug 28955365
Bug 28936603
Bug 18641067

Change-Id: Icec1e1d3bbafb7e1e94a7e841860836d256177f1
ndroid/contacts/ContactSaveService.java
ndroid/contacts/GroupListLoader.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupMembersListAdapter.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/group/Member.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
189d175a1bf1b614a8fdaef7f8512cd21c29b9ca 26-May-2016 Walter Jang <wjang@google.com> Filter deleted groups in contact loader

Bug 28726757
Bug 18641067

Change-Id: If9a6aa3918b182adfd752b61fb4cc5a85bcecef2
ndroid/contacts/common/model/ContactLoader.java
0d76abcea3e2b5ef950870d4d5cf8685524ce23e 26-May-2016 Gary Mai <garymai@google.com> Pass results from QuickContactActivity to calling activities

If an edit or a deletion was made in the QuickContactActivity
through the ContactEditor, pass that result back to calling
activities so they know what happened.

Bug:28625960
Change-Id: I92a945282b41b33cc114f9d3c1203372f224d11a
ndroid/contacts/quickcontact/QuickContactActivity.java
c37e8b3abc336a7997690eddf9246cfe811356d2 26-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Align list item with hamburger menu and activity title (1/2)"
317e8d35a7ca52cf07ce5d0e5c63dce300477396 26-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Add list event clearcut logging (1/3)"
51b29a1bfc6257190e8a43bfb76819ca1373cf45 26-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Add list event clearcut logging (2/3)"
dbb4585867fe9b69e05d1721d0c145181569b088 25-May-2016 Sean Liu <guanxiongliu@google.com> Merge "Displaying pre-approval screen to explain why app asking for permissions"
77fd4c8a7949afc0d193ba2539a2d8cdaed146bf 25-May-2016 Sean Liu <guanxiongliu@google.com> Merge "Displaying pre-approval screen to explain why app asking for permissions"
b8b2fa3d33cf441015b9aaf7929b81a7bec8f7ad 24-May-2016 Wenyi Wang <wenyiw@google.com> Align list item with hamburger menu and activity title (1/2)

- Also change index color.
- Move index characters to right by 2dp, so that it's aligned
with hamburger menu.
- There are 4 items in ContactListItemView (indexer, photo,
name and checkbox), and previously we use
mGapBetweenImageAndText to control 3 gaps between them.
This CL starts to use mGapBetweenIndexerAndImage to control
the gap between indexer and photo, and it's smaller than the
other 2 gaps, so that avatar is aligned with activity title.
- Dimensions are also changed for small tablets (Nexus 7), to
align title with avatars. We don't need to worry about large
tablets since the avatars and title are not aligned anyway.

Screenshots: https://docs.google.com/a/google.com/drawings/d/1CI4vNoWNgEg-m2OVlMORtW4mrU3cGb4c64cE5zPGHYg/edit?usp=sharing

Bug 28880897
Bug 28246577

Change-Id: Ifbfb3fae7344596f82960dcdd8f4088b9a6e52c7
ndroid/contacts/common/list/ContactListItemView.java
2b943999c5f182d7bfc3e67976330d6a935bc1c7 21-May-2016 Wenyi Wang <wenyiw@google.com> Add list event clearcut logging (1/3)

- Update logging previous screen when QuickContact is opened.
- Log various list events.
- All actions are logged when finished.
- "Load" action is logged when load is finished and when account
filter is changed, so as to avoid unnecessary repeated logging.
- Some of the "/*...*/" comments are omitted if the variable
name is the same as the parameter name.

Bug 28718104

Change-Id: Ib59d8d40eb9e9d68b8ad418c1a83ffba1d7ef7de
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/OnContactBrowserActionListener.java
c9ad9b1d95e0d9486ca16c1f98e946b2c87b6292 21-May-2016 Wenyi Wang <wenyiw@google.com> Add list event clearcut logging (2/3)

- Add screen type for ME, account and group, to log where
QuickContact is opened.
- Compare absolute position in a list and number of favorites
in the list, to see if QuickContact is opened from favorites.
- Add mListType to the base list class ContactEntryListFragment
so that subclasses can get the type of the list.

Bug 28718104

Change-Id: Ie35ea14c37d26e5130c7c258b587eac22989e9e6
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/logging/ListEvent.java
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/logging/ScreenEvent.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
fdb68ec8425bc596bd3db9adb56b2645b146ed9a 18-May-2016 guanxiongliu <guanxiongliu@google.com> Displaying pre-approval screen to explain why app asking for permissions

Demo b/27130756 #14

Bug:27130756
Bug:27972828
Change-Id: I8dc3f5907d6c991106233f486a5c5e1c004e136f
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
44e91b166078423e270f210ae1efa0276a4826d0 22-May-2016 Walter Jang <wjang@google.com> Add insert, add a contact, and edit name to group activity

* Remove fragment pager and move metadata loading
back to the group members fragment since we're not
going to use the old edit fragment any more.
* Bind the autocomplete adapter in the main group
activity and add an add icon to the options menu
to search for new contacts.
* Add account selection to the main group activity
to supports inserts.
* Change the group name dialog added in ag/1040856
since it supports both adding and updating group
names now.
* Extract Member inner class from the edit fragment
since it is needed for the autocomplete view
and the edit fragment is going away.

Bug 28707265
Bug 18641067

Change-Id: I6b1326ee93dcb75198166e42272c44c983340e27
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/CreateGroupDialogFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/group/GroupMetadata.java
ndroid/contacts/group/GroupNameEditDialogFragment.java
ndroid/contacts/group/Member.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
ndroid/contacts/widget/NoSwipeViewPager.java
04a1936c4f1f9f414551047c68e7a344d22fddc1 18-May-2016 guanxiongliu <guanxiongliu@google.com> Displaying pre-approval screen to explain why app asking for permissions

Demo b/27130756 #14

Bug:27130756
Bug:27972828
Change-Id: I7f892ddcdfb41dfeb6c36491548d730ca5a10e2f
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
867ceebce80ce24e167d62b20fb3f7a232c2c1d7 23-May-2016 Walter Jang <wjang@google.com> Allow the select account dialog to have Activity Listeners

Bug 28707265
Bug 18641067

Change-Id: I387bcff08c7cd215d03c4923695e487be175fac7
ndroid/contacts/common/editor/SelectAccountDialogFragment.java
c8b91f4e660918bb87955ed43a4dee108fa76dc6 24-May-2016 John Shao <johnshao@google.com> Merge "Add clearcut logging to find duplicates assistant"
babaa7890217f1a123bd203bdffe3b4ac4dcf4e1 20-May-2016 John Shao <johnshao@google.com> Add clearcut logging to find duplicates assistant

Bug:28632952
Change-Id: I416c6c0ef7e2d8866ebcbed791745727f336d38e
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/logging/ScreenEvent.java
57f31e07d454d7b4690249966610f30f4cb55f29 21-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Move "Me Contact" into Settings"
3bb57143d0cde184078c6310fd43702ef868a717 21-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Pass data to ContactsPreferenceActivity"
68a0be7b757d3697053faba7eda4e02802c7460c 20-May-2016 Walter Jang <wjang@google.com> Move add contact to group autocomplete to the ActionBar (1/2)

Bug 28707265
Bug 18641067

Change-Id: Ibcaf95b5592bbb471d2ac42c7d2c84f19d77c379
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupEditorFragment.java
0680a31c87d083eca56ef6093de54bbb3b5c2d27 18-May-2016 Walter Jang <wjang@google.com> Incremental work on the group edit flow

* Extract group metadata class from members list fragment
* Move metadata loading up to the Activity so it can be
shared between the members list and editor fragments
* Move options menu creation in the members list fragment
up to the Activity and remove the obsolete members list
callbacks (also rename the members list callbacks
interface to "Listener" to match the rest of Contacts).
* Use a custom ViewPager that disabled swipes to move
between the members list and editor fragments (also added
a TODO to rename GroupMembersListActivity since it houses
the editor now too).
* Update the group editor fragment to have group metadata
passed in as an argument rather than loading it internally
since we need it for the group members list view and it's
already being loaded by the group members activity.

Bug 28707265
Bug 18641067

Change-Id: If662abd720533827e3e719fde4dd10cdfb1ba64e
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/group/GroupMetadata.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/widget/NoSwipeViewPager.java
a031344ffad8872885d50c3769e6a5a9602e5910 16-May-2016 Wenyi Wang <wenyiw@google.com> Move "Me Contact" into Settings

- Whatever happens today when you tap on the Me Contact, we
leave it as is.
- Move DefaultAccountPreference up per UX.

Bug 28541872

Change-Id: I7c8cbc62e5b162e392f7d34ba2c2acad969b62a9
ndroid/contacts/common/preference/AboutPreferenceFragment.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
9f44159297ab894564e4438cef904e522ee3e9f2 19-May-2016 Gary Mai <garymai@google.com> Merge "Implement undoing ContactSaveService join operation"
49223c53fd4d217e0d907c9cc15644af3eec2453 18-May-2016 Wenyi Wang <wenyiw@google.com> Pass data to ContactsPreferenceActivity

Bug 28541872

Change-Id: I6c2dc5a313c110ef6dd782d97093b99014aa693b
ndroid/contacts/activities/PeopleActivity.java
7efa9947476021bf0fe0a6fc0d819256a9f5afcd 12-May-2016 Gary Mai <garymai@google.com> Implement undoing ContactSaveService join operation

Add intent for splitting a newly joined contact into its previous
groupings of rawContactIds.
Join several contacts intent accepts a receiver, and will send it
the rawContactids of the contacts that were joined.

Bug:28622101
Change-Id: I748ab7b817396be4ad42d0094e0adab1cc7192ee
ndroid/contacts/ContactSaveService.java
6d2e73bf14d5193c4ebafe59fde51e043504b446 18-May-2016 Walter Jang <wjang@google.com> Merge "Multi select remove from group members list (1/2)"
8b8b30ced36120ce647052300cc290546bb4bd37 13-May-2016 Walter Jang <wjang@google.com> Multi select remove from group members list (1/2)

Bug 18641067

Change-Id: I8968ce992615e2b64ada7caa8b9ce7ea08ee0048
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/group/GroupMembersListAdapter.java
ndroid/contacts/group/GroupMembersListFragment.java
04b6351a7325d67504732fa8404a2dcded1bb282 18-May-2016 Walter Jang <wjang@google.com> Ignore case when sorting groups

Bug 28816351

Change-Id: I3e495c2df76abeba2b6fdbf9bbc7e73e4d01b591
ndroid/contacts/GroupMetaDataLoader.java
6375f530c104898b361df9de7b49bd93e60b37ae 12-May-2016 Walter Jang <wjang@google.com> Move MultiSelect classes up the list hierarchies (2/2)

Bug 18641067

Change-Id: I182e7a921bb50ef5b10ca3abc7c138a2a413cd37
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/MultiSelectEntryContactListAdapter.java
e9ea4f0f04919348ac3ad9d3338bdeca12922485 10-May-2016 Walter Jang <wjang@google.com> Move MultiSelect classes up the list hierarchies (1/2)

And have the GroupMembersListFragment extend the
MultiSelectContactsListFragment

Bug 18641067

Change-Id: I6773c4da89c744af8301b65f822cda07a18010de
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersListAdapter.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
9c1fa5db2caafc1d9e6f8ea23309a84a2c450143 17-May-2016 Walter Jang <wjang@google.com> Make the MulitSelect contact ID column configurable

* So that the MultiSelectAdapter can support different kinds of contact
lists (e.g. aggregate contacts or raw contacts).
* Also move utility method to convert a MultiSelected contact IDs TreeSet
into an array to the MultiSelectAdapter class since more than just
the PeopleActivity will need to do it when there are more MulitSelect
lists.

Bug 18641067

Change-Id: I136137b3f7d3c7a7faa0f381eb66d9648a46cf5c
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
59087d33d0a8066cbb4c704da647fce1cad4a7a9 17-May-2016 Walter Jang <wjang@google.com> Add ActionBarAdapter options to show home as up

Also remove show_home_icon value added in ag/121098
since we no longer have different values for it and
we have moved to a hamburger menu.

Bug 28427279
Bug 18641067

Change-Id: I543a93c74c6e77cc09abc3b4cd0cf683f088f6df
ndroid/contacts/activities/ActionBarAdapter.java
93317e3faf730643ff4e7b02da2a9c2460c28541 17-May-2016 Walter Jang <wjang@google.com> Sort group names alphabetically

Bug 28816351
Bug 18641067

Change-Id: Ic5449a2d187ef40d74146818f5f013e0ed44379d
ndroid/contacts/GroupMetaDataLoader.java
219a7eb5d39037c9e2d6436095d94d5c65dbf6ff 17-May-2016 Sean Liu <guanxiongliu@google.com> Merge "Checking number existence before dedupe"
dca235aa2b94dc8dc90a3424c50cbc98e7cf0798 17-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Hide favorties in account view and stop loading ME (2/2)"
8060de834daa84a19cbe6603eb66e4061d268ad2 17-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Hide favorties in account view and stop loading ME (1/2)"
aad30f55ab3dc6c2e2085b4b6bae149132ce9e77 12-May-2016 Wenyi Wang <wenyiw@google.com> Hide favorties in account view and stop loading ME (1/2)

Bug 28494082
Bug 28499410

Change-Id: I44964e5fb46e8f3244586dab60b9779380ac167f
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
f260c8c9988adbbfc77331615113d75639d4dda6 15-May-2016 Walter Jang <wjang@google.com> Added DialogFrament to get new group name

Bug 28707265
Bug 18641067

Change-Id: I987c36cc8db82e3f861bb2b62066940a8f2b0fe3
ndroid/contacts/group/CreateGroupDialogFragment.java
3ff368929ab80698851c515e122415486da4c285 16-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove divider above "Create new...""
d0b154af4d58f5306d25dded462bea2c86fcd429 13-May-2016 guanxiongliu <guanxiongliu@google.com> Checking number existence before dedupe

Fix the crash for the case when sip number exists but phone number doesn't
before pruning duplicates.

Bug:28750748
Change-Id: Ic0b7ecf41d2a2331ed36b49adc9c284683bcbe29
ndroid/contacts/interactions/CallLogInteractionsLoader.java
672b4620fc9f000e4d7f02dc1ad78185a8d7f1a5 13-May-2016 Wenyi Wang <wenyiw@google.com> Remove divider above "Create new..."

Including a string change.

Bug 28766827
Bug 28531155

Change-Id: Ib2d9e22045232751208a9b9136da8ab29e9a4ff4
ndroid/contacts/activities/PeopleActivity.java
be88bed5067d5892fcc4bf1844e925eeb654f0aa 13-May-2016 Wenyi Wang <wenyiw@google.com> Hide favorties in account view and stop loading ME (2/2)

Bug 28494082
Bug 28499410

Change-Id: I3f22cf4e4eff7745c0fee12c8b1fa0bbe9fbac1a
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/FavoritesAndContactsLoader.java
ndroid/contacts/common/list/ProfileAndContactsLoader.java
2882a5a07be0cc285d9996108d37d76fc2d27cc0 13-May-2016 Wenyi Wang <wenyiw@google.com> Revert "Add categories to Settings"

This reverts commit c9e277e3eb18cbb9c8e066a186ea2059ec5eb7cb.

Bug 28541872

Change-Id: Ia60e9ccf869db146dfea0746116ebf3b09215b9f
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
1985fb296c5f60933ee0bc8ed96958bfc17f24b3 12-May-2016 Wenyi Wang <wenyiw@google.com> Fix crash when app gets opened right after account is added

And add back a string that's deleted by mistake.

Bug 28746182

Change-Id: Ie53e611e2776ff32df9f8f713b9153b33222a79a
ndroid/contacts/activities/PeopleActivity.java
ed943d2d4b6c1625d55be73b50cafd1f179d69a3 12-May-2016 Wenyi Wang <wenyiw@google.com> Correct the way to count favorites

Bug 24938588

Change-Id: I78b3a59268e3491da2110322c0539b4f9ec8b769
ndroid/contacts/common/list/ContactListAdapter.java
cb650f0a744576482c5b8bfc2756b79623dd30a2 12-May-2016 Wenyi Wang <wenyiw@google.com> QuickContact for multi-window mode am: caf2619708
am: af7075c5fa

* commit 'af7075c5fa04dcb82c2fc7fb07ee9e312de258c5':
QuickContact for multi-window mode

Change-Id: I49c1a8ee31dfc796dbbf27f04aa343f1cb240495
70c983d795912c4eef932ff496d78cf428b95849 12-May-2016 Tony Mak <tonymak@google.com> Use normal directory content uri if it is shortcut mode am: c44de88c6b am: c0ddf1bd65
am: 7ab9ffba26

* commit '7ab9ffba26a30c86e450f2d1dff5a779fb837071':
Use normal directory content uri if it is shortcut mode

Change-Id: I3ecbcaeee8bb1cb51a6ec80f4fd277a44381293f
ef828854201575aef2954ba945e14b1be0cc848e 12-May-2016 Tony Mak <tonymak@google.com> Use normal directory content uri if it is shortcut mode am: c44de88c6b
am: c0ddf1bd65

* commit 'c0ddf1bd65219fe846f58dbfb2b77ed84467d0fc':
Use normal directory content uri if it is shortcut mode

Change-Id: I5a7a13c4b9083391069722d4da1a6eb497d6695b
ef13cc84c619673bba42ddabcf63fc700ece7fce 12-May-2016 Tony Mak <tonymak@google.com> Use normal directory content uri if it is shortcut mode
am: c44de88c6b

* commit 'c44de88c6b8180718f03d71b878d52d81a23ec1b':
Use normal directory content uri if it is shortcut mode

Change-Id: I8d5494a0c6acb21f955ebc050819acae382aab0b
866fc7532e30ca18a16b5246bd3d8deabe4974fe 12-May-2016 Tony Mak <tonymak@google.com> Use normal directory content uri if it is shortcut mode
am: c44de88c6b

* commit 'c44de88c6b8180718f03d71b878d52d81a23ec1b':
Use normal directory content uri if it is shortcut mode

Change-Id: I872afc15582abcc942397729fd03cc1572bacfc2
caf26197087343fdc18739e20e217236ff26831e 10-May-2016 Wenyi Wang <wenyiw@google.com> QuickContact for multi-window mode

Bug 27614994

Change-Id: Ifd875f3602b799c419c6c3b0bad4865e727a6d59
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
44819eb10b04548cd0b86bb5f24ee7124568e3c0 12-May-2016 Cody Thomas <codyt@google.com> Merge "Remove the confirmation dialog when linking duplicates via the overflow menu and quick contact."
cdc9ce00803ed0d78f779dc970ffeadaaa805fa0 12-May-2016 Walter Jang <wjang@google.com> Ignore case when sorting accounts

Bug 28494094

Change-Id: Ib7d3b174ffc5e81e1d0a73a4a8d4e1d005352ee5
ndroid/contacts/common/model/AccountTypeManager.java
f32dc990b2b5c1f743ce6d1520cc71e0fa573ebe 11-May-2016 Cody Thomas <codyt@google.com> Remove the confirmation dialog when linking duplicates via the overflow menu and quick contact.

Bug: 28621373
Change-Id: I0743dd4f81e034f3cd39c8f8da976a3850cc499a
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/JoinContactsDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
bbd0e7d3290f5eebb71f069e4444e3c241e893c8 12-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Make status bar transparent"
1a6ac91e80ad44d96fc99cc93dd1820811438856 11-May-2016 Wenyi Wang <wenyiw@google.com> Make status bar transparent

Bug 28245667

Change-Id: Ia1c47459d2eab659293584598ce4ae0b33fd14c5
ndroid/contacts/activities/PeopleActivity.java
4a68a11689bba4780e651fb41e6c5df7b854bbf4 10-May-2016 guanxiongliu <guanxiongliu@google.com> Getting rid of LOCATION permission usage

Detecting user's real time location is not that necessary to get
country code, since we're already using 3 other ways to get it.
By doing this we can get rid of LOCATION permission usage in Contacts
app.

Bug:28447600
Change-Id: I23fbdecf91f67d62c7489b28b412a664c8e138de
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/location/CountryDetector.java
ndroid/contacts/common/location/UpdateCountryService.java
02b2d9ee089a658355530bec40b99a466842ccc2 10-May-2016 Tony Mak <tonymak@google.com> Use normal directory content uri if it is shortcut mode

Bug: 28688099

Change-Id: Id9684df671ce24858d687b4f73c84127061ee1ab
ndroid/contacts/common/list/DirectoryListLoader.java
b31c71314a5278a0d552f1a61223f079c1add601 07-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Show account name in title bar and remove filter header"
9eb2678b85bafb67f451c649fb7756707278556c 07-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove account filter header from PhoneNumberPickerFragment"
9bb823451bbe82e67f8eb444bd89121a192350b8 04-May-2016 Wenyi Wang <wenyiw@google.com> Remove account filter header from PhoneNumberPickerFragment

Bug 28503355

Change-Id: I5d74aa8eae4d6a1f01cf66dadc6f93bef34e4732
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
ndroid/contacts/common/util/AccountFilterUtil.java
e2d0a4e4c93394d9dd7ece7d6c8c409cc4c5b097 07-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Explicitly enumerate permissions"
a052e2e1a06006a7ebb8c540f04ae8816f69646c 04-May-2016 Wenyi Wang <wenyiw@google.com> Show account name in title bar and remove filter header

1. This CL updates action bar title when filter is set.
2. The view with id account_filter_header_container is used
in 3 fragments:
DefaultContactBrowseListFragment.java
PhoneNumberPickerFragment.java
GroupMembersListFragment.java
These CLs remove its usages and it will only be used in
GroupMembersListFragment.java.
3. This CL also removes the SUBACTIVITY_ACCOUNT_FILTER as it
is not in use after AccountFilterActivity is removed.

Bug 28503355

Change-Id: I3458390eaf7f805bbd7c2d91b06dbf71918e6448
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
748449c5270e9d2e976727664b2279466f1abca8 07-May-2016 Walter Jang <wjang@google.com> Merge "Rename message xml drawable so it\'s found on ldpi (2/2)" into nyc-mr1-dev am: 2dde76f274
am: 9330c8cfdb

* commit '9330c8cfdb06ccdbd51b1afd30122139da866eb6':
Rename message xml drawable so it's found on ldpi (2/2)

Change-Id: Icbe7462eafc44ff4212ab520d7671de08084fbcd
a92cd0501603818dd2d50efabef7476e5f4c3c55 07-May-2016 Walter Jang <wjang@google.com> Rename message xml drawable so it\'s found on ldpi (1/2) am: 3133a53839
am: 88403ddc20

* commit '88403ddc2040ea032a6010eb2762cfa8022a6520':
Rename message xml drawable so it's found on ldpi (1/2)

Change-Id: I0e4c170dc13304fb1b44dd11f9e20554dc5d8223
b574d7abdf2fe346cd756d1537bfc3010bf181e0 07-May-2016 Walter Jang <wjang@google.com> Merge "Rename message xml drawable so it\'s found on ldpi (2/2)" into nyc-mr1-dev
am: 2dde76f274

* commit '2dde76f2741e7789f77cbdcce6e34403eeaacf2f':
Rename message xml drawable so it's found on ldpi (2/2)

Change-Id: Ie1ce2845b652da41b7cd0d3d498917ee0156cfcd
0d971a53077c8dd9bd681c775918d9d4625b31b9 07-May-2016 Walter Jang <wjang@google.com> Merge "Rename message xml drawable so it's found on ldpi (2/2)" into nyc-mr1-dev
71c7dbc4106f431390af59b3ca8f105aea0a5e57 04-May-2016 Wenyi Wang <wenyiw@google.com> Explicitly enumerate permissions

- We need to ask for every permission without assuming that having one
permission in the group means we have the rest.
- This CL has no impact on UX; it corrects the way Contacts app asks for
permissions and will prevent a potential problem on Android O release.

Reference: https://docs.google.com/a/google.com/spreadsheets/d/15CMBC8K1heIoLhwksrf2o14j-jmVyRSF5rbx8UIj3K8/edit?usp=sharing

Bug 28532268

Change-Id: I9327cfcaf02d9b6d54c116e1c09da4019557b9fe
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
68a72cbfaa12e70a9fd5fd2c3e93451a89336235 06-May-2016 Ricky Wai <rickywai@google.com> Merge "Fix enterprise contacts APIs naming and docs" into nyc-dev am: f3a7d7cce7 am: c12fe3cd4e
am: 8c06b4db45

* commit '8c06b4db4516015147598c393b53d7a2d7c6d884':
Fix enterprise contacts APIs naming and docs

Change-Id: I5b71389f48584b978f5f6aa6da795a0e3764ab08
0a67aea8e1a8b6dfc6240a487b65a7a494b58acb 06-May-2016 Tony Mak <tonymak@google.com> Merge "Fix enterprise contacts APIs naming and docs" into nyc-dev am: f3a7d7cce7
am: c12fe3cd4e

* commit 'c12fe3cd4e32afdf3722d763223abc97f5795752':
Fix enterprise contacts APIs naming and docs

Change-Id: I22153d69c18daf7b3343a1facd04cce353dfeedd
511396ce8e5c303473cc61122181e4e7943cb15a 06-May-2016 Ricky Wai <rickywai@google.com> Merge "Fix enterprise contacts APIs naming and docs" into nyc-dev
am: f3a7d7cce7

* commit 'f3a7d7cce730c9226841c5148bec2e79538a7096':
Fix enterprise contacts APIs naming and docs

Change-Id: Id0ac7eef7120eca1cced765caec27b8087268bad
fd1c413b2e9accd269655a57c6731160fc207755 06-May-2016 Ricky Wai <rickywai@google.com> Merge "Fix enterprise contacts APIs naming and docs" into nyc-dev
am: f3a7d7cce7

* commit 'f3a7d7cce730c9226841c5148bec2e79538a7096':
Fix enterprise contacts APIs naming and docs

Change-Id: Ic4f20d92d742dd950c42a7a9ae8c7570b8830e9b
3133a53839e56e297ca44e5b756db5b607599600 05-May-2016 Walter Jang <wjang@google.com> Rename message xml drawable so it's found on ldpi (1/2)

See ag/1010737 for a more detailed explanation.

In this half of the multi-project submit we just
use the new drawable name and remove the
redundant set of pngs (i.e. the same pngs are
also in ContactsCommon)

Bug 27047302

Change-Id: Ib87a91cd7cb9e2462d61161e93c482e299d13f4c
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
353570e838cceda1120f59067e123994c4a35ac6 05-May-2016 Walter Jang <wjang@google.com> Rename message xml drawable so it's found on ldpi (2/2)

The ic_message_24dp.xml drawable is not found on ldpi devices.

The difference between ic_message_24dp and other xml drawables
which name a png src in a bitmap element (in order to also set
the autoMirrored attribute) is that in other instances
(e.g. ic_search_video_call.xml and ic_person_add_tinted_24dp.xml)
the png that is referenced has a different name from the xml
drawable (ic_videocam.png and ic_person_add_24dp for the previous
two examples)

Bug 27047302

Change-Id: I32843ca750aed57cc7c2586fa18cb02fe26192ef
ndroid/contacts/common/list/ShortcutIntentBuilder.java
ndroid/contacts/common/model/account/BaseAccountType.java
352533594846336327f669bd451d6f42053ce87b 04-May-2016 Wenyi Wang <wenyiw@google.com> Merge "Replace "Groups" with "Labels" (1/2)"
5663f084f36d3a144dd7b339d7ba94a37ffcbf57 03-May-2016 Wenyi Wang <wenyiw@google.com> Replace "Groups" with "Labels" (1/2)

- Get rid of "group" in strings and comments
- Remove unused strings related to groups
- Replace ellipse with unicode &#8230;
- Get rid of old group icon and use label icon instead

Bug 28495297

Change-Id: If14f493b74505413f9e25ec98d774594730fbe11
ndroid/contacts/editor/EditorUiUtils.java
c7a4b9c2c76cb5a762db84677d01fb528da58ec3 01-May-2016 guanxiongliu <guanxiongliu@google.com> Loading Sip call interaction

Bug:25839064
Change-Id: I517b56af83d6652d9a8d0adc3bada40266b916d6
ndroid/contacts/interactions/CallLogInteractionsLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
466f7906ac2e5e99c5a048ae987ea546e4147c38 30-Apr-2016 Sean Liu <guanxiongliu@google.com> Merge "Replacing Download icon with Done icon when sharing/exporting contacts"
f600f07e239e2fd61341514aeb75fae952ded477 25-Apr-2016 Ricky Wai <rickywai@google.com> Fix enterprise contacts APIs naming and docs

Bug: 28295752
Change-Id: Ie6e9e82c7560a08c08ed730b68a4be17c7241a47
ndroid/contacts/common/compat/DirectoryCompat.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
22ec6352a684e1b001b7fc3d24fad04e6cb206af 26-Apr-2016 Tyler Gunn <tgunn@google.com> Fix contacts crash due to presence information. am: 531e93d
am: a6a184b

* commit 'a6a184b528f06d56ba4ce0dd886162c65786ebbc':
Fix contacts crash due to presence information.

Change-Id: Idfb6618768655aff5c90728512b56f25ac9ece5d
acbe491487c38dd7b664d0a29902dea1f75824a6 26-Apr-2016 Tyler Gunn <tgunn@google.com> Fix contacts crash due to presence information.
am: 531e93d

* commit '531e93dbb796c7f2adef5730556c677be4cb296e':
Fix contacts crash due to presence information.

Change-Id: I1f3cfbf2b851d7ce40bf904d08baf33c8c7c75b9
9000ed273f6ea655eb945943443ee2dba5c96d2f 25-Apr-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove AccountFilterActivity and its usage (ContactsCommon)"
1aa9d9f69e923f91e3e389c985af2aaeeeaaa8bc 23-Apr-2016 Wenyi Wang <wenyiw@google.com> Remove AccountFilterActivity and its usage (ContactsCommon)

Bug 27687799

Change-Id: I883aadb054baddd66707ea1b259dc654333832b2
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactListFilterView.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
ndroid/contacts/common/util/AccountFilterUtil.java
1fc8847aa6bef1b6ceb017870d3de90f5960757e 23-Apr-2016 Wenyi Wang <wenyiw@google.com> Remove AccountFilterActivity and its usage (Contacts)

Bug 27687799

Change-Id: Ic9ec92e088ccfcfeee797bc5fbd961142d066e9b
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
166962a7881f9bcaecbc1f8e5763a00c73eb3c30 25-Apr-2016 Tyler Gunn <tgunn@google.com> Fix contacts crash due to presence information.

It looks like the presence code must be nulling out the carrier presence
column, which is something the original presence code in Contacts did not
account for.

Adding appropriate null condition check and fallback.
Note: This will need to be cherry-picked into a more recent
ubcontacts branch to ensure the prebuilt contacts app is updated.
For now the AOSP Contacts app builds and works fine.

Bug: 28292990
Change-Id: I08cc54cc1e821c502b0801f692bd03d277b9cc46
ndroid/contacts/common/model/dataitem/DataItem.java
b297ad04ca1b58fdc8e87693a04d01189a21b571 17-Apr-2016 Wenyi Wang <wenyiw@google.com> Add categories to Settings

- Screenshots: https://screenshot.googleplex.com/M0THHitYLg6.png
- Use PreferenceCategory to show section title.
- When removing a preference programmatically, we need to remove it from
the PreferenceCategory it belongs to, rather than from
getPreferenceScreen().
- Also add category and title for "contacts metadata".
- Delete string "Manage accounts" that was not removed in ag/938570
- This CL doesn't affect Dialer.

Bug 27687799

Change-Id: Ifa664f6ba50b784e4d90ef87aef3f3e35e27b209
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
9cfe1afe32db6a632ec9f2346392bf1a9467332b 08-Apr-2016 Wenyi Wang <wenyiw@google.com> Show account filters in navigation drawer

- Remove the blue rectangle and use a white background of height 24dp.
- Navigation drawer design: https://docs.google.com/a/google.com/document/d/1oVptSYWa84CGt2mIQxmRObLVqopJUUilZxlARCJaiMs/edit?usp=sharing
- The external text "labels" corresponds to "groups" in code; the text
"Accounts" corresponds to "filters" in code.
- Avoid opening AccountFilterActivity from filter header.

Bug 27687799
Bug 28245667
Fixes 28245762
Fixes 28245372

Change-Id: I75efa2fca05a1c5b74051f43e342a61f937602a1
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/AccountFiltersFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
b3186761266b01a0df321cdac03186ebc70bff1d 18-Apr-2016 Wenyi Wang <wenyiw@google.com> Move FilterLoader to AccountFilterUtil and make it public

Load accounts only, getting rid of "all contacts" and "customize"
from results.

Bug 27687799

Change-Id: If71a2d13ed37b0a28b1ec65a630b45efa9f1072e
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/util/AccountFilterUtil.java
81163057087a872d4dd07b4149cc0edb0c9627da 17-Apr-2016 guanxiongliu <guanxiongliu@google.com> Replacing Download icon with Done icon when sharing/exporting contacts

Bug:27607646
Change-Id: I394ecff31c3f91f7119c11175f97db038f00036a
ndroid/contacts/common/vcard/NotificationImportExportListener.java
318b61d78a6ca87041431ade661c4f97e14e5140 08-Apr-2016 Wenyi Wang <wenyiw@google.com> Remove "Manage accounts" from PeopleActivity

The string "menu_accounts" is not in use any more, but it's
in ContactsCommon. I don't want to create a 2-line CL to
delete it, and will delete it when working on the next CL in
ContactsCommon.

Bug 27687799
Bug 28230930

Change-Id: I1e478e1e87068e69be94ca24408deee5d49acb30
ndroid/contacts/activities/PeopleActivity.java
c7fc53d236e7e4a37836a901582eca3c5a711cbc 08-Apr-2016 Wenyi Wang <wenyiw@google.com> Move 5 overflow menu items to hamburger menu

- basically get rid of the overflow menu in PeopleActivity
when not in selection mode (and when exporting database)
- put "settings" and "help & feedback" below groups
- hide group count per UX

We will then work on displaying account list in hamburger menu
and moving import/export to settings.

Bug 27687799

Change-Id: I2d65f78abaadc300263fdb6b4e7a72b24f36975b
ndroid/contacts/activities/PeopleActivity.java
47d5caa2acc17387375b1cd48c6df530ec3bb3c6 16-Apr-2016 Walter Jang <wjang@google.com> Update group editor styles and avatars for dogfood

* Use standard action bar w/ done button placement
matching that on the contact editor
* Replace group member QuickContactBadge avatar with
letter tile to match avatars in the main contacts
lists. Also put it on the left side.
* Make the name in each group member row clickable.
* Don't use a two panel screen in landscape any more.

Bug 18641067

Change-Id: Id45a6ceb0a138906078356fa71a72225add07ecf
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
2de3f0f70e11603646b46d328fe23c99b32ab4ac 16-Apr-2016 Wenyi Wang <wenyiw@google.com> Internal cleanup CL

This CL fixed a build warning:
nothing matches overlay file view_pager_tab_background.xml, for flavor v21

And it doesn't affect the look of Dialer and Contacts on LMP+.

Bug 27929147
Bug 25629359

Change-Id: I3a71957539b52339921a02c7421244f59018e5f9
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
aa968bb20d9098387e959da29b1ba854332d6556 16-Apr-2016 Wenyi Wang <wenyiw@google.com> Merge "Hide tabs in PeopleActivity"
f38cc851c2a38625be9cc719dd50f0699c9207b9 16-Apr-2016 John Shao <johnshao@google.com> Merge "Hook up link duplicates button"
60b621a1cb98e850f85e88887dac55d257f5007b 15-Apr-2016 John Shao <johnshao@google.com> Hook up link duplicates button

Bug: 27796451
Change-Id: I73b68e439eb5e8c3c7c030605a651e5e51c286af
ndroid/contacts/interactions/JoinContactsDialogFragment.java
eefdffa540a3ae93c010acc4ea05d9304ee7cd73 16-Apr-2016 Walter Jang <wjang@google.com> Quick fix for groups on LMP

Bug 28215702

Change-Id: I4c57fa312d132471ee2753e1f12279987d104a81
ndroid/contacts/group/GroupsFragment.java
46203dc874d142175d94c3c00ca75199a7d54d38 13-Apr-2016 Wenyi Wang <wenyiw@google.com> Hide tabs in PeopleActivity

- remove favorites tab from TabPagerAdapter
- make ViewPagerTabs gone in XML
- remove "clear frequent" option (and it's still available in Dialer)

Bug 24938588

Change-Id: Ia6397c21d3ad2ea77f57fc39114512bb60fc4ba8
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
f412a79d1eec46e8d80e7f1f454213f2e5a9d607 13-Apr-2016 Wenyi Wang <wenyiw@google.com> Show favorites in main contacts list

And remove unused resources

Bug 24938588

Change-Id: I9eee9382ff36047a6e40f0f3a42e48333373dd1e
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ProfileAndContactsLoader.java
46f9006c837b0fdc2794887e6b4c483f242e3e79 14-Apr-2016 Walter Jang <wjang@google.com> Load members count when members list is loaded

Instead of trying to pass it in.

Bug 18641067

Change-Id: I56c212b7b799185e638b0ad83931d1a934234a51
ndroid/contacts/GroupListLoader.java
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/group/GroupsFragment.java
36a963a6de1a12d9d43e0ee924b3ea5b5e8aa79d 13-Apr-2016 Walter Jang <wjang@google.com> Display group members in list instead of tiles

Bug 18641067

Change-Id: I7ea0dea10ec97173d02f8864ac44102ab247f975
ndroid/contacts/activities/GroupEditorActivity.java
ed454bbb0106a9829ff9c99657df678e46f00ccf 11-Apr-2016 Walter Jang <wjang@google.com> Add group members list activity name index

Bug 18641067

Change-Id: I0f0cdfd2e10b2142a8fa7952f0d2a20894199a95
ndroid/contacts/group/GroupMembersListAdapter.java
83cfa6c6cdb457dbe26bd94d05fe4ef9d55cc03f 13-Apr-2016 John Shao <johnshao@google.com> Merge "Move DuplicatesActivity to GContacts"
4f1cc00b86f99e24f09d14b5f16d51d1fbb36431 13-Apr-2016 Wenyi Wang <wenyiw@google.com> Use entrySet instead of keySet as a workaround to avoid NoSuchMethodException am: 7266520
am: 7c44543

* commit '7c4454334a35aca2809b85790f7f1e35a2af8e07':
Use entrySet instead of keySet as a workaround to avoid NoSuchMethodException

Change-Id: I5d02b4ae693d204f41942e9229b16575d591786d
c1e4898097434d6e7743d12528e582d41df15ef2 13-Apr-2016 Wenyi Wang <wenyiw@google.com> Use entrySet instead of keySet as a workaround to avoid NoSuchMethodException
am: 7266520

* commit '72665202f4b459b150f200aaddd9bd5097fa86ae':
Use entrySet instead of keySet as a workaround to avoid NoSuchMethodException

Change-Id: I9a9c496ec41c583a87a20e43ddaa4a3c9ce655e1
3991d45aa2065d2ecc8409aa93ac3b0a2f3158f1 12-Apr-2016 Wenyi Wang <wenyiw@google.com> Use entrySet instead of keySet as a workaround to avoid NoSuchMethodException

Fixes: 27815192

Change-Id: I6b6f3d9920614e80087d9bddf9091f748eaba4b9
ndroid/contacts/common/ContactPhotoManager.java
8756ea2be5238b45c5639c746120a385b3134f6f 07-Apr-2016 John Shao <johnshao@google.com> Move DuplicatesActivity to GContacts

Bug:27796451
Change-Id: Ib3a558af63f44e0f8b764f9f2836b1b353d3f729
ndroid/contacts/commonbind/ObjectFactory.java
b7a57dd4f86d963ff18e304c93232f9ace31a37a 07-Apr-2016 John Shao <johnshao@google.com> Move DuplicatesActivity to GContacts

Bug: 27796451
Change-Id: Ia6a7c6309f584d7cddb7546b766c5dc45b121f5a
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/JoinContactsDialogFragment.java
ndroid/contactsbind/Assistants.java
7b6bb0043357ca156924cdcd3f29180585dbae9e 11-Apr-2016 Wenyi Wang <wenyiw@google.com> Show favorites in main contact list (1/2)

Change-Id: I1e24c15f33588e6ea33a5d9961aa74236693e981
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactsRequest.java
25774d2e96b2c57d457dfead06776a6250ccfc84 08-Apr-2016 Wenyi Wang <wenyiw@google.com> Show favorites in main contact list (2/2)

Turn off showing favorites for now, until tabs are removed.

Tested various lists using the Contacts Test APK (AllIntentsActivity).

Also tested in the following cases:
1. search contacts
2. work profile
3. other system language (Chinese)
4. more than 10,000 contacts
5. Dialer

Change-Id: I28866f7cbe3310454e49695d5936a9071527b47c
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactsSectionIndexer.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/ProfileAndContactsLoader.java
32238a25a43e6581d371aaaf17879e972575e103 12-Apr-2016 Sean Liu <guanxiongliu@google.com> Merge "Deleting ConfirmAddDetailActivity"
be0dfd1cc9e3c9474fa07bd6eb53398637f41e0c 09-Apr-2016 guanxiongliu <guanxiongliu@google.com> Deleting ConfirmAddDetailActivity

We've moved to use full editor in all related scenarios

Bug:26941414
Change-Id: Id517e63bdf1422e28efaebfa2f429a88124a87fc
ndroid/contacts/activities/ConfirmAddDetailActivity.java
4715c04e95d59a06c90a9022eb80717e120f9f72 07-Apr-2016 Walter Jang <wjang@google.com> First pass on group members list activity

Still missing first letter index so we're
stilling using the legacy GroupDetailActivity.

Bug 18641067

Change-Id: Ia726460edbaaa28e4017f51b4e6e016c8c9010c7
ndroid/contacts/activities/GroupMembersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupMembersListAdapter.java
ndroid/contacts/group/GroupMembersListFragment.java
ndroid/contacts/group/GroupUtil.java
5feee39de4f49d626ed7806dacc1f17dbb3d7f17 07-Apr-2016 Walter Jang <wjang@google.com> Merge "Add a menu item to add new groups"
511b09052ebf0c8f4cc64e73746e5930be0c36a4 07-Apr-2016 John Shao <johnshao@google.com> Merge "Refactor JoinContactsDialogFragment for reuse"
9cddfaa1f2295a996a1e74ce4f9e881eec0a8371 06-Apr-2016 John Shao <johnshao@google.com> Refactor JoinContactsDialogFragment for reuse

Bug: 27796451

Change-Id: I30596cdd6df686d6ba82c31480dc9234eb52663b
ndroid/contacts/interactions/JoinContactsDialogFragment.java
cdbcd88e90e8e9283808ea57aa5d250227d02c97 03-Apr-2016 Walter Jang <wjang@google.com> Add a menu item to add new groups

Bug 18641067

Change-Id: I458f72a86cf02c0ed564c799dcf1a22880a429ba
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupUtil.java
758f56580b973894213569b61b1ae23b293071c2 05-Apr-2016 Walter Jang <wjang@google.com> Add groups to the side navigation bar

Just launch the old group details Activity for now.

Bug 18641067

Change-Id: I213c88213240d5281edfeda1bc5da9180506520b
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupUtil.java
ndroid/contacts/group/GroupsFragment.java
f568b30b5a4b009e10a8b97117f5c720bbfab43d 02-Apr-2016 Wenyi Wang <wenyiw@google.com> Add hamburger menu to PeopleActivity

1. This CL moves "settings" and "help & feedback" to hamburger menu.
2. Changes in people_activity.xml may be hard to read. We just wrap the
existing content of people_activity.xml with DrawerLayout and add a
NavigationView below it: https://paste.googleplex.com/6376771465248768
3. Screenshot https://goto.google.com/contacts-hamburger

Bug 27687799

Change-Id: Ia8ce3746cee9ad63689157dbe0b1ea81200bedf6
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
3c3b6f1dacf3844b3883a5e2bc67ad3480cfd08a 02-Apr-2016 Wenyi Wang <wenyiw@google.com> Make PeopleActivity extends AppCompatActivity (1/3)

This CL includes a subset of reversion of ag/871001.

This topic of CLs will lead to the following changes in APK sizes:

- GoogleContacts: 8.0MB --> 8.7MB
- GoogleContacts-N: 7.6MB --> 8.2MB

Bug 27687799

Change-Id: Id94598e42a5016badeafee3f4f0dc2a515fc68eb
ndroid/contacts/AppCompatContactsActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
e4e359ff7eee0f3fdae42a8a04a27c382912bf58 02-Apr-2016 Wenyi Wang <wenyiw@google.com> Make PeopleActivity extends AppCompatActivity (2/3)

This CL is a subset of reversion of ag/870899.

Bug 27687799

Change-Id: I04fa258035ea470b7400ede2e7fce983fb546df0
ndroid/contacts/common/activity/AppCompatTransactionSafeActivity.java
ndroid/contacts/common/list/ContactListItemView.java
78e7d7d05b2050a554b23a2580bdd3e787e6cdc7 01-Apr-2016 Walter Jang <wjang@google.com> DO NOT MERGE ANYWHERE Remove display name search experiment (1/2)
am: c7a1f35 -s ours

* commit 'c7a1f3500246db78e395fa07d87134f22e68f07a':
DO NOT MERGE ANYWHERE Remove display name search experiment (1/2)

Change-Id: Ib295dbe511717c3d4c1c8df9b442556b3c9215fa
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
6e450afa3c829b8e78ca067bc31cfeedf2850e6c 31-Mar-2016 Walter Jang <wjang@google.com> DO NOT MERGE ANYWHERE Remove display name search experiment (1/2)

Bug 27785615

Change-Id: I7e40a9e0215dc829dc28ebe4a24552305b864448
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
c73c88cd53418e60731ad88944a90a82f41d3bcd 30-Mar-2016 Walter Jang <wjang@google.com> Remove separate strequent query and use CP2 strequent ordering am: 27bac10
am: d5e45dc

* commit 'd5e45dcbaa7de302f165c82a85d3cc0df7e3da3a':
Remove separate strequent query and use CP2 strequent ordering

Change-Id: I549ac1bf5a00f1e32da5c94c97b7fa9bcbc7a166
5a8f91c0d9fa4ed8ca3196215a5cad32e682330c 30-Mar-2016 Walter Jang <wjang@google.com> Remove separate strequent query and use CP2 strequent ordering

Bug 27910170

Change-Id: I915835eb4bccbb90530412e70b44f633a74655d9
(cherry picked from commit 6b1e2166918970469d908d5f0562d0620a2d8197)
ndroid/contacts/common/list/DefaultContactListAdapter.java
cef642dcaee08f68135f137c45e5a7ef0b4a8a0e 30-Mar-2016 Tingting Wang <tingtingw@google.com> Merge "Using Proguard to shrink apk size." into nyc-dev am: 90e74a5
am: cc4c266

* commit 'cc4c266677cb21cde4c740ead849dcc8483fb1a3':
Using Proguard to shrink apk size.

Change-Id: I222644bff92ac575eae0d453cddc4182f7a34d29
90e74a539d92a59da8ea2994c91bac908e4ac7d4 30-Mar-2016 Tingting Wang <tingtingw@google.com> Merge "Using Proguard to shrink apk size." into nyc-dev
15226ee8bed938f64037f6b8f982cde524d549d5 30-Mar-2016 guanxiongliu <guanxiongliu@google.com> Merge "Using Intent display name to create shortcut" into nyc-dev am: 5bf5b17
am: 40ffd4a

* commit '40ffd4a60dafc600647fc6acdaedaffcd460cdf3':
Using Intent display name to create shortcut

Change-Id: Ifa91ad4928576bbd9cd59d6de7e5297ec9a995a1
5bf5b1762a31192d4dee513a46d7864327b65422 30-Mar-2016 Sean Liu <guanxiongliu@google.com> Merge "Using Intent display name to create shortcut" into nyc-dev
403d9feb0cc237177aea029a01b3be8cbee8ee15 30-Mar-2016 Wenyi Wang <wenyiw@google.com> Merge "Revert "Don\'t use file ID of the removed photo"" into nyc-dev am: 0488c3d
am: 5212764

* commit '52127644cd35df942c38d889a716e82615c44eb8':
Revert "Don't use file ID of the removed photo"

Change-Id: I2cf58b8464ba45887a07f06a2c6b36d881cd5e1b
0488c3d83099c4d82f5ddc41c045bc7b7833de29 30-Mar-2016 Wenyi Wang <wenyiw@google.com> Merge "Revert "Don't use file ID of the removed photo"" into nyc-dev
9deead63f39d6891385b29d8f76c07136d89699a 28-Mar-2016 Tingting Wang <tingtingw@google.com> Using Proguard to shrink apk size.

Contacts proguard.flags change, add keep class for tests.

BUG 27314641

Change-Id: I4a169e50602ebdcea197baa54f4f887a76acdeb5
(cherry picked from commit 6035674bd506f3c9bdb49c9ce271747d7eff229e)
ndroid/contacts/ContactsApplication.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/EditorUiUtils.java
ce8fc7ba2dadfaaf855b18003fb093042d6fe41c 28-Mar-2016 guanxiongliu <guanxiongliu@google.com> Using Intent display name to create shortcut

Bug:27837872
Change-Id: Ib1c410f77036514069136980ab23f85ec35e7ba8
(cherry picked from commit 3fb39c1d8dc81e6766ce8014416c956feff03f35)
ndroid/contacts/quickcontact/QuickContactActivity.java
5cb399f4d5422fb7f4f2c62e315075d3c823330e 30-Mar-2016 Walter Jang <wjang@google.com> Test for ProfileAndContactsLoader before taking experiment code paths am: 64ca930
am: 57f40d1

* commit '57f40d178d42e3695ee78bcf06047b45b608a7a6':
Test for ProfileAndContactsLoader before taking experiment code paths

Change-Id: Id667f3144c24c5e1f5c96ae31add1d159e9de44b
156f9074caf54dfb2b10abab6f09d166ff693dbe 26-Mar-2016 Walter Jang <wjang@google.com> Test for ProfileAndContactsLoader before taking experiment code paths

Bug 27858015

Change-Id: Ide9699d9e4e44379f8a9e4c97577122122dc8afe
ndroid/contacts/common/list/DefaultContactListAdapter.java
158283aa2871d13f0422086668eb8815e52cb2d1 29-Mar-2016 Wenyi Wang <wenyiw@google.com> Merge "Update content description after updating primary" into nyc-dev am: 4a39ecb
am: 955b059

* commit '955b059b23f8dbd57c69b02b633328ff822e9d75':
Update content description after updating primary

Change-Id: Id45f3d5365ee0597348eac58097397dc6284af5f
11cf6fda6ad74edc615612786fb7dc8af9bb6132 29-Mar-2016 Wenyi Wang <wenyiw@google.com> Merge "Clear span array and set only 1 span when phone number changed" into nyc-dev am: 4ca968b
am: 75ef37d

* commit '75ef37df52e032fb0975e1e8ea4d6f422b137616':
Clear span array and set only 1 span when phone number changed

Change-Id: I341973791676bae8cea1f8618edb9dfb565b9e74
cdd46e6c903d053da97022e5a471251c325edc5c 29-Mar-2016 Wenyi Wang <wenyiw@google.com> Add public compat method for addTtsSpan am: 4de7ace
am: 9a666e9

* commit '9a666e96a3721baab8b08ac057b19be1e75935e6':
Add public compat method for addTtsSpan

Change-Id: I19d362db9cb9d91cb83ce0d77b43ffc0e78c3537
4a39ecb7ac71e58d0a221d315f7f9d33ce6bfc2b 29-Mar-2016 Wenyi Wang <wenyiw@google.com> Merge "Update content description after updating primary" into nyc-dev
1d896225c06d079ea1f771ea0127248ebe1798e1 25-Mar-2016 Wenyi Wang <wenyiw@google.com> Clear span array and set only 1 span when phone number changed

Doc https://goto.google.com/b25324025

Bug 25324025

Change-Id: I40f228efd704e956976d74b2fd8123bf8cc3f770
(cherry picked from commit 0761a0cdbef8447ef108111243279c6b5a91c2e3)
ndroid/contacts/editor/TextFieldsEditorView.java
5e5fbab5d2309a0dd6cde4fe7ea6b23b0934382d 25-Mar-2016 Wenyi Wang <wenyiw@google.com> Add public compat method for addTtsSpan

Bug 25324025

Change-Id: I8547347afd626f51623c75a56d321b5ab5430343
(cherry picked from commit 3de7aa0f57f0ad7229e735f02478ce4397095be4)
ndroid/contacts/common/compat/PhoneNumberUtilsCompat.java
d375c35c89364aa101f11fa2c2f1270742d50f9b 29-Mar-2016 Wenyi Wang <wenyiw@google.com> Update content description after updating primary

Here's what went wrong: we set content description of photos in
CompactRawContactsEditorView.getPhotos() (see ag/834274) and then
we modify "primary" before entering photo picker (see ag/854600).

We need to update content description of photos after modifying
"primary" to reflect the change in which photo is checked.

Bug 27881948

Change-Id: Iad9723c9adbeaf8396fc46c578cc4a519d9ba85a
(cherry picked from commit 5a59c26c4e43fedcd449dfae97ea435f1ce885e3)
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
2a4848adcae11e3ee3d5483268d251cccc043e33 29-Mar-2016 Wenyi Wang <wenyiw@google.com> Revert "Don't use file ID of the removed photo"

This reverts commit a12ac6d6b376d5151d86a9d66c887a60fb604995.

Change-Id: I086396189653f5dd9f16ebd312d18631cae670d2
ndroid/contacts/editor/EditorUiUtils.java
a1e70030e3425844bf43944a5b6ab5623cf3b283 26-Mar-2016 Walter Jang <wjang@google.com> Merge "Guard against closed cursor in phone number picker" into nyc-dev am: 36e119f
am: e53e774

* commit 'e53e774ad2310e1b40ed3bcd1b10641e7fe4bca4':
Guard against closed cursor in phone number picker
f1b1596812498f8c5c0e545ae356a9dd312da08d 25-Mar-2016 Walter Jang <wjang@google.com> Guard against closed cursor in phone number picker

Bug 26926075

Change-Id: Ib60ef9ecd94cb016effc61598e8187a8f0365fb0
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
5cc774ad43c7beecb71773b23cf232c36190cbbf 22-Mar-2016 Walter Jang <wjang@google.com> Add overflow menu option to find duplicates

Bug 27796451

Change-Id: I2b31421b3007476e526eeb550b14cff3c3247d74
ndroid/contacts/activities/PeopleActivity.java
85827bdd37a9b22282e2711aac454999e7d534ec 22-Mar-2016 Walter Jang <wjang@google.com> Return null duplicates activity intent in AOSP object factory

Bug 27796451

Change-Id: Ib88c26f44cb30cb0a6ef499041f91feac40931b4
ndroid/contacts/commonbind/ObjectFactory.java
7494e913d7bc044319ff143c02a6b1c108f66dd0 17-Mar-2016 Wenyi Wang <wenyiw@google.com> Hide "Blocked numbers" when user is secondary user

Bug 27706005

Change-Id: I18a62b10e72d437f036b9248b3beb824e64218e9
ndroid/contacts/activities/PeopleActivity.java
647438369f2bb5168d707a5e1a293d9f18da3306 18-Mar-2016 Walter Jang <wjang@google.com> Use last time contacted in strequent experiment

Bug 27708220

Change-Id: I514134cd31e839fe4b2697e5d85af2a1dcc983cf
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
33ec69be94022257b513ad804b422014faa776fc 14-Mar-2016 Walter Jang <wjang@google.com> Add group data kind to fallback account type

Bug 25783889

Change-Id: Ie44e88f4426c3846001be13c0a4d650f463b0bdd
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/common/model/account/FallbackAccountType.java
da81d8892b6e348bbab4a790f65063231bb3af3b 14-Mar-2016 Walter Jang <wjang@google.com> Update ContactLoader Uri after adding an invisible contact (1/2)

Bug 23280122

Change-Id: Iddd77cdf816a7984c98710a6a7d760f48ada91e2
ndroid/contacts/common/model/ContactLoader.java
27a2fac74121796037b6727b3585d76042a2f340 14-Mar-2016 Walter Jang <wjang@google.com> Update ContactLoader Uri after adding an invisible contact (2/2)

Bug 23280122

Change-Id: I728e9586f709b105217b9a017ed6f0259de81798
ndroid/contacts/quickcontact/QuickContactActivity.java
4f715ff43b2b76157b018e6d91ec708de55dfcdb 10-Mar-2016 guanxiongliu <guanxiongliu@google.com> Modifying shortcut display names to be more descriptive

Bug:5480615
Change-Id: I9bdb052ce1702ea4c4ceb7df62599480bcd97b33
ndroid/contacts/common/list/ShortcutIntentBuilder.java
2656708f79bd3e93a88c295592798a0c5f2b62d4 09-Mar-2016 Tingting Wang <tingtingw@google.com> Merge "Shows a toast message if failed to open urls." into nyc-dev
cb185d4f3d3c124a07ac9c446a07d4f44a8c7540 09-Mar-2016 Walter Jang <wjang@google.com> Merge "Support all phenotype flag types (1/2)" into nyc-dev
5cb5ab1c031250817caf77b06cd7eff299e7fff3 08-Mar-2016 Walter Jang <wjang@google.com> Support all phenotype flag types (1/2)

Bug 26400050

Change-Id: Id9d0b3bd65769c74dfa17350807e23557fa0f724
ndroid/contacts/commonbind/experiments/Flags.java
87dabf129c79300090785eb08739af88692b1e07 08-Mar-2016 Tingting Wang <tingtingw@google.com> Shows a toast message if failed to open urls.

BUG 27537736

Change-Id: Idd50c908fee66c1a18095e3f7807643097f76728
ndroid/contacts/common/preference/AboutPreferenceFragment.java
469a70fea3ce1e24ea87df3d9e325e865d5bf07f 08-Mar-2016 Tingting Wang <tingtingw@google.com> Show phonetic name only when it doesn't equal display name.

BUG 27549690

Change-Id: I21022c4d7516668f217326aaa2f825ad1d8d7ec5
ndroid/contacts/quickcontact/QuickContactActivity.java
a07c90b6b07bfbd527dbf815d65b8ee0d28fbd6a 07-Mar-2016 Wenyi Wang <wenyiw@google.com> Revert "Hide keyboard on touching type spinner and show it after selection changed"

This reverts commit ce0413b7c8fc85a782c611c5b0b4fce1d6f40256.

Bug 25322155
Bug 27536072

Change-Id: I1667cdf9932381458f7168237d6f2b902063ee3f
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
c030f43136b9d520d1e5e0c881a6a29711911697 07-Mar-2016 Wenyi Wang <wenyiw@google.com> Merge "Switch to new API for managing blocked numbers (1/2)" into nyc-dev
8a2f9f651d6652d104b8023b7b61d9189f3d852c 03-Mar-2016 Qi Wang <wangqi@google.com> Remove span tags for talkback of contact names.

When search for contacts, the result will have highlight prefix which
will be read separately with other parts in talkback. By removing the
span tags the result name is ensured to be read as one piece.

Bug: 24309768
Change-Id: Ie98a111fdea453297c0f091a323c72bfb7a64701
ndroid/contacts/common/list/ContactListItemView.java
276990adcc91d4bd98c73d7edda0949033429f1b 02-Mar-2016 Wenyi Wang <wenyiw@google.com> Check if intent handler is available before starting VCardService

To avoid potential ActivityNotFoundException

Bug 27321432

Change-Id: I3aa40c535121acba4ecf4d907435375cb49aad25
ndroid/contacts/common/vcard/ExportVCardActivity.java
a26a57a6c1a3e2c81d58caf20314b2379bb47b33 03-Mar-2016 Wenyi Wang <wenyiw@google.com> Don't add phonetic name to about card again if using cached data

Bug 27459294

Change-Id: I250259aa1dbe332cdbb342cd20c1b8cc62d64bba
ndroid/contacts/quickcontact/QuickContactActivity.java
b81f6ebdc12f39cda46546de400f1044f3f5dea3 02-Mar-2016 Wenyi Wang <wenyiw@google.com> Make export vcf file names consistent

- Name the file in the same way as CP2
- Also add grant access to URI. There's no bug w/o it, but it's good practice
based on document here: http://developer.android.com/training/secure-file-sharing/share-file.html#GrantPermissions

Bug 27298727

Change-Id: I77ac08c6a0be30b7ebf90cd519c2b14f8aa8dd37
ndroid/contacts/common/vcard/ExportProcessor.java
ndroid/contacts/common/vcard/ShareVCardActivity.java
350030706b8b9de028c86c5a56d8e84ba3641812 02-Mar-2016 Wenyi Wang <wenyiw@google.com> Switch to new API for managing blocked numbers (1/2)

Bug 27419985

Change-Id: I12fcd79d670d91cb73627d42137c87d5696e4f4d
ndroid/contacts/activities/PeopleActivity.java
9ae480357316f2a2f5ec6e987f84c003e9757bda 01-Mar-2016 Sean Liu <guanxiongliu@google.com> Merge "Retaining focus on duplicate suggestion when double tapping" into nyc-dev
bcae18d136522e190d5074909e5b7148c00f0db8 26-Feb-2016 guanxiongliu <guanxiongliu@google.com> Retaining focus on duplicate suggestion when double tapping

Bug:25486150
Change-Id: Id50587f0500d70d0c5aa947529b0c330fffc99b0
ndroid/contacts/quickcontact/QuickContactActivity.java
1bb6c29245bbef5b8dd1c68607acf14aec639be6 29-Feb-2016 Walter Jang <wjang@google.com> Check for null extras before accessing previous screen extra

Bug 27389760
Bug 27341012
Bug 18388581

Change-Id: Ic1b4a98aa3d94c2fa29e25e9d3067affeee0cf21
ndroid/contacts/quickcontact/QuickContactActivity.java
6b77ccf09eae9168eca1bac61a6256a4a703649f 29-Feb-2016 Wenyi Wang <wenyiw@google.com> Update phonetic name in QuickContact only when it's changed

Avoid calling MultiShrinkScroller.initialize() every time when load finished.

Bug 27348939

Change-Id: I889adc9784ca9f4a1f521eca8bad0906787a1941
ndroid/contacts/widget/MultiShrinkScroller.java
8f2f74f4553a540e9f29425db69a79fd757f140a 27-Feb-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove CARRIER_PRESENCE from projection used on LMP" into nyc-dev
58dc5be2abeaada5c6ec3c46d33ddb79b71c1eec 27-Feb-2016 Walter Jang <wjang@google.com> Check for null extras in desired permissions activity

Bug 27389760
Bug 25935813

Change-Id: I400df3812a415d768ac94cc33ce69c29641dbb87
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
61f7d09085fef4cbc097879779dbe0047af13e6c 26-Feb-2016 Wenyi Wang <wenyiw@google.com> Remove CARRIER_PRESENCE from projection used on LMP

This CL is similar to ag/842538, providing different projections
on LMP and M+.

Bug 25629359
Bug 27379331

Change-Id: I8f28272ff0e8d1a906fc485e01f6faedaa66f0df
ndroid/contacts/common/list/PhoneNumberListAdapter.java
13d4dbce33992eb22c7800deb222aa065c488df0 25-Feb-2016 Walter Jang <wjang@google.com> Log where quick contact was opened from (2/3)

Bug 27341012
Bug 18388581

Change-Id: I2b01ae3e9e978b3953cff51feb7f91422f292158
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/logging/ScreenEvent.java
62a2074bb3b8dc66996e9fc6a8748b999ab2b51c 25-Feb-2016 Walter Jang <wjang@google.com> Log where quick contact was opened from (1/3)

Bug 27341012
Bug 18388581

Change-Id: I0628e9ad842ab64fc1bf6196500a64fddf465466
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
fc993d70f47adccb6b5c3157f827dd496a7c1115 24-Feb-2016 Walter Jang <wjang@google.com> Tweak display name search experiment queries

* Display name, phonetic name, and email queries should do
a prefix match.
* We should always try to match phone numbers and
also start matching right away (we were waiting until the
query looked like a phone number and also not doing both
email and phone queries at the same time).

Bug 26697731
Bug 27324941

Change-Id: Ifdd9a3995921ba1f562fda122cbd7d6a2f4a7737
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
82c9033a8f17470a335dd85936479669b50e5877 25-Feb-2016 Walter Jang <wjang@google.com> Don't log search events when not in search mode

Bug 26697731

Change-Id: I482f1b8c18196b9f4b51bde9db3203f0f4f1fb87
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
009d63c3d9c9dd372137c4954fb8562f5b132d60 19-Feb-2016 Wenyi Wang <wenyiw@google.com> Fix isAssertQuery in unit test on LMP

Also fixed the failures/errors related with fixing isAssertQuery

Bug 27244680
Bug 26818072
Bug 25629359

Change-Id: I0c3644c3e4b25f120a30c2227dab000c0546f697
ndroid/contacts/common/compat/CompatUtils.java
f46a619e0126f3a2fd6048b5d6a07fcf26c3b38a 19-Feb-2016 Wenyi Wang <wenyiw@google.com> Fix isInsert, isUpdate, isDelete in unit test on LMP

Using CPOWrapper and BuilderWrapper introduced by ag/828480

Bug 27244680
Bug 26818072
Bug 25629359

Change-Id: I0204122408aeed781e0ee81eff26581e1cc7c1ee
ndroid/contacts/common/compat/CompatUtils.java
13d38cc9d72edc060e16919d1fa1176e9323ff33 24-Feb-2016 Sean Liu <guanxiongliu@google.com> Merge "Adding speakable description for checkbox" into nyc-dev
69a2cb5ba8a877bff8b93752fb23d4a6a2e8f019 24-Feb-2016 Walter Jang <wjang@google.com> Vcard permissions activity must extend RequestPermissionsActivity

Bug 27324740

Change-Id: Ibbf890de7e9e5fba63c6a9f938392d4cf254aa94
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
dbab582b334f162ecb0200829d20e12f09b2e3f9 23-Feb-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove erroneous parameter to fix buildDiffWrapper" into nyc-dev
6473f8f5d1c1501613e30a1f0052072dffacc017 23-Feb-2016 Tony Mak <tonymak@google.com> Fix briefcase icon not displayed against Work contacts

Bug: 27097441
Change-Id: I2ce14fb1cf8f8950f7589e0523a9d2b9b9822825
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
dc5d1abacf74be6447510d0b8eecfae2ee966507 23-Feb-2016 Walter Jang <wjang@google.com> Revert "Fix briefcase icon not displayed against Work contacts"

This reverts commit 927c8c340b64bc2f45716bc48bf9d9045669448a.

Bug 27097441
Bug 27314746

Change-Id: I85028f908423bf4d4f23124567013a629bb7590f
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
7485319e74d9cbe216f3659d898e8cb1df622615 23-Feb-2016 Wenyi Wang <wenyiw@google.com> Remove erroneous parameter to fix buildDiffWrapper

In ag/828480, RawContactDelta.buildDiffWrapper() was created by copying
buildDiff() in the same class. The parameter "firstIndex" was copied by
mistake and has been removed in this CL.

Bug 25629359

Change-Id: Ibf6bd2414148b5cdcf4cf3002bc8d32daa234e31
ndroid/contacts/common/model/RawContactDelta.java
051315fadbb8e0cc57ee34701a590d07575003bb 23-Feb-2016 guanxiongliu <guanxiongliu@google.com> Adding speakable description for checkbox

Bug:27299806
Change-Id: Ic7eed4711648b23ffba4a2f6915dab320ef3fe5c
ndroid/contacts/quickcontact/QuickContactActivity.java
93ea72801e163af808ee7284c2f7744051f144e6 22-Feb-2016 Walter Jang <wjang@google.com> Revert "Revert "Add an activity to ask for optional permissions""

This reverts commit 8bb93a831595c082809554e09545ed1dcd437fa6.

Change-Id: I9feddfa024f229b3a42ae091cab12b09ac4e7f90
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
fecad2c2e2eb0b2c7ebc6a285b7d8bf4fe1f92d3 22-Feb-2016 Ricky Wai <rickywai@google.com> Merge "Fix briefcase icon not displayed against Work contacts" into nyc-dev
f62363701d76b1283edeb7305fc19249fc34899c 22-Feb-2016 Walter Jang <wjang@google.com> Revert "Revert "Ask for optional permissions when QuickContact opens""

This reverts commit d6bcb6f8724ba88ee99f6088098b0ce6455d1f93.

Change-Id: I1502a50e087999971ae26ca37beee2e1358bcc45
ndroid/contacts/quickcontact/QuickContactActivity.java
4b5b8081c8b46412133e6b971f1d830ab3e9ee38 22-Feb-2016 Walter Jang <wjang@google.com> Merge "Revert "Ask for optional permissions when QuickContact opens"" into nyc-dev
3d931ec1a634ebbcf981e3a8e1967d9721a7785a 22-Feb-2016 Walter Jang <wjang@google.com> Merge "Revert "Add an activity to ask for optional permissions"" into nyc-dev
a4da65258fe1e9fa0c15c3b24d748c7adbca5eeb 22-Feb-2016 Walter Jang <wjang@google.com> Revert "Add an activity to ask for optional permissions"

This reverts commit 79c777d9ee31106534961ecd9bc15f1ae40deb0f.

Change-Id: I3287f9400e8606b657dec712a07c55240b9a56a4
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
d6bcb6f8724ba88ee99f6088098b0ce6455d1f93 22-Feb-2016 Walter Jang <wjang@google.com> Revert "Ask for optional permissions when QuickContact opens"

This reverts commit a5dc1f35bf16d54db9861953b3c172180951a138.

Change-Id: I71ef2cb53ec6bd3c4549beb1ff13ac7ad6751d45
ndroid/contacts/quickcontact/QuickContactActivity.java
411a1baa424ce0473ca0c60dee7142bcfadbc7ad 22-Feb-2016 Sailesh Nepal <sail@google.com> Merge "Add gradle build file for ContactsCommon" into nyc-dev
b4a522e02a4ffa0bb6b8ea6d0acffa0a7f72e9b7 21-Feb-2016 Sailesh Nepal <sail@google.com> Add gradle build file for ContactsCommon

Note, because the code now builds as a library project, resource IDs
are no longer final. This means that they can't be used inside switch
statements. Fix was to change everything to if statements.

Bug: 26676586
Change-Id: Ia4bee80783ab6b6f34c9b19e78f3b475dbea00b0
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/vcard/CancelActivity.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/SelectAccountActivity.java
d257289455273fa8390cb9d1e4a03fd1a47e2f02 22-Feb-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove AppCompat library from Contacts (1/3)" into nyc-dev
d2a7b832139f292610a10aa5b50c4885a0edc6de 22-Feb-2016 Wenyi Wang <wenyiw@google.com> Merge "Remove AppCompat library from Contacts (2/3)" into nyc-dev
e718938e2c51f34966a10ad6c03d08a2b5c651f8 17-Feb-2016 guanxiongliu <guanxiongliu@google.com> Add an activity to ask for optional permissions

Bug 25935813
Bug 25839064

Change-Id: I5f1b88ae01e0557388bac451d15beee189a0d680
ndroid/contacts/common/activity/RequestDesiredPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
a5dc1f35bf16d54db9861953b3c172180951a138 17-Feb-2016 guanxiongliu <guanxiongliu@google.com> Ask for optional permissions when QuickContact opens

Bug 25935813
Bug 25839064

Change-Id: I155ea3f7029219a2050484bda644873f3f1ed7cf
ndroid/contacts/quickcontact/QuickContactActivity.java
bf96dd1b542c7aa5bf5e97903b22dbd2cbe2a316 21-Feb-2016 Wenyi Wang <wenyiw@google.com> Remove AppCompat library from Contacts (1/3)

This will reduce size of GoogleContacts-N.apk by 0.7 MB (8.4 MB --> 7.7 MB)

* CL was prepared by running the following:

git revert --no-commit e7fd1ad19023a0b79b232462bcb988676c605b9a # https://googleplex-android-review.git.corp.google.com/#/c/841451/
git revert --no-commit 3d53e233beb1742d3274fb27576d4d1420e4aac2 # https://googleplex-android-review.git.corp.google.com/#/c/841473/
git revert --no-commit 903fbfc4fb63ceaccddb722217a5d5e9d80f88b3 # https://googleplex-android-review.git.corp.google.com/#/c/839578/

Also:
- added import view.Window back to PeopleActivity;
- removed an AppCompat style

Bug 27257097

Change-Id: I21653376c78ef0a435f90b565b6c40dd5b747317
ndroid/contacts/AppCompatContactsActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
1ba9d8a8d7b17fafb7fdfff3f913c2ab205a83c8 21-Feb-2016 Wenyi Wang <wenyiw@google.com> Remove AppCompat library from Contacts (2/3)

* CL was prepared by running the following:

git revert --no-commit 52c1a302f933cf14b93e7a5e14426eec44d67953 # https://googleplex-android-review.git.corp.google.com/#/c/842208/
git revert --no-commit 6497a0d3a9cf5f0dafb04a4b5192996c8840afc3 # https://googleplex-android-review.git.corp.google.com/#/c/841415/
git revert --no-commit 3630a43f51abaf302e02def9ed16f95c8b121423 # https://googleplex-android-review.git.corp.google.com/#/c/839681/

Also:
didn't revert the changes in java source file of ag/842208 because
it fixed a bug on tablet (see the decription in https://googleplex-android-review.git.corp.google.com/#/c/842208/)

Bug 27257097

Change-Id: I43a78c915fa18db72d4ff7f03832b0cbf1acd5c0
ndroid/contacts/common/activity/AppCompatTransactionSafeActivity.java
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/widget/FloatingActionButtonController.java
82bf3ac2995f6f931b247ebbfe62999f2ddf1377 21-Feb-2016 Wenyi Wang <wenyiw@google.com> Merge "Stop settings and license activity extending AppCompatActivity" into nyc-dev
13103cd05bf911a496fccdf84e5ea6eb0be87910 20-Feb-2016 Walter Jang <wjang@google.com> Don't auto format phone numbers when editor opens

The new behavior was introduced in ag/856515 to fix b/26754145

This causes contacts with phone numbers that do not have
the standard formatting to show as changed when the editor
is opened as then closed even when the user makes no edits.

Bug 26754145
Bug 27247065

Change-Id: I9ff8443844dd5d419df5c50e3664b382edbec045
ndroid/contacts/editor/TextFieldsEditorView.java
329f42794a658ec3f2addb6464ddb16115bf0ad7 17-Feb-2016 Sailesh Nepal <sail@google.com> ContactsCommon: Fix duplicate strings

This CL fixes duplicate string resource errors I got when migrating
ContactsCommon from make to gradle.

It looks like the root cause of the error is the use of
product="tablet" and product="nosdcard". As far as I can tell this
approach for resources only works for bundled apps.

Here were the duplicate resources and their resolution:
- account_phone - moved to values-sw600dp/strings.xml
- fail_reason_too_many_vcard - deleted, used in ExportVCardActivity
but that code was also unused
- composer_has_no_exportable_contact - moved to
values-sw600dp/strings.xml
- import_failure_no_vcard_file - deleted, unused
- scanning_sdcard_failed_message - deleted, unused

Bug: 26676586
Change-Id: I2a95c269215bee381ad95aa2f4fbb28c2d43d8fa
ndroid/contacts/common/vcard/ExportVCardActivity.java
77964254357ccacf277ac4734367ab5d43c26930 20-Feb-2016 Wenyi Wang <wenyiw@google.com> Stop settings and license activity extending AppCompatActivity

Also, removed AppCompatPreferenceActivity from ContactsCommon,
and added it back to Dialer via ag/870703.

Bug 27257097

Change-Id: I4a3ee06bad5d5f3c3649676f56d076f5b0ab5e81
ndroid/contacts/common/activity/AppCompatPreferenceActivity.java
ndroid/contacts/common/activity/LicenseActivity.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
f8c8ac348cf217766a6626a5b7191a0de11f06d3 20-Feb-2016 Walter Jang <wjang@google.com> Revert "Don't pass read-only portions of RawContactDeltaList to contact save service"

This reverts commit e5bac73a8b241a43143e5780c07597cd6fa9230f.

Revert "Don't prune read only contacts in SaveService for joins and splits"

This reverts commit I717717a3c8b55315dcf3dde026af4c267f62e709.

Bug 27108237
Bug 27250533
Bug 23896510

Change-Id: If52f514c01f0d346fddc4083c710b7147761dd7d
ndroid/contacts/ContactSaveService.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
b320c749d0f020cf4c90713f5d3ebc56dff10f1f 20-Feb-2016 Walter Jang <wjang@google.com> Merge "Don't prune read only contacts in SaveService for joins and splits" into nyc-dev
0ae4a9330924726e3e06f9de96e81566e4fea635 20-Feb-2016 Walter Jang <wjang@google.com> Don't prune read only contacts in SaveService for joins and splits

Bug 27108237

Change-Id: I717717a3c8b55315dcf3dde026af4c267f62e709
ndroid/contacts/ContactSaveService.java
6c5748adb79ad03f8688a331e0efb527d7be320d 19-Feb-2016 Wenyi Wang <wenyiw@google.com> Bring back code to share favorite contacts

ag/865209 led to an error that pressing "share favorite contacts"
would share all contacts. For favorite and frequently contacted
contacts, we should still use the previous method to fetch and
share, because there will not be many of them and it won't take
long.

In addition, we also show toast in UI thread

Bug 22083005
Bug 26906732
Bug 26964977

Change-Id: I4db6bc4d79cec5ec75197accb3ac049e0fe29722
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
918f0b2c1ee44de16bd2944d5f1d3007ae317df0 10-Feb-2016 Tingting Wang <tingtingw@google.com> Remove Lychee related code from AOSP Contacts.

BUG 27070897

Change-Id: I3c5b9b36c1ecf36d1f4748638516cedc1b4b1124
ndroid/contacts/common/preference/ContactMetadataSyncAccountPreference.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/preference/PreferenceManager.java
ndroid/contacts/commonbind/ObjectFactory.java
9d115f0e9222e0f4b95a1ef55085ba6bdd8eb3b4 12-Feb-2016 Wenyi Wang <wenyiw@google.com> Hide "Blocked numbers" menu in search and selection mode

Bug 27120737

Change-Id: I4168bb97a23e5ff0b2aabc065a1e2f964e864fa4
ndroid/contacts/activities/PeopleActivity.java
8db2d6c9de43f2d9379b977a8dbd70432c451d19 18-Feb-2016 Ricky Wai <rickywai@google.com> Fix briefcase icon not displayed against Work contacts

Bug: 27097441
Change-Id: Ia23e33062e383f25f2c6b111a1ba00165f2fbe12
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
cf0734b567b77bab782c533214ebe4e044a04f9c 17-Feb-2016 Wenyi Wang <wenyiw@google.com> Merge "Don't use file ID of the removed photo" into nyc-dev
504f8e54d352b688623b4bf09c22a75ca5a8009e 17-Feb-2016 Wenyi Wang <wenyiw@google.com> Merge "Set number of columns of photo picker dynamically" into nyc-dev
a12ac6d6b376d5151d86a9d66c887a60fb604995 12-Feb-2016 Wenyi Wang <wenyiw@google.com> Don't use file ID of the removed photo

Doc https://goto.google.com/removedphoto

Bug 25978539

Change-Id: I77abbc11766a570eb657a3b02ef910b3fa300f45
ndroid/contacts/editor/EditorUiUtils.java
144a4d16daf88dded258063bc33810b20c57f81d 17-Feb-2016 Wenyi Wang <wenyiw@google.com> Correct usage of forceLoad() to load hi-res photo after editing

Doc https://goto.google.com/fix-low-res

Bug 22010349
Bug 25204200

Change-Id: I4f17e62ff1c6113ee2d2bc6f7907d836677df8be
ndroid/contacts/quickcontact/QuickContactActivity.java
fc7092412c52ac8925313b34d19efc1c9d9f3c9c 17-Feb-2016 Walter Jang <wjang@google.com> Merge "Include email and phone matches in display name search experiment" into nyc-dev
fd3e89182f26c3f015337aed5ed3295a7ab83659 11-Feb-2016 Tingting Wang <tingtingw@google.com> Remove delete metadata related data in Contacts App

BUG 27153615

Change-Id: Id2f942e067516164c65a78298d7030609c78e2cc
ndroid/contacts/common/preference/ContactMetadataSyncAccountPreference.java
ndroid/contacts/common/preference/ContactsPreferences.java
bad5e4bac82374b7b5848d54cc200db7f3865023 14-Feb-2016 Walter Jang <wjang@google.com> Include email and phone matches in display name search experiment

Bug 26697731

Change-Id: Iadb39c40c8fdf722d1099b87b6506bffcc33270f
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/ProfileAndContactsLoader.java
8f01264b2b919075785bf4fc3f63a5c84b3e204f 13-Feb-2016 Walter Jang <wjang@google.com> Use standard search for dir partitions during display name experiment

Bug 26697731

Change-Id: If66cab421c01b6fd08b12ebe71f54aa413b84045
ndroid/contacts/common/list/DefaultContactListAdapter.java
fe4f03cd0ca38e446f7690e1b5e076e65530bb37 14-Feb-2016 Wenyi Wang <wenyiw@google.com> Set number of columns of photo picker dynamically

We use magic number 135dp to get the number of columns.
Here's the number of columns on Nexus devices:
https://goto.google.com/devicecolumns

Bug 27181878

Change-Id: I346caf488423586655cdd2a650c0502f7ff1bb9b
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
b49c527b2ac16a189dfa61f9cdecdcafbf61fcc2 12-Feb-2016 Wenyi Wang <wenyiw@google.com> Use blocked numbers UI in framework

Bug 27120737

Change-Id: I8380f8a9f753755c5ad3efd68332372ce80dea34
ndroid/contacts/activities/PeopleActivity.java
5fe9557ae4fdd7a1b70f27f7b1b6b4c096984d6a 11-Feb-2016 Wenyi Wang <wenyiw@google.com> Remove "Blocked Numbers Activity" from Contacts

This is almost a revert of ag/847363.
We also hide menu for now in PeopleActivity.

Bug 27118866

Change-Id: Ie242e2d1fcf00e7226a1f8e16c92c5d7620630e4
(cherry picked from commit 4bc3bd2aea6f053f5e9159a1ca5cd79e1d8887d8)
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/widget/EmptyContentView.java
ndroid/contacts/widget/SearchEditTextLayout.java
142a344c5c71c28a616b64b21d36809637d3c6f9 04-Feb-2016 Wenyi Wang <wenyiw@google.com> Save contacts to local file and share

We extend ExportVCardActivity in order to reuse VCarcService
to write contacts data to vcf file in background. This change
gets rid of TransactionTooLargeException and provides better
user experience, since we write data in background.

The current UX design is: user will receive Toast message
once export file is ready, and then user needs to tap the
notification to share contacts.

Bug 22083005

Change-Id: I7d7142f3037b1a0647d185d477365df8f2994271
(cherry picked from commit e6c7494bbafe1bef1187245510b1ec0beba6ce10)
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/vcard/ExportProcessor.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/NotificationImportExportListener.java
ndroid/contacts/common/vcard/ShareVCardActivity.java
1f82861d979a7333b36e732a5b15e4a86147399e 10-Feb-2016 Walter Jang <wjang@google.com> Add contact search display name experiment (1/2)

We make two queries which check if the display
name exactly matches the phonetic name in order
to prevent duplicates when the display name is
coming from the phonetic name.

Bug 26697731

Change-Id: Iab2e8b158bcc6f6df06c23da257d9d930363e60a
(cherry picked from commit 142ad048c17284aa14e9f88a31074fe2ee5a6f45)
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/ProfileAndContactsLoader.java
ndroid/contacts/commonbind/experiments/Flags.java
9ff6a7caf65540c00e456e4d4a7354f8939ffd0c 06-Feb-2016 Walter Jang <wjang@google.com> Add factory to create overlays

Bug 26985491

Change-Id: I57ce006e75524ea5b986b6ae90ca1cfdc966fb4e
(cherry picked from commit a0ca04d565806f3fa12034fce057775a516af14d)
ndroid/contacts/list/MultiSelectContactsListFragment.java
40c7479fc40ddfa58d5f42d34f64c87b19469b2e 06-Feb-2016 Walter Jang <wjang@google.com> Add factory to create AOSP overlays

* And return a null Logger in the AOSP contacts code
so we don't expose the name "clearcut".
* We also don't need a no-op Logger impl anymore.

Bug 26985491

Change-Id: I18b1fe76f09012acd067d0c186f25f6eb7530bb3
(cherry picked from commit 99a05151699230f7c93311ceab50e7902c8596be)
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/commonbind/ObjectFactory.java
ndroid/contacts/commonbind/logging/ClearcutLoggerHelper.java
6bf5f68c61580dcaaa9e05c3e16f6e24d508a76d 06-Feb-2016 Brandon Maxwell <maxwelb@google.com> Merge "Updating preferredName methods to accept ContactsPreferences"
7edf983fd1821be522f81e8793777d7e8184e7dc 05-Feb-2016 Brandon Maxwell <maxwelb@google.com> Updating preferredName methods to accept ContactsPreferences

Rather than accepting an int, this method accepts a nullable
ContactsPreferences object to abstract the null checks that would
otherwise be needed everywhere these utility methods are used.

Bug=26822105

Change-Id: Id41a182a70098ab2898938588f86f54e16c597b7
ndroid/contacts/common/util/ContactDisplayUtils.java
683d770464303c13bb318b5f2019acc487513d57 05-Feb-2016 Tingting Wang <tingtingw@google.com> Fix permission bug when importing vcard.

Possible source and source uris to import vcard to Contacts App:
Gmail App, uri starts with "content://content://gmail-ls/", permission
granted by Gmail App.
Downloads, uri starts with "content://con.google.provider.downloads.documents/document/",
or "content://downloads/", permission granted by Downloads.
Hangouts, uri starts with "content://com.google.android.apps.hangouts.content.EsProvider/",
permission granted by Hangouts

Gmail, Downloads, Hangouts uris need permissions granted from the source, so should read
to locall before requesting Contacts App required permissions.

Messenger, uri starts with "content://com.google.android.apps.messaging.shared.datamodel.MediaScratchFileProvider",
no permission needed.
Drive, uri starts with "file:///data/user/0/com.google.android.apps.docs/files/", no permission needed.

Messenger, Drive uris don't need permission, so both (read to local first, and requesting contacts
required permission first) are OK for them.

Contacts required permssion(READ_CONTACTS and READ_EXTERNAL_STORAGE) is used to grant uri like "file:///storage"
permission, so should be granted first for this kind of uris.

Totally, for uris "file:///storage" READ_EXTERNAL_STORAGE permission should be requested first.
For others uris should be read to local using granted permissions first.

BUG 26905556

Change-Id: I0dcf794ad71ed8eef6f08c617b84ccafd1cf1bed
ndroid/contacts/common/vcard/ImportVCardActivity.java
44c67ec4440d37abfe630526c77f761c84a47a94 04-Feb-2016 Sean Liu <guanxiongliu@google.com> Merge "Deprecating ConfirmAddDetail dialog to use full contact editor."
0617a246cba6ec9c3f1b25ec3f08de47d4803b80 04-Feb-2016 Sean Liu <guanxiongliu@google.com> Merge "Formatting the phone number to make it pretty printed without user editing"
7cb9483a22c60407c057f285cf3311dc7f6f9149 02-Feb-2016 guanxiongliu <guanxiongliu@google.com> Formatting the phone number to make it pretty printed without user editing

Bug:22851692
Bug:26754145
Change-Id: Ic166b2200fc5813d56707c2dcf28892bc1cdfca5
ndroid/contacts/common/util/PhoneNumberFormatter.java
3d59049c39e5c3896a3d741c4f7cafbbf26c8e69 02-Feb-2016 guanxiongliu <guanxiongliu@google.com> Deprecating ConfirmAddDetail dialog to use full contact editor.

Bug:22851692
Bug:26754145
Change-Id: Ic8bf321a27f5e43ffb68146690d421375a6f9e33
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/editor/TextFieldsEditorView.java
a7a20f4efb9c8ff02133c98a6826669d0b032154 04-Feb-2016 Brandon Maxwell <maxwelb@google.com> Merge "Removing final from ContactsPreferences"
6456baf32e55eeb2f5a1bf43f53666adf84bbd5d 31-Jan-2016 Walter Jang <wjang@google.com> Read strequent search experment flag from phenotype

* Add a no-op Flags implementation for AOSP
* Put experiment flag name constants in new Experiemnts
class

Bug 26400050

Change-Id: I2b540189a3234ba7cb0af6a6a0d1c3f0f5142534
ndroid/contacts/common/Experiments.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/commonbind/experiments/Flags.java
f7899c0471d448563b64b3b9f7c7e583eb50b6e0 04-Feb-2016 Wenyi Wang <wenyiw@google.com> Use CONTENT_URI to load phone numbers

We encountered this bug because CONTENT_FILTER_URI was used to load
phone numbers by mistake. This CL reverted the line back to how it
looked after ag/347569.

Bug 26450705

Change-Id: I34428dfc4f5786611647dd881299d0147dd0b27d
ndroid/contacts/common/list/PhoneNumberListAdapter.java
c03163661e0cc1a724f4a878b2e4dd0c8cf2d5f7 04-Feb-2016 Brandon Maxwell <maxwelb@google.com> Removing final from ContactsPreferences

As a final class, ContactsPreferences was not mockable. This placed
undue complexity on testing code because rather than mocking the
ContactsPreferences, mocking the dependencies of this object was
required.

Since this code is not part of a library, removing the final modifier
is the quickest way to more easily testable code. If we need
ContactsPreferences to be final, we need to create an interface for
ContactsPreferences, implement it with a concrete class and implement
a concrete MockContactsPreferences object so we can test code that
uses this object.

Change-Id: I276436b6f7db0f87e3432f3fafe1d177bc6c5e50
ndroid/contacts/common/preference/ContactsPreferences.java
e5bac73a8b241a43143e5780c07597cd6fa9230f 03-Feb-2016 Wenyi Wang <wenyiw@google.com> Don't pass read-only portions of RawContactDeltaList to contact save service

Bug 23896510

Change-Id: Ie50aa5c0581779c12861072ec838f26d444fb549
ndroid/contacts/ContactSaveService.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
34dadc9c999e45216e0442963193af2af46b2500 02-Feb-2016 Wenyi Wang <wenyiw@google.com> Merge "Call forceLoad() when loader is not started to load hi-res photo"
7470d095446636db35ad1f423a4bee0b4fc841b9 02-Feb-2016 Sean Liu <guanxiongliu@google.com> Merge "Deleting obsolete code and changing code structure since we stop prompting user to add account when no account available Bug:25161189"
61dea6728f564467c186a4c1e2bd53d7ef7bc00d 02-Feb-2016 Sean Liu <guanxiongliu@google.com> Merge "Stop Prompting user to add account when no account available Bug:25161189"
c02118d62884272dc0bac484a528e1de8ee9adda 02-Feb-2016 Wenyi Wang <wenyiw@google.com> Call forceLoad() when loader is not started to load hi-res photo

The bug occurs because the loader may not actually be in the state
of "started" after calling restartLoader. If this happens, QuickContact
will not get the newly updated hi-res photo since onContentChanged()
will not call forceLoad(). So we call forceLoad() explicitly in this
case. There will be exactly 1 extra load when we call forceLoad()
and will be no extra load otherwise.

Bug 25204200

Change-Id: I41cc35381f7b24c0d461a4b8ed482b675e8ccad9
ndroid/contacts/quickcontact/QuickContactActivity.java
10be3bf84fa94e353d9950819c95852d3bb9df34 30-Jan-2016 guanxiongliu <guanxiongliu@google.com> Deleting obsolete code and changing code structure since we stop prompting user to add account when
no account available
Bug:25161189

Change-Id: Ie8541089ecef3a2e8e4ab5d5d61c954bc64dd953
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
5d7bb268bae15843e729ffafc01de0ec9677d7aa 30-Jan-2016 guanxiongliu <guanxiongliu@google.com> Stop Prompting user to add account when no account available
Bug:25161189

Change-Id: I2981d4363610baf0c879f34dc30d34c1c6850778
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/util/AccountPromptUtils.java
bbdcd52bfe0cec3eff0d99b431587fb115e56790 01-Feb-2016 Tingting Wang <tingtingw@google.com> Fix bug on Contacts crash when importing cards while rotating.

Target fragment is missing when rotating device while importing
vcard for multiple accounts.

BUG 26285093

Change-Id: I1c428307dca19d022b9ea71f71481fd3e8799f3c
ndroid/contacts/common/editor/SelectAccountDialogFragment.java
8c434e5bcc92963f34200634ae5e0ccbe0e7c473 30-Jan-2016 Tingting Wang <tingtingw@google.com> Remove duplicate code to start activity in Quick contact

BUG 26546569

Change-Id: I422c3f888832ce00679057ae2d557460413a9e4b
ndroid/contacts/quickcontact/QuickContactActivity.java
972d093ca0c0c8479765f9b85873a6a85ae9797b 29-Jan-2016 Wenyi Wang <wenyiw@google.com> Override primary to set check mark in photo picker

Doc at go/checkmarkinphotopicker

Bug 25092609

Change-Id: Ieca46eb4f15f125b227b138fef5b24cc3f6ce666
ndroid/contacts/editor/CompactContactEditorFragment.java
b1c2c2ca797667340a43f0f16b12fbb379036c5a 29-Jan-2016 Wenyi Wang <wenyiw@google.com> Merge "Revert "Show check mark when none is primary in photo picker"" into ub-contactsdialer-b-dev
c41a1e5f5f4872c3a0da5dec7671b66d9d80eb4e 29-Jan-2016 Wenyi Wang <wenyiw@google.com> Revert "Show check mark when none is primary in photo picker"

This reverts commit bb601f2d4a7ed4db46dd87a4d451d42c666f1591.

Change-Id: Ia7a677e7f5d5a28fc45a1e3b85da52d9b1382485
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/quickcontact/QuickContactActivity.java
1d86a67a46e5904bb682496f109c6e236b314381 29-Jan-2016 Wenyi Wang <wenyiw@google.com> Update suggestion card after new tint color is extracted

Bug 26863662

Change-Id: I6ef993365dfb740f5538248bdcb2520a87c142ee
ndroid/contacts/quickcontact/QuickContactActivity.java
f597ec6bd74cdb687866a1922fdbfe3541585e37 26-Jan-2016 guanxiongliu <guanxiongliu@google.com> Changing the add account activity to uniformly open the full screen UI
for choosing account type.

Bug:26296631
Change-Id: Ifedbc9c6cb93121ca60ddb7a42f0f872bdef812a
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/util/AccountPromptUtils.java
bb601f2d4a7ed4db46dd87a4d451d42c666f1591 14-Nov-2015 Wenyi Wang <wenyiw@google.com> Show check mark when none is primary in photo picker

If there is a photo in photo picker that is marked as primary,
we will use check that photo in photo picker.

Otherwise, with this CL, we compare the photo URI passed from
QuickContact to editor with the photo URIs in photo picker to
decide where to add a check mark.

Bug: 25092609
Change-Id: I0ae77f9874a60f45dcfb305d058ade9de4fef4a4
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/quickcontact/QuickContactActivity.java
1ca586f8bd33ff0fe504daac814d4f20c42f5332 28-Jan-2016 Wenyi Wang <wenyiw@google.com> Merge "Use proper strings for different "share" options" into ub-contactsdialer-b-dev
71ff7c70b20a764d6f811bab16717b9a6bc2fab6 28-Jan-2016 Victor Chang <vichang@google.com> Merge "Remove the work badge icon when a contact in search bar is a Google caller id" into ub-contactsdialer-b-dev
7f4155b3eba851fe9ae92d16d59303ba84ecff19 28-Jan-2016 Wenyi Wang <wenyiw@google.com> Use proper strings for different "share" options

Bug: 22083005
Bug: 21640772

Change-Id: I2f526aa208ef40c09739498ea3a3f21e71f7cf76
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
5c502763bb8962defbad528a54099da2e2f6feec 28-Jan-2016 Wenyi Wang <wenyiw@google.com> Use VERSION.CODENAME to check for N APIs

Bug: 26453530
Change-Id: I88ed37d83fa1c98982b229078001b498a52f890d
ndroid/contacts/activities/PeopleActivity.java
0286a9449260055bfababc979fd4f75bf757d57c 25-Jan-2016 Victor Chang <vichang@google.com> Remove the work badge icon when a contact in search bar is a Google caller id

BUG=26680007

Change-Id: Ieefff429e34d11430cbb5926d3a4285d35b91820
ndroid/contacts/common/list/PhoneNumberListAdapter.java
09792f623907f10ef18103651c144da79bd7caff 26-Jan-2016 Walter Jang <wjang@google.com> Merge "Order strequent contacts above type-to-filter search results" into ub-contactsdialer-b-dev
d1cc5fe91e96bdbea59fbc8c7561a76c60835e49 26-Jan-2016 Walter Jang <wjang@google.com> Try to make the cancel editing confirmation dialog less confusing

Bug 26615850
Bug 26594357

Change-Id: I651e9a056227a7149051c3f9bb55b26d24cd7fad
ndroid/contacts/editor/CancelEditDialogFragment.java
85790044bb41f5d92406cf81e6fd8a28a663494e 26-Jan-2016 Wenyi Wang <wenyiw@google.com> Merge "Move "callblocking" package and BlockedNumbersActivity to src-N" into ub-contactsdialer-b-dev
0bd219912e709107028851ed0ea607111d925ce0 26-Jan-2016 Wenyi Wang <wenyiw@google.com> Merge "Switch to BlockedNumberProvider in N SDK" into ub-contactsdialer-b-dev
cc3016e029b354f412dbdc0d4b139455203c816c 31-Dec-2015 Wenyi Wang <wenyiw@google.com> Redesign settings for tablets

1. Move AppCompatPreferenceActivity from Dialer to ContactsCommon
2. Move ContactsPreferenceActivity from Contacts to ContactsCommon,
make it extend AppCompatPreferenceActivity and avoid building
headers (by not overriding onBuildHeaders)
3. Move the "About" PreferenceScreen to preference_about.xml and
add AboutPreferenceFragment so that we could switch between two
fragments.
2. Add "back button" to LicenseActivity.

Here's how it looks:
https://docs.google.com/a/google.com/presentation/d/1A5n2o8epBCrizZvbOyelvjoHz-s5-IRlJd-KqWAMBao/edit?usp=sharing

Bug: 25629359
Bug: 26469731
Change-Id: If88722a62e41d1a2f4f70939b2d52d697e204628
ndroid/contacts/common/activity/AppCompatPreferenceActivity.java
ndroid/contacts/common/activity/LicenseActivity.java
ndroid/contacts/common/preference/AboutPreferenceFragment.java
ndroid/contacts/common/preference/ContactsPreferenceActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
0448ce17b085d18e35a22ce028719c09bf5da0f7 25-Jan-2016 Tingting Wang <tingtingw@google.com> Merge "Read metadataSyncEnabled flag from N sdk." into ub-contactsdialer-b-dev
86f2a86b99ccd4430dcaa7fcf88e8190cb64eb05 31-Dec-2015 Wenyi Wang <wenyiw@google.com> Redesign settings on tablets

1. Move ContactsPreferenceActivity to ContactsCommon since it is called
in DisplayOptionsPreferenceFragment, which is built as part of Dialer.
2. Remove preference_headers.xml since we are going to get rid of headers.
3. Kitkat backporting.

Here's how it looks:
https://docs.google.com/a/google.com/presentation/d/1A5n2o8epBCrizZvbOyelvjoHz-s5-IRlJd-KqWAMBao/edit?usp=sharing

Bug: 25629359
Bug: 26469731
Change-Id: I2dc8dec8a6e3725c3180f0e0a56ed68fe28cca50
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
1149810ef01add3efd669eeb911682a95d317af1 23-Jan-2016 Wenyi Wang <wenyiw@google.com> Move "callblocking" package and BlockedNumbersActivity to src-N

Since the activity and the related classes are only availabile
on N, we don't need to put anything in src-pre-N.

Bug: 26453530
Change-Id: I9f54ea1cb0e79f3b8f3d46a1f1265d0955f92984
ndroid/contacts/activities/BlockedNumbersActivity.java
ndroid/contacts/callblocking/BlockNumberDialogFragment.java
ndroid/contacts/callblocking/BlockedNumbersAdapter.java
ndroid/contacts/callblocking/BlockedNumbersFragment.java
ndroid/contacts/callblocking/ContactInfo.java
ndroid/contacts/callblocking/ContactInfoHelper.java
ndroid/contacts/callblocking/ContentChangedFilter.java
ndroid/contacts/callblocking/FilteredNumberAsyncQueryHandler.java
ndroid/contacts/callblocking/FilteredNumbersUtil.java
ndroid/contacts/callblocking/NumbersAdapter.java
ndroid/contacts/callblocking/SearchAdapter.java
ndroid/contacts/callblocking/SearchFragment.java
ndroid/contacts/callblocking/ViewNumbersToImportAdapter.java
ndroid/contacts/callblocking/ViewNumbersToImportFragment.java
bf452191e25b33b52e034e1d269bf19293ce2c5c 22-Jan-2016 Wenyi Wang <wenyiw@google.com> Switch to BlockedNumberProvider in N SDK

1. ID in BlockedNumberProvider is of type "long" rather than "int".
2. BlockedNumberProvider doesn't include countryIso, so we need to
calculate it when needed.
3. ag/850887 will remove STRIPPED_PHONE_NUMBER column and notify
changes to content.
4. Remove unused code.

Bug: 26453530
Change-Id: I09194052b7d5000d20263efaf622250d4c264ae4
ndroid/contacts/callblocking/BlockNumberDialogFragment.java
ndroid/contacts/callblocking/BlockedNumbersAdapter.java
ndroid/contacts/callblocking/BlockedNumbersFragment.java
ndroid/contacts/callblocking/FilteredNumberAsyncQueryHandler.java
ndroid/contacts/callblocking/FilteredNumberContract.java
ndroid/contacts/callblocking/OnListFragmentScrolledListener.java
ndroid/contacts/callblocking/SearchAdapter.java
ndroid/contacts/callblocking/SearchFragment.java
ndroid/contacts/callblocking/ViewNumbersToImportAdapter.java
ndroid/contacts/callblocking/ViewNumbersToImportFragment.java
5456440d6acb16878a415302d37e9d3e9c0cc6d9 18-Jan-2016 Walter Jang <wjang@google.com> Order strequent contacts above type-to-filter search results

Screenshots at go/b20545359

Bug 20545359
Bug 26697731

Change-Id: I32f0aa216834f2d33f4537d37199203fb089b932
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/ProfileAndContactsLoader.java
b7158bbebd6c7f030f84299f23706876593715cd 25-Jan-2016 Nancy Chen <nancychen@google.com> Merge "Add TelephonyManager N APIs for voicemail notifications." into ub-contactsdialer-b-dev
49344d823e45da8aca2c5c49a19e6340702f0937 21-Jan-2016 Nancy Chen <nancychen@google.com> Add TelephonyManager N APIs for voicemail notifications.

In N we can now get the voicemail notification settings from the system.
Make compat methods so they can be used in dialer.

Bug: 24164917
Change-Id: If940ae30fc989542e2cebb89cc6a1b630de66baf
ndroid/contacts/common/compat/TelephonyManagerCompat.java
fc2169484c0983dc328825a1007146baa896d688 22-Jan-2016 Tingting Wang <tingtingw@google.com> Read metadataSyncEnabled flag from N sdk.

Only show Lychee sync account setting when metadataSyncEnabled flag
in N SDK is true and there's at least one focus google account.

BUG 26771407

Change-Id: I6844ef0e2abd43c3d94b3d049af8ec46df3bc593
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
9eb87f4e4a41fec748ce48281f85f3b3ae32fb93 23-Jan-2016 Wenyi Wang <wenyiw@google.com> Revert "Keep overflow menu button from closing on changing orientation"

Bug: 21650562

This reverts commit ff603b5e045c596c88cf1a70b9320d36437a80cb.

Change-Id: I8916df1ea8fb2ac8ebc617caea9bdd22c7bca117
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
a84fe61b45522d3beeabdc6de9eaa05697df2281 14-Jan-2016 Walter Jang <wjang@google.com> Log when a search result is selected or search is abandoned (1/3)

* Populate a SearchState from the MultiSelectContactEntryListAdapter
to with information about the number of results and partitions
displayed to the user. If a selection was made, record additional
details.

Bug 26697731

Change-Id: I96de87ea1d297045421604ee0cd13c51c6c13dc4
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
4a459181e0a8d4d27558f176c769cf7b2aafcfdc 20-Jan-2016 Walter Jang <wjang@google.com> Log when a search result is selected or search is abandoned (2/3)

* Added Parcelable SearchState to hold info about the search
results presented to the user and which selection was made.
* Added a Logger method to send a SearchEvent to clearcut.

Bug 26697731

Change-Id: I7848263ac845dc8aed733dd5d3e2efa1f52ef764
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/logging/ScreenEvent.java
ndroid/contacts/common/logging/SearchState.java
ndroid/contacts/commonbind/logging/ClearcutLoggerHelper.java
f9ab10bfed7f5f631661b67e2604cc843141cfcd 22-Jan-2016 Wenyi Wang <wenyiw@google.com> Merge "Copy "Blocked Numbers Activity" from Dialer to Contacts" into ub-contactsdialer-b-dev
823b83ccde7d0ee50b3cb9e189da51f212d391ae 21-Jan-2016 Walter Jang <wjang@google.com> Move Contacts logging classes to ContactsCommon (2/5)

Bug 18388581

Change-Id: I4d3f224207d1a949bb18108224958ad59a513f25
ndroid/contacts/common/logging/Logger.java
ndroid/contacts/common/logging/ScreenEvent.java
ndroid/contacts/commonbind/logging/ClearcutLoggerHelper.java
051c44c711eae85302a1fad6f0c9747b1163d4d7 21-Jan-2016 Walter Jang <wjang@google.com> Move Contacts logging classes to ContactsCommon (1/5)

Bug 18388581

Change-Id: I7b7845a77f5f0b123525a6f956a4e9e02d32e447
ndroid/contacts/logging/Logger.java
ndroid/contacts/logging/ScreenEvent.java
ndroid/contactsbind/ClearcutLoggerHelper.java
5665f36d941e4d323aeb6b1842604c34b619af86 20-Jan-2016 Walter Jang <wjang@google.com> Revert "Revert "Hide sort order and name format prefs for CJK locales""

This reverts commit f5678f1049dc5ffdd0ea8829f754de93542abbce.

Change-Id: I0cdbc6873e0d42a2bd8f8d24fa2d13c48fa965bf
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
20d7feba9ff089465a3d4db0a3472f5b49140f61 20-Jan-2016 Walter Jang <wjang@google.com> Revert "Hide sort order and name format prefs for CJK locales"

This reverts commit 9fa339f5e144332aff808bc519fc86b29a39a8a8.

Change-Id: I1983c90748708588211ba0fd238d78e73ed2f5f1
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
cf5f100452d9006b237931b9475f693d757fd940 20-Jan-2016 Walter Jang <wjang@google.com> Hide sort order and name format prefs for CJK locales

The donottranslate_config.xml were moved over from Contacts

Bug 26632200

Change-Id: If06af8e14094efc740f958a2c10ac407851e5f5e
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
1fc3ef4f7469e8abf8994a2c8f949f42fdda4ccb 15-Jan-2016 Wenyi Wang <wenyiw@google.com> Copy "Blocked Numbers Activity" from Dialer to Contacts

1. Classes are copied and modified so that they will work in Contacts.
2. BlockedNumbersActivity.java is the main activity.
3. Most copied classes are put in the newly-created "callblocking" package.
4. What's not copied: CachedNumberLookupService, visual voicemail, and
emergency call. The corresponding features will be implemented based on
framework change, which is not ready yet.
5. In Dialer, BlockedListSearchFragment extends RegularSearchFragment,
which extends SearchFragment. These three classes are combined into
SearchFragment in Contacts.
6. In Dialer, BlockedListSearchAdapter extends RegularSearchListAdapter,
which extends DialerPhoneNumberListAdapter. These three classes are
combined into SearchAdapter in Contacts.
7. An intent is specified in AndroidManifest.xml to open
BlockedNumbersActivity.java

Bug: 26453530
Change-Id: Iec07725fd9aa5a174bb6b306792fa446dcaa4e65
ndroid/contacts/activities/BlockedNumbersActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/callblocking/BlockNumberDialogFragment.java
ndroid/contacts/callblocking/BlockedNumbersAdapter.java
ndroid/contacts/callblocking/BlockedNumbersFragment.java
ndroid/contacts/callblocking/ContactInfo.java
ndroid/contacts/callblocking/ContactInfoHelper.java
ndroid/contacts/callblocking/ContentChangedFilter.java
ndroid/contacts/callblocking/FilteredNumberAsyncQueryHandler.java
ndroid/contacts/callblocking/FilteredNumberContract.java
ndroid/contacts/callblocking/FilteredNumbersUtil.java
ndroid/contacts/callblocking/NumbersAdapter.java
ndroid/contacts/callblocking/OnListFragmentScrolledListener.java
ndroid/contacts/callblocking/SearchAdapter.java
ndroid/contacts/callblocking/SearchFragment.java
ndroid/contacts/callblocking/ViewNumbersToImportAdapter.java
ndroid/contacts/callblocking/ViewNumbersToImportFragment.java
ndroid/contacts/widget/EmptyContentView.java
ndroid/contacts/widget/SearchEditTextLayout.java
78432961b32d90787409e33e335c0b6db87c9ce0 20-Jan-2016 Ta-wei Yen <twyen@google.com> Merge "Add CompatUtils#isNCompatible()" into ub-contactsdialer-b-dev
f7e020693d0a2480918f40f70586b858d3a805b7 17-Jan-2016 Walter Jang <wjang@google.com> Add no-op clearcut logger impl to AOSP contacts

Bug 18388581

Change-Id: Ibe6abe84380e701938f2513da15ef37c36ea2243
ndroid/contacts/logging/Logger.java
ndroid/contactsbind/ClearcutLoggerHelper.java
24c93615791c0c00613db12d27310f2d3b818d1e 16-Jan-2016 Ta-wei Yen <twyen@google.com> Add CompatUtils#isNCompatible()

Add unified check for both app and device compatibility for N features.

TODO: Use similar implementation with M or L once N is released.

Bug:26330692
Change-Id: Ib0fc818ef4d1307838202a54c8b077309676ef90
ndroid/contacts/common/compat/CompatUtils.java
a4277fd34bf7eefef5ebd36a4dcbb1afbe17d3d2 15-Jan-2016 Tingting Wang <tingtingw@google.com> Merge "Add turn on/off setting for Lychee in Contacts App." into ub-contactsdialer-b-dev
40a8c9ac6bcc96e811ee41db458fc33c046dc218 15-Jan-2016 Walter Jang <wjang@google.com> Merge "Use pawless icon in AOSP contacts" into ub-contactsdialer-b-dev
8b84b39b1e500ebaeeb632c3ef2edc4afdab95f0 14-Jan-2016 Nancy Chen <nancychen@google.com> Merge "Do not translate FAB downward when transitioning between tabs." into ub-contactsdialer-b-dev
b141462051c7cc1853d3b1b9a1172d23bc74c5d0 14-Jan-2016 Walter Jang <wjang@google.com> Use pawless icon in AOSP contacts

Also renamed it to distinguish it from the one in GoogleContacts

Change-Id: I83a465d6c1083758948afba59f9239c45806faa6
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
3571ced3335ebe6b84292b62a4d7451640b46739 13-Jan-2016 Tingting Wang <tingtingw@google.com> Add turn on/off setting for Lychee in Contacts App.

1) User can turn on/off Lychee, or pick an account to backup and restore
contact metadata in Contacts App->Settings.
2) For now, this option is hidden.
3) When user turns Lychee on in Contacts App, set this account's
sync automatically as true and requestSync, others as false.

BUG 26491409

Change-Id: I063787f1465d965d43907ccc31fd0a7f102797e8
ndroid/contacts/common/preference/ContactMetadataSyncAccountPreference.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
54ba26556ff8c8acd532fd646407aa106c28d614 14-Jan-2016 Walter Jang <wjang@google.com> Fix build

Change-Id: I891cb44434396e26b6e28f05af20f4e4f17a4cae
ndroid/contacts/logging/Logger.java
457f865b7080218c7253337b667d64d7e51ec11c 08-Jan-2016 Walter Jang <wjang@google.com> Log contacts screen events to clearcut 1/2

* Allow the ContactsApplication to be exteneded
* Add an abstract Logger class to be the primary
utility to log events. Currently it goes to both
clearcut and google analytics (like Dialer).
* Fix a broken intent in the all intents test
activity.

Bug 18388581

Change-Id: I8f2d555b06484fecc2fdb6517847c12a0874fd2f
ndroid/contacts/ContactsApplication.java
ndroid/contacts/logging/Logger.java
ndroid/contacts/logging/ScreenEvent.java
2b23360911cb779b9c32077c3c8a08b6a16b7092 14-Jan-2016 Nancy Chen <nancychen@google.com> Do not translate FAB downward when transitioning between tabs.

Since the TAB Y coordinate depends on the snackbar, be sure not to
update it when transitioning between tabs or else it will potentially
overlay the snackbar.

Bug: 26525336
Change-Id: I2af253ee4fd9c32fbcb7ba63c603be0e2730aac0
ndroid/contacts/common/widget/FloatingActionButtonController.java
3e21eefe8d614a4c46c864e3e9e1619017fdb081 24-Dec-2015 Victor Chang <vichang@google.com> Show work badge icon in regular search in dialer

Details:
1. For local work contacts, show "Work Profile Contacts" in partition
header
2. For remote work contacts, show "Work Directory" in partition
header
3. For every local and remote contact item, show work profile icon

BUG=26082618

Change-Id: Ie7e2851ac08179438e5ea5338384ed755f1a095f
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
a446742e65b183833584b24777e217b96342078c 07-Jan-2016 Victor Chang <vichang@google.com> Show work badge icon/description in InCallUI/Dialer

1. Add work profile icon asset from ic_enterprise in go/icons
2. Add UserType and helper function to determine UserType

BUG=26082618

Change-Id: I38ee25a3e9bc71b2c9e1ba57dacb72067b92ace1
ndroid/contacts/common/ContactsUtils.java
92908d415b934c06138f3d04a7ec21df9a383386 12-Jan-2016 Victor Chang <vichang@google.com> Merge "Allow google dialer code to be compiled against M and N SDKs for enterprise features" into ub-contactsdialer-b-dev
fdb995dc534c815fe6381f2c0c43e045e883e06f 23-Dec-2015 Victor Chang <vichang@google.com> Allow google dialer code to be compiled against M and N SDKs for enterprise features

Following dialer's practice, use src-N and pre-N to separate implementation
in different build sdk

BUG=26312016

Change-Id: Ia9bd420cb2a96b1c31aa3ce2a61fd772b8811f2e
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/compat/CallableCompat.java
ndroid/contacts/common/compat/ContactsCompat.java
ndroid/contacts/common/compat/DirectoryCompat.java
ndroid/contacts/common/compat/PhoneCompat.java
3efd8e36057bba8b5b2ed7b2677a93a57bda2c7a 11-Jan-2016 Wenyi Wang <wenyiw@google.com> Merge "Set contact color to controls in suggested aggregations card" into ub-contactsdialer-b-dev
9f3e1348f550d9760ce93eb7106006e4f86ea637 11-Jan-2016 Wenyi Wang <wenyiw@google.com> Merge "Use AppCompatContactsActivity as super class of activities (2/3)" into ub-contactsdialer-b-dev
eaf1d4cea0514a734e0eff91be659a095cdd51ac 11-Jan-2016 Ta-wei Yen <twyen@google.com> Merge "Allow google dialer code to be compiled against M and N SDKs" into ub-contactsdialer-b-dev
8d02b165232cb219f082e634db45374aa43e3f6a 10-Jan-2016 Wenyi Wang <wenyiw@google.com> Set contact color to controls in suggested aggregations card

This CL sets the contact color to the buttons and checkboxes per UX.

Here's the mocks:

https://drive.google.com/a/google.com/file/d/0B8zhH1VR_EZrM28yLUFHTFZuNkk/view?usp=sharing

Here's a screenshot:

https://drive.google.com/a/google.com/file/d/0BwSNbQ_IWQd2bEhZekQ3a3hXVU0/view?usp=sharing

Bug: 25165935
Change-Id: I8ab9bf316aef42555b09e2149ef694e9ed5e3c82
ndroid/contacts/quickcontact/QuickContactActivity.java
77dad12c8c99c07781cf50a212327708d3e04029 09-Jan-2016 Wenyi Wang <wenyiw@google.com> Remove CARRIER_PRESENCE from projection in query used on L

ContactsContract.Data.CARRIER_PRESENCE was added in API level 23.

Bug: 26444126
Bug: 25629359
Change-Id: I51e185497b899a8e4443b691cdb93b139ff3e067
ndroid/contacts/common/model/ContactLoader.java
e7fd1ad19023a0b79b232462bcb988676c605b9a 06-Jan-2016 Wenyi Wang <wenyiw@google.com> Use AppCompatContactsActivity as super class of activities (1/3)

- AppCompatContactsActivity will replace ContactsActivity eventually

- modified PeopleActivity and ContactSelectionActivity

- fixed the color of buttons in contacts_unavailable_fragment_content on K

Bug: 25629359
Change-Id: I7312fb446c6affc070db1b44b74ed857afcf8f3a
ndroid/contacts/AppCompatContactsActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
1b6b7e2dc5e4fe6137764e86d2218c466ba873b6 06-Jan-2016 Wenyi Wang <wenyiw@google.com> Use AppCompatContactsActivity as super class of activities (2/3)

- interpolator.fast_out_slow_in was introduce in API level 21, use
linear for Kitkat.

- use AppCompatCheckBox to show colored CheckBox

- also fixed button color in contacts_unavailable_fragment_content on K

Bug: 25629359
Change-Id: I492f10adfb07e8f7d0fc2ffbac0063f2486820cc
ndroid/contacts/common/activity/AppCompatTransactionSafeActivity.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/widget/FloatingActionButtonController.java
59023c2f76136eb1cf402e1ee954a50c3f964168 09-Jan-2016 Ta-wei Yen <twyen@google.com> Allow google dialer code to be compiled against M and N SDKs

+ Class DirectorySdkCompat and PhoneAccountSdkCompat for N/pre-N version
pre-N is implemented with stubs

Bug:26330692
Change-Id: I53374f68ff3756ba0a502c15d07aa18a2d763e83
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/compat/DirectoryCompat.java
ndroid/contacts/common/dialog/CallSubjectDialog.java
89999f4d72b5406a586970c2436298344e25787d 08-Jan-2016 Wenyi Wang <wenyiw@google.com> Apply correct styles to account filter activities on tablets

We use dialtacts_theme_color defined in ContactsCommon to ensure that
both Contacts and Dialer work well.

In addition, ag/808228 checked the "Customize" filter on click to enable
Talkback. We may need to uncheck it when user presses "Cancel" on
CustomContactListFilterActivity, to avoid 2 filters being checked at the
same time. This error doesn't occur on phones, and occurs only on tablets.

Bug: 26439461
Bug: 25629359
Change-Id: Idc31eb1abd55fd2468c85a6671eb6317092d7017
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactListFilterView.java
0597f6c434e57e76461b4552ada97e7d6bb246c8 08-Jan-2016 Wenyi Wang <wenyiw@google.com> Revert "Apply correct styles to account filter activities on tablets"

This reverts commit a1146fe754bb4e69b4bc5810a293a42c4ea11529.

Change-Id: I18e8f64218f2d5a04810e51439a0fd50a7a581e0
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactListFilterView.java
bf71177f2dbb1e44b335eda2b3ad204ffce9e7a7 07-Jan-2016 Wenyi Wang <wenyiw@google.com> Apply correct styles to account filter activities on tablets

The modified styles should work well in Dialer.

In addition, ag/808228 checked the "Customize" filter on click to enable
Talkback. We may need to uncheck it when user presses "Cancel" on
CustomContactListFilterActivity, to avoid 2 filters being checked at the
same time. This error doesn't occur on phones, and occurs only on tablets.

Bug: 26439461
Bug: 25629359
Change-Id: I425c5610a5df15c1a634c5d7f578422c5cefc9ce
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactListFilterView.java
3d53e233beb1742d3274fb27576d4d1420e4aac2 07-Jan-2016 Wenyi Wang <wenyiw@google.com> Use Theme.AppCompat.Light.Dialog

Here's a link to the screenshots:
https://drive.google.com/a/google.com/folderview?id=0BwSNbQ_IWQd2UWNsLXBtUXdyZjQ&usp=sharing

Bug: 25629359
Change-Id: I9342e8b0b03d5fc5f9e02c8dc52f406dc0724c65
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
e07607ab76fee707450c985a8255ad8f1afa3a00 06-Jan-2016 Wenyi Wang <wenyiw@google.com> Merge "Introduce AppCompatActivity and modify account filter activities" into ub-contactsdialer-b-dev
fbbc2934494ab561572356272ab70f263c1a8da4 06-Jan-2016 Nancy Chen <nancychen@google.com> Merge "Add TelecomManagerCompat method for getSimCallManager" into ub-contactsdialer-b-dev
9798eea803df371f03ce2bdd0d1de80b36a7f6ff 05-Jan-2016 Tyler Gunn <tgunn@google.com> Merge "Check carrier presence when displaying the "video call" button." into ub-contactsdialer-b-dev
ce8d25ec1a8a9917c13d142ac7ca0ff03f9ca652 05-Jan-2016 Tyler Gunn <tgunn@google.com> Merge "Use carrier presence when showing the video call icon." into ub-contactsdialer-b-dev
c1192bf3949836d7692026e4d6b070d98f747d44 31-Dec-2015 Wenyi Wang <wenyiw@google.com> Introduce AppCompatActivity and modify account filter activities

Bug: 25629359
Change-Id: I4c560e35f268041b499a537fe7419c8eef180ab8
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
aefe94a5f52e1b1bf7e972311c253f75edfc93fe 29-Dec-2015 Nancy Chen <nancychen@google.com> Add TelecomManagerCompat method for getSimCallManager

Bug: 25776171
Change-Id: I6dcc1b1aed44dccb283b9b7208327250b8d067e2
ndroid/contacts/common/compat/telecom/TelecomManagerCompat.java
78384189dc0d1e60379947ce9f878f80045f7e6c 23-Dec-2015 Nancy Chen <nancychen@google.com> Make TelecomManager APIs compatible with Lollipop (2/3)

+ Move TelecomManagerCompat to ContactsCommon because it is called by
CallSubjectDialog
+ Move isDefaultDialerCompatible to CompatUtils because it is called in
TelecomManagerCompat
+ Add invokeMethod method to CompatUtils
+ Use TELEPHONY_MANAGER_CLASS and TELECOM_MANAGER_CLASS constants
+ Add @Nullable annotations

Bug: 25776171

Change-Id: I91ebaf59fa8234e52aeac733c424bd4bdfc6d8a2
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/compat/TelephonyManagerCompat.java
ndroid/contacts/common/compat/telecom/TelecomManagerCompat.java
ndroid/contacts/common/dialog/CallSubjectDialog.java
bbf3596ef083ce7367b897dbeed965a8e98e8142 29-Dec-2015 Nancy Chen <nancychen@google.com> Move TelecomManagerCompat to ContactsCommon (1/3)

Bug: 25776171
Change-Id: Ifd3ac9d3908d0d9348d26ffcca2596f6ee458232
ndroid/contacts/common/compat/telecom/TelecomManagerCompat.java
893ab9aa4ec471bb021f505ef6eb3be677c1c66c 23-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Backport ContactsContract methods (2/2)" into ub-contactsdialer-b-dev
c880b74ec26e41c3500c9d313c5cfb47f8edf4c0 23-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Backport ContactsContract methods (1/2)" into ub-contactsdialer-b-dev
fe4048c79147e677a669c8a9f2da7670bd08c1ac 22-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport ContactsContract methods (2/2)

The methods are:
1. CommonDataKinds.Event.getTypeLabel
2. Contacts.isEnterpriseContactId

Another change is using RectF instance to call drawOval() because
drawOval(RectF oval, Paint paint) was available on Kitkat.

The last change is using PhoneNumberFormattingTextWatcher() on pre-L.

Bug: 25629359
Change-Id: I8a86286b05a80112c2156130d100afe7c50eb07c
ndroid/contacts/common/compat/ContactsCompat.java
ndroid/contacts/common/compat/EventCompat.java
ndroid/contacts/common/compat/PhoneNumberFormattingTextWatcherCompat.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/util/BitmapUtil.java
ndroid/contacts/common/util/PhoneNumberFormatter.java
c85af2872f231f48b586c30f6306083a039dd6c6 22-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport ContactsContract methods (1/2)

Another change is using onPull(float) on pre-L since onPull(float, float)
was added in API level 21.

Bug: 25629359
Change-Id: I06cf84a640866869094ba3a4561ef80dd47c140b
ndroid/contacts/compat/EdgeEffectCompat.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
a949f537fd4d8f9c31e875d9c44d3476a51c8252 22-Dec-2015 Nancy Chen <nancychen@google.com> Move TelephonyManagerCompat to ContactsCommon (1/2).

Bug: 25776171

Change-Id: Ied554815f54eda4b3197f99a06472db69c0e97c3
ndroid/contacts/common/compat/TelephonyManagerCompat.java
b8e0f40953f4b2d1a2c96b117784e071d3e6589e 22-Dec-2015 Nancy Chen <nancychen@google.com> Move TelephonyManagerCompat to ContactsCommon (2/2).

Bug: 25776171
Change-Id: Ifc9749660bf2a960def29d5bc5b36edd1e99594a
ndroid/contacts/compat/ProviderStatusCompat.java
ndroid/contacts/compat/TelephonyManagerCompat.java
ndroid/contacts/util/PhoneCapabilityTester.java
334bfaf39368cb192c9151d51f382418044b70f9 22-Dec-2015 Wenyi Wang <wenyiw@google.com> Use proper ImageView constructor

The ImageView constructor with 4 params was added in API level 21.
Since we always pass 0 as the 4th param (i.e., the constructor with
4 params are never called directly to institiate an object), we are
going to remove the constructor.

Bug: 25629359
Change-Id: I5e9189e5841e6655c1a0fe013bd0df589cd032dd
ndroid/contacts/widget/QuickContactImageView.java
6dbeda2c3954a0ad0db6dcfc0d6a269176a9fc7a 22-Dec-2015 Brandon Maxwell <maxwelb@google.com> Merge "Added method to check if methods are available at runtime" into ub-contactsdialer-b-dev
6edc0e6b863006b06b3245c8d5c18818f4a74c46 21-Dec-2015 Brandon Maxwell <maxwelb@google.com> Added method to check if methods are available at runtime

Change-Id: Id5fd7b57eb27ce957a93771e9b9297fecd163bf9
ndroid/contacts/common/compat/CompatUtils.java
09f573b5d19ac52a19ed61da4c18d3d43a7d64ff 21-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport PhoneNumberUtils methods (1/2)

Used compat methods to handle compatibility and removed a completed TODO.

Bug: 25629359
Change-Id: Iedb6fb694657f201452c28e954d08f2a71470fa6
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/interactions/CallLogInteractionsLoader.java
471b4fc920296f84db276cf2b9a6a488d1c8d225 21-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport PhoneNumberUtils methods (2/2)

Two methods are: normalizeNumber() and formatNumber().

Bug: 25629359
Change-Id: I81e2ae913026a912f9496da050930b52332cff81
ndroid/contacts/common/compat/PhoneNumberUtilsCompat.java
ndroid/contacts/common/model/dataitem/PhoneDataItem.java
aac0e66fb100b329d6010637998849048efadca9 19-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport ContactsContract.PinnedPositions and create compat package

This class was unhidden in API level 21 and the undemote method was
added in API level 21 as well.

Bug: 25629359
Change-Id: I7eecd28338a8f14fca7b8249599c3f7eac70442c
ndroid/contacts/ContactSaveService.java
ndroid/contacts/compat/AggregationSuggestionsCompat.java
ndroid/contacts/compat/PinnedPositionsCompat.java
ndroid/contacts/compat/ProviderStatusCompat.java
ndroid/contacts/compat/TelephonyManagerCompat.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/ProviderStatusWatcher.java
ndroid/contacts/util/AggregationSuggestionsCompat.java
ndroid/contacts/util/PhoneCapabilityTester.java
ndroid/contacts/util/ProviderStatusCompat.java
ndroid/contacts/util/TelephonyManagerCompat.java
1e7130c4c61e070412d0b066e0b1be945e09d22b 19-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Ignore class TtsSpan on pre-L SDKs" into ub-contactsdialer-b-dev
089df23c89789b8d2cfced77a5bec7c8b32fecaa 18-Dec-2015 Brandon Maxwell <maxwelb@google.com> Backporting Select sim dialog icons

The getIcon method doesn't exist prior to M and was causing crashes on
multi-sim devices.

Bug=25776171
Change-Id: I2072bbe99e617fbe8387e5220f437c144bd592a4
ndroid/contacts/common/compat/PhoneAccountCompat.java
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
92c3c982b6b6f3124396ecf60f07179196d68047 18-Dec-2015 Wenyi Wang <wenyiw@google.com> Ignore class TtsSpan on pre-L SDKs

Null will be returned on pre-L when a TtsSpan instance should be returned.

Bug: 25629359
Change-Id: I947bae2e24aa340c89298dc59e2d752abddb7ebc
ndroid/contacts/common/compat/PhoneNumberUtilsCompat.java
001d9740977421058daf3fca799e7bb8f1e7e58e 18-Dec-2015 Tyler Gunn <tgunn@google.com> Use carrier presence when showing the video call icon.

- Removed some unused video assets.
- Added carrier_presence to the ContactLoader queries (this supports
load in the quick contacts view, as well as in the dialer search results).
- In search results (ContactListItemView), moved label before phone
number (per UX).

Bug: 20257833
Change-Id: I838dbf6c58939faab6d36f4afa70587b07f85f63
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/common/model/dataitem/DataItem.java
efa7268bdc8afc988f755ef95baa4418e6ca50ec 18-Dec-2015 Brandon Maxwell <maxwelb@google.com> Merge "Adding method to check if the version is L Mr1" into ub-contactsdialer-b-dev
e4688f075b35e0b15a42bb174ab736e9da33ec6b 18-Dec-2015 Brandon Maxwell <maxwelb@google.com> Adding method to check if the version is L Mr1

Change-Id: I2d8d3de445b6782350714721a94cf5e5e9a7b895
ndroid/contacts/common/compat/CompatUtils.java
4c3d3e24b0de8b4170106e312f6a4ac8139e1242 17-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport methods related with QuickContact

- Ignore setters and getters of status bar color on pre-L
- Ignore setters and getters of EdgeEffect color on pre-L
- Use ViewCompat to set elevation
- Use PathInterpolatorCompat to instantiate Interpolator

Bug: 25629359
Change-Id: Ie9409fbdc7f96a9feead95f2e47ca852a735a285
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
54ea4b140d3e82ab5a061c0f1c8aff2933871714 16-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport setter methods

The following methids were added in API level 21 and we have to ignore
them on older SDKs:
1. setOutlineProvider
2. setTranslationZ
3. setElegantTextHeight
4. setOverlay

View.setTranslationZ could be replaced with ViewCompat.setTranslationZ,
but that method basically ignores the attribute on older SDKs, which is
equivalent to our approach here.

In addition, we backport setImageTintList by applying tint to a drawable
and setting the drawble to ImageView.

Bug: 25629359
Change-Id: I3c5f7fe972cc0a5f7c8ab67581b0e68c3cdad35b
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/dialog/CallSubjectDialog.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ViewPagerTabs.java
ndroid/contacts/common/util/ViewUtil.java
49344cd7eb05c02419dfae101f288651a84da6ca 17-Dec-2015 Brandon Maxwell <maxwelb@google.com> Merge "Added utility method to check for classes at runtime" into ub-contactsdialer-b-dev
b6e3ecb718dc1d849849c16f5abf1bff303419a8 16-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Fix NPE in getPhotos()" into ub-contactsdialer-b-dev
ab36017cd9385e3180aff694939cc4280fd008eb 15-Dec-2015 Wenyi Wang <wenyiw@google.com> Fix NPE in getPhotos()

Avoid calling toString() on a null CharSequence.
This change affects content description used in Talkback only.

Bug: 26179572
Change-Id: Iba6f1258dbe6c5797e05e9b1aa1e07b70cc17fda
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
1f4a623084219ae9f8d7c012c0d25c63c7aae7ca 16-Dec-2015 Tingting Wang <tingtingw@google.com> Merge "Fix bugs when dropping down editor type list in Editor UI.(2/2)" into ub-contactsdialer-b-dev
308dfebdbf78dd203257ad7b777975dac14d9414 16-Dec-2015 Tingting Wang <tingtingw@google.com> Merge "Fix bugs when dropping down edit type list in Editor.(1/2)" into ub-contactsdialer-b-dev
973c0e1ad8ee05a112d6d06531ace0454ee0437c 16-Dec-2015 Brandon Maxwell <maxwelb@google.com> Added utility method to check for classes at runtime

Bug: 25776171
Change-Id: I2e1e062442a4cfc8e4d6df2494c0ccc6ffde574c
ndroid/contacts/common/compat/CompatUtils.java
f5afb23d4d4e4767c20811c511f11bcdb110c576 15-Dec-2015 Wenyi Wang <wenyiw@google.com> Use NotificationCompat instead of Notification for backporting

Notification.Builder.setColor() was added in API level 21.
NotificationCompat has the method and could be used for pre-L SDKs.
Also use ContextCompat.getDrawable instead of Context.getDrawable.

Bug: 25629359
Change-Id: Ia3d55769721cb584df6cfbb12bc1e46654550448
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/vcard/NotificationImportExportListener.java
d7e0d694a63a01377665613359793a3685432859 10-Dec-2015 Tingting Wang <tingtingw@google.com> Fix bugs when dropping down edit type list in Editor.(1/2)

When dropping down the edit type list in Editor, overall number
should not be checked since the editor has already been added.

BUG 25929524
BUG 26190778

Change-Id: If44d3fb7757357d7ffd2a53b0e1c1cd817655135
ndroid/contacts/common/model/RawContactModifier.java
6062cec2b36471fbc9a40c1b268a0ce88db03369 10-Dec-2015 Tingting Wang <tingtingw@google.com> Fix bugs when dropping down editor type list in Editor UI.(2/2)

When loading editor type list from Editor, overall number should
not be checked since the editor has already been added.
For the other cases we will keep it, just like the old logic.

BUG 25929524

Change-Id: I008c2777a62c652375a9c498e53e778e9358f904
ndroid/contacts/editor/LabeledEditorView.java
0a8f9736d1af8903674c412cf88c1233b60a156e 16-Dec-2015 Tyler Gunn <tgunn@google.com> Check carrier presence when displaying the "video call" button.

- Check the carrier presence data field when determining if the
video call button should be shown.

Bug: 20257833
Change-Id: Ic705c789bcd6d78a5a492166f4877b488534e8c2
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/LegacyPhoneNumberPickerFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
04538afa5f1e7968811ba014de0b9a39fa20d3f9 15-Dec-2015 Nancy Chen <nancychen@google.com> Add a general isMarshmallowCompatible method.

Bug: 25776171
Change-Id: I5632f9156a553f00da1220f58d4f059bf94d396d
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/dialog/CallSubjectDialog.java
0d53352bfade58618e9b0014ac3aa3df9526e7d0 14-Dec-2015 Tingting Wang <tingtingw@google.com> Fix NPE in ImportVcardActivity.

Change-Id: I32869413d6d9a95465bc09bb36870245e15b1bef
ndroid/contacts/common/vcard/ImportVCardActivity.java
6890945234dc284d69303c01ecca444e402b75f0 14-Dec-2015 Jay Shrauner <shrauner@google.com> Fix NPE in readUriToLocalUri

Catch null local filenames.

Bug:26180970
Change-Id: If2848853e1e86a6b8a795fae554d97c0aa96ae0b
ndroid/contacts/common/vcard/ImportVCardActivity.java
82b293711b38fca4a30b5bf1b1637a1280a8d861 12-Dec-2015 Tingting Wang <tingtingw@google.com> Merge "Fix bug when adding an empty editor type in Editor UI." into ub-contactsdialer-b-dev
6d8c6294a5167cbdb832df07bf677a7f5bdd618c 11-Dec-2015 Tingting Wang <tingtingw@google.com> Fix bug when adding an empty editor type in Editor UI.

For both compact editor and full editor, using the method
in RawContactModifier to check if an empty editor type should
be inserted, since that method would check not only overall number,
but also the limit for each specific type.

BUG 22521808

Change-Id: Iefe401f26aec8d8cece4723c0486d3add6732f74
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/KindSectionView.java
4799a30d31b132e273d7145c8c30317700adf2fd 11-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Don't restore selection of all contacts list after a partition is loaded." into ub-contactsdialer-b-dev
aff6939adee8010a9b551f693498563394b6ada9 11-Dec-2015 Nancy Chen <nancychen@google.com> Merge "Check for compatibilty with call subject and video call features." into ub-contactsdialer-b-dev
e6708df18606ebe96142851be1f46da0de761ced 11-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Enable importing from SIM on pre-(L-MR1) SDKs" into ub-contactsdialer-b-dev
721986622a8dea8ef380ebfcca1f9c3849f2d1d6 11-Dec-2015 Wenyi Wang <wenyiw@google.com> Don't restore selection of all contacts list after a partition is loaded.

And restore selection of the list in onResume() instead.

Bug: 19982820
Bug: 26113201
Change-Id: I77e99bd7a83c7793bd134d94d08bcdfc46eb2af2
ndroid/contacts/common/list/ContactEntryListFragment.java
13d952e1da2bef1981d0911179a7f96d22867801 09-Dec-2015 Wenyi Wang <wenyiw@google.com> Enable importing from SIM on pre-(L-MR1) SDKs

Multiple SIM card support was added in L-MR1 (API level 22).
The SubscriptionManager was added and used in L-MR1 and onwards,
so we use TelephonyManager as a workaround on pre-(L-MR1) SDKs.
See ag/473449 for details of importing from SIM on pre-(L-MR1) SDKs.

Bug: 25629359
Change-Id: I6553c445e74ecfe5eadc422996924a573b7396c4
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ffab683af92b3e84c5218e65829ce0c9988bc69a 09-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Catch exception in starting ContactSaveService" into ub-contactsdialer-b-dev
dd7d456a080f48d93aa3a9f9b04da0f17a8833a7 08-Dec-2015 Wenyi Wang <wenyiw@google.com> Catch exception in starting ContactSaveService

This CL follows ag/798285 and adds try/catch blocks for all the places
that start ContactSaveService using static methods in ContactSaveService.

Bug: 23896510
Change-Id: Ie35cf0d213386a81a662777a5b37d6f3a3fc5633
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
abf5ba953355e357e505d8b4df92d1990f7504d0 09-Dec-2015 Ricky Wai <rickywai@google.com> Merge "Add work contacts search and directory in ContactsCommon" into ub-contactsdialer-b-dev
740bc93ca276cc12a0e6a1cc75d3a725410be83e 09-Dec-2015 Ricky Wai <rickywai@google.com> Merge "Make Contact app works can open work contacts" into ub-contactsdialer-b-dev
dffb27dc2d866a40dc88a7a38ec03c8bcea4b53e 08-Dec-2015 Ricky Wai <rickywai@google.com> Add work contacts search and directory in ContactsCommon

Add CallableCompat, ContactsCompat, PhoneCompat to simplify the logic in code

Bug: 25836833
Change-Id: I2cdb3bc32ab069f2bb81f41c08cef852f8526d52
ndroid/contacts/common/compat/CallableCompat.java
ndroid/contacts/common/compat/ContactsCompat.java
ndroid/contacts/common/compat/DirectoryCompat.java
ndroid/contacts/common/compat/PhoneCompat.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/DirectoryListLoader.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
5fe647dc40b039501f52878607c418d807587bc6 09-Dec-2015 Nancy Chen <nancychen@google.com> Check for compatibilty with call subject and video call features.

Bug: 25776171
Change-Id: I473bfd43bc903dbdf6821dd03db8855ae38c417b
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/compat/CompatUtils.java
78fe7a12b5678ea3b758e55040fe6b4225774140 08-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Backport isInsert() using wrapper class for ContentProviderOperation (2/2)" into ub-contactsdialer-b-dev
93fdd48dfe13a0066593b917cbd3babf68f79a2d 07-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport isInsert() using wrapper class for ContentProviderOperation (2/2)

Our strategy is to create a wrapper class around each instance of a
ContentProviderOperation and include the type of ContentProviderOperation
in wrapper. Since ContentProviderOperation is usually created by Builder
and we don’t have access to the type via Builder, so we need to create
a wrapper class for Builder first and include type.

Call stack: ContactSaveService --> RawContactDeltaList -->
RawContactDelta --> ValuesDelta

Bug: 25629359
Change-Id: Ib1c0c6e7d780564ca2ab837b0d73dcf2accc7a3a
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/model/BuilderWrapper.java
ndroid/contacts/common/model/CPOWrapper.java
ndroid/contacts/common/model/RawContactDelta.java
ndroid/contacts/common/model/RawContactDeltaList.java
ndroid/contacts/common/model/ValuesDelta.java
ed5202a2cc0b5916ed21f3afb3f2f19123eb028b 17-Nov-2015 Ricky Wai <rickywai@google.com> Make Contact app works can open work contacts

Bug: 25836833
Change-Id: Ic7151ad8341f48728fc95c68b9489410a6e35b3e
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ac99d622b4b667fc9f630ebb170b269fadfd035f 08-Dec-2015 Victor Chang <vichang@google.com> Merge "Make Dialer app handles work directory correctly in Search bar" into ub-contactsdialer-b-dev
67addcce8b54636c9e38f18db3bd262861aa3040 23-Nov-2015 Wenyi Wang <wenyiw@google.com> Backport isInsert() using wrapper class for ContentProviderOperation (1/2)

Bug: 25629359
Change-Id: I86bf1ec37feee4ecf56197e23dcf642c613046b8
ndroid/contacts/ContactSaveService.java
b83af232385ce619397b03a699d25178c403bcd1 01-Dec-2015 Victor Chang <vichang@google.com> Make Dialer app handles work directory correctly in Search bar

BUG=25899500

Change-Id: I5d6d9b6af72166c10d7658eb81ebbabbf26fac21
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/list/DirectoryListLoader.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
a9242e143ef468e74d28ac525539f803e120c520 01-Dec-2015 Wenyi Wang <wenyiw@google.com> Make photo selection handler available and pass photo URI on rotation

The root cause is that if we rotate screen before photo is taken/picked from
album, mPhotoSelectionHandler will be null after rotation. In addition, we
also need to restore photo URI after rotation to avoid opening Photos app
with a null URI.

Bug: 25895614

Change-Id: I625af9932a2c7f7b6c4531cc2e52973ff6c5efc7
ndroid/contacts/activities/CompactContactEditorActivity.java
62cfa6e5f4d6c7451d8649ae6b408e1b7ef954f2 05-Dec-2015 Brandon Maxwell <maxwelb@google.com> Using Compat code for createTtsSpannable

Bug:25776171
Change-Id: I04f9f08a5e032751c35a9a8c0e0d4b390d3843c3
ndroid/contacts/common/compat/PhoneNumberUtilsCompat.java
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
92e43c3dbd1233d5af8ccd263e9f6625d9ce070c 05-Dec-2015 Brandon Maxwell <maxwelb@google.com> Merge "Removing unused imports (fixes compat issues)" into ub-contactsdialer-b-dev
32edca255807bd35837fce30953945bad56459d7 04-Dec-2015 Brandon Maxwell <maxwelb@google.com> Removing unused imports (fixes compat issues)

Change-Id: If3da7ad47da22c064d91bc9500ebddfd1778fedf
ndroid/contacts/common/dialog/CallSubjectDialog.java
17294e1a32d4baff09430482d2c3719a61be85e9 04-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Backport isVoiceCapable() using getPhoneType()" into ub-contactsdialer-b-dev
8ad88302abe5b4b5a1c7cc7c22004b9d8febae0b 03-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport isVoiceCapable() using getPhoneType()

isVoiceCapable() was unhidden in API 22. We couldn't copy the code to
backport it because the app doesn't have access to
com.android.internal.R.bool.config_voice_capable. So we use getPhoneType()
as a workaround since it also calls isVoiceCapable().

Bug: 25629359

Change-Id: Ia117823ae871c7132014d10c5475eba5dbfda009
ndroid/contacts/util/PhoneCapabilityTester.java
ndroid/contacts/util/TelephonyManagerCompat.java
667741bd2019973c282a7c80ab1c8f7a06d5c785 04-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Backport Telephony.Threads to enable SMS interaction (1/2)" into ub-contactsdialer-b-dev
13e6b2e3cd3a1c9540b21f595738ded5b76a3e83 03-Dec-2015 Wenyi Wang <wenyiw@google.com> Backport Telephony.Threads to enable SMS interaction (1/2)

Also refactored private methods in PhoneNumberUtilsCompat.

Bug: 25629359

Change-Id: I9ac27050e35860ab2b35cc02faad23a88191457e
ndroid/contacts/common/compat/PhoneNumberUtilsCompat.java
ndroid/contacts/common/compat/TelephonyThreadsCompat.java
047197228d7e1112efdd5524f3e3b58926b848f6 30-Nov-2015 Wenyi Wang <wenyiw@google.com> Backport Telephony.Threads to enable SMS interaction (2/2)

Bug: 25629359

Change-Id: I50719b3e70cd740b57654d76efc8f6eb16c83514
ndroid/contacts/interactions/SmsInteractionsLoader.java
eab0b82ffcb89465e9781d6297161ca5416ca49e 26-Nov-2015 Nancy Chen <nancychen@google.com> Add CompatUtils class for compat common to Dialer and Contacts.

So far, we're just adding a method to determine whether the version is
multi-SIM compatible or not.

Bug: 25776171
Change-Id: If1edda1a157f35bf74dddbef8b9aaa49538c606f
ndroid/contacts/common/compat/CompatUtils.java
f74276cbfcb1e02872601efd448ab95dabbb48f9 01-Dec-2015 Wenyi Wang <wenyiw@google.com> Fix empty screen on Android L and tweak UI

Screenshots: https://drive.google.com/open?id=0BwSNbQ_IWQd2Mm1pMkU1QWE1bFU

Bug: 25850722
Bug: 25849077

Change-Id: Iec5624d5b5a9e5f365533df7976e79d0afa3d118
ndroid/contacts/list/ContactsUnavailableFragment.java
20fb67870512055cfeb22107d6c1ed6d5663960d 01-Dec-2015 Wenyi Wang <wenyiw@google.com> Merge "Avoid using prioritized mimetype on pre-M SDKs" into ub-contactsdialer-b-dev
6fa570f28d8a9e4c12acc7436747f848382d44d2 25-Nov-2015 Wenyi Wang <wenyiw@google.com> Avoid using prioritized mimetype on pre-M SDKs

Bug: 25629359
Change-Id: Id6f960fc5d39e3d3d1133d812ca273aaa48d312d
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
a6139f9d0a39269241cf3e35ce7611c191e81f07 30-Nov-2015 Tingting Wang <tingtingw@google.com> Skip requesting permissions for uri from Downloads.

BUG 25919377

Change-Id: I5561af0cba9d96770d3b29fdda18a602dfefc993
ndroid/contacts/common/vcard/ImportVCardActivity.java
0e368b0a34f8e469bd57d5da5860f5f2a668c7ce 26-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Set default account when there's only one writable account." into ub-contactsdialer-b-dev
2bef0a835f824f51735b40c9c0064a0720c49cae 26-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Set the default account when there's only one writable account." into ub-contactsdialer-b-dev
c0e44e15ca44b9e5a01db695635b8f5c4af3945d 24-Nov-2015 Tingting Wang <tingtingw@google.com> Set the default account when there's only one writable account.

Set the default account settings value.

BUG 25467864

Change-Id: Ib26d67868b36432b6107f80c945ce3eb43a190ca
ndroid/contacts/common/preference/DefaultAccountPreference.java
2795a88a8e89a44f7dc4334cc2ae00bbd19dc2c1 24-Nov-2015 Wenyi Wang <wenyiw@google.com> Backport ProviderStatus by using its old definitions

Changes in ContactsUnavailableFragment and ProviderStatusWatcher
are based on pre-M SDKs. Please see ag/699615 for reference.

Bug: 25629359
Change-Id: I813d27f1d445660e10404e66698d5b4ae056e1f9
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/ProviderStatusWatcher.java
ndroid/contacts/util/ProviderStatusCompat.java
4abdee91084b6ee89f1ef1a8b797a5a2e0272059 24-Nov-2015 Tingting Wang <tingtingw@google.com> Set default account when there's only one writable account.

Hiding the dialog to check with the user about default account
when adding a new contact for one writable account.

BUG 25467864

Change-Id: If97408c4205a31a17c2a5ca5a148592e678097ca
ndroid/contacts/editor/ContactEditorUtils.java
5da55ff837f57a63b409cd495cc25f61ed6fd709 19-Nov-2015 Wenyi Wang <wenyiw@google.com> Correct Talkback announcement of SMS shortcut on Quick Contact

Bug: 25794705
Change-Id: Ifd39d3cb88c1b27710fb307ca95949df17ee5d91
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
1f8d335d6e9342ce9f6c6e36fbfbcf62f332ce82 23-Nov-2015 Jay Shrauner <shrauner@google.com> Merge "Fix NPE when not connected to vcard service" into ub-contactsdialer-b-dev
4034698380626226671208f4ee016c32bcb7e7fa 18-Nov-2015 Wenyi Wang <wenyiw@google.com> Copy TTS code for backporting (1/2)

Bug: 25629359
Change-Id: Ic70bd512cfbe7bdf8af21295ee7433749b7fc458
ndroid/contacts/common/compat/PhoneNumberUtilsCompat.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/util/ContactDisplayUtils.java
fcc7dc9e271df409247b24cb3e8cdeb9017beeb5 19-Nov-2015 Wenyi Wang <wenyiw@google.com> Copy TTS code for backporting (2/2)

Bug: 25629359
Change-Id: I0fc62440802a2b28a22dd3ec7c2c2e5410ef5b80
ndroid/contacts/editor/TextFieldsEditorView.java
d23b633b26fc1f50b36e4004952bd857028656be 23-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Backport AggregationSuggestion URI builder" into ub-contactsdialer-b-dev
18fd9387ccad82da3afce5f091dc7b685aaea118 20-Nov-2015 Wenyi Wang <wenyiw@google.com> Backport AggregationSuggestion URI builder

Bug: 25629359
Change-Id: Ie498d0a08c78ce98c46b82f9c7e6d448b119d130
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/util/AggregationSuggestionsCompat.java
42a08d901e84ab4a7f3a8c4035f70dda1f4dd20a 20-Nov-2015 Tingting Wang <tingtingw@google.com> Fix bug on suggestion card behavior.

For new contact in Quick contact UI, auto select all the suggestions.

BUG 25745610

Change-Id: I0ed9184c29b6623d99dc10eec23a63e99d165628
ndroid/contacts/quickcontact/QuickContactActivity.java
17474f47a5b4c1a35ce3e7e4159e76831586b006 20-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Fix bug on edit email type for exchange contacts." into ub-contactsdialer-b-dev
0c14d011df376e5b5e7b357ab4379779491aab69 20-Nov-2015 Nancy Chen <nancychen@google.com> Merge "Handle backwards compatible permission lookup and requests (2/3)." into ub-contactsdialer-b-dev
054bd1e40d5bc17ed2cda58bf48d12b5b4955777 19-Nov-2015 Nancy Chen <nancychen@google.com> Handle backwards compatible permission lookup and requests (2/3).

requestPermissions is not available to the Activity class and
checkSelfPermission is not available to the Context class in API < 23.
Use other backwards compatible methods to implement the behavior.

Bug: 25776171
Change-Id: I65bf676fbf7dc9b079dcc6894ec3750bc0e12fe2
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
ndroid/contacts/common/util/PermissionsUtil.java
23d9b6e86d2cd15347ff7be0e911ee4992704d44 20-Nov-2015 Wenyi Wang <wenyiw@google.com> Use ContextCompat to handle getColor (2/2)

Bug: 25629359
Change-Id: I982172555532f4e7a8a756d7b4880ff0821d5f7a
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/quickcontact/QuickContactActivity.java
34d81ed8c8db7154f46ec8932f3b3484be64c268 20-Nov-2015 Wenyi Wang <wenyiw@google.com> Use ContextCompat to handle getColor (1/2)

Bug: 25629359
Change-Id: I38192f608728fbd338a572295ad85b0fba0e892d
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/list/ContactListItemView.java
77f1fda31b32bf514d0e11704e79fec7fc7010f0 18-Nov-2015 Wenyi Wang <wenyiw@google.com> Fix usage of getColor() on pre-M SDKs (1/2)

Bug: 25629359
Change-Id: I10e35d117ce9087e3031d2b90e41f0ce9a59ee81
ndroid/contacts/common/compat/CompatUtils.java
ndroid/contacts/common/list/ContactListItemView.java
56dfa580b5497f25169a4c875800ffff95cd31cd 18-Nov-2015 Wenyi Wang <wenyiw@google.com> Fix usage of getColor() on pre-M SDKs (2/2)

Bug: 25629359
Change-Id: I7c4ea6b1fb03e192569d41105977162f79339716
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/quickcontact/QuickContactActivity.java
17ed95195e6517d0a0aa6ac18a9320c9c03202b4 19-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Fix usage of getContext() on pre-M SDKs (1/2)" into ub-contactsdialer-b-dev
9342fbbba0cbf76d69e7e7b73e1aaa35adbc6c8a 18-Nov-2015 Wenyi Wang <wenyiw@google.com> Fix usage of getContext() on pre-M SDKs (1/2)

Bug: 25629359
Change-Id: I3a6c3413452d3f35aeea4011e15e420419ed0577
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
9bc9ba878cf7f77a2a6b3200a6ab716d13f1affc 18-Nov-2015 Wenyi Wang <wenyiw@google.com> Fix usage of getContext() on pre-M SDKs (2/2)

Bug: 25629359
Change-Id: Iafaa6f4e26944f6c4e37495fb8cfef946aeb0f8d
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
7962746741e1b09d85f284649075b72666bb7128 18-Nov-2015 Brandon Maxwell <maxwelb@google.com> Added class used to override the sdk version

Change-Id: I3d493cc73af8f0821a64b64ef3d2a497e6a41261
ndroid/contacts/common/compat/SdkVersionOverride.java
14c441b6be610332f3f1abc3c9932b8a24fd4e01 18-Nov-2015 Jay Shrauner <shrauner@google.com> Fix NPE when not connected to vcard service

Bug:25771051
Change-Id: I34261577407ef736315eeb74e2edb1bab7e005f0
ndroid/contacts/common/vcard/ExportVCardActivity.java
461647fbc460b68ac046c0e7025d9ffb7067fd69 18-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Request permission for non-gmail importing Vcard activity." into ub-contactsdialer-a-dev
am: 024c69549f

* commit '024c69549f68dc85f639e3d403f4b29776b1b498':
Request permission for non-gmail importing Vcard activity.
7cdb73816972d045bfd6d23f6a18822e9555f3d6 18-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Request permission for non-gmail importing Vcard activity." into ub-contactsdialer-a-dev
5da0bdf6971e53a9771ebd43bc8bcd40e02c28dd 18-Nov-2015 Tingting Wang <tingtingw@google.com> Request permission for non-gmail importing Vcard activity.

BUG 25729501

Change-Id: I1fe98f8be71de646a52b86f45eed9eee0a12b465
ndroid/contacts/common/vcard/ImportVCardActivity.java
d8a0543b08a32b62113bcaf06fa57497ac0fee4f 17-Nov-2015 Walter Jang <wjang@google.com> Merge "Use selected photo ID as the "photo to display" lookup parameter" into ub-contactsdialer-a-dev
da258ff16a03b150e4c8004aa2be6f20c196a1ec 17-Nov-2015 Walter Jang <wjang@google.com> Use selected photo ID as the "photo to display" lookup parameter

Don't use the photo ID passed in on the Intent to open the
editor since that will never change.

Bug 25729444

Change-Id: I84082245ac491c9481cc469d0b7342755250ec66
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
2876977d8df4e61004b103a8c12f7443ab297711 17-Nov-2015 Walter Jang <wjang@google.com> Don't save link suggestion count

Since we already save the suggestion IDs (and we can
get the count from it) we don't need to save the
count separately

Bug 25719683

Change-Id: I8c3e655e4939087aca805a86d38f286a124b95f9
ndroid/contacts/quickcontact/QuickContactActivity.java
10acf1948a61e3469486ef8e6864c5d602d93082 16-Nov-2015 Tingting Wang <tingtingw@google.com> Fix bug on edit email type for exchange contacts.

BUG 25714364

Change-Id: Ic6774ec53d44771131eda9d07d56ff72b9e08cec
ndroid/contacts/common/model/RawContactModifier.java
62e6e4d8ed36623fc3d601438b3616e72bad0d64 16-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Show visible and non deleted editor view to Editor UI." into ub-contactsdialer-a-dev
d482e0c41f5ebc7a11b781f6dcfbaed1f4f7ba3a 16-Nov-2015 Tingting Wang <tingtingw@google.com> Show visible and non deleted editor view to Editor UI.

BUG 25713840

Change-Id: I0c682b6873f5dd6c286c87020a3863dea6214e21
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionData.java
3184fc86688ca9a769072d7c4288afd5438e0c53 16-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Unset super primary of writable accounts photos" into ub-contactsdialer-a-dev
9086fb91b69241f53eaa09067b10797c0000891e 16-Nov-2015 Wenyi Wang <wenyiw@google.com> Unset super primary of writable accounts photos

Bug: 25714956
Change-Id: I2d24f57732b069f08a4913db20702f98b853db12
ndroid/contacts/editor/CompactRawContactsEditorView.java
6dc36b0172a79b8a310110739936ddae14234d32 16-Nov-2015 Tingting Wang <tingtingw@google.com> Hide Group editor if account has no groups.

BUG 25695708

Change-Id: If0ab5576287e4501a4f7b6e68ef1f40db0d629d8
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/GroupMembershipView.java
5835795b48ca8db363436363d587190c05b5f033 14-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Fix bug for exchange account editor." into ub-contactsdialer-a-dev
608d3211d95f86fd7b74f8b7558d4f1b712a1261 14-Nov-2015 Tingting Wang <tingtingw@google.com> Fix bug for exchange account editor.

For exchange account contact, name field is different from the others.
First name and last name are shown instead of one display name field.
So convertion between display name and first/last name need be added.

BUG 25673410

Change-Id: I617a9e356514db9468488e00f75420f09f63da83
ndroid/contacts/editor/StructuredNameEditorView.java
42d740c24e913dc8065f2dbbfeaf598bf2fb4180 13-Nov-2015 Wenyi Wang <wenyiw@google.com> Fix for undefined method

Change-Id: Ic04e7e0deb85d7a2bcdfe730fb05e80cf2b5ad42
ndroid/contacts/editor/CompactRawContactsEditorView.java
1b4ccf1ed5c6369e1b4ddde0ced9583b403e1c01 13-Nov-2015 Wenyi Wang <wenyiw@google.com> Add editor for visible valuesDeltas

Bug: 25690715
Change-Id: Id5438976fa7e4c0d31d0fbbdd0b40df361b72668
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/KindSectionData.java
87042c034a5d4ff15196aab7b19b5294e9e870f2 13-Nov-2015 Walter Jang <wjang@google.com> Revert "Expose RawContactDelta method to lazy get mime entries (E8)"
am: 22e07e8ec8

* commit '22e07e8ec873bfdba5d8425f1755a75de855385c':
Revert "Expose RawContactDelta method to lazy get mime entries (E8)"
df864c7808e84ad7938af5e1b5246f1b17673326 13-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Show delete button only when text is not empty" into ub-contactsdialer-a-dev
228e02f29dbe84c52129ba07cd44b83bea5f2751 13-Nov-2015 Walter Jang <wjang@google.com> Don't return invisible values deltas from KindSectionData

Also don't cache values deltas inside KindSectionData

Bug 25431751

Change-Id: I65478e25dfa536342a75f71db48af3e22a4bead1
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionData.java
ndroid/contacts/editor/KindSectionDataList.java
83e7e63a8c482a6969cd62ba5b33a6700c87efcd 13-Nov-2015 Wenyi Wang <wenyiw@google.com> Show delete button only when text is not empty

Bug: 25431751
Change-Id: I3daaaf9f1dc5353ebb799060d0ff568350db0a60
ndroid/contacts/editor/TextFieldsEditorView.java
de90f4457a3b65fe88cba7a7030e21d0682bf9e8 13-Nov-2015 Walter Jang <wjang@google.com> Revert "Expose RawContactDelta method to lazy get mime entries (E8)"

This reverts commit b5fb4cf162c8426baab713eee38bb42f2e8ef230.

Bug 23589603
Bug 25431751

Change-Id: I427943a948b20af39111fc19baffb5c561c01c40
ndroid/contacts/common/model/RawContactDelta.java
3d65ea5f6113c497f09abf18d3f11abdcd1c894f 13-Nov-2015 Tingting Wang <tingtingw@google.com> Don't show suggestion card for directory and invisible contacts.

BUG 25680118

Change-Id: I229a7005cee952bebec1de4247d16d8def4b6854
ndroid/contacts/quickcontact/QuickContactActivity.java
ebccb965e09da01c5eee97fd3a40562bf1d9ce0f 13-Nov-2015 Walter Jang <wjang@google.com> Ensure there is always a photo and name values deltas

* Don't hard code name mime type when trying to looking
for the entry to write

Bug 25671465

Change-Id: Ie236641a64b195350104e5771ae57b6b7f099ccc
ndroid/contacts/editor/KindSectionDataList.java
70e5caf694fa2566176d4f1fba4866a8063e41fb 12-Nov-2015 Tyler Gunn <tgunn@google.com> Merge "Enforce message length using encoding and limit from phone acc extras." into ub-contactsdialer-b-dev
71149ba5130583f74581f40190044cadf08d23ed 11-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Fix for Talkback announcement of local contact photo in photo picker" into ub-contactsdialer-a-dev
d0ac22fc7546537c55c5680e410ee4d1327df0fb 11-Nov-2015 Wenyi Wang <wenyiw@google.com> Fix for Talkback announcement of local contact photo in photo picker

Bug: 25498370
Change-Id: I854165e5ffa374a709b06e5c9cd8fbce24263f56
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
4571858f1eb73dd02dd2e15a97af7f31c0e62822 11-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Suppress TYPE_VIEW_SELECTED event when pressing "more fields" in editor" into ub-contactsdialer-a-dev
843de7780921fede41dda55b2f25d490d251e0c4 10-Nov-2015 Wenyi Wang <wenyiw@google.com> Suppress TYPE_VIEW_SELECTED event when pressing "more fields" in editor

This will get rid of the announcement of label spinners when pressing
"more fields" in editor.

Bug: 25500868
Change-Id: I15c8c928915398b815b9108e742cd460f50393c3
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/ViewSelectedFilter.java
0b144564a6cf26bfa4da2b7972f580b90d7ede2c 07-Nov-2015 Wenyi Wang <wenyiw@google.com> Enable Talkback for photo picker

- When pressing a button, Talkback speaks the button text.
- When pressing a photo, Talkback speaks photo's account type,
user name, and whether the photo is checked or not.
- When double tapping a photo, Talkback speaks the account type,
user name, and that the photo is checked.

Bug: 25498370
Change-Id: Id43a220a4d5625470ff0ad1ff40a840d9c6bcd84
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
4404dca3d46aa6dd3c0794f37d115072e09d0722 10-Nov-2015 Nancy Chen <nancychen@google.com> Add/remove voicemail tab accordingly when it is enabled/disabled.

Voicemail tab was not being updated correctly because it was being added
back when it should have been removed.

Bug: 25620191
Change-Id: Icd75db20f3068cfc4980d03014f283cd05e14bc6
ndroid/contacts/common/list/ViewPagerTabs.java
9467b38d1a370b5d5a4c516096b1ccb3840bc80a 09-Nov-2015 Tyler Gunn <tgunn@google.com> Enforce message length using encoding and limit from phone acc extras.

- Enforce length limit and character encoding using configured values from
the phone account extras.

Bug: 22779583
Change-Id: Id007855b4c10e945bdb534d7b877011e9c980c57
ndroid/contacts/common/dialog/CallSubjectDialog.java
d525e69a1918a3770fe6735ee2c8cc739da70b1e 09-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Use AlertDialog to enable Talkback on account selection" into ub-contactsdialer-a-dev
88e7278503ed334c9033e1a8bd4cf696b1b58f47 07-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Enable proper Talkback for "Contacts to display"" into ub-contactsdialer-a-dev
30b9283420e182d1fa2b323a65815fa45d62e2e6 06-Nov-2015 Wenyi Wang <wenyiw@google.com> Enable proper Talkback for "Contacts to display"

Also change the title string of Event to singular form.

Bug: 11538376
Change-Id: I76f8bad32d9f2e8864d8769da7548c5344d834b8
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactListFilterView.java
977dbb6d2fadca04484f3d510f07fd7913e3a9c7 06-Nov-2015 Ta-wei Yen <twyen@google.com> Add getTtsSpannedPhoneNumber() to ContactDisplayUtils

Change-Id: I5bc09a6e459fee8d522481c1c42cca4c892bbfde
ndroid/contacts/common/util/ContactDisplayUtils.java
334e81b933de7c75056ace5681d9478338ca45bc 07-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Correct content description of labels spinner and delete button in editor" into ub-contactsdialer-a-dev
b01be06b3e046fa1bfd04628992ae72d800a6df3 07-Nov-2015 Ta-wei Yen <twyen@google.com> Merge "LetterTileDrawable allows custom letter and color." into ub-contactsdialer-a-dev
75bd9344d364b69281a55f524a793aa5db98480f 05-Nov-2015 Ta-wei Yen <twyen@google.com> LetterTileDrawable allows custom letter and color.

For special icons that use the same style as avatars

+ LetterTileDrawable store and draw the color and letter, instead
of display name and identifier.
+ Added setColor() and setLetter() to customize the coloer and letter.
+ setContactDetails() renamed to setLetterAndColorFromContactDetails(),
and set the color and letter accordingly.
+ Added method chaining for setters.
+ Fixed letter vertical alingment.

Bug:25455707
Change-Id: Ic6d6bab3bf1808d37b55fde5ecef2c63dbac8cda
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
daf8a41b06faa010851f7391364f37a4db1e7d04 06-Nov-2015 Wenyi Wang <wenyiw@google.com> Correct content description of labels spinner and delete button in editor

Now, pressing on the labels spinner, Talkback will say "<Kind> drop down
list"; pressing on the delete button of editor with labels, Talkback will
say "Delete <Type> <Kind>"; pressing on the delete button of editor without
labels, Talkback will say "Delete <Kind>".

Bug: 11553536
Bug: 25499016
Change-Id: Ibb57ee2226c4eea159e75c7cf901c3febd83fa82
ndroid/contacts/editor/LabeledEditorView.java
902e02a128eba1567b39d90f566eeeba6013d931 06-Nov-2015 Tingting Wang <tingtingw@google.com> Add open source license html file to Setting->About.

Start a new activity to open html file when clicking on "Licenses"
from Setting->About.

BUG 25358009

Change-Id: I6a9d92bdcc2e3ac34e892de3c4ffb2ebb7a3deb3
ndroid/contacts/common/activity/LicenseActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
67c80a0370571faf24a5e9d1b890b98d8585b78c 06-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Fix bugs on RTL alignments." into ub-contactsdialer-a-dev
9f153a02a56b9d97dc51371243c52e79fbce5813 06-Nov-2015 Tingting Wang <tingtingw@google.com> Fix bugs on RTL alignments.

1) when Quickcontact displayname is phonenumber.
2) fix alignment for "saving to" account in editor UI.
3) fix alignment for editor text in editor UI.

BUG 19209562
BUG 25513982
BUG 25514141

Change-Id: I7fba04b8a5e26ed4c3f3ccf3954cbc0639909291
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
6bb619dfd9e361e4a0761d6a2bbc6d10a0572f6b 06-Nov-2015 Tingting Wang <tingtingw@google.com> Fix bug on displaying phone number in RTL languages.

BUG 19209562

Change-Id: Ib1e19674f95e5fb3fb9549cb7cdb1c332bbe4bbb
ndroid/contacts/common/list/ContactListItemView.java
d1cb9045bffc3843f5a294d41ce4608c701bcccc 06-Nov-2015 Wenyi Wang <wenyiw@google.com> Close QuickContact after unlinking contact from editor

Bug: 25230841
Change-Id: Ifbf5bb5d9cbfe7ea9186176d59f36d82953462a3
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
7806eded62dc5946bea3aa7edfcfd2b19ba30ea2 06-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Revert "Reload QuickContact after unlinking to remove stale badges"" into ub-contactsdialer-a-dev
60b44bfe5af44f89a39f398deb44acf07b8a9084 05-Nov-2015 Wenyi Wang <wenyiw@google.com> Use AlertDialog to enable Talkback on account selection

Three cases are affected: 0/1/2+ writable accounts.

Bug: 19102305
Change-Id: I9c232af7ab2bce153100717c41a147716ff894d3
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
2bac9401f5020cc726bef6ea301a85116db41c6e 06-Nov-2015 Wenyi Wang <wenyiw@google.com> Revert "Reload QuickContact after unlinking to remove stale badges"

This reverts commit 42a6b34fe1505b0e3dd1c32c8c4b33e09e5d802c.

Change-Id: Ic7ce7b8a9c361196bd0e8cbd3a10acfe03dd1049
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
8cbcade04d9a8c351f0fe8567d4432bd8ab25f05 05-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Add About Settings in Contacts App. (1)" into ub-contactsdialer-a-dev
debe2da93208ee921411321129ff8b04f0b498d0 02-Nov-2015 Tingting Wang <tingtingw@google.com> Add About Settings in Contacts App. (1)

Add about fragment to Common, including build version, licenses,
privacy policy and terms of service.

BUG 25358009

Change-Id: Ib7102c3b6f5f7f69ea9769d7514d84e899d1e4a9
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
6a1fb6bbb7904b7759bd0a11ccf3a01dc56b8a81 04-Nov-2015 Wenyi Wang <wenyiw@google.com> Change title string of account selection dialog when importing contacts

In addition to the string change, this CL also fixed a TODO in
one of the two dialogs using the string.

Bug: 25476465
Change-Id: I8ad2a00446ae776c7e97b38462edfac7d4728401
ndroid/contacts/common/util/AccountSelectionUtil.java
3f3621bd860217cddd90ab3c99aa6e6de67d1867 04-Nov-2015 Wenyi Wang <wenyiw@google.com> Merge "Reload QuickContact after unlinking to remove stale badges" into ub-contactsdialer-a-dev
80e025809be0dfc338a84d5d03de5b0e9f30c1b4 04-Nov-2015 Wenyi Wang <wenyiw@google.com> Change padding in account selection dialog (2/2)

This CL fixes the padding in account selection dialog opened
when importing contacts. The account_selector_list_item_condensed.xml
is created based on account_selector_list_item.xml and with unique
margin settings. This is because account_selector_list_item.xml was
used in 3 places, and it didn't align well with the importing contacts
dialog.

Screenshots: https://drive.google.com/a/google.com/folderview?id=0BwSNbQ_IWQd2Zlh0OExxSkJtQ0U&usp=sharing

Bug: 22292872
Change-Id: I98f3093dd20bf87354676647355984d1427e21af
ndroid/contacts/common/editor/SelectAccountDialogFragment.java
ndroid/contacts/common/util/AccountsListAdapter.java
42a6b34fe1505b0e3dd1c32c8c4b33e09e5d802c 04-Nov-2015 Wenyi Wang <wenyiw@google.com> Reload QuickContact after unlinking to remove stale badges

Bug: 25230841
Change-Id: I697ab4822168f3320b9b2dc37014df15e5e2a3be
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
eec094a21ac173abd2cdddb6903bd1fa39b7c5bf 04-Nov-2015 Brandon Maxwell <maxwelb@google.com> Merge "Adding method to choose namePrimary or nameAlt for sorting purposes" into ub-contactsdialer-a-dev
ef0bb49a4316c36f35d76d2aaae0e0cb558d7cc3 03-Nov-2015 Tingting Wang <tingtingw@google.com> Merge "Fix bugs when reading phone number in talkback mode." into ub-contactsdialer-a-dev
b6949dc7ed1b0ab47dc6a39b3ae0d42e029be2b4 03-Nov-2015 Tingting Wang <tingtingw@google.com> Fix bugs when reading phone number in talkback mode.

1) In quick contact UI, phone number should be read out in number format.
2) In edit UI, phone number also should be read out in number format.

BUG 25447971

Change-Id: I5b2e60cd25c2585d4314996c14b126e9f2ce0470
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ce0413b7c8fc85a782c611c5b0b4fce1d6f40256 03-Nov-2015 Wenyi Wang <wenyiw@google.com> Hide keyboard on touching type spinner and show it after selection changed

Bug: 25322155
Change-Id: I33eecbcaad15828a417921b893d6eb495395a15c
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
477571646c3a41de41cd2e79c7b1f6d234f7d0e3 03-Nov-2015 Ta-wei Yen <twyen@google.com> Fixed contacts tab reset to top after lock/unlock

+ save and restore list view position in ContactEntryListFragment
when the fragment is not recreated.

Bug:19982820
Change-Id: I65f8f42f0088f8507e81990d73c301e5697055ae
ndroid/contacts/common/list/ContactEntryListFragment.java
b7933743dd27d537c64303e33e23a1461989f6c6 02-Nov-2015 Tingting Wang <tingtingw@google.com> Change accessibility message for account picker.

BUG 25324831
Change-Id: Ib20e7b2f0e581e25942b9dea993617642d813eb5
ndroid/contacts/editor/CompactRawContactsEditorView.java
3e2799f94bc1ffe1da9ebc9e68b5e1d6ff4ad4a0 31-Oct-2015 Brandon Maxwell <maxwelb@google.com> Adding method to choose namePrimary or nameAlt for sorting purposes

Change-Id: Ic0a1a6d9fc378a68bad6368a65b54c999878f462
ndroid/contacts/common/util/ContactDisplayUtils.java
8160caba2b064ef7c7446295f43e1d98e513bd93 31-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Apply contact save ops before we reach the max batch op threshold" into ub-contactsdialer-a-dev
ccdf69cb069764a971bf0173f3440cdbece58be3 30-Oct-2015 Wenyi Wang <wenyiw@google.com> Apply contact save ops before we reach the max batch op threshold

In order to test the special case handled by this CL, you may want
to use a contact consisting of at least 23 contacts.

Bug: 22986058
Change-Id: Ic141a7b52907be930d898d1710e95aa5ffe9be8a
ndroid/contacts/ContactSaveService.java
ae9c0662eeff7ea8a0b4855a26fda893f6fb1b2f 30-Oct-2015 Tingting Wang <tingtingw@google.com> Merge "String changes to Contacts App (3/3)" into ub-contactsdialer-a-dev
b708f0adae06c3bac8758cfc9488c6386d864e00 30-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Add account type icon to account info header and change style of "Saving to"" into ub-contactsdialer-a-dev
07bc6766184d7c95724c549944633061b062d8ef 30-Oct-2015 Tingting Wang <tingtingw@google.com> String changes to Contacts App (3/3)

1) Delete read-only contact dialog.
2) Link and Unlink dialog title removing.

BUG 25386765

Change-Id: Icf238b27ff3928b0cc6245bb6f7b8266aaaf8d13
ndroid/contacts/editor/JoinContactConfirmationDialogFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
aa85838fddac78121d555a22e7e0215967cae433 30-Oct-2015 Brandon Maxwell <maxwelb@google.com> Merge "Adding util to consolidate primary/alternative name choice" into ub-contactsdialer-a-dev
22eda219dc55542ce2914f48ed304a552769d539 30-Oct-2015 Brandon Maxwell <maxwelb@google.com> Merge "ContactTiles include display_name_alt col" into ub-contactsdialer-a-dev
c1e027285029a53b85699667dafa48f4ccde78ba 30-Oct-2015 Brandon Maxwell <maxwelb@google.com> Adding util to consolidate primary/alternative name choice

Change-Id: I61489f896436415b80484a69392c0cf2e111b6c0
ndroid/contacts/common/util/ContactDisplayUtils.java
3e8cc3545302155fdd262ab1935029247e82254d 29-Oct-2015 Wenyi Wang <wenyiw@google.com> Add account type icon to account info header and change style of
"Saving to"

Screenshots: https://drive.google.com/a/google.com/folderview?id=0BwSNbQ_IWQd2NUFqb21MUm11WU0&usp=sharing

The changes related with "Saving to" (b/25366902) are in:
- res/layout/editor_account_selector.xml
- src/com/android/contacts/editor/CompactRawContactsEditorView.java

The changes related with account type icon (b/25189655) are in the
other files. The account type icon is added to account info header
in both full editor and read-only editor.

Bug: 25189655
Bug: 25366902

Change-Id: I4f149f639debd31296da81f6678cda8d01007ea9
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
168331d85c5be43a816eb24fd37a2ebdbe61ac53 30-Oct-2015 Tingting Wang <tingtingw@google.com> String changes to Contacts App (2/2).

1) Suggestion card help message.
2) Delete confirmation dialog.
3) Link, unlink and discard confirmation dialog.
4) All Contacts tab.
5) Place on home screen.
6) Default account dialog text.

BUG 25386765

Change-Id: I79a31ee143f38868d92c4d6f0379694462f595fb
ndroid/contacts/editor/CancelEditDialogFragment.java
ndroid/contacts/editor/JoinContactConfirmationDialogFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/interactions/JoinContactsDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
0d9c24b77d319db5ecf21e92898625fdec5c1ec2 29-Oct-2015 Walter Jang <wjang@google.com> Warn about saving pending changes before unlinking

Also, remove unchanged new raw contacts that were
created to edit read-only contacts before unlinking.

Bug 25314004

Change-Id: Id75083456cd24fc1b06e489380614172bd370ad4
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
e3373dceb689209533e95a2cfbfbf1d9008ab6f6 27-Oct-2015 Walter Jang <wjang@google.com> Don't save editor before showing join suggestions

This requires us to pass the raw contact ID of the
contact to join to both the (new) confirmation
dialog and the contact save service so that we
have it to do the join after the save completes.

Bug 25314004
Bug 21956248

Change-Id: Icdcb2165a0e599dfa3745fe8a919b208d4a48b43
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/JoinContactConfirmationDialogFragment.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
756fc2405c3571e5fea6ac4c8d37156e49ed585f 29-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Show "Link" item when applicable and show correct toast for deletion." into ub-contactsdialer-a-dev
902081114f7e853bd4c64e8c96b2476020b610aa 29-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Check if the handler is registered before showing "Export database files"" into ub-contactsdialer-a-dev
687d218928bd188a13cc32a3c553590fe0d564b1 29-Oct-2015 Wenyi Wang <wenyiw@google.com> Show "Link" item when applicable and show correct toast for deletion.

b/25165853 is about the "Link" item. And this CL also does the following
things:

1. show toast for deleting 1/multiple contacts from PeopleActivity.
2. show toast when deletion happens in QuickContact and contact editor.

Bug: 25165853
Change-Id: Ia8ecb6b4118ecff3bc3ba50ac98ffadf337db52c
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ff1be3092d671594f15c187e4ffa31e02f434f2d 28-Oct-2015 Brandon Maxwell <maxwelb@google.com> ContactTiles include display_name_alt col

- Added DISPLAY_NAME_ALTERNATIVE to returned columns
in ContactTileLoaderFactory
- Added needed fields to ContactEntry
- Updated ContactTileView.getNameForView method to accept ContactEntry.
Allows subclasses to properly choose which field to return from input

Change-Id: I30cf5ae9bc737cfca4058f416069c5c461400af1
ndroid/contacts/common/ContactTileLoaderFactory.java
ndroid/contacts/common/list/ContactEntry.java
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/ContactTileView.java
2f09e604bc8292015bb728b054032443dcbc69c6 28-Oct-2015 Wenyi Wang <wenyiw@google.com> Check if the handler is registered before showing "Export database files"

Change-Id: I528532d00b482c7eaf5f38ce5f877e0b6e8b2e57
ndroid/contacts/activities/PeopleActivity.java
1604c1e95d333913081de1ef3f629e7fb31a18da 28-Oct-2015 Tingting Wang <tingtingw@google.com> Save default account setting from previous preferences.

Default account was saved in another preferences before
adding "Default account" setting. Read it if Contacts apps was
upgraded from the old version.

BUG 25341224

Change-Id: I5ff8abf03af43360a71c74a35001f492d4989028
ndroid/contacts/common/preference/ContactsPreferences.java
6211694dae16feadaeb2ba445f16041d97c591c2 28-Oct-2015 Nancy Chen <nancychen@google.com> Merge "Read unread count in tabs with context in Talkback mode." into ub-contactsdialer-a-dev
9c37553934b72064fbf54164c5ad9d8a886c7167 27-Oct-2015 Walter Jang <wjang@google.com> Can skip mime types when checking raw contacts for changes (DN 1/2)

Bug 21956248
Bug 25314004

Change-Id: I3b3c1a88cab6f2775b4840df31b57dfa8c3cc9c8
ndroid/contacts/common/model/RawContactModifier.java
e394595987e288807b8c02c78d7d33e854f152b1 27-Oct-2015 Walter Jang <wjang@google.com> Set read only display name as primary in fragment not view (DN 2/2)

Also, don't remove the display name from the editor input
field when checking for pending changes, instead just
skip the name mime type after detmining that the read only
display name was used and that it didn't change.

Bug 21956248
Bug 25314004

Change-Id: I9da8430206a721a52b8dad19e5eb235cb9e57fb3
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
7be9d27563e5873f349bc1cf6ef9915b24967328 28-Oct-2015 Tingting Wang <tingtingw@google.com> Merge "Hide account container in compact editor." into ub-contactsdialer-a-dev
1594c6f3603e071c75294c9c430cee45ef642479 27-Oct-2015 Tingting Wang <tingtingw@google.com> Hide account container in compact editor.

Show account container when editing ME profile.
Hide account container when linking a writable contact with
a readonly one in editor. Also, showing unlink menu in this case.

BUG 25231329

Change-Id: Ia8cb59b93e0a3e46bcfa265d2d16518b3900204a
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
24d579f5f9ef52a6b60825635da66b18e1187032 28-Oct-2015 Nancy Chen <nancychen@google.com> Read unread count in tabs with context in Talkback mode.

Read the unread count as "x unread items" in the tab title.

Bug: 25122434
Change-Id: I1acbebdae979c7ef6c177713ccbe59af6e16a949
ndroid/contacts/common/list/ViewPagerTabs.java
b8ab8612a80604dddbd1f87bc0b7aa5143af0ca3 27-Oct-2015 Wenyi Wang <wenyiw@google.com> Allow G+ profile photo to be saved as ME profile.

Bug: 25282799
Change-Id: Ie3872383311b401b2e8f3a983e27fcfe592c84f7
ndroid/contacts/editor/CompactRawContactsEditorView.java
e5e2c741f969311a812c673218caf5b3a25a7f81 27-Oct-2015 Yorke Lee <yorkelee@google.com> Merge "Don't crash if R.styleable int array is null" into ub-contactsdialer-a-dev
a675e3a44603e31869f2cfbb28bab525a8e1b55e 27-Oct-2015 Yorke Lee <yorkelee@google.com> Don't crash if R.styleable int array is null

Workaround for a very very strange test/AAPT/ART bug that causes
R.styleable int arrays to be null during test instrumentation even
though the values are there in the generated R files and via
reflection.

These changes have no effect on production since those fields should
never be null then but help to prevent tests from failing.

Change-Id: Ic986f6411886ef5d5858ec15f2e9f68826a5dd39
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
e09b8e2cc2245d431d5dd332d07abb67f94ea77a 27-Oct-2015 Nancy Chen <nancychen@google.com> Merge "Ability to update just one tab instead of all of them." into ub-contactsdialer-a-dev
0efa197cd3d2c99de2cb6cfbc45d580d77daaf41 26-Oct-2015 Nancy Chen <nancychen@google.com> Ability to update just one tab instead of all of them.

Sometimes we only want to update one of the tab title/icons without
updating the whole tab strip. For instance, when updating the unread
voicemail count.

Bug: 25124120
Change-Id: I4a53b3b2c2a870da845c6e4109dd184af9cf7e9d
ndroid/contacts/common/list/ViewPagerTabs.java
2f94e320c13d079644df5dd96caf278862b11f74 27-Oct-2015 Walter Jang <wjang@google.com> Merge "Don't hide types when associated label is empty" into ub-contactsdialer-a-dev
f7dfa54ed84dc2499a860d2dca362eca8fd78433 26-Oct-2015 Walter Jang <wjang@google.com> Don't hide types when associated label is empty

This is causing hints to not be displayed
occassionally and is a little jarring/janky.

Bug 25035421

Change-Id: I48d3247bd0548f1a3de58953ab6895c660e07159
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
96efbb85af828e3dac9c4e09048c9ef9a7cfdde4 26-Oct-2015 Wenyi Wang <wenyiw@google.com> Avoid crash on rotation before unlinking

Also fixed:
- "LINK CONTACTS" button being disabled after unlinking.
- Padding for local contacts in suggestion card.

Bug: 25230542
Change-Id: Ia67e0faf2f809f8cd0c15e145cb8e3d74ae43e2b
ndroid/contacts/quickcontact/QuickContactActivity.java
7ab14cbdb81cbb62c31db4102d1107d61a3823f3 26-Oct-2015 Walter Jang <wjang@google.com> Merge "Don't skip pending check when save to account changed" into ub-contactsdialer-a-dev
13aede84cf83a9fb4bfb2f28eb77429b3b43169d 26-Oct-2015 Wenyi Wang <wenyiw@google.com> Use string "Contacts unlinked" when unlinking

Also removed the period in "Contact saved."

Bug: 25231225
Change-Id: I95908809b144911ced124ea52abe5d6cdece3774
ndroid/contacts/editor/ContactEditorBaseFragment.java
33f60d35a16407868de09ca898028e5eca6c6de3 24-Oct-2015 Wenyi Wang <wenyiw@google.com> Keep button style unchanged on rotation.

Bug: 25228841
Change-Id: Ia2bd9f22e7e46d1a26b0624380961d9134892d47
ndroid/contacts/quickcontact/QuickContactActivity.java
2c7fdac948e7b815ff5ef3a6989b8f1f4eeba323 26-Oct-2015 Walter Jang <wjang@google.com> Don't skip pending check when save to account changed

Bug 25231216

Change-Id: I342a25ce52735052c2b4d5a6620581067c68762a
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
e88621710f4c9bd123da5b1ceabe35ec99bd3a79 23-Oct-2015 Brandon Maxwell <maxwelb@google.com> Fixing refresh bug with ContactsPreferences

Observed: ContactsPreferences would detect that SharePreferences had
changed, but wouldn't update its cached values. This resulted in the
initial cached values always getting returned, regardless of what value
was stored in SharedPreferences.

Change-Id: Ide596dc8a7e4612748531b139bcb6438590a3977
ndroid/contacts/common/preference/ContactsPreferences.java
5cf746f679b7866505f8b057565a648d65d1cad8 24-Oct-2015 Wenyi Wang <wenyiw@google.com> Avoid crash in loading images

Bug: 25165935
Change-Id: I3cef0e075cb6e306dd9e11a8d29bfc718e21ec13
ndroid/contacts/quickcontact/QuickContactActivity.java
81e7fea1d73f243b95372712ea869e1fd584a0b3 24-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Suggested Aggregations Color and Spacing Tweaks" into ub-contactsdialer-a-dev
5368489acaadac82706ca0e678ec04d662db702e 23-Oct-2015 Wenyi Wang <wenyiw@google.com> Suggested Aggregations Color and Spacing Tweaks

In collapsed view
- modified image size, text.

In expanded view
- modified title text, help text and size,
- modified current contact photo and padding, added current contact info below contact name,
- modified suggestion photo and padding
- modified button color, and made it listen to the checkboxes

Bug: 25165935
Change-Id: I21a32c78d0bcc664693547641e0d0e8ca37a90e3
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/quickcontact/QuickContactActivity.java
2bb85d2c733b8e88da27f6bd90546fa032d4da05 23-Oct-2015 Tingting Wang <tingtingw@google.com> Fix account selector UI in Contact editor.

1) Hide the "Saving to" account container when there're both
read-only and writable contacts.
2) Add more space between name field and whatever are above it.
3) Show linked contacts selector when there's only one read-only.

BUG 25219324

Change-Id: I9229132a833400de5cb542bc5363a4e3f36c9d1a
ndroid/contacts/editor/CompactRawContactsEditorView.java
9ea0fe043677357a4d56c548d00d43f5d6d010a5 23-Oct-2015 Brandon Maxwell <maxwelb@google.com> Revert "Fixing refresh bug with ContactsPreferences"

This reverts commit cfaee482a616fb8a50fc16cad62cefab5efd72bd.

Change-Id: I93f6fc9a9dbd5546495a1187011234a569582077
ndroid/contacts/common/preference/ContactsPreferences.java
07b4b2fca9ac0b06af2df0373ea3bda47474efae 23-Oct-2015 Tingting Wang <tingtingw@google.com> Merge "Do not show suggestions when contact is not created." into ub-contactsdialer-a-dev
a1af0c833e7b4113126131e9949c3d4c9579e5df 23-Oct-2015 Tingting Wang <tingtingw@google.com> Do not show suggestions when contact is not created.

BUG 25188901

Change-Id: I8ed983f5c8031030b7e90cabc755c92296f62eef
ndroid/contacts/quickcontact/QuickContactActivity.java
df2b25c3515becc4e673316751fc2e34fd0f081e 23-Oct-2015 Walter Jang <wjang@google.com> Prune invisible link suggestions by default

It's weird that the quick contact card and the editor
name popup show different things.

Bug 25186736

Change-Id: Iaab525926bdcbab0664c44b46ba493f145059263
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/quickcontact/QuickContactActivity.java
176d677f0604ec93613261155b9ec551a3d29158 23-Oct-2015 Tingting Wang <tingtingw@google.com> Merge "Hide invisible contacts in suggestion card." into ub-contactsdialer-a-dev
e5e6a2acc903c94962657b3c97219bc20ec8cd6b 23-Oct-2015 Tingting Wang <tingtingw@google.com> Hide invisible contacts in suggestion card.

Only show visible contacts in Quick contact suggestion card.

BUG 25186736

Change-Id: I56cd2d9bbd75772940d81582d2196bcbce0bf209
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/quickcontact/QuickContactActivity.java
2e569510fd85d94c699264fde71f7ae24ff2a18d 23-Oct-2015 Walter Jang <wjang@google.com> Merge "Allow "Saving to" and linked selectors to be displayed at the same time" into ub-contactsdialer-a-dev
80dbf18403083c7aadcb80baa4c7c29556869e5f 23-Oct-2015 Brandon Maxwell <maxwelb@google.com> Fixing refresh bug with ContactsPreferences

Observed: ContactsPreferences would detect that SharePreferences had
changed, but wouldn't update its cached values. This resulted in the
initial cached values always getting returned, regardless of what value
was stored in SharedPreferences.

Change-Id: Ie11e1e655ccdeb344a99b8eff02d81f56dad2c18
ndroid/contacts/common/preference/ContactsPreferences.java
23709545a1060e48f60e90f592c44811910e88c8 22-Oct-2015 Walter Jang <wjang@google.com> Allow "Saving to" and linked selectors to be displayed at the same time

Also, only show contacts that can be opened in the full editor
in the linked accounts selector.

Bug 25186290

Change-Id: Iefecb47b40160b291acdc358fad4a6c17492df07
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
19952cdd46f67fb59b47cea43d407a682dcb91c6 22-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Catch transaction too large exception" into ub-contactsdialer-a-dev
c47121c52b9d78c4ebad8aac4d4823d9dbc4334e 22-Oct-2015 Wenyi Wang <wenyiw@google.com> Catch transaction too large exception

Some raw contacts from WhatsApp may be very large since WhatsApp stores
duplicate data. Editing and saving the linked contact of those contacts
may cause a crash. For now, let's prevent the crash and show a toast.

Bug: 23896510
Change-Id: I0b6e94b7bb693008521c66d692c946031c6a8259
ndroid/contacts/editor/CompactContactEditorFragment.java
552a6b87a572bca7983484869035107705d8b228 22-Oct-2015 Walter Jang <wjang@google.com> Remove discard editor menu option

Also hide voicemail menu options for the me profile

Bug 25165475
Bug 25164540

Change-Id: I0c0dc318ac9bbe8a36656c2383091d7c9d4ce5cf
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/group/GroupEditorFragment.java
f5ac33af8189b223fc4ad87484981339b1654482 22-Oct-2015 Tingting Wang <tingtingw@google.com> Add name to rawContactDelta when editing a Me contact.

This cl will fix Me profile editor by showing its name field.

BUG 25159510

Change-Id: Ifd29528c3a9c0f017af3532a50f3b1f00d953969
ndroid/contacts/editor/KindSectionDataList.java
65175dcd2e8caa5ef156c77646651d034142a9a4 21-Oct-2015 Tingting Wang <tingtingw@google.com> Merge "Fix NullPointerException in Contact Editor." into ub-contactsdialer-a-dev
ac4b12f5e303647f7a6437e36be7026446d4e99f 21-Oct-2015 Tingting Wang <tingtingw@google.com> Fix NullPointerException in Contact Editor.

Contacts App crashes when trying to edit a new read-only contact.
It only happenes sometimes.

Change-Id: Ib3a5d139e029d5b4ae296485ac3fa4f68f6b9881
ndroid/contacts/editor/CompactRawContactsEditorView.java
bfea74f34f3c1c4ea33302c0c59635acb7b801ad 19-Oct-2015 Wenyi Wang <wenyiw@google.com> Further UI tweak of photo picker

- When photo picker is shown, the action bar title will be "Choose photo".
- Modified column width of GridView in photo picker to use entire screen
width.
- Changed the folder of all photos button to "all photos"

Bug: 24988706

Change-Id: Ia3e3ddf515c308e1cf6cdabc4c99fd7f9d983bc0
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
82acd42c04554bd565c42e0a6674159d6887e1fe 17-Oct-2015 Walter Jang <wjang@google.com> Choose the right contact to display in the single name field

* Also guard against there not being a primary raw contact delta
* Fix account info header when there are no accounts

Bug 25035441
Bug 23589603

Change-Id: I6ba6bd3b7377295f9522dbf0623962fb6e7af367
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionDataList.java
409541c8bb576145c831ea4c63d77db6cf3f7884 16-Oct-2015 Wenyi Wang <wenyiw@google.com> Photo Picker Design Tweaks

Removes the camera button in the top right corner and uses two buttons to take a photo and
select a photo.

Bug: 24988706

Screenshots:
https://drive.google.com/a/google.com/folderview?id=0BwSNbQ_IWQd2RWpldXJEOFhkMW8&usp=sharing

Change-Id: I579016ad0bcfcb7a2b5407717b59ed1539f1eecc
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
be5e1b109ce134c7f3f45cd4fc27b69454d7ad31 17-Oct-2015 Walter Jang <wjang@google.com> Show "local only" account name for me profile

Bug 24988734

Change-Id: Ief827757e148d240ec74b46c1dfbb11c1c68a18c
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
9488a766fd27dfe5324205a95e9465aacc470e58 16-Oct-2015 Walter Jang <wjang@google.com> Fix the account selector and linked accounts titles

Bug 24988734
Bug 23589603

Change-Id: I1032decbd7aee04efd0b61aaf39a14a54b69be6b
ndroid/contacts/editor/CompactRawContactsEditorView.java
18906c03230be7de5b8e8bf663312cbc9a7c3097 16-Oct-2015 Tingting Wang <tingtingw@google.com> Polish the suggestion card in quick contact.

1) Add the title and help message to make user understand it easily.
2) Change the suggestion card UI to make it small when user doesn't
want to show it and expand it if it's useful.

BUG 24988440

Change-Id: I92f5bf13bee949140a86f35404347c365a6f1d1e
ndroid/contacts/quickcontact/QuickContactActivity.java
f695eb38011cf1140f73f533be726f420bc0a3fd 16-Oct-2015 Tingting Wang <tingtingw@google.com> Editor should only show one name field.

BUG 24974860

Change-Id: Iaefd1fc42f440ca378aa4cc91b47e6688739107f
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionDataList.java
708774a560438e66f35cbb26b47fe32898b9ed15 16-Oct-2015 Walter Jang <wjang@google.com> Add missing import

Change-Id: I73fe94c9ea5c4969c9e2685215b9051379fd9de6
ndroid/contacts/editor/CompactRawContactsEditorView.java
fc0a90d5be5723874cb41fa704d93ce384f005c8 16-Oct-2015 Walter Jang <wjang@google.com> Merge "Put back setting photo" into ub-contactsdialer-a-dev
4c9cf3ae7056b7189372973e2f04fb9e0f2c3242 16-Oct-2015 Wenyi Wang <wenyiw@google.com> Put back setting photo

Bug: 24910349
Bug: 19697372
Bug: 23589603

Change-Id: I7789add9ae05928b0cd1e540da97dc6c0c9e7771
ndroid/contacts/editor/CompactRawContactsEditorView.java
45b86d5e83a7d6eca4abe5cdfece2e9050b1809c 16-Oct-2015 Walter Jang <wjang@google.com> Put back setting of photo from template

* Mistakenly remove it in ag/790426
* Also looks like we weren't setting from template it to true
after removing the photo.
* Finally, don't set super primary on the local profile

Bug 24981999
Bug 19697372
Bug 23589603

Change-Id: I3e759d5ea75e10c62108728874b771446ac61631
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
e5e7aefb0c258d69e1e4dac841f3815f55c75835 15-Oct-2015 Walter Jang <wjang@google.com> Don't show groups on the compact editor if there's more than 1

Bug 24980001
Bug 23589603

Change-Id: I4492c0036f826d591f59e5ab18b034afe21990ff
ndroid/contacts/editor/CompactRawContactsEditorView.java
0fafb0e2813a28b31a71e908d30e18a6edaa3d95 14-Oct-2015 Tingting Wang <tingtingw@google.com> Fix bug on Suggestion card in Quick contact UI.

Starred/Unstarred a contact should still populate suggestion card.

BUG 24941992

Change-Id: I821c8922ddf9bfc1d54e46cf6cf83e45b6f754ef
ndroid/contacts/quickcontact/QuickContactActivity.java
982684009d0adce08c02b14af16cb44d7ee615e1 14-Oct-2015 Tingting Wang <tingtingw@google.com> Merge "Use the terms "Link and Unlink" instead of "Merge and separate"." into ub-contactsdialer-a-dev
838d2bab64b4bd29f8e956100c01909d08cc6279 14-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Avoid saving contact when user doesn't intend to do so." into ub-contactsdialer-a-dev
7394c4375bb7e0b279d813e7a73ffcb10e5825c2 14-Oct-2015 Wenyi Wang <wenyiw@google.com> Avoid saving contact when user doesn't intend to do so.

We will not save contact when user:
1. picks a photo;
2. presses "Recent" button;
3. presses "Home" button;

Bug: 24898586
Change-Id: I40339de573ac069abffada1a6329009c3b97076c
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
5585c6ef5e8f075bdc3d514887322c6fa683f4cb 14-Oct-2015 Tingting Wang <tingtingw@google.com> Use the terms "Link and Unlink" instead of "Merge and separate".

BUG 24704875

Change-Id: I466907482434c0312f8ab922cdfa5e2e82ec4637
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/interactions/JoinContactsDialogFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
c683d2273c4174c0e300ef2f4b17c77fb313da39 14-Oct-2015 Tingting Wang <tingtingw@google.com> Fix bug when showing overflow menu in Compact editor.

Set default value for rawContact id to display alone.

BUG 24899070

Change-Id: Ibdb25080e62f669f9c466bf55e67dbbe63ff6afb
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
a0b6940902fd68241b27b32cffdd2ecf7446f919 13-Oct-2015 Tingting Wang <tingtingw@google.com> Raw contact drop down should keep order in Editor.

In compact editor UI, linked raw contacts drop down should keep order.
Also, the order in the comma style list should be the same as
in the drop down.

BUG 24898494

Change-Id: Ieed213388e52c5355c5e9ad33c1ee9db40696117
ndroid/contacts/editor/CompactRawContactsEditorView.java
9fea7488a4bb5d2b96487663ca42ce3530f10813 14-Oct-2015 Wenyi Wang <wenyiw@google.com> Show Drive as an option in Import contacts (.vcf) file

Bug: 23685502
Change-Id: I50935ab5bf365c46e15c6a985985ad56904639f8
ndroid/contacts/common/vcard/ImportVCardActivity.java
ba6c41ca6da97f56f608a9ef92617f2401f8371e 13-Oct-2015 Tingting Wang <tingtingw@google.com> Improve raw contact editor in Contact Editor.

1) When clicking save on raw contact editor, UI should return to
the quick contact UI.
2) Remove overflow menu on raw contact editor.

BUG 24899070

Change-Id: Iae6954744294fc48fe8dba02459f647f1764c48b
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ff603b5e045c596c88cf1a70b9320d36437a80cb 11-Oct-2015 Wenyi Wang <wenyiw@google.com> Keep overflow menu button from closing on changing device orientation

Bug: 21650562
Change-Id: Ic2459b0768866e4a76734345ffa75edad8dac702
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
3f18d6197a54aad10bea9c5cc2c89ca82809e793 08-Oct-2015 Walter Jang <wjang@google.com> Fix some photo selection fragment bugs (E18)

* Hide the photo source dialog when there is only
1 photo in the aggregate
* Fix reverting to photo selection fragment on
rotate after taking or selecting a photo
* Unset super primary on other photo valuesdeltas
after taking a new photo (also fixes full
res image not loading on quick contacts after
the editor is closed?)
* Show full resolution photos on photo selector
even if they have not yet been saved to CP2

Bug 19697372
Bug 23589603

Change-Id: Idd6966ba981d251ae713950ea2f0d2d60c7b30c0
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/EditorUiUtils.java
81365081af63f8a09cf10613ecd653b3b1ee7e5f 08-Oct-2015 Tingting Wang <tingtingw@google.com> Merge "Fix bugs on Contact editor." into ub-contactsdialer-a-dev
91cee2852497e918e9e04a6fb549c1117ed47ae0 07-Oct-2015 Tingting Wang <tingtingw@google.com> Fix bugs on Contact editor.

1) Remove primary photo checkbox in full editor. Primary photo should
be set in photo picker.
2) Remove save menu if there's only one read only contact in the full editor.
3) Add account type icon in account info when there's only one account
for a contact.
4) Return back to Compact editor after saving results in full editor.

BUG 24547289

Change-Id: I02f8ee01f7cc7d1b0b06ad338570dc4b17c55e31
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
4f5594a0437e8592b6f828f8344d3f83cbd9aad6 07-Oct-2015 Walter Jang <wjang@google.com> Add a name to raw contacts created to edit read-only contacts (E17)

This is a revert of the parts of ag/771915 (E5) where we changed
to moved to always showing all of the names.

Bug 24509375
Bug 23589603

Change-Id: Ief4773592233dc05b40bae8fb425d1c258d0b68f
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/KindSectionData.java
ndroid/contacts/editor/KindSectionDataList.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
cbd431df6e9c7116850249461faf9f5a9b8b89c3 06-Oct-2015 Walter Jang <wjang@google.com> Move finding primary/writable raw contacts to KindSectionDataList (E16)

This will help us since editing the 1) name and 2) photo, and 3) finding
the primary account used to sort editors so that new fields get added
to the primary account all do something similar to find the
ValuesDelta that changes are written too.

We can also enforce that only the same DataKind/mime-type are added
to a KindSectionDataList and passed to a KindSectionView.

Bug 24509375
Bug 23589603

Change-Id: I2fc603c3cea2fb7f10a96c8592688ccf3deef56a
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionDataList.java
655ad1a2eeb36171d5f6e407bf7704f56f5583ca 06-Oct-2015 Tingting Wang <tingtingw@google.com> Show all merged accounts in Contact editor.

Show all merged rawContacts' accounts in Contact editor, not
just primary account.
Expand all accounts to a list.
Clicking each account (rawContact) will go to the full editor
to editor the rawContact.

BUG 24547289

Change-Id: I671a946f87b25d9393daccb600287e35826fa6eb
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
2f90b11c04fda64b819e840bbeb219afb04b6569 05-Oct-2015 Walter Jang <wjang@google.com> Merge "Compact editor photo picker 1/2 (E15)" into ub-contactsdialer-a-dev
31a74ad969b650eb733e536569254ed3978c4f54 03-Oct-2015 Walter Jang <wjang@google.com> Compact editor photo picker 1/2 (E15)

* Added photo selection fragment
* Swap between editor and photo selection fragments in CompactEditorActivity
* Moved PhotoHandler (which receives callbacks from PhotoSourceDialogFragment)
from the editor fragment to CompactEditorActivity since sourcing a photo
happens now from the editor photo view and the action bar when in the
photo selection fragment is visible.
* Extract code to get a bitmap or full size photo from a ValuesDelta in
CompactEditorPhotoView and move it to EditorUtiUtils so that it can be used
on both the photo selection fragment and the photo view

Bug 19697372
Bug 23589603

Change-Id: Iecebca44f505527d0be7a3803cd1d8fd4fef65e0
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactPhotoSelectionFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/KindSectionData.java
ndroid/contacts/editor/PhotoSourceDialogFragment.java
5360eb6309b3ddab067fa92777cc244ebac94d37 05-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Correct the way of avoiding crash" into ub-contactsdialer-a-dev
19ea52b1cc84b76f3dff9bfe824291be8524bec1 04-Oct-2015 Wenyi Wang <wenyiw@google.com> Correct the way of avoiding crash

Bug: 24098561
Change-Id: I38374eaeef0d26b2f3b3963d0e36f77947463e41
ndroid/contacts/list/MultiSelectContactsListFragment.java
7c4f5a2fa1c291bfd3ed23874c54613bb9362a6d 04-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Changes in comments" into ub-contactsdialer-a-dev
e04ea602a62848757da4860d23716499f31b7dfe 04-Oct-2015 Wenyi Wang <wenyiw@google.com> Changes in comments

Bug: 24098561
Change-Id: Ib357d13a75f063d4aef7a2800a42b8ad3221807f
ndroid/contacts/list/MultiSelectContactsListFragment.java
f880f3dc5ba09565b5803f3abc3277a77b62abe5 04-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Enable Talkback for long clicking contacts" into ub-contactsdialer-a-dev
7a9ff812f37a2c8d503a1abeea3337a6689f0ac6 03-Oct-2015 Walter Jang <wjang@google.com> Compact editor photo picker 2/2 (E15)

Expose static method to get an AccountType Drawable
from the underlying resource IDs and sync adapter
package names.

Bug 19697372
Bug 23589603

Change-Id: I57ab4090ce13618c292c9d267f1735135f8fc950
ndroid/contacts/common/model/account/AccountType.java
eeae887738d3e9b16a3942b758f4f1fd05b079ae 03-Oct-2015 Wenyi Wang <wenyiw@google.com> Enable Talkback for long clicking contacts

Bug: 24098561
Change-Id: I3630b739a6b618b8e4fd9f10c6a3c77896d02fff
ndroid/contacts/list/MultiSelectContactsListFragment.java
09fe43f7d25bb23ac0078eb8391e0b1bdec479ed 03-Oct-2015 Walter Jang <wjang@google.com> Merge "Delay loading groups until compact editors are bound (E14)" into ub-contactsdialer-a-dev
90478f13f41ca91b0b47b63e0049090105b2d128 02-Oct-2015 Tingting Wang <tingtingw@google.com> Merge "Fix nit comments on quick contact suggestion card." into ub-contactsdialer-a-dev
e29b6943ade6f5e32b7caf85dd127673d710f7e3 01-Oct-2015 Tingting Wang <tingtingw@google.com> Fix nit comments on quick contact suggestion card.

1) Add suggestions limit number to integers.xml
2) Increase character limit or it 'll cause truncation.
3) Fix a bug when merge is canceled. Should not clear selected
contact Ids.

BUG 21071527

Change-Id: Iaee6d4a60c1b7ffd2612235a9e68b7b2bebeaca3
ndroid/contacts/quickcontact/QuickContactActivity.java
d675315606e8be431e6e5487e0b1cc33036a6ed7 02-Oct-2015 Walter Jang <wjang@google.com> Delay loading groups until compact editors are bound (E14)

Bug 24533689
Bug 23589603

Change-Id: I517b61d116f2d91237c493dc8a18f09aed9ad48a
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
c679817c7571ec533dad88d3028616b5e1e165dd 02-Oct-2015 Wenyi Wang <wenyiw@google.com> Merge "Add illustrations to empty state and change string" into ub-contactsdialer-a-dev
b0cfae543ca16136f251634cb29d78dbb4e40b43 29-Sep-2015 Wenyi Wang <wenyiw@google.com> Add illustrations to empty state and change string

Screenshots:
https://drive.google.com/a/google.com/folderview?id=0BwSNbQ_IWQd2eVNZa3JJTzFSdGM&usp=sharing

Bug: 20298591
Change-Id: I810a8a582477ad9abf2f6ceba91f0129d64d213d
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactsUnavailableFragment.java
2da5d2ff897741fed33b44f0f733f542aca7a3e4 30-Sep-2015 Wenyi Wang <wenyiw@google.com> Restore birthday label after deleting an existing birthday

Once user removes a birthday editor, we update the editor at the bottom
to be "birthday".

Bug: 23959614
Change-Id: I650ac70f67e190a8e544d9010eda942694bec0fe
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionData.java
f6ccd5094b6ed720e4f32ecf26d126e8ba3f4591 30-Sep-2015 Tingting Wang <tingtingw@google.com> Merge "Add suggestion card for quick contact (P2)" into ub-contactsdialer-a-dev
3bb167c12caa3dddf86bc950ea03f26df6c8158c 30-Sep-2015 Jay Shrauner <shrauner@google.com> Merge "Rename phoneHasType/emailHasType" into ub-contactsdialer-a-dev
c1f2724b1ac3120f160e2513ef07e31eec0e6ae8 30-Sep-2015 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in getPhoneType/getEmailType" into ub-contactsdialer-a-dev
e3a7c4f3215294b7699c2960ffe0128d3401745f 25-Sep-2015 Tingting Wang <tingtingw@google.com> Add suggestion card for quick contact (P2)

Add a card for suggestion in quick contact, showing the
aggregation suggestions for the contact and supply merge option.

BUG 21071527

Change-Id: I7abe28c8a5fb3aac47607153f3d962271387713a
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/quickcontact/QuickContactActivity.java
a6e7230bdb514b9d0871db8af9e38e38e2f97977 30-Sep-2015 Anne Rong <annerong@google.com> Rename OnPhoneNumberPickerActionListener methods

Bug: 24506966
Change-Id: I6fec275e606531f6bcc18708de2a3123545f4c34
ndroid/contacts/activities/ContactSelectionActivity.java
ab73969721f71228506802117eca0a6b7729f6d7 30-Sep-2015 Anne Rong <annerong@google.com> Rename OnPhoneNumberPickerActionListener methods

Bug: 24506966
Change-Id: I156505d45319580551a10cfeb3cbbad2495c9f20
ndroid/contacts/common/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
7b2ec523a844b20ebec5ca0fa8ddfb92cc70cc0d 29-Sep-2015 Jay Shrauner <shrauner@google.com> Rename phoneHasType/emailHasType

Rename phoneHasType/emailHasType to hasPhoneType/hasEmailType.

Bug:24506801
Change-Id: Ic5f01570681f97b79f124b0222b7c17e3b1d583f
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
26d51ed480c6cf7b0399f5841548da39ca5ee644 29-Sep-2015 Jay Shrauner <shrauner@google.com> Fix NPE in getPhoneType/getEmailType

Change getPhoneType/getEmailType to return Integer instead of int. Rename
phoneHasType/emailHasType to hasPhoneType/hasEmailType and change to null
check return value of get methods.

Bug:24506801
Change-Id: If63ae76a93abcad646fc05b679d975c0d77b3f38
ndroid/contacts/common/model/ValuesDelta.java
6a1c15a636db5f2c54c0c79405337482608bb9f1 28-Sep-2015 Jay Shrauner <shrauner@google.com> Merge "Use TransactionSafeActivity" into ub-contactsdialer-a-dev
1ee24ed873b91e1fe65dba2b122749fa1684e59d 26-Sep-2015 Walter Jang <wjang@google.com> Don't show read only names in an EditText (E13)

Bug 19110128
Bug 23589603

Change-Id: Icc958271fa5c213c98180b22d4c321dea128cb93
ndroid/contacts/editor/CompactKindSectionView.java
2ae2175d1835a945e9e3ad16a88825999ec10afd 25-Sep-2015 Walter Jang <wjang@google.com> Put company editor field below other names (E12)

Screenshots: https://go/b22828525

Bug 22828525
Bug 23589603

Change-Id: I0ff3a18810a6cc18ac6903119b8272092b8fa411
ndroid/contacts/editor/CompactRawContactsEditorView.java
6d84a8dce6a0ce0e1aeb9dfaea8a584615fc3290 26-Sep-2015 Walter Jang <wjang@google.com> Merge "Update LabeledEditor text color when it becomes empty/non-empty (E11)" into ub-contactsdialer-a-dev
12dec142f702db67277b8e683895078bd015e423 25-Sep-2015 Wenyi Wang <wenyiw@google.com> Merge "Show ImportExportDialogFragment based on tabs" into ub-contactsdialer-a-dev
e4392ea8daab5b7255900f35a979f2cada748645 25-Sep-2015 Wenyi Wang <wenyiw@google.com> Merge "Fix for "Share visible contacts" in Favorites tab." into ub-contactsdialer-a-dev
c33f49215c7e4fc49c327617bde79f8fcc0b1484 25-Sep-2015 Wenyi Wang <wenyiw@google.com> Fix for "Share visible contacts" in Favorites tab.

Bug: 19850584
Change-Id: I4d2c33a43226c42ce7a75399a234bc276fcfa006
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
7712aef22da432331a67c710cfc18bce2c493887 25-Sep-2015 Jay Shrauner <shrauner@google.com> Use TransactionSafeActivity

Remove custom visibility tracking.

Bug:24294419
Change-Id: I554a1277aa3fa9575c93191b99b7e6b484596379
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
9379f4a2cbdf81bfbfc6cfc4559422df2ddc8513 25-Sep-2015 Wenyi Wang <wenyiw@google.com> Show ImportExportDialogFragment based on tabs

Bug: 19850584
Change-Id: I1997193366864bde12f83a722caaf186dda9d723
ndroid/contacts/activities/PeopleActivity.java
79658e14360a4ec75530a9dcae338f48c9d5f043 24-Sep-2015 Walter Jang <wjang@google.com> Remember editor expansion state on rotates (E10)

* Prompt user about discarding changes when back pressed
on editor (regressed in E5)
* Show a toast and close when no editors (i.e. input
fields) can be bound.
* Try to clarify the different behavior of
CompactSectionSectionView for names and groups.

Bug 23589603

Change-Id: If045ddb6d839574dc4109195b0d8841cd6083561
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionData.java
a949dd47879ee0852cdca25f345abf888b457e80 25-Sep-2015 Tingting Wang <tingtingw@google.com> Merge "Add suggestion card for quick contact (P1)" into ub-contactsdialer-a-dev
23942c04851276160ba843ee80c9833f57a4cdcc 25-Sep-2015 Walter Jang <wjang@google.com> Update LabeledEditor text color when it becomes empty/non-empty (E11)

Bug 23898909
Bug 23589603

Change-Id: I72cfd5b3ad3e072de14accc0ea938b2a12dada85
ndroid/contacts/editor/LabeledEditorView.java
3daa9a34380f0368292f366c397c26f7e90db0df 25-Sep-2015 Wenyi Wang <wenyiw@google.com> Change ringtone behavior based on version.

Bug: 12800232
Change-Id: I9e05d737a847392c277d50a353e4d65ecd70f9a2
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorUiUtils.java
e671ffdc6b6237637affd7f3ac88cea9f0b63fbb 25-Sep-2015 Tingting Wang <tingtingw@google.com> Add suggestion card for quick contact (P1)

Reveals contact Id getter for quick contact UI.

BUG 21071527

Change-Id: Ib068ad63b91962fe5a49cadffe03b1a1061a6419
ndroid/contacts/common/model/Contact.java
f10ca15ffa550b36805d2330fc210b58601a215c 23-Sep-2015 Walter Jang <wjang@google.com> Add group membership support to compact editor (E9)

Bug 23589603

Change-Id: I71082af35a35dc7d0658ffb671a4436f794f5b0c
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
aa6a51cec4c7d3195f8bc949712f14a561809073 24-Sep-2015 Walter Jang <wjang@google.com> Expose RawContactDelta method to lazy get mime entries (E8)

Bug 23589603

Change-Id: Iedee3d187ec8e90905a1b8e84700f43c752acce7
ndroid/contacts/common/model/RawContactDelta.java
192a01c63c836a7a6ac3e75d8cc14e764f34a42b 23-Sep-2015 Walter Jang <wjang@google.com> Phonetic names must be displayed next to structured names (E7)

Also keep phonetic name and nickname fields together with the
structured name editor field for the same account.

Bug 23589603

Change-Id: I3298d91dcd0451576374eed2401a768bec84b8e8
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionData.java
3e5ae0db65e842d49d047568fb5d6f331298da32 20-Sep-2015 Walter Jang <wjang@google.com> Show all aggreagate contact names on the editor

Stop copying the name from read only contacts
to the new raw contact created in order to enable
editing of read only contacts. We also don't need to
match the name displayed by quick contacts.
In the new design, we are showing multiple names with
read-only accounts marked with the account type icon
and name.

Bug 23589603

Change-Id: Ifd8d18b17fc9645c15814bbb1a649a82fe246bbd
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/KindSectionData.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
1b9eff4ff187173966186f6fb2889d38037ee9d4 21-Sep-2015 Yorke Lee <yorkelee@google.com> Merge "Protect CallUtil methods with permission check" into ub-contactsdialer-a-dev
28a27279554af7b1e5ff664d3da97954c462a797 20-Sep-2015 Walter Jang <wjang@google.com> Revert moving between the compact and full editors (E5)

We are reverting most of the changes made to fix
b/19624360 in MNC. The reason to do this is to reduce
the massive complexity moving between the two editors
introduced.

Since the compact editor now expands in place, the full
editor will likely only used to view read-only raw
contacts now.

Bug 23589603

Change-Id: Idfcc07d8aae65295d4b3f0a0e3e7f5eb701a46c4
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
ndroid/contacts/quickcontact/QuickContactActivity.java
f5dfea4a5c94382a632eae5c538881f7da726a50 16-Sep-2015 Walter Jang <wjang@google.com> Add a multi account KindSectionView (E4)

* This allows us to treat all kinds (i.e. mime types) the
same (except for name and photo).
* We can also set the icons and add empty editors naturally
(w/o checking if the kind section is the last on in the list)
* Finally, we can also expand to the full editor in place now

Bug 23589603

Change-Id: Ibdecd8a9ef33cd1db70ffd9fd17e7883555d1fa4
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactKindSectionView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/TextFieldsEditorView.java
363d3fd790e44b06969abbc21b5cf5ccf0e81d3f 16-Sep-2015 Walter Jang <wjang@google.com> Only iterate through raw contact delta list once (E3)

* Also, don't treat emails and phone numbers differently
since we'll be adding a new KindSectionView for them.
* Introduced a multi account aware KindSectionData holder
object to be used by the new KindSectionView
* Moved the utility method to get the icon for each kind
from the exisitng KindSectionView to EditorUiUtils

Bug 23589603

Change-Id: I6b4858b093ce1b4a65c97b95febc61f2197db091
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionData.java
03cea2e87a94d197eb63661fc82871aa33dd71ba 19-Sep-2015 Walter Jang <wjang@google.com> Don't change the default account when saving contacts (E2)

Also address some comments on ag/766424 that were given
after that CL was submitted.

Bug 23667287
Bug 23589603

Change-Id: If2a5aee5c17358278fd3b59ed56b4c5344e5ecf6
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
d2c96928181af43c2e93f1236e4f8f251b1cfb9e 18-Sep-2015 Yorke Lee <yorkelee@google.com> Protect CallUtil methods with permission check

Bug: 20266292
Change-Id: Id19527670876bd4659d2e853b76ec6496986036b
ndroid/contacts/common/CallUtil.java
708ea9e6f6f671178c0424f89e911000d4f330dc 11-Sep-2015 Walter Jang <wjang@google.com> Add account selector to compact editor (E1)

But don't pass the account with dataset back and forth
between the compact and full editors since we will be
merging the two editors shortly.

Bug 23667287
Bug 23589603

Change-Id: I4cb6a79e6ee453cb171418b5ed317f43982dfac0
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
68870579cdf8b5f0e36bb2b9004375fa1a63deed 18-Sep-2015 Tingting Wang <tingtingw@google.com> Merge "Display correct imported file names from source Uri." into ub-contactsdialer-a-dev
7e0d93c5c732f66b6f881e733f4a2ee008110fe5 16-Sep-2015 Tingting Wang <tingtingw@google.com> Display correct imported file names from source Uri.

BUG 22997397

Change-Id: I7cf6712d67b2cd6b350b2eda36cd4ee8bf568605
ndroid/contacts/common/vcard/ImportVCardActivity.java
97a04fec29361033d49729b9ca436ff119692b93 18-Sep-2015 Jay Shrauner <shrauner@google.com> Merge "Fix IllegalStateException in onOptionsItemSelected" into ub-contactsdialer-a-dev
ceb81f60667091ca9a637304b1a3874e24e5355b 17-Sep-2015 Wenyi Wang <wenyiw@google.com> Merge "Modified doPickRingtone() and onRingtonePicked() to handle silent ringtone" into ub-contactsdialer-a-dev
c284bbb83c890b4c22c8028bab6540b140affaf9 17-Sep-2015 Jay Shrauner <shrauner@google.com> Fix IllegalStateException in onOptionsItemSelected

Check the fragment is still attached to a running activity.

Bug:24140802
Change-Id: I4dc283105c019589b47961baf49ad44cd60733c1
ndroid/contacts/editor/ContactEditorBaseFragment.java
7d9c9ec65c1bcf9a16a84b217bd82d48433b103a 17-Sep-2015 Jay Shrauner <shrauner@google.com> Merge "Fix IllegalStateException in onBackPressed" into ub-contactsdialer-a-dev
af61b9bdc7291f817e00185e493107f84b76dee7 17-Sep-2015 Jay Shrauner <shrauner@google.com> Merge "Fix IllegalStateException in start" into ub-contactsdialer-a-dev
386bd69d3c2af6e1ffd6b49d17408c8e47c7c538 17-Sep-2015 Jay Shrauner <shrauner@google.com> Merge "Fix IllegalStateException in onBackPressed" into ub-contactsdialer-a-dev
5ed0e93814e4275362a009df1f12586bfc637cdd 16-Sep-2015 Wenyi Wang <wenyiw@google.com> Modified doPickRingtone() and onRingtonePicked() to handle silent ringtone

Bug: 12800232
Change-Id: Ic26b94b5c1b2597b20e822eaa5321f89af2a97b2
ndroid/contacts/editor/ContactEditorBaseFragment.java
5dcf5c391ff6bd382e03987bc01abc2e5e613db3 16-Sep-2015 Jay Shrauner <shrauner@google.com> Fix IllegalStateException in start

Check to make sure the activity hasn't been destroyed already.

Bug:24115148
Change-Id: Icd8f92f6131a04a081029e5df46dcf0033597ced
ndroid/contacts/interactions/ContactDeletionInteraction.java
4173ab89be61ca658229d64610973d5c8f47709a 16-Sep-2015 Yorke Lee <yorkelee@google.com> Merge "Update phone number picker listener to provide call initiation data" into ub-contactsdialer-a-dev
35e174560845d19c6b2c179a9233a2e89e0e47ea 16-Sep-2015 Jay Shrauner <shrauner@google.com> Fix IllegalStateException in onBackPressed

Check to make sure the activity is still visible before doing anything.

Bug:24130014
Change-Id: I4d732902a78bf30468a25c46c0f17d71bc84aefd
ndroid/contacts/activities/ContactSelectionActivity.java
e11e06ac577902421996998780c41885bbc95644 16-Sep-2015 Jay Shrauner <shrauner@google.com> Use Long.compare to compare longs

Fix potential int overflow in comparator.

Bug:24117229
Change-Id: I8095e19ff9b853dcf3530e1cabd8dc9d8e326b0a
ndroid/contacts/editor/RawContactDeltaComparator.java
c3fdc8f6c1429a40c3c54dcf01b6da0eb7606dc1 16-Sep-2015 Jay Shrauner <shrauner@google.com> Fix IllegalStateException in onBackPressed

Check to make sure the activity is still visible before doing anything.

Bug:24119971
Change-Id: I9f9478a863154cfc7faa9d1f5fe6aaa4a01126d7
ndroid/contacts/activities/PeopleActivity.java
4ae9ca38a4fc9d25c50935f449a87289841685ee 15-Sep-2015 Yorke Lee <yorkelee@google.com> Update phone number picker listener to provide call initiation data

Bug: 23164804

Change-Id: Id14126ddd8bc430850ed71675834cfaef80ebf08
ndroid/contacts/common/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
dd3d2a4fed04b1d9bc450fbca6967be4622ba944 15-Sep-2015 Yorke Lee <yorkelee@google.com> Update phone number picker listener to provide call initiation data

Bug: 23164804
Change-Id: I2a5fafa8b3f99662627abda96ccc55a0a53cc966
ndroid/contacts/activities/ContactSelectionActivity.java
f0d7938396c7ff2316224b70a47f085df89edd7e 15-Sep-2015 Yorke Lee <yorkelee@google.com> Add utility to get voicemail uri

Change-Id: I7016a85e23dbed6d4b850244ea14c311e265e02b
ndroid/contacts/common/CallUtil.java
1ec8524b176837697958fea53bccaa25ea61dee8 11-Sep-2015 Tingting Wang <tingtingw@google.com> Merge "Refactor ImportVcardActivity to fix permission bug." into ub-contactsdialer-a-dev
1fdb890258cc15eeae9307e43745896f6ae81e56 09-Sep-2015 Tingting Wang <tingtingw@google.com> Refactor ImportVcardActivity to fix permission bug.

When importing Vcard from Gmail to Contacts, there's permission bug.
Refactoring ImportVcardActivity to read uri to local storage first,
and save local uri value so when permission request activity starts
ImportVcardActivity, continue importing vcard from local uri not
source uri to avoid permission check.

BUG 22997397

Change-Id: I149ff254716dd427fa80aecfaae2907ceb1b4f28
ndroid/contacts/common/vcard/ImportVCardActivity.java
8753906a4eb4223bfbdec77a5baac25b79b88434 09-Sep-2015 Walter Jang <wjang@google.com> Merge "Don't show aggregation suggestion for new me contacts" into ub-contactsdialer-a-dev
82ed2b5380e134705f96e7e1f1586a25f8ac403f 09-Sep-2015 Walter Jang <wjang@google.com> Don't allow the me profile to be deleted

Bug 23353783

Change-Id: Ie4784ed0725497200129915d1cbb6bbb047fb278
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
953cea238c9969fd7703fbce2bf8a915b5c38955 09-Sep-2015 Walter Jang <wjang@google.com> Don't show aggregation suggestion for new me contacts

Bug 23353464

Change-Id: Ifb63c73b59153ff7bdc26b3f4f471d3521bed0b2
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ae2459ed098d10710e0351891d880dcb4ff3a144 04-Sep-2015 Nancy Chen <nancychen@google.com> Merge "Update ViewPagerTabs to include unread count value." into ub-contactsdialer-a-dev
1b9dbfbc4eb8d5102dc49f4e89402937374f8c9e 01-Sep-2015 Nancy Chen <nancychen@google.com> Update ViewPagerTabs to include unread count value.

Add methods to ViewPagerTabs to update unread count. Add layouts that
include the text view for displaying the number.

Bug: 21086059

Change-Id: Ie9ddba329f0d40ddd4cdec9c70c23b03dfec0a27
ndroid/contacts/common/list/ViewPagerTabs.java
fcf3fd17c2c42d3da5a9143d4255f1fe667dce41 02-Sep-2015 Tingting Wang <tingtingw@google.com> Add "Default account" when checking if setting is empty.

BUG 21932040

Change-Id: I49c87030d3ef0fc62dd65793e58800756e1450ca
ndroid/contacts/preference/ContactsPreferenceActivity.java
c939ae39ca12069567a6b7ce37516e9e89a8b185 02-Sep-2015 Tingting Wang <tingtingw@google.com> DO NOT MERGE Remove "Default account" setting if no writable account.

BUG 21932040

Change-Id: I0292ad614ab11c515c2b474858c4e1bb5645f6bc
(cherry picked from commit c1908a8a7e7856415cdc2e1e6afd89712b8e5b5f)
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
77bce1840076082f5e4baea3eb6845f48fc84a8d 27-Aug-2015 Roshan Pius <rpius@google.com> resolved conflicts for merge of 7b5df2ab to master

This method has been removed from master since we're now using API
PhoneUtils from Telephony instead of this one.

Change-Id: I3532078089b519a48df25e70c0a6f2584d45e3ea
defc69ce69b25daa4e3f41b7c7c6cbd1aa3e83ce 26-Aug-2015 Walter Jang <wjang@google.com> Show proper label for phone only accounts

I broke the account label for phone only contacts
when I extracted the logic to set the account label
on the full editor to a utility method so that it
could also be used on the compact editor in ag/712716

Bug 22859536

Change-Id: I3e64f7f6834a1da83078cc783e04b3c2faa0702f
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
78c2c0e9851ee3196cb3925e5de84ecc2f059845 26-Aug-2015 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in shareSelectedContacts"
a7ebaeb9d348a9efb1ef146e6e9cdc908d87f38a 26-Aug-2015 Tingting Wang <tingtingw@google.com> Merge "Add setting for default account (2/2)."
0810e9c8f5baf2da4aecd872ec3f43ace5d850cb 24-Aug-2015 Roshan Pius <rpius@google.com> Replace country code with 0 for Korean carriers.

Korean carriers don't want the country codes displayed for local calls.
However the network returns the entire phone number including the
country code for Volte calls. According to the Koean phone numbering
scheme (https://en.wikipedia.org/wiki/Telephone_numbers_in_South_Korea),
we need to replace the country code +82 with a 0 prepended to the carrier
code to format it as a national number.

BUG: 22862845

Change-Id: I4f09af9869c78db82fbdfdfdf7c121dfb2fd44f4
ndroid/contacts/common/util/PhoneNumberHelper.java
5b69125ca54b41429374041d73febd33af0dd596 25-Aug-2015 Jay Shrauner <shrauner@google.com> Fix NPE in shareSelectedContacts

Protect against null lookupUri's.

Bug:23306201
Change-Id: Iab1e6b08e0a596b999c6829b1afd8c5aa0dc81c7
ndroid/contacts/activities/PeopleActivity.java
fc9a8c4c4551a38729ac627a298a62a06d1feefa 25-Aug-2015 Yorke Lee <yorkelee@google.com> Merge "Remove unneeded PhoneNumberHelper methods"
db2c994f5832c7de9427a914802dde912e6e51fc 25-Aug-2015 Jay Shrauner <shrauner@google.com> am f4d159e8: am 1d7dff86: am 213fb2bd: am 3e5c8dda: Remove PinnedHeaderListDemoActivity

* commit 'f4d159e8314b145722b9b16aafbae632f5c1ab36':
Remove PinnedHeaderListDemoActivity
4ddaf56796d109a711d83d4ebb018e819215b57b 25-Aug-2015 Tingting Wang <tingtingw@google.com> Merge "Add setting for default editor account (1/2)."
f4d159e8314b145722b9b16aafbae632f5c1ab36 25-Aug-2015 Jay Shrauner <shrauner@google.com> am 1d7dff86: am 213fb2bd: am 3e5c8dda: Remove PinnedHeaderListDemoActivity

* commit '1d7dff8693708116bc034f385ee022313006f8ca':
Remove PinnedHeaderListDemoActivity
20c6ec57df86ac67a6c555caac25993502fe66aa 21-Aug-2015 Tingting Wang <tingtingw@google.com> Add setting for default editor account (1/2).

In setting section, add "Default account" to let user
set which is default account to edit a new contact from
the account lists.

BUG 21932040

Change-Id: I6312da6f9738229da4bd7f11daf8cfd7b587e00f
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DefaultAccountPreference.java
1bce8a9913b52474e07ebd57122b7b4cf1c1172b 21-Aug-2015 Tingting Wang <tingtingw@google.com> Add setting for default account (2/2).

Modify Contact editor to get default account from "setting" part.

BUG 21932040

Change-Id: I063d19c5483b70a330a5f7c3f6533d01a154f866
ndroid/contacts/editor/ContactEditorUtils.java
3e5c8dda05966c6cb93d7137ceb51cd2f0176c66 24-Aug-2015 Jay Shrauner <shrauner@google.com> Remove PinnedHeaderListDemoActivity

Remove test activity that was triggering automated test failures.

Bug:23263168
Change-Id: I44f2410fad3c11ae764b093ac109846298ff473e
ndroid/contacts/widget/PinnedHeaderListDemoActivity.java
66e5905c6c3791030e6b7447e203d5717feabbb5 21-Aug-2015 Yorke Lee <yorkelee@google.com> Merge "Add AOSP copyright to AnalyticsUtil"
2b3a89465ccc7484a46872103819d2bcf2a6c1dc 21-Aug-2015 Yorke Lee <yorkelee@google.com> Remove unneeded PhoneNumberHelper methods

These methods have been made public API in PhoneNumberUtils

Change-Id: I637e2b8667e29cee859c670b9bb988e4ee20eb1e
ndroid/contacts/common/util/PhoneNumberHelper.java
b4f35db38f98a46e5c918d8e97a1952a6a8482fe 21-Aug-2015 Yorke Lee <yorkelee@google.com> Add AOSP copyright to AnalyticsUtil

Change-Id: I769c07f4c3150902f41a8dac1cd06227054dd6bc
ndroid/contacts/commonbind/analytics/AnalyticsUtil.java
ace2e198f90e97d885746cb34ef1ef93a77ef696 14-Aug-2015 Tingting Wang <tingtingw@google.com> Merge "Add reference to browser2 in QuickContact.ResolveCache."
4e3c73fded87101d1bf809d307eff5806e254829 14-Aug-2015 Tingting Wang <tingtingw@google.com> Add reference to browser2 in QuickContact.ResolveCache.

In AOSP build device, Browser2 is the new package instead of Browser.
New package name of Browser2 should be added to the list of
prefer resolve to cover this case.

BUG 22881469

Change-Id: Idd1ea7a27cdd47ddce352244973ddfa1fa8c3ed8
ndroid/contacts/quickcontact/ResolveCache.java
5e4b9319d576562646995775c6a1f0c557f3e1c1 13-Aug-2015 Tyler Gunn <tgunn@google.com> Merge "Consolidate CallSubject history and dialog." into mnc-dr-dev
96a121e7add6785ca22bc6342895382ea6f162f5 12-Aug-2015 Tyler Gunn <tgunn@google.com> Consolidate CallSubject history and dialog.

- Removed CallSubjectHistory activity and put that functionality into
CallSubjectDialog.
- Changed CallSubjectDialog into an activity styled after a dialog.
- Although dialog_call_subject looks a lot different, the main change is
the addition of the subject_list above the dialog in the layout (I tried
having it below the dialog but I could not get the layout to work
properly). A RelativeLayout was used so that when the subject history
list is shown, the dialog naturally moves up to fit the call history list.
- Added layout for the call subject history list items to give better
control of their appearance.
- This was to give better control of layout and make it possible to
animate between show/hide of call subject history.


Bug: 22685114
Change-Id: I7555bb09b86c50b52a76661f1460f4fe0e30bd97
ndroid/contacts/common/dialog/CallSubjectDialog.java
ndroid/contacts/common/dialog/CallSubjectHistory.java
d8a5edca33ccab4bacff414f10d6b740615381b1 12-Aug-2015 Yorke Lee <yorkelee@google.com> am 12811fd1: Merge "Correctly handle empty permissions array in callback" into mnc-dev

* commit '12811fd1adae75ce0642c5b37b9e8922a7b03539':
Correctly handle empty permissions array in callback
2b5f268d842039755518b191ceeae7ab368f069a 12-Aug-2015 Yorke Lee <yorkelee@google.com> Merge "Correctly handle empty permissions array in callback" into mnc-dev
11512e37e04949df833f008682d3ebab10ea4de5 12-Aug-2015 Yorke Lee <yorkelee@google.com> Correctly handle empty permissions array in callback

If permissions string array is empty, don't enter an infinite loop.

Bug: 22946608
Change-Id: I67056f33ad8835577bb68340676d72fbba7ac965
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
8f801c1234326f56513fe38a540a4524dd7601ed 11-Aug-2015 Walter Jang <wjang@google.com> am 01c1cb22: Merge "Use text/x-vcard mime type when importing/exporting .vcf files" into mnc-dev

* commit '01c1cb22fd00045ee35205f7f07c1b5c24a94226':
Use text/x-vcard mime type when importing/exporting .vcf files
d47c3fbf9103bce23b41417320fd4298c9c8e29e 11-Aug-2015 Jay Shrauner <shrauner@google.com> am 3adc28de: DO NOT MERGE Catch SecurityExceptions in onCreateDialog

* commit '3adc28deedef09fe8d5ff3107c50186c176d9cfb':
DO NOT MERGE Catch SecurityExceptions in onCreateDialog
5d9c0d982f83f7e808f948dbcfbdf8c81fe2b64e 11-Aug-2015 Walter Jang <wjang@google.com> Merge "Use text/x-vcard mime type when importing/exporting .vcf files" into mnc-dev
ab92a970be130e149df37aeae5648444621da85f 06-Aug-2015 Jay Shrauner <shrauner@google.com> DO NOT MERGE Catch SecurityExceptions in onCreateDialog

Catch exceptions thrown if missing READ_PHONE_STATE;
don't list the menu items that require reading from the SIM
in that case.

Bug:23089597
Bug:22984670
Change-Id: I845d597858917dde57bb1f22c05f6be095517fd4
(cherry picked from commit 65ee5ddb67813156460ca4c4373922df1a79e917)
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
b522459f4106cbc9afb840225a51f843360a79de 11-Aug-2015 Walter Jang <wjang@google.com> am dfb76f6e: am 7e7a06a4: am 104bf0ac: am f7483e59: am d37af1cf: Encode read-only lookupKeys twice so multi vcard URI can split on :

* commit 'dfb76f6e9ef27a5d0eb8757fd0a0baeb40e27b78':
Encode read-only lookupKeys twice so multi vcard URI can split on :
dfb76f6e9ef27a5d0eb8757fd0a0baeb40e27b78 11-Aug-2015 Walter Jang <wjang@google.com> am 7e7a06a4: am 104bf0ac: am f7483e59: am d37af1cf: Encode read-only lookupKeys twice so multi vcard URI can split on :

* commit '7e7a06a4e90c8b6dd0d80154ded7c72ea4e86ccb':
Encode read-only lookupKeys twice so multi vcard URI can split on :
f7483e59b389716a8e34ae419f03c687ca7ac480 11-Aug-2015 Walter Jang <wjang@google.com> am d37af1cf: Encode read-only lookupKeys twice so multi vcard URI can split on :

* commit 'd37af1cf3a97904579b347bafdf63c0c629a54fd':
Encode read-only lookupKeys twice so multi vcard URI can split on :
5443426e653c7886c318cd2094da1da7f87913eb 11-Aug-2015 Walter Jang <wjang@google.com> Use text/x-vcard mime type when importing/exporting .vcf files

Bug 22940695

Change-Id: I3ca65650361bc529366e0761541e0081c710ed88
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/VCardService.java
d37af1cf3a97904579b347bafdf63c0c629a54fd 07-Aug-2015 Walter Jang <wjang@google.com> Encode read-only lookupKeys twice so multi vcard URI can split on :

With this change, a multi vcard share of a read-only contact and a
writeable contact with the following unencoded lookup Uris:

read-only: 2234ig:111432238085115413361
writeable: 341i2dab67978f1e8bda

will look like: content://com.android.contacts/contacts/as_multi_vcard/
2234ig%253A111432238085115413361%3A341i2dab67978f1e8bda

So the ':' in the read-only lookupKey will be encoded twice going from
':' => '%3A' => '%253A'

In CP2, the lookupKeys will be decoded when fetched as path segments to
2234ig%3A111432238085115413361:341i2dab67978f1e8bda, which will then
split properly on ':'.

Bug 22940695

Change-Id: Ie557f1573b1c3a8a5ada1bf5199c1e887c2c9f5a
ndroid/contacts/activities/PeopleActivity.java
ef282c0cd40911aad7e2c959f70daae1e06581dd 08-Aug-2015 Tingting Wang <tingtingw@google.com> Merge "Place phonetic name under display name in QuickContact."
df65d168660ce7ebd4961335e3363eb7c267e0c6 25-Jul-2015 Tingting Wang <tingtingw@google.com> Place phonetic name under display name in QuickContact.

Set phonetic name a smaller font size than display name.

BUG 22235947

Change-Id: I7d021ea8f6cc1a88c32eaccfa6ed7fe2cc2b9eb4
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
768e8ca7a0ae8da43bc6324f64ccd683b328f3b2 07-Aug-2015 Jay Shrauner <shrauner@google.com> Merge "Catch SecurityExceptions in onCreateDialog"
d5dd5b5afe6809b3babcb20dcff84cf6df3c1e28 07-Aug-2015 Tyler Gunn <tgunn@google.com> am f8416de8: am 94444882: am 91a5575b: am 5f87e923: Add support for "call with note" in quick contacts.

* commit 'f8416de8b7b3076df3208235cc1d3e22a0a5e893':
Add support for "call with note" in quick contacts.
f8416de8b7b3076df3208235cc1d3e22a0a5e893 07-Aug-2015 Tyler Gunn <tgunn@google.com> am 94444882: am 91a5575b: am 5f87e923: Add support for "call with note" in quick contacts.

* commit '94444882ed89789bc4b736a273dd9bc2fff3cc55':
Add support for "call with note" in quick contacts.
a05f1535ab8dc7efa1d6454b5418259a6a513b64 07-Aug-2015 Tyler Gunn <tgunn@google.com> Add CallHistory activity to CallSubjectDialog, plus others.

- Shows last 5 call subjects.
- Add OnPhoneNumberPickerActionListener for handling callbacks from
search results to trigger making a call with a subject.

Bug: 22685114
Change-Id: I3b1e6660c8fa4b3c289e538d673a82caabb57a73
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/dialog/CallSubjectDialog.java
ndroid/contacts/common/dialog/CallSubjectHistory.java
59ad5b5636bc100251869121565736253b1adc3e 06-Aug-2015 Jay Shrauner <shrauner@google.com> Catch SecurityExceptions in onCreateDialog

Catch exceptions thrown if missing READ_PHONE_STATE;
don't list the menu items that require reading from the SIM
in that case.

Bug:22984670
Change-Id: I845d597858917dde57bb1f22c05f6be095517fd4
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
5f87e923b0300173ad68f73a47b0dca7348d6a1f 05-Aug-2015 Tyler Gunn <tgunn@google.com> Add support for "call with note" in quick contacts.

- Add "call with note" for third button (this is in place of the video call
button if it is present; mocks show a new treatment for video calls which
we can revisit in the future if need be).

Bug: 22685114
Change-Id: Idd8c17abc811720e1bca0d0a1864204dbe3610ff
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
9e0c14e59650a45e31b60da254091d4ce13b3e49 04-Aug-2015 Tyler Gunn <tgunn@google.com> Add "call with a note" resources

Note: UX resource for ic_call_note_while; UX needs to send me proper
version in all resolutions.

- Added new CallSubjectDialog class to display the call subject dialog.
- Moved getLookupKeyFromUri from Dialer into UriUtils.
- Note: Limit of 16 chars is in place until b/22806380 is resolved.

Bug: 22685114
Change-Id: I9744765c3bbc6672a400fe3d1522c5af1b793781
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/dialog/CallSubjectDialog.java
ndroid/contacts/common/util/UriUtils.java
aa35e93906c656d290d0ebb905ac3106d8464460 30-Jul-2015 Jay Shrauner <shrauner@google.com> Fix references to PHONETIC_NAME_STYLE

ContactsContract.StructuredName and ContactsContract.Organization contain
a hidden PHONETIC_NAME_STYLE string that causes public users instead to get
an incorrect value inherited from ContactNameColumns. Remove unused
uses of PHONETIC_NAME_STYLE and rewrite ValuesDelta usage to use the DATA11
column. Change copyStringFrom() so that it doesn't always populate an entry
for null values.

Bug:22825056
Change-Id: Ide28b12e55c27c3d5fc6140184bcd2a7d0c98a60
ndroid/contacts/common/model/ValuesDelta.java
ndroid/contacts/common/model/dataitem/OrganizationDataItem.java
ndroid/contacts/common/model/dataitem/StructuredNameDataItem.java
80dfab3763247aa6bac989ac534dc874443be0d8 29-Jul-2015 Tingting Wang <tingtingw@google.com> Disable multi select for directory contacts on search.

BUG 22821481

Change-Id: Iff796f0bd6a2f5ae7ad986138c647d9ac8bc3ab1
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
a25db397330a47df955496a755aedfb6e37d45c8 30-Jul-2015 Jay Shrauner <shrauner@google.com> am 7eb9d6f1: am bd714841: am 36906900: am c05c6597: am 615ed9c5: Check for WRITE_CONTACTS permission

* commit '7eb9d6f12e91b357c1c5453756a31361f62a52fb':
Check for WRITE_CONTACTS permission
7eb9d6f12e91b357c1c5453756a31361f62a52fb 29-Jul-2015 Jay Shrauner <shrauner@google.com> am bd714841: am 36906900: am c05c6597: am 615ed9c5: Check for WRITE_CONTACTS permission

* commit 'bd7148418a8089a795eb321087afe81ed90cbe2f':
Check for WRITE_CONTACTS permission
615ed9c5e89f06a56ed6ad30244a9f6cb495e85c 29-Jul-2015 Jay Shrauner <shrauner@google.com> Check for WRITE_CONTACTS permission

Bug:22801513
Change-Id: I5cd85527423be34a3c8c93f0e234c74dc274e691
ndroid/contacts/ContactSaveService.java
f4525bc0b0a808689ebc3a561fa3b3d25add116d 29-Jul-2015 Yorke Lee <yorkelee@google.com> am fca3df88: am cb7b4497: am 4eeedd93: am b5342537: am c1d7d6b2: Merge "Don\'t set data on ACTION_SEND intent for Vcard" into mnc-dev

* commit 'fca3df88c85d876c66da44fd20a5127690550c0e':
Don't set data on ACTION_SEND intent for Vcard
fca3df88c85d876c66da44fd20a5127690550c0e 29-Jul-2015 Yorke Lee <yorkelee@google.com> am cb7b4497: am 4eeedd93: am b5342537: am c1d7d6b2: Merge "Don\'t set data on ACTION_SEND intent for Vcard" into mnc-dev

* commit 'cb7b449738925914812f84c961f9f4160fb86458':
Don't set data on ACTION_SEND intent for Vcard
c1d7d6b25902bc42abd842edcb6b108dcb33fe1f 29-Jul-2015 Yorke Lee <yorkelee@google.com> Merge "Don't set data on ACTION_SEND intent for Vcard" into mnc-dev
552ee569d46ae5c63207a162157171b249243e56 29-Jul-2015 Yorke Lee <yorkelee@google.com> Don't set data on ACTION_SEND intent for Vcard

Bug: 22099922
Change-Id: I00a208550075cc7dd5426a207a222cb9e0f47c48
ndroid/contacts/quickcontact/QuickContactActivity.java
473bd5186a0d90f90924d628b653b6cc452b3f73 27-Jul-2015 Walter Jang <wjang@google.com> am 568bc9a7: am 8485e3c3: am 857df2e9: am 07d1a77c: am 0653de3d: Apply contact join ops before we reach the max batch op threshold

* commit '568bc9a7e7c913fb9254cf042af2385d95f9e27b':
Apply contact join ops before we reach the max batch op threshold
568bc9a7e7c913fb9254cf042af2385d95f9e27b 27-Jul-2015 Walter Jang <wjang@google.com> am 8485e3c3: am 857df2e9: am 07d1a77c: am 0653de3d: Apply contact join ops before we reach the max batch op threshold

* commit '8485e3c3bc6acf98f4d18ccb30c28eee591a29a1':
Apply contact join ops before we reach the max batch op threshold
ddb9742e71be3bed5969f6e51ff5fcd77df3e8cb 25-Jul-2015 Walter Jang <wjang@google.com> am 7fe75b82: am a9effe05: am 262b6fd1: am f60da396: am 6a42c290: Merge "Delay AccountTypeManager init until we have the Contacts permission 1/2" into mnc-dev

* commit '7fe75b8248cc1f40bcdc6a5ddcdf6c7bd674ffda':
Delay AccountTypeManager init until we have the Contacts permission 1/2
7fe75b8248cc1f40bcdc6a5ddcdf6c7bd674ffda 25-Jul-2015 Walter Jang <wjang@google.com> am a9effe05: am 262b6fd1: am f60da396: am 6a42c290: Merge "Delay AccountTypeManager init until we have the Contacts permission 1/2" into mnc-dev

* commit 'a9effe053c537fce962fa7804c0c0a0052e20246':
Delay AccountTypeManager init until we have the Contacts permission 1/2
b33e9612a758ad84c556fa10e64ace15c65ae371 25-Jul-2015 Jay Shrauner <shrauner@google.com> Merge "Catch SecurityExceptions when importing" into mnc-dev
d8e9cdfeb97304b36318eb85b5c1fc880137abd8 25-Jul-2015 Yorke Lee <yorkelee@google.com> Merge "Add utility method to check for AppOp" into mnc-dev
0653de3dbac5b4f4a41332f09a2275a96dab4c8e 24-Jul-2015 Walter Jang <wjang@google.com> Apply contact join ops before we reach the max batch op threshold

Splitting the join operations across several batches "could" lead
to some parts of the join being applied and the remaining parts
not applied because of some error.

Our new UX to join more than two contacts also increases the
possibility that the joins take a long time. This is especially
true when a contact involved in the joined is composed of many
raw contacts since the current contact save logic creates an
operation between every pair of raw contacts.

Bug 22480225

Change-Id: Icab836f587808e018bd59909864dfd9de0d53776
ndroid/contacts/ContactSaveService.java
054dca560020332e448071eff0a61eb667729263 25-Jul-2015 Walter Jang <wjang@google.com> Merge "Delay AccountTypeManager init until we have the Contacts permission 2/2" into mnc-dev
04dd3f89b2243a1b1e4aa2e6f83676b0f4c44790 24-Jul-2015 Yorke Lee <yorkelee@google.com> Add utility method to check for AppOp

Bug: 22660372
Change-Id: Ica4750e9ad36a097ec66dcba3f9c6a106f456897
ndroid/contacts/common/util/PermissionsUtil.java
8568b59c98d4d6d1475075f72a5775d251a6be12 24-Jul-2015 Walter Jang <wjang@google.com> Add back READ_EXT_STORAGE so we can handle vcard imports again 3/3

Bug 22669733
Bug 22610204
Bug 22609672

Change-Id: I90352a4bf6c48f029898b28ceb3365d7b66033e6
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
dccfa943899e16aac8f4436916361bfabed3132f 24-Jul-2015 Walter Jang <wjang@google.com> Delay AccountTypeManager init until we have the Contacts permission 1/2

Bug 22690336

Change-Id: Ibaaea466183ebbc361c40c55185b4409ff17d423
ndroid/contacts/ContactsApplication.java
1dd6735e5322fdd30ec82deb0248c111e08487bb 23-Jul-2015 Walter Jang <wjang@google.com> Delay AccountTypeManager init until we have the Contacts permission 2/2

Bug 22690336

Change-Id: I6709e09f4f1a5f561a2dce06c5684f76945ddb9b
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
e61d9bb61dcc34f9451308000774f189ae521d5f 21-Jul-2015 Walter Jang <wjang@google.com> am 3a739e88: am 558524d2: am 5ed4e8b9: am 8b7e2ffa: am 03debc68: Pass MaterialPalete colors to contact editor as ints not Parcelable

* commit '3a739e8881073221cf6017a0b6a2c35f91fa4e85':
Pass MaterialPalete colors to contact editor as ints not Parcelable
bea6fa89e0b83c1eacc6c317e89c273defeca5e7 21-Jul-2015 Jay Shrauner <shrauner@google.com> Catch SecurityExceptions when importing

Bug:22609672
Change-Id: Iea43c86b33f6e5e84923ae1193e0fd820e7cd0f5
ndroid/contacts/common/vcard/ImportVCardActivity.java
3a739e8881073221cf6017a0b6a2c35f91fa4e85 20-Jul-2015 Walter Jang <wjang@google.com> am 558524d2: am 5ed4e8b9: am 8b7e2ffa: am 03debc68: Pass MaterialPalete colors to contact editor as ints not Parcelable

* commit '558524d2f7dc68051f0b3353a5088f2f41001aee':
Pass MaterialPalete colors to contact editor as ints not Parcelable
03debc685e254b85df07fc9d213f17967a5fca9a 20-Jul-2015 Walter Jang <wjang@google.com> Pass MaterialPalete colors to contact editor as ints not Parcelable

The MaterialPalette class is not public and crashes the edit contact
app selector if any third party app also has a filter for
android.intent.action.EDIT in their manifest.

Bug 22564102

Change-Id: I0926108bf83431e4c80412571062f7bc561c3de5
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorIntents.java
472dc8241031f0c46675b4b5bb1b8c506b2a953f 18-Jul-2015 Tingting Wang <tingtingw@google.com> am 5f11ba57: am ff786de2: am 160bf5ee: am cfe1edfc: am 01b37680: Don\'t display "CUSTOM" when PHONE_TYPE == "CUSTOM" and no label set.

* commit '5f11ba57273df7d4837f623447d6dd75c7cf8959':
Don't display "CUSTOM" when PHONE_TYPE == "CUSTOM" and no label set.
8c70d10bb8cc51e19e9e6155e3e8c2b8993b04a8 18-Jul-2015 Yorke Lee <yorkelee@google.com> Merge "Add utility methods to listen for permission granted broadcasts" into mnc-dev
5f11ba57273df7d4837f623447d6dd75c7cf8959 18-Jul-2015 Tingting Wang <tingtingw@google.com> am ff786de2: am 160bf5ee: am cfe1edfc: am 01b37680: Don\'t display "CUSTOM" when PHONE_TYPE == "CUSTOM" and no label set.

* commit 'ff786de2e583c000e86fdc577270a46ae499ef65':
Don't display "CUSTOM" when PHONE_TYPE == "CUSTOM" and no label set.
d6fedcdf2e8e020ba6dc480914091361be19ba7e 18-Jul-2015 Yorke Lee <yorkelee@google.com> Add utility methods to listen for permission granted broadcasts

Bug: 22174668
Change-Id: I527bec3e607b0677c587c704333216ecdabe7558
ndroid/contacts/common/util/PermissionsUtil.java
01b376805a56281f4b18e041e9676c8ee1ecd235 17-Jul-2015 Tingting Wang <tingtingw@google.com> Don't display "CUSTOM" when PHONE_TYPE == "CUSTOM" and no label set.

Check the case which PHONE_TYPE="CUSTOM" and no label set in
QuickActivity, and return empty string instead of "CUSTOM".

BUG 21900262

Change-Id: Icde2d7ec68bb2b489875b99dc6c2166d939134ea
ndroid/contacts/quickcontact/QuickContactActivity.java
c46812103f76766da1c68f6c2007449bc6fda3df 17-Jul-2015 Walter Jang <wjang@google.com> Remove WRITE_EXTERNAL_STORAGE from desired permissions

Missed this in ag/727199 where it was removed from required permissions.

Bug 22454038

Change-Id: Idf389881b98da22bb69cb8783899e6e7e315ac69
ndroid/contacts/common/activity/RequestPermissionsActivity.java
d5a5b9add7f826a9f008ff22ad4b9f4a7fcc2208 15-Jul-2015 Yorke Lee <yorkelee@google.com> Merge "Check for permissions in ContactPhotoManager" into mnc-dev
da556eca0a7f5185cf6a4715ef1644d1dc37008d 15-Jul-2015 Tingting Wang <tingtingw@google.com> am 011d2a88: am dea958db: am 4202f18c: am 561e5974: am 7f11f2ec: Merge "Show phonetic name next to display name in UI." into mnc-dev

* commit '011d2a8824291e0de7a8995b9da574cf488bc11f':
Show phonetic name next to display name in UI.
011d2a8824291e0de7a8995b9da574cf488bc11f 15-Jul-2015 Tingting Wang <tingtingw@google.com> am dea958db: am 4202f18c: am 561e5974: am 7f11f2ec: Merge "Show phonetic name next to display name in UI." into mnc-dev

* commit 'dea958db4beac1de8efcdfd448ec172ada1828a9':
Show phonetic name next to display name in UI.
f5d819fa03df4df63258b58429961119b7b81f78 15-Jul-2015 Yorke Lee <yorkelee@google.com> Check for permissions in ContactPhotoManager

Bug: 22487648
Change-Id: Ibfe11fd3a4ffe0e210ba16efa4e38f0c8dab47db
ndroid/contacts/common/ContactPhotoManager.java
d5b686e73dc50d90fd44dc5c738d243a81a6cc31 13-Jul-2015 Tingting Wang <tingtingw@google.com> Show phonetic name next to display name in UI.

In Quick contact UI, show phonetic name following its display name
if phonetic name exists.

BUG 22235947

Change-Id: I0066d2811b207bb36480f1d3c14712573b92a1a0
ndroid/contacts/quickcontact/QuickContactActivity.java
2fa5664b65b4ba945e998d1ee94c353fcc8d964e 14-Jul-2015 Walter Jang <wjang@google.com> Remove READ_EXT_STORAGE perm now that user selects vcard import location 1/3

Bug 22454038

Change-Id: Ib7002b53df7bd639a2ee0136cb62ff549001a9c3
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
c2476cdb870d27844da336107153ec4212546160 14-Jul-2015 Walter Jang <wjang@google.com> Merge "Allow the user to select the vcards to import" into mnc-dev
6321e5a5da7b2b3bdb42eab6e6f7b6b4261d396d 14-Jul-2015 Walter Jang <wjang@google.com> Allow the user to select the vcards to import

Rather than always scanning for .vcf files in external storage

This is the flip-side to b/22453182 where we changed to allow
the user to select the destination for vcard export so that
we could remove the WRITE_EXTERNAL_STORAGE permission.

Additionally, we change the import/export options in the
dialog to read "Export to .vcf file" and "Import from .vcf file"
since the previous text (Just "Export" and "Import from external
storage" are not accurate.

Note, we continue to support importing from multiple .vcf files
at once but we no longer need our own dialog to present those
options to the user.

Bug 22454038

Change-Id: I1a145f00f07c4c0f547c38d720c109197baab833
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/SelectAccountActivity.java
ndroid/contacts/common/vcard/VCardService.java
f287bdb737aa232f1fd41bbea01da598dd684790 14-Jul-2015 Yorke Lee <yorkelee@google.com> Merge "Don't cache results of permission check" into mnc-dev
e2802797c853e967698e2889964257ad4456030e 13-Jul-2015 Yorke Lee <yorkelee@google.com> Don't cache results of permission check

For maximum safety, always check the current permission status
on the fly.

Bug: 22455059
Change-Id: Ib5cfd9fe1ab6222ff1d67354cb1ebb9bcd46873f
ndroid/contacts/common/util/PermissionsUtil.java
20ddac0235a1849346fa048b80f1f5eed787342a 13-Jul-2015 Walter Jang <wjang@google.com> Add back READ_EXTERNAL_STORAGE permission for vcard import 2/3

WRITE_EXTERNAL_STORATE was removed to fix b/22208705

Bug 22453182

Change-Id: I0b46ed82142d6fe1384d847a31f6428325e1c3da
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
39d1d8db393c09b6118738c8bf16e4fadfc0e5a0 11-Jul-2015 Jay Shrauner <shrauner@google.com> am 849de7ca: am 9a3ff2ac: am bdba5fa2: am f3d6e2ce: am 9ea7848d: Merge "Catch WRITE_CONTACTS SecurityExceptions" into mnc-dev

* commit '849de7ca9d9b817d3a48e01cd4ed4d62650ed0ec':
Catch WRITE_CONTACTS SecurityExceptions
849de7ca9d9b817d3a48e01cd4ed4d62650ed0ec 11-Jul-2015 Jay Shrauner <shrauner@google.com> am 9a3ff2ac: am bdba5fa2: am f3d6e2ce: am 9ea7848d: Merge "Catch WRITE_CONTACTS SecurityExceptions" into mnc-dev

* commit '9a3ff2ac28326087c28697c675ca124493d55616':
Catch WRITE_CONTACTS SecurityExceptions
9ea7848d027f01d7f8945e84b29322b8d9828a92 10-Jul-2015 Jay Shrauner <shrauner@google.com> Merge "Catch WRITE_CONTACTS SecurityExceptions" into mnc-dev
9881882e769fbf66d728159322e1d8b5e572e36c 10-Jul-2015 Jay Shrauner <shrauner@google.com> Catch WRITE_CONTACTS SecurityExceptions

Fix crash when app lacks WRITE_CONTACTS and we fail in attempt to update
interaction counts.

Bug:22405683
Change-Id: I53a10b8907e88fe75296bcfaf4659d7f358875d8
ndroid/contacts/quickcontact/QuickContactActivity.java
8df87f10969046e0507bb8b9d65512059efd4282 10-Jul-2015 Walter Jang <wjang@google.com> Fix broken contacts common unit tests

* Brian informs me that he (or Makoto) changed the
external account type constructor to not abort
if it doesn't parse the xml so I updated the test
for unknown packages to expect to get initialized.

* Looks like an omission that SIP address does not
have a maxOccurs set to 1 when initilized. I tried
to change the test data file contacts_fallback.xml
to not include a maxOccurs attr but it needs one
and it must be set to 1.

Bug 15413731

Change-Id: I4a8a297799686885eaa64868a2b8c0f25c177f4b
ndroid/contacts/common/model/account/BaseAccountType.java
520e7311d128c21db81f015f424d3948fe6116ad 10-Jul-2015 Walter Jang <wjang@google.com> am e33dbedb: am b314a45b: am dfd9d9e0: am 5348ba44: am 22417833: Allow split of aggregate contact composed of >1 read-only contacts

* commit 'e33dbedbbab4b90360ce0fa52ba15ba5186907ee':
Allow split of aggregate contact composed of >1 read-only contacts
e33dbedbbab4b90360ce0fa52ba15ba5186907ee 10-Jul-2015 Walter Jang <wjang@google.com> am b314a45b: am dfd9d9e0: am 5348ba44: am 22417833: Allow split of aggregate contact composed of >1 read-only contacts

* commit 'b314a45b98441dcf88f7fae698642bbe0f7d6c4d':
Allow split of aggregate contact composed of >1 read-only contacts
2241783345a24acd27c52d938943b2ca76dc7329 09-Jul-2015 Walter Jang <wjang@google.com> Allow split of aggregate contact composed of >1 read-only contacts

Bug 22382957

Change-Id: I33f22a5ba9c55fe722601b54cecc59a173d6940b
ndroid/contacts/editor/ContactEditorBaseFragment.java
7a243016264ef766f36d8800eb31235fc8f510eb 09-Jul-2015 Walter Jang <wjang@google.com> Resolve vcard export file display name

The display name of the export destination file is displayed
in the Toast indicating that an export has been initiated as
well as in the notification displayed after the export completes.

Bug 22208705

Change-Id: Ifbf80945614d6d3244b58acff2160e3caf051d8d
ndroid/contacts/common/vcard/ExportProcessor.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/NotificationImportExportListener.java
f923891870d482e5e70958a83157bd5d9a4c0ec7 08-Jul-2015 Tingting Wang <tingtingw@google.com> am da2f4dee: am aeb5842d: am 64edadda: am 66e97032: am 2e825c4c: Merge "Don\'t display Custom for PHONE_TYPE=CUSTOM part 2." into mnc-dev

* commit 'da2f4deeca4843995bdcea726c54bda8582c908b':
Don't display Custom for PHONE_TYPE=CUSTOM part 2.
da2f4deeca4843995bdcea726c54bda8582c908b 08-Jul-2015 Tingting Wang <tingtingw@google.com> am aeb5842d: am 64edadda: am 66e97032: am 2e825c4c: Merge "Don\'t display Custom for PHONE_TYPE=CUSTOM part 2." into mnc-dev

* commit 'aeb5842db5d9008f6a2bcd6e472b369dd37bcc04':
Don't display Custom for PHONE_TYPE=CUSTOM part 2.
2e825c4cb78a017a2c313a63d361bab1a4be38b6 08-Jul-2015 Tingting Wang <tingtingw@google.com> Merge "Don't display Custom for PHONE_TYPE=CUSTOM part 2." into mnc-dev
1dc13a4fedba88f9b59dac37695bf265d792744c 01-Jul-2015 Walter Jang <wjang@google.com> Let the user choose where to export vcards to 1/3

Instead of always using external storage.

Also we change the suggested export filename
from something like 00001.vcf to just contacts.vcf.
Since we don't know the destination directory
anymore untill after it is selected, we can't check
if there is already an exported vcf file there in.
The Activity handling ACTION_CREATE_DOCUMENT handles
file name collisions itself anyway.

Screenshots https://goto.google.com/b22208705

Bug 22208705

Change-Id: I17bac2f483e200c13adf1429c0eade17e4d2908a
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/VCardService.java
3df785b0ad0c0292adfc03a4f804d1b38053de63 08-Jul-2015 Tingting Wang <tingtingw@google.com> Don't display Custom for PHONE_TYPE=CUSTOM part 2.

Dialer sometimes creates custom PHONE_TYPE values without
specifying the custom string. In this case, we shouldn't
display "Custom". We should display nothing.

BUG 21900262

Change-Id: Ie65a40fea3c857b7a65ee82a22c8cd1465225781
ndroid/contacts/quickcontact/QuickContactActivity.java
b8ac9956549b35986cac9dc6f037b7702c1c4ff4 08-Jul-2015 Walter Jang <wjang@google.com> am 618a237e: am 83053f4c: am 6637931d: am a560d32e: am 23a34d10: Mark Editors as deleted when entire KindSectionViews are removed.

* commit '618a237e124a0c17d017ba595f41b90a2ac50b8d':
Mark Editors as deleted when entire KindSectionViews are removed.
618a237e124a0c17d017ba595f41b90a2ac50b8d 08-Jul-2015 Walter Jang <wjang@google.com> am 83053f4c: am 6637931d: am a560d32e: am 23a34d10: Mark Editors as deleted when entire KindSectionViews are removed.

* commit '83053f4c94b612ba252ca7fb001de4984a62135b':
Mark Editors as deleted when entire KindSectionViews are removed.
23a34d10b03e8a713a2b93980ff7f4c696aff93d 08-Jul-2015 Walter Jang <wjang@google.com> Mark Editors as deleted when entire KindSectionViews are removed.

Regression was introduce by ag/721564

Bug 22345338

Change-Id: I21ef3e94cc20c8cc10f06084ce350b626710bbfc
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
665d9528ed0ef3ffae74f7bdb316480b14ee3006 08-Jul-2015 Walter Jang <wjang@google.com> am ec5e34cd: am 9a3cdb14: am ad4e4d9c: am 4b1634de: am 4ee224b7: Merge "Hide all empty email and phone KindSectionViews expect the last" into mnc-dev

* commit 'ec5e34cd93201a8e52c3bc9602d0516ca369b69c':
Hide all empty email and phone KindSectionViews expect the last
ec5e34cd93201a8e52c3bc9602d0516ca369b69c 08-Jul-2015 Walter Jang <wjang@google.com> am 9a3cdb14: am ad4e4d9c: am 4b1634de: am 4ee224b7: Merge "Hide all empty email and phone KindSectionViews expect the last" into mnc-dev

* commit '9a3cdb1454846137cc75eb300cf72173788c3233':
Hide all empty email and phone KindSectionViews expect the last
ae9c9ec49c460d34f7c649c3a3bf684fc5ef262d 08-Jul-2015 Walter Jang <wjang@google.com> Hide all empty email and phone KindSectionViews expect the last

Bug 22331611

Change-Id: I5c4544ed3cc82982f159f7c1758a1e6cd8868c48
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionView.java
eedcd4dbf9ae51d6c325d54663c782ac1955195e 07-Jul-2015 Walter Jang <wjang@google.com> am a26cded6: am 4c0f7087: am 978a9fdd: am 4181bfc0: am 995bb4af: Don\'t delete kind sections when there are >1 emails in the raw contact

* commit 'a26cded64240ac10458b80346213158d323bb34b':
Don't delete kind sections when there are >1 emails in the raw contact
a26cded64240ac10458b80346213158d323bb34b 07-Jul-2015 Walter Jang <wjang@google.com> am 4c0f7087: am 978a9fdd: am 4181bfc0: am 995bb4af: Don\'t delete kind sections when there are >1 emails in the raw contact

* commit '4c0f708739022584a22a41c50b19e6767f084077':
Don't delete kind sections when there are >1 emails in the raw contact
995bb4af702a619bda3819daeeaa68c55d9e96bd 06-Jul-2015 Walter Jang <wjang@google.com> Don't delete kind sections when there are >1 emails in the raw contact

* Also fix jank when deleting compact editor input fields
We were animating removal of input fields when there was more
than one field in the raw contact (i.e. Editor.deleteEditor)
but not when hiding entire KindViewSections
(i.e. KindSectionView.setVisibility(GONE)). When animating
KindSectionView removals, we must mark it for deletion
since we need to re-assess the number of KindSectionViews that
are visibile (in order to show icons) before the removal
animation finishes (the visibility is set to GONE at the end
of the animation).

* Prevent nicknames from being deleted

Bug 22228718
Bug 22299522

Change-Id: I28dad184c53e89f067d54675fcb3e7ebac9d971e
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionView.java
45bbd091b2ef35907eb7b1dbb6ad9962cd43b365 04-Jul-2015 Walter Jang <wjang@google.com> am bef1f2c5: am edb90569: am 19d985fd: Group non-phone and email fields together on compact editor

* commit 'bef1f2c57795126fb25f8c64528503639a3d01af':
Group non-phone and email fields together on compact editor
bef1f2c57795126fb25f8c64528503639a3d01af 02-Jul-2015 Walter Jang <wjang@google.com> am edb90569: am 19d985fd: Group non-phone and email fields together on compact editor

* commit 'edb905691c1e23ac9cbbd2c8e533c36072159fd1':
Group non-phone and email fields together on compact editor
c87e5d68f62ff612a39e1e2192c2db7f2ad4278e 02-Jul-2015 Yorke Lee <yorkelee@google.com> Correctly recache permission status

Bug: 22205650
Change-Id: I356d202a76f48ba76a815d533c163cefcb85a596
ndroid/contacts/common/util/PermissionsUtil.java
19d985fd21c6a9652c1b642bb0b4e6903a26d2e6 01-Jul-2015 Walter Jang <wjang@google.com> Group non-phone and email fields together on compact editor

Bug 22228718

Change-Id: I561ee25bad95a716744ba7d74fb6b49463b029da
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionView.java
44d1ba8658407b6ba8954eca2dd449c167cb2c1f 01-Jul-2015 Yorke Lee <yorkelee@google.com> Fix NPE in ViewPagerStrips

Bug: 22201498
Change-Id: I4c44b91d5d19a17958fd8fd6b9433875a30a9901
ndroid/contacts/common/list/ViewPagerTabStrip.java
52f1549cf1715c34610252236a8be17855ed7cd0 01-Jul-2015 Walter Jang <wjang@google.com> am da3b8fd2: am 386fde8e: am dea29b7d: Merge "Fix showing all phone nums and emails for joined contacts" into mnc-dev

* commit 'da3b8fd21ab5e69bacfb68dab24bed7f4c0a790e':
Fix showing all phone nums and emails for joined contacts
da3b8fd21ab5e69bacfb68dab24bed7f4c0a790e 01-Jul-2015 Walter Jang <wjang@google.com> am 386fde8e: am dea29b7d: Merge "Fix showing all phone nums and emails for joined contacts" into mnc-dev

* commit '386fde8e158d7d0d133949253c2aac2b9567fdac':
Fix showing all phone nums and emails for joined contacts
4a9351db3c8385469bad037544d4b60d76504f5e 30-Jun-2015 Walter Jang <wjang@google.com> Fix showing all phone nums and emails for joined contacts

We must delete the entire KindSectionView for emails and
phone numbers for all but the last raw contact that is being
edited.

Also, icons must be updated whenever an editor housed in
a kindview is deleted since we only want to show the icon
once for all the kindviews added to the compact layout
for all the raw contacts in the delta list.

Bug 22203548

Change-Id: If12c4fc10a9c9c09cbcfb86c5bf1472d89f6b890
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/RawContactEditorView.java
0b446ec0df0fd9b7ac57566b29047918e2c016af 26-Jun-2015 Brian Attwell <brianattwell@google.com> Catch transaction too large exception

If you are sharing a bazillion contacts, then the
shared intent's URI can be longer than the binder
limit. This causes a crash. For now, lets prevent
the crash from occuring and show a toast.

Bug: 22083005
Change-Id: I2028929a49240a1982301b46f7e2eb4b3d6239bb
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
1ba6903ab696d9eeb1117fefb423b5b3bdba2131 27-Jun-2015 Andrew Lee <anwlee@google.com> Merge "Remove isVisibility check before scaleIn." into mnc-dev
47991ebd63a18452f257d28efe57b010ff09da8b 26-Jun-2015 Brian Attwell <brianattwell@google.com> am cd87f7e8: am 63146c95: am 083cc0a4: Merge "Set package name on ACTION_PICK intent" into mnc-dev

* commit 'cd87f7e837794007c9846d60706d53f5eb322aa3':
Set package name on ACTION_PICK intent
cd87f7e837794007c9846d60706d53f5eb322aa3 26-Jun-2015 Brian Attwell <brianattwell@google.com> am 63146c95: am 083cc0a4: Merge "Set package name on ACTION_PICK intent" into mnc-dev

* commit '63146c959b4802d4ac65a43e6f3bd3f17b2d163d':
Set package name on ACTION_PICK intent
083cc0a422c5f372c5535217e86085060b6940b4 26-Jun-2015 Brian Attwell <brianattwell@google.com> Merge "Set package name on ACTION_PICK intent" into mnc-dev
4785c51daa895a961cbf85cc6c80ef3bb4a3b331 26-Jun-2015 Brian Attwell <brianattwell@google.com> Set package name on ACTION_PICK intent

This prevents the disambiguation dialog from appearing. As
a result, the user no longer has the ability to decide
whether to use their Work or Personal Contacts app. This
prevents the intent from becoming cross-profile.

Bug: 17472472
Change-Id: Ica5a9bf960a016f735caf933da5cc8fa6aa7614c
ndroid/contacts/activities/AttachPhotoActivity.java
8274a3ebee70ae9da5324e8635471769fd2949c5 26-Jun-2015 Walter Jang <wjang@google.com> am d6b20af7: am 140c33eb: am d931d1a3: Merge "Don\'t rebuild labels when phone and emails field change" into mnc-dev

* commit 'd6b20af7c055e03735fda254cfb366ce54098acb':
Don't rebuild labels when phone and emails field change
d6b20af7c055e03735fda254cfb366ce54098acb 26-Jun-2015 Walter Jang <wjang@google.com> am 140c33eb: am d931d1a3: Merge "Don\'t rebuild labels when phone and emails field change" into mnc-dev

* commit '140c33eb151b74f64caf6315a4b769304e6521ad':
Don't rebuild labels when phone and emails field change
d931d1a359f6a974b2b83dc8ff32dc03e71bec09 26-Jun-2015 Walter Jang <wjang@google.com> Merge "Don't rebuild labels when phone and emails field change" into mnc-dev
c7e0a98b5692eb97ffd42c343555e0b91a9d1313 26-Jun-2015 Walter Jang <wjang@google.com> Don't rebuild labels when phone and emails field change

This was necessary when we using different hint colors
for groups of input fields but since that was removed
this should be safe to remove.

Bug 21662781

Change-Id: I7b9f48fed3d963cce251d6b09e705907c9cb224f
ndroid/contacts/editor/LabeledEditorView.java
d01d238a7e6ff30d6d025eee96e41a8a0c511691 25-Jun-2015 Andrew Lee <anwlee@google.com> Remove isVisibility check before scaleIn.

Turns out, assumption that we'd never want to scaleIn a visible FAB is false.

If the FAB is in the middle of a transition (eg. scaling out), it cancels
that animation, and some states can conflict. It's possible to fix these in
this statement, but... at this point, it just seems more conservative just
to leave it the way it was working before and address the FAB case in Dialer
differently.

Bug: 21938194
Bug: 22070516
Change-Id: I5e5f88af71faed4ce603e21b00f526e829e6d3fc
ndroid/contacts/common/widget/FloatingActionButtonController.java
2f0c38466cf2d2b6442f94e4d5a03e5e52f9a9a1 26-Jun-2015 Brian Attwell <brianattwell@google.com> am 19755189: am f89f84bd: am 57b5f249: Merge "Check permissions before using associated APIs" into mnc-dev

* commit '19755189fe4fd22f00f681b328374f5b190da7c4':
Check permissions before using associated APIs
19755189fe4fd22f00f681b328374f5b190da7c4 26-Jun-2015 Brian Attwell <brianattwell@google.com> am f89f84bd: am 57b5f249: Merge "Check permissions before using associated APIs" into mnc-dev

* commit 'f89f84bddcd319c5b802e3b4fb886db8caf9c0d0':
Check permissions before using associated APIs
dd035aadc70fbd44d3fa799d507498db50344746 25-Jun-2015 Brian Attwell <brianattwell@google.com> Merge "Improve Contacts' permission handling" into mnc-dev
57b5f249a4faf184298cd05fc2c3c17c3f5751b0 25-Jun-2015 Brian Attwell <brianattwell@google.com> Merge "Check permissions before using associated APIs" into mnc-dev
12262952969d3f90b9ad87d50344079480c0220b 25-Jun-2015 Walter Jang <wjang@google.com> am e6493f1f: am ec37c52b: am c4cecc7e: Show google account types on editor as "account" instead of "contact"

* commit 'e6493f1f68c83a19f7f46308b4a3aa4389bda66d':
Show google account types on editor as "account" instead of "contact"
e6493f1f68c83a19f7f46308b4a3aa4389bda66d 25-Jun-2015 Walter Jang <wjang@google.com> am ec37c52b: am c4cecc7e: Show google account types on editor as "account" instead of "contact"

* commit 'ec37c52bc88e1edb36c1b2c9e7c3022702f33404':
Show google account types on editor as "account" instead of "contact"
62f8007da6ecdf2d33c874f7459c18683985543e 24-Jun-2015 Brian Attwell <brianattwell@google.com> Improve Contacts' permission handling

Instead of repeatedly asking the user for the same permissions
over-and-over, instead only ask them once when they open an activity.
If they give us all the permissions we require, then allow them to continue.
If not, close the activity and show the user a toast.

Bug: 21791169
Change-Id: Idae927d525124ed8a7081bd5a8edbd24e1ba3190
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivityBase.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
0b89e307db20d1198d7b17b698d9146ab4607647 24-Jun-2015 Brian Attwell <brianattwell@google.com> Check permissions before using associated APIs

Also, use sdkVersion=MNC. This way missing runtime permissions will
throw SecurityExceptions. This will make it easier to catch any
unchecked usage of permissions.

Bug: 21791169
Change-Id: I6118cc42e3aa6505b47df9470672f722600eca31
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ndroid/contacts/interactions/CallLogInteractionsLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
c4cecc7e7534c7f5d887222d9e6f1a43364f7665 25-Jun-2015 Walter Jang <wjang@google.com> Show google account types on editor as "account" instead of "contact"

Also, missed the copy of the account type display lable setting
logic for read-only contacts in ag/712716 so replacing that with
the static utility method.

Bug 18719390
Bug 21637149

Change-Id: I112b32a25d4d3682ca8e58ef327660bd163cb273
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
b663fc95fe216d3f61880d2ea8ad6e487ae5b4ac 25-Jun-2015 Andrew Lee <anwlee@google.com> Merge "Swap in right icon for messaging and info." into mnc-dev
c046372eb5698828fc4236b3a629c5f429d1fe0a 25-Jun-2015 Brian Attwell <brianattwell@google.com> Merge "Temp fix for permission issues" into mnc-dev
82226b3c0f4e2dbd04a75c074f6047bb2b979610 25-Jun-2015 Brian Attwell <brianattwell@google.com> Temp fix for permission issues

I want to unblock QA. So I'm writing this small fix, while
the full fix is still in review.

Bug: 22066742
Bug: 21791169
Change-Id: I8d422ae7d3c8f189c9c7f697d8a9f4c1ec1d5785
ndroid/contacts/common/activity/RequestPermissionsActivity.java
37df4a7bab3532ee8816e6cb45d676f52048aa17 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
ndroid/contacts/common/list/ShortcutIntentBuilder.java
ndroid/contacts/common/model/account/BaseAccountType.java
e7863c562864459372b216f33336ccb14d5f9a72 24-Jun-2015 Yorke Lee <yorkelee@google.com> Merge "Protect against CP2 crash in Dialer" into mnc-dev
35821295f0a7118981972f7c2ca4919041ddae49 24-Jun-2015 Yorke Lee <yorkelee@google.com> Protect against CP2 crash in Dialer

Bug: 21755796
Change-Id: Icd6ca156b799457bd527fd4e2a83c37b9faf4b9b
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/DirectoryListLoader.java
490f6b0855aa6790923314670279dca6778c8368 23-Jun-2015 Walter Jang <wjang@google.com> am a6654275: am d8d1738b: am 26556774: Parsing compact editor profile photo file IDs as longs

* commit 'a665427558b0d8176e558d6a42cb34db9007cd25':
Parsing compact editor profile photo file IDs as longs
a665427558b0d8176e558d6a42cb34db9007cd25 23-Jun-2015 Walter Jang <wjang@google.com> am d8d1738b: am 26556774: Parsing compact editor profile photo file IDs as longs

* commit 'd8d1738b8206734417b14d405df925fc266d5954':
Parsing compact editor profile photo file IDs as longs
2655677440d8d8eb43a52c90504093112fe6782a 23-Jun-2015 Walter Jang <wjang@google.com> Parsing compact editor profile photo file IDs as longs

This only appears to be affecting the ME profile photo

Bug 22010349

Change-Id: If1be0ec6b2491649ebd0d3daa95a47cb437447af
ndroid/contacts/editor/CompactPhotoEditorView.java
bce5d9ba43252d8913547e8133f796952cc62e2f 22-Jun-2015 Andrew Lee <anwlee@google.com> Safety; set scale to 1, even if FAB is visible.

Bug: 21903907
Change-Id: I8e56c9d037c74049e1027d1d00edcee20e3e4d07
ndroid/contacts/common/widget/FloatingActionButtonController.java
6063a67fa391fc819c21592c441051d9141fd475 20-Jun-2015 Walter Jang <wjang@google.com> am ca1eaad2: am 3d454d28: am 2d3f31c2: Show account info for inserts and read-only contact edits

* commit 'ca1eaad2c0e996a7866bab99e41fe1c594691b37':
Show account info for inserts and read-only contact edits
ca1eaad2c0e996a7866bab99e41fe1c594691b37 20-Jun-2015 Walter Jang <wjang@google.com> am 3d454d28: am 2d3f31c2: Show account info for inserts and read-only contact edits

* commit '3d454d287faf74d1ea4a55b9275b1927fd8a48e7':
Show account info for inserts and read-only contact edits
d93e669ce06c1a63599d1415a683932511e97eb1 20-Jun-2015 Walter Jang <wjang@google.com> am b5938d77: am 55d2127f: am c90cc15b: Make saving a contact less confusing

* commit 'b5938d773bb0dba816f7c61e02dc2c817245a972':
Make saving a contact less confusing
b5938d773bb0dba816f7c61e02dc2c817245a972 20-Jun-2015 Walter Jang <wjang@google.com> am 55d2127f: am c90cc15b: Make saving a contact less confusing

* commit '55d2127f465cdd03a2d75e944d80b4b8f663120d':
Make saving a contact less confusing
2d3f31c210ffc617e82e3b41fc32b54ec2a5011a 19-Jun-2015 Walter Jang <wjang@google.com> Show account info for inserts and read-only contact edits

Bug 21637149

Change-Id: I224ab188230f119f49f4ab7ddef4b51c451aa892
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/RawContactEditorView.java
c90cc15b804fb00339a3b98e5c951549f9b03599 19-Jun-2015 Walter Jang <wjang@google.com> Make saving a contact less confusing

* Add always visible save menu item (a checkmark icon) on both
the compact and full editors. Selecting it saves changes
and closes the editor (what back does currently).
* On the compact editor, make back perform a discard,
including warning the user if there are unsaved changes.
* On the full editor, back still saves and goes back to
the full editor. This is not ideal but it's out of
scope to not save changes between the two editors
when editing an existing contact.

Bug 19983789

Change-Id: Ie23b75978db70f2b438a824e39f0ae8fb8aa99ec
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
768392a19dd1e27839ba05da5244d6d77ea15a2c 18-Jun-2015 Walter Jang <wjang@google.com> am 923933a5: am 1c9244c4: am fa127a1c: Allow users to edit photos for read-only contacts again

* commit '923933a55c9af8748af7424fa97dcef9aa79aa98':
Allow users to edit photos for read-only contacts again
17b80ea4a6f0dbf429c075576e69ea5266662370 18-Jun-2015 Walter Jang <wjang@google.com> am 652fccb8: am c611fbd4: am 06f73a15: Ignore new raw contact display names when saving contacts

* commit '652fccb838328d123c1a3735916c3ff47db8aafb':
Ignore new raw contact display names when saving contacts
923933a55c9af8748af7424fa97dcef9aa79aa98 18-Jun-2015 Walter Jang <wjang@google.com> am 1c9244c4: am fa127a1c: Allow users to edit photos for read-only contacts again

* commit '1c9244c46af80964c520b3594f178e7cff6dbf1a':
Allow users to edit photos for read-only contacts again
652fccb838328d123c1a3735916c3ff47db8aafb 18-Jun-2015 Walter Jang <wjang@google.com> am c611fbd4: am 06f73a15: Ignore new raw contact display names when saving contacts

* commit 'c611fbd470652f5a6e95feb7549b3a521e955026':
Ignore new raw contact display names when saving contacts
fa127a1c0ca95139664771edc3d5d97331c93b19 18-Jun-2015 Walter Jang <wjang@google.com> Allow users to edit photos for read-only contacts again

Similar to ag/711429 (for editing read-only names), we set the
photo bitmap from the read-only contact but set the newly created
(and writable) raw contact as the delta underlying the photo editor
view so that if the photo is updated by the user, the new raw
contact is set as changed and not the read-only raw contact.

Bug 21873945

Change-Id: Ibd40f3d708332fe6f87d247773b871d575d7d12e
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
06f73a15ed812d99ea28d836b02a5538bb1200c9 17-Jun-2015 Walter Jang <wjang@google.com> Ignore new raw contact display names when saving contacts

Now that we have logic to ignore the display name
we add to newly created raw contacts (when the
user wants to edit a read-only contact) when
determining whether the user made any edits,
we can enable changing the display on the compact
editor again.

Note, there is one glitch -- the name disappears
on the compact editor after you click more fields
(but only when editing read-only contacts).

Tested scenarios:

1) Edit read-only contact, more fields, back, back

No bogus contact is created and the read-only
name is displayed on both editors.

2) Edit read-only contact, change name on compact
editor, back, re-edit read-only contact, and split

The read-only contact is unchanged and a new
contact with the edited name is created.

3) Edit read-only contact, more fields, change name on
full editor, back, back, re-edit read-only contact,
and split

Same result as (2)

4) Edit read-only contact, add phone on compact
editor, back, re-edit read-only contact, and split

The read-only contact is unchanged and a new
contact with the read-only name and phone number is
created.

5) Edit read-only contact, more fields, add phone on full
editor, back, back, re-edit read-only contact, and split

Same result as (4)

Bug 21858251
Bug 21464081

Change-Id: I9028fee38b8ea7569968654a756eb98025318e69
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
b4f52b5a5ae68884aea9f83cd74a242c62741678 18-Jun-2015 Walter Jang <wjang@google.com> am 896cf384: am 2d549492: am 25f9694f: Fix detection of empty structured names

* commit '896cf384e78fef4093cd4b16c5028eed67760c09':
Fix detection of empty structured names
896cf384e78fef4093cd4b16c5028eed67760c09 18-Jun-2015 Walter Jang <wjang@google.com> am 2d549492: am 25f9694f: Fix detection of empty structured names

* commit '2d54949235abcde203106040e426c40ba7036423':
Fix detection of empty structured names
25f9694fcad5ce1856f5c214c4167dc58464ef4f 15-Jun-2015 Walter Jang <wjang@google.com> Fix detection of empty structured names

TextFieldEditorView.isEmpty does not do the right thing
for structured names because that methods just checks every
child of the fields ViewGroup and the view retains values
for fields that may have been erased by toggling the
name expansion. The result is that the FIELD_TURNED_EMPTY
EditorListener event is never fired.

Bug 21851290

Change-Id: Iaae3ba102a899de9dfd76d0469c9c2f1d094b0bd
ndroid/contacts/editor/StructuredNameEditorView.java
c426ede04d4cf3046950dc200eb47199da0bfaf8 17-Jun-2015 Walter Jang <wjang@google.com> am 7a1751c0: am 76b3951e: am 0299c1d4: Merge "Don\'t allow read-only photos to be changed in compact editor" into mnc-dev

* commit '7a1751c0fd9a0d493f221faff3ee50152ac92f01':
Don't allow read-only photos to be changed in compact editor
7a1751c0fd9a0d493f221faff3ee50152ac92f01 17-Jun-2015 Walter Jang <wjang@google.com> am 76b3951e: am 0299c1d4: Merge "Don\'t allow read-only photos to be changed in compact editor" into mnc-dev

* commit '76b3951e76835e7063f8031a622329742d89de6a':
Don't allow read-only photos to be changed in compact editor
265406b995bd91534e6812e3fcedf8eefbd24b93 17-Jun-2015 Walter Jang <wjang@google.com> am d7c3356b: am 8d43a998: am dd83ffe6: Merge "1/2 Sync Contacts and GoogleContacts manifests" into mnc-dev

* commit 'd7c3356b95921aebcd2c2628a4eba0c9de05f750':
1/2 Sync Contacts and GoogleContacts manifests
0299c1d4ff397d57dbc87d1bd453077cafbb36b7 17-Jun-2015 Walter Jang <wjang@google.com> Merge "Don't allow read-only photos to be changed in compact editor" into mnc-dev
1770e0b888fa0d1a821fcbba5c2f2a129beceae5 17-Jun-2015 Walter Jang <wjang@google.com> am ad9113fe: am 1fa1dad8: am 65d3520d: Don\'t allow read-only names to be changed in compact editor

* commit 'ad9113fe356ac2caf13d4830956506e19df49f81':
Don't allow read-only names to be changed in compact editor
d7c3356b95921aebcd2c2628a4eba0c9de05f750 17-Jun-2015 Walter Jang <wjang@google.com> am 8d43a998: am dd83ffe6: Merge "1/2 Sync Contacts and GoogleContacts manifests" into mnc-dev

* commit '8d43a9986f68cedac489716b1c780223b119f295':
1/2 Sync Contacts and GoogleContacts manifests
ad9113fe356ac2caf13d4830956506e19df49f81 17-Jun-2015 Walter Jang <wjang@google.com> am 1fa1dad8: am 65d3520d: Don\'t allow read-only names to be changed in compact editor

* commit '1fa1dad8c50e4bcb89902404f1c0ced94d5d52b0':
Don't allow read-only names to be changed in compact editor
dd83ffe6a098535f76a53826181eeeb8c9390c56 17-Jun-2015 Walter Jang <wjang@google.com> Merge "1/2 Sync Contacts and GoogleContacts manifests" into mnc-dev
365fb20e43007ac56133770299f156a334029248 17-Jun-2015 Andrew Lee <anwlee@google.com> Add overload for fab align() method.

Bug: 21161760
Change-Id: I0c2b00be3f053d1797f00e20877f285746acdc8a
ndroid/contacts/common/widget/FloatingActionButtonController.java
ef711f78432f8f188a5322851c355809ac9137cd 16-Jun-2015 Walter Jang <wjang@google.com> 1/2 Sync Contacts and GoogleContacts manifests

Also removed "com.google" from the full editor
action names.

Change-Id: I1b8afb8f8a32ab1fe60c7174d092830d81dcee07
ndroid/contacts/activities/ContactEditorBaseActivity.java
b3a1e011b64a8f6b24866869c2b3707f81500704 17-Jun-2015 Walter Jang <wjang@google.com> am e43cb40b: am 25e3663a: am 398cd4b1: Pass the preferred name ID into the contact editor

* commit 'e43cb40b989c5852c12030c08b54634230ed2b98':
Pass the preferred name ID into the contact editor
0c5dcefdeb5977615662ed6de86cc7bcbb3e053b 17-Jun-2015 Walter Jang <wjang@google.com> am b9ff5645: am faa22b97: am fbe232ef: Merge "Don\'t set super primary name on compact editor unless it changes" into mnc-dev

* commit 'b9ff56458b94248b6d95aeb7b58f31f9b3ffff35':
Don't set super primary name on compact editor unless it changes
5bcb1f3784d22a3245d4b3678acc01056a69eae3 17-Jun-2015 Brian Attwell <brianattwell@google.com> am 0db4ae9b: am 622809f0: am df45ec90: Merge "Don\'t erase vcard type by calling setData()" into mnc-dev

* commit '0db4ae9b3e5a409d9b58564cb713fd58727068fa':
Don't erase vcard type by calling setData()
e43cb40b989c5852c12030c08b54634230ed2b98 16-Jun-2015 Walter Jang <wjang@google.com> am 25e3663a: am 398cd4b1: Pass the preferred name ID into the contact editor

* commit '25e3663af40a9f16d5d7533c1428366f4c69e15a':
Pass the preferred name ID into the contact editor
b9ff56458b94248b6d95aeb7b58f31f9b3ffff35 16-Jun-2015 Walter Jang <wjang@google.com> am faa22b97: am fbe232ef: Merge "Don\'t set super primary name on compact editor unless it changes" into mnc-dev

* commit 'faa22b973623ab36356666ac3f1b7b7eaa18edc9':
Don't set super primary name on compact editor unless it changes
0db4ae9b3e5a409d9b58564cb713fd58727068fa 16-Jun-2015 Brian Attwell <brianattwell@google.com> am 622809f0: am df45ec90: Merge "Don\'t erase vcard type by calling setData()" into mnc-dev

* commit '622809f023859972583006e6e963d06f22f60d77':
Don't erase vcard type by calling setData()
41e1641c1e38daa0cae56e90a8b9e343e252b0a9 16-Jun-2015 Andrew Lee <anwlee@google.com> Don't scaleIn FAB if already visible.

Bug: 21161760
Change-Id: I18623cac2661ec66a7d166e9e38fafc996ca0d1c
ndroid/contacts/common/widget/FloatingActionButtonController.java
ab50e6f5cf14e1bdb6cd3598372fefc2fa6b0b83 15-Jun-2015 Walter Jang <wjang@google.com> Don't allow read-only photos to be changed in compact editor

Also don't display compact editor photos for non-editable contacts

Bug 21873945

Change-Id: I7523e9cc7f8342e546659ede6a3dd822d790a259
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
65d3520d3cee5c3c4c4c213adf210d008c0a0409 16-Jun-2015 Walter Jang <wjang@google.com> Don't allow read-only names to be changed in compact editor

Bug 21858251

Change-Id: I3a66d30123ae1a64acbd162f7991a56cf37bcc72
ndroid/contacts/editor/CompactRawContactsEditorView.java
398cd4b1fbfa7d2fabfc4addf6a156a841a5aa6a 16-Jun-2015 Walter Jang <wjang@google.com> Pass the preferred name ID into the contact editor

Bug 21870691

Change-Id: I99cc6bf8d90f32469ca7cf105567dcc3edf48e9f
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/quickcontact/QuickContactActivity.java
fbe232ef521b7f0963efbb44a63e8e60339e0c8a 16-Jun-2015 Walter Jang <wjang@google.com> Merge "Don't set super primary name on compact editor unless it changes" into mnc-dev
df45ec90c52aa0af22ba363c149cab9162dc6921 16-Jun-2015 Brian Attwell <brianattwell@google.com> Merge "Don't erase vcard type by calling setData()" into mnc-dev
8dcb4ed13da40fc609e6913708c3d730ba4f0574 16-Jun-2015 Brian Attwell <brianattwell@google.com> Don't erase vcard type by calling setData()

BluetoothOppLauncherActivity checks that the vcard
type is correctly set. Note, fixing this doesn't help
with the bug that gmail has displaying vcards.

Bug: 21650555
Change-Id: Iac08371320bdcc9043c45504b8318027543f094d
ndroid/contacts/quickcontact/QuickContactActivity.java
0a6fa7466b32fb18e239eda0697adb5fb1a10ccb 16-Jun-2015 Walter Jang <wjang@google.com> am 2682eea5: am c7335d9c: am 7897ac0d: Merge "Fix bug causing a read-only default account to be set" into mnc-dev

* commit '2682eea51213cc17843761973c7aface968f76ad':
Fix bug causing a read-only default account to be set
2682eea51213cc17843761973c7aface968f76ad 16-Jun-2015 Walter Jang <wjang@google.com> am c7335d9c: am 7897ac0d: Merge "Fix bug causing a read-only default account to be set" into mnc-dev

* commit 'c7335d9c477cd6c7859045b45f8c902771512b2a':
Fix bug causing a read-only default account to be set
c59de249035f7149afa39d020cd2a1b2f972ef68 15-Jun-2015 Walter Jang <wjang@google.com> Don't set super primary name on compact editor unless it changes

Also fix the contact being loaded unnecessarily when transitioning
to the full editor.

Bug 21464081

Change-Id: Ic833f64a073898c8524892428512ce65f2f14625
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
4e1a8de3527343115669cf588b5ebf793350c257 12-Jun-2015 Walter Jang <wjang@google.com> Fix bug causing a read-only default account to be set

Bug 21464081

Change-Id: I97653796b7abbab8df61060c03b0ff0222c1442c
ndroid/contacts/editor/ContactEditorBaseFragment.java
4348852b746df9a47ea7bdb5026c55d19927a3bd 11-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Revert "Revert "Permissions: Remove account permissions""

This reverts commit de8bd93b17e6d191604912e544405d3644750d2e.

Change-Id: I52d8efe232b565936f5d2c99ebd11cc115419692
ndroid/contacts/common/activity/RequestPermissionsActivity.java
74371d326880cc142ee7c9a52dadda7f9a23d2f7 11-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Revert "Permissions: Remove account permissions"

This reverts commit 45216b2b7228c9488a419441c1ecc99a41178df1.

Change-Id: I72c8fb240b22c2d2dcbcfdb1010d85b9ae8d21ec
ndroid/contacts/common/activity/RequestPermissionsActivity.java
b73fd2706ff0220d9172da1a689c0280921d6d9f 10-Jun-2015 Carlos Valdivia <carlosvaldivia@google.com> Permissions: Remove account permissions

MANAGE_ACCOUNTS and USE_CREDENTIALS are going away in the next platform
release. So no need to reference them anymore.

Related to:

https://googleplex-android-review.git.corp.google.com/#/c/706083/

Bug: 20136477
Change-Id: I96dd0026e8bd48b8a7c60c7237b63c5517b3e33b
ndroid/contacts/common/activity/RequestPermissionsActivity.java
40398fc3380fb6830ca37881718d2a6542654eb9 11-Jun-2015 Walter Jang <wjang@google.com> am 039e5c82: am e52a8d83: am af7af479: Merge "Don\'t initially focus any contact editor input field" into mnc-dev

* commit '039e5c82b46166f3e56f5ed7fabc3c5d82b6fc7f':
Don't initially focus any contact editor input field
039e5c82b46166f3e56f5ed7fabc3c5d82b6fc7f 11-Jun-2015 Walter Jang <wjang@google.com> am e52a8d83: am af7af479: Merge "Don\'t initially focus any contact editor input field" into mnc-dev

* commit 'e52a8d834e71abc1cdccaecbcb3f11fc42702c46':
Don't initially focus any contact editor input field
a2b62e0d89655fcaff0f86043c84fab4398380e3 10-Jun-2015 Yorke Lee <yorkelee@google.com> Fix crash after rotation in SelectAccountDialogFragment

* Refactor code so that the callback can be parcelled and
persisted in the fragment after rotation.

* Make callbacks inner static classes to avoid potential
leaks

Bug: 21650435
Change-Id: Iee36a6ba159b090f29c0041e22773f55fbb5f753
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
6dd0d4e8e49ccff2ed57453c0ddd0735d6ec7a40 09-Jun-2015 Walter Jang <wjang@google.com> Don't initially focus any contact editor input field

Bug 21644158

Change-Id: I84d1406b4db1646dcbf059ce84a2cc7534b0bd83
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
3aae73d193b91d00364e4aa4d36e55114d205059 09-Jun-2015 Walter Jang <wjang@google.com> am f7dc23b2: am a6701679: am 88b0a8cc: Revert KindSectionView logic NOT show an empty input field

* commit 'f7dc23b2fae19741ff5190ac9ba212f3bd1e2447':
Revert KindSectionView logic NOT show an empty input field
f7dc23b2fae19741ff5190ac9ba212f3bd1e2447 09-Jun-2015 Walter Jang <wjang@google.com> am a6701679: am 88b0a8cc: Revert KindSectionView logic NOT show an empty input field

* commit 'a67016790e86fee4d429300338b74162c946cc3f':
Revert KindSectionView logic NOT show an empty input field
88b0a8cc7c512c5f28dad958da276974c845355c 08-Jun-2015 Walter Jang <wjang@google.com> Revert KindSectionView logic NOT show an empty input field

We don't need to make it optional to show an emtpy input
field since we've changed our minds on not allowing
users to add email and phone numbers on the compact editor.

Bug 21661221

Change-Id: Iec0d3a37a76c787d17922dbc184142dfca98a9de
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/RawContactEditorView.java
c538281fde3933a1712b8b1de198bc12eab5e4fe 05-Jun-2015 Brian Attwell <brianattwell@google.com> am 77df2019: am 6c6a5863: am 61c63d03: Check for null getCurrentFocus(). Fix NPE

* commit '77df2019e6050450bdb68eed228117249e052714':
Check for null getCurrentFocus(). Fix NPE
77df2019e6050450bdb68eed228117249e052714 05-Jun-2015 Brian Attwell <brianattwell@google.com> am 6c6a5863: am 61c63d03: Check for null getCurrentFocus(). Fix NPE

* commit '6c6a5863f268c9d7357200ebca50fb359e9d1909':
Check for null getCurrentFocus(). Fix NPE
61c63d03df0d87f27f572eb1c168a454bf836df8 05-Jun-2015 Brian Attwell <brianattwell@google.com> Check for null getCurrentFocus(). Fix NPE

Bug: 21644090
Change-Id: If09f89d806410e4f6850f0fabdb00bfbe093a33d
ndroid/contacts/activities/ContactEditorBaseActivity.java
b6569313442300b15bcd46cbedc73f82ca481767 04-Jun-2015 Seigo Nonaka <nona@google.com> am 66c80f29: am 254cc46e: am 02941b68: Merge "Hide software input when the Activity is closed." into mnc-dev

* commit '66c80f2987d107664178f26b2b572a4d423d0e9d':
Hide software input when the Activity is closed.
66c80f2987d107664178f26b2b572a4d423d0e9d 04-Jun-2015 Seigo Nonaka <nona@google.com> am 254cc46e: am 02941b68: Merge "Hide software input when the Activity is closed." into mnc-dev

* commit '254cc46ea21106d2ebfc16da85d2156a65c1b8d8':
Hide software input when the Activity is closed.
02941b68472c5ae241a03e1bbdb4117921f3d257 04-Jun-2015 Seigo Nonaka <nona@google.com> Merge "Hide software input when the Activity is closed." into mnc-dev
09f32656986335eec62f8c20baae6bd4d62e362a 04-Jun-2015 Walter Jang <wjang@google.com> am aec68d53: am 0a7bc1c4: am ac679af9: Pass the preferred photo ID into the contact editor

* commit 'aec68d53ead7be1e2be560d6964ad4e2ca938250':
Pass the preferred photo ID into the contact editor
aec68d53ead7be1e2be560d6964ad4e2ca938250 03-Jun-2015 Walter Jang <wjang@google.com> am 0a7bc1c4: am ac679af9: Pass the preferred photo ID into the contact editor

* commit '0a7bc1c49ea4c6f782fb1097b569ebccd755d42e':
Pass the preferred photo ID into the contact editor
ac679af994faece43536f1e8b2613f30c50300e1 01-Jun-2015 Walter Jang <wjang@google.com> Pass the preferred photo ID into the contact editor

Bug 21498424

Change-Id: I35e8fa3cff4d963f8017bdd596132fe749479a17
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/quickcontact/QuickContactActivity.java
c33323a2d63e049a09203888a6557430a95154d7 03-Jun-2015 Yorke Lee <yorkelee@google.com> Merge "Add null check for phone account icon" into mnc-dev
46bd86e6f40d0949ad4b73b56bbff5d7848a3301 03-Jun-2015 Yorke Lee <yorkelee@google.com> Add null check for phone account icon

Bug: 21609270
Change-Id: Id267f974929936bda2018ff599bd64fae4c27db6
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
cbea0442a5de891be621294af663f69b025f15ef 03-Jun-2015 Seigo Nonaka <nona@google.com> Hide software input when the Activity is closed.

Input method manager does not close software input when the text
field focus is out. This is a workaround of Bug 20612313 by hiding
in onPause callback manually.

Bug: 20612313
Change-Id: I81d0c8e41b1df81c2383a361c56698a61afe89c8
ndroid/contacts/activities/ContactEditorBaseActivity.java
213517c31da36560d9a17b5a4b0ec84159187bae 03-Jun-2015 Walter Jang <wjang@google.com> am 93184e1e: am ad146e95: am 31599988: Merge "Don\'t allow newly writable contact splits" into mnc-dev

* commit '93184e1e2c50aa318c12ad0f0e14f49f8541afc3':
Don't allow newly writable contact splits
93184e1e2c50aa318c12ad0f0e14f49f8541afc3 03-Jun-2015 Walter Jang <wjang@google.com> am ad146e95: am 31599988: Merge "Don\'t allow newly writable contact splits" into mnc-dev

* commit 'ad146e951ec025440fdef0de627b7d4a697b8f5e':
Don't allow newly writable contact splits
c167f8e9691528367d4b9b6daefb51e6be33aee2 03-Jun-2015 Yorke Lee <yorkelee@google.com> Merge "Correctly handle BITMAP_UNAVAILABLE in ContactPhotoManager" into mnc-dev
4e0f6603b283cbffdb2069cda4b89de283cf5b3f 02-Jun-2015 Yorke Lee <yorkelee@google.com> Correctly handle BITMAP_UNAVAILABLE in ContactPhotoManager

Don't enter MESSAGE_PHOTO_LOADED loop if an entry in
mBitmapHolderCache == BITMAP_UNAVAILABLE

Bug: 21560755
Change-Id: Icbfdba8b83c0980daa9abb40a36b6e89f44aa0de
ndroid/contacts/common/ContactPhotoManager.java
31599988150efb64e4e355c5d228a05a0f2aabed 03-Jun-2015 Walter Jang <wjang@google.com> Merge "Don't allow newly writable contact splits" into mnc-dev
f509797bf114b57e779c8ea52c5c3f661383e013 03-Jun-2015 Brian Attwell <brianattwell@google.com> Merge "Rename PhoneNumberUtils APIs" into mnc-dev
68256ebb03af513cccdde95a156dfa31625ac11a 02-Jun-2015 Brian Attwell <brianattwell@google.com> Merge commit '6b19ebe5' into bugfix-manual-merge2

Change-Id: I425b6304100fcf4462fe0cf338059d681a26fb99
a35ef54b651d17536169bb0ba0423ca5ef2839b4 02-Jun-2015 Walter Jang <wjang@google.com> Don't allow newly writable contact splits

It will result in an empty contact

Bug 21464081

Change-Id: I36e79b82ff7d8d3002eabfe735bccda75ee110a7
ndroid/contacts/editor/ContactEditorBaseFragment.java
afc635a8edae33910c90dbcb1a2134146fd573a0 02-Jun-2015 Walter Jang <wjang@google.com> am a98d9702: am 39ef6f18: am 83056011: Merge "Can add mulitple email and phones on compact editor again" into mnc-dev

* commit 'a98d9702241d1f6a3c81e9182c82865715866430':
Can add mulitple email and phones on compact editor again
11260c0b465b14472a19ddc4389a2154473a5882 02-Jun-2015 Walter Jang <wjang@google.com> am 9fb57751: am 9fd44162: am 09e790ac: Merge "Only use one hint color on contact editors" into mnc-dev

* commit '9fb57751fb730ec9cb0c7d5a1458eed57d3f9320':
Only use one hint color on contact editors
6b19ebe5cd30803bd3c7300d20c5412a47eb8ac1 02-Jun-2015 Brian Attwell <brianattwell@google.com> am 7a329ef6: am 3c4d041b: Use new definitions of ProviderStatus

* commit '7a329ef67f27728da8f44f7e2537fcfdd2b3baa7':
Use new definitions of ProviderStatus
a98d9702241d1f6a3c81e9182c82865715866430 02-Jun-2015 Walter Jang <wjang@google.com> am 39ef6f18: am 83056011: Merge "Can add mulitple email and phones on compact editor again" into mnc-dev

* commit '39ef6f18ddd71e9181a3b4712199b7499f5a102c':
Can add mulitple email and phones on compact editor again
9fb57751fb730ec9cb0c7d5a1458eed57d3f9320 02-Jun-2015 Walter Jang <wjang@google.com> am 9fd44162: am 09e790ac: Merge "Only use one hint color on contact editors" into mnc-dev

* commit '9fd44162dc8e48567640ec21e34266291b09b06b':
Only use one hint color on contact editors
3c4d041b925bd45da88d20a88f819b8d02ef9aa5 29-May-2015 Brian Attwell <brianattwell@google.com> Use new definitions of ProviderStatus

And rebundle Contacts again.

Bug: 21090207
Change-Id: I7e93e36ad0c0d667ac56983c76acb1b97bd8755c
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/ProviderStatusWatcher.java
68ed73a0c945048b20c849587efef062fa9b63f9 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
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/util/ContactDisplayUtils.java
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
83056011c9c529546e6a98817dee3be04423b3b9 02-Jun-2015 Walter Jang <wjang@google.com> Merge "Can add mulitple email and phones on compact editor again" into mnc-dev
3593f2379784e2d89dd6c2430f8c2b944483a1f8 27-May-2015 Walter Jang <wjang@google.com> Only use one hint color on contact editors

Also, use the current 25% of black color which
already follows the material guideline.

Screenshots go/b21442589

Bug 21442589

Change-Id: I82c837fd9856c2165d3264a581165eb32702d807
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
28c98b7511b4c00b47abcce83a713c9bccf1b74a 02-Jun-2015 Walter Jang <wjang@google.com> Can add mulitple email and phones on compact editor again

Bug 21162602

Change-Id: If484b5f3a0de2d6176863c19519ed63a45aa7c1d
ndroid/contacts/editor/CompactRawContactsEditorView.java
88cbb961ba8aabd1b9aa07911e74415519668adc 01-Jun-2015 Andrew Lee <anwlee@google.com> Null-protect against empty phone account list.

Bug: 21555553
Change-Id: I8e9b026bf7ea46b550eafa53eaaa86efd768a71b
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
7e4758e24f7d8dc89cb5c2991602f96273c531f6 01-Jun-2015 Andrew Lee <anwlee@google.com> Null-protect against empty phone account list.

Bug: 21555553
Change-Id: I4d1281844e0ed691517dd16bf04ef7f13ff005a5
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
892062d16f10d5a4e1f974ae59051a0172cdb360 29-May-2015 Brian Attwell <brianattwell@google.com> am 36be4ad1: am 4c0b0f7c: am 652936f2: Use FLAG_GRANT_READ_URI_PERMISSION for ACTION_SEND

* commit '36be4ad1c7f63919f3558e173d31ceac04447c14':
Use FLAG_GRANT_READ_URI_PERMISSION for ACTION_SEND
36be4ad1c7f63919f3558e173d31ceac04447c14 29-May-2015 Brian Attwell <brianattwell@google.com> am 4c0b0f7c: am 652936f2: Use FLAG_GRANT_READ_URI_PERMISSION for ACTION_SEND

* commit '4c0b0f7c356c9adfbdb435c3177cfbba835938c8':
Use FLAG_GRANT_READ_URI_PERMISSION for ACTION_SEND
652936f204b15097d030e870dda5054d8115cbf3 28-May-2015 Brian Attwell <brianattwell@google.com> Use FLAG_GRANT_READ_URI_PERMISSION for ACTION_SEND

Now that read/writing the profile only has a single permission
associated with it, we can use the platform's existing
grantUriPermission() support.

Bug: 21090207
Change-Id: I31e6ae7b0f49c3589071f6a95f8d69a9456c144d
ndroid/contacts/quickcontact/QuickContactActivity.java
64953805ef39a9312fd04f277db2e644fc630acf 28-May-2015 Yorke Lee <yorkelee@google.com> Add TrafficStatsTag to ContactPhotoManager

Bug: 21423350
Change-Id: I50ee4993a95d7f81229dacd2ae0be4a5c16ce2cf
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/util/TrafficStatsTags.java
1ea340f32d0f084693c2835f8b4fcbaa544136b0 28-May-2015 Paul Duffin <paulduffin@google.com> Merge "Switching to use try-with-resources"
1555f1d413feb3b2329443bf4af753dc1e5d2e45 27-May-2015 Walter Jang <wjang@google.com> am f245ebd3: am f2db7d5d: Merge "Attach aggregation listener to super primary name field" into mnc-dev

* commit 'f245ebd379123b64098ac34a7b5367e8c8fe017f':
Attach aggregation listener to super primary name field
7631eefa4d37e1466a4e8994130fb75291600d0c 27-May-2015 Walter Jang <wjang@google.com> am 05ba2eca: am 24498d61: Merge "Distinguish between editor back button presses and framework stopage" into mnc-dev

* commit '05ba2eca39c84f55a04e213c25a7417bcb6ab8ec':
Distinguish between editor back button presses and framework stopage
f2db7d5de84ab1d8c1ca851e2ce8eb4b58f1f834 27-May-2015 Walter Jang <wjang@google.com> Merge "Attach aggregation listener to super primary name field" into mnc-dev
24498d61b84caaf4205c2c87cd56d821a4770712 27-May-2015 Walter Jang <wjang@google.com> Merge "Distinguish between editor back button presses and framework stopage" into mnc-dev
a26490b189312af2b73e56a1c9a7da974f7831c6 27-May-2015 Walter Jang <wjang@google.com> Attach aggregation listener to super primary name field

Bug 21435555

Change-Id: I03bb5ee5650491338192796cd8fc132af50a5ce8
ndroid/contacts/editor/CompactRawContactsEditorView.java
e0c90b5a5b076e1a92cf865c11214836f9c147fd 27-May-2015 Yorke Lee <yorkelee@google.com> Don't recache in ContactPhotoManager unnecessarily

The ContactPhotoManager currently constantly tries to recache
bitmaps that were unable to load, or were too big to fit in the
cache. This can cause unnecessary CPU/network usage. Use a dummy
object instead to indicate that the bitmap should not be reloaded
for the given URI.

Bug: 21423350
Change-Id: I32c02efce3592b81c581adcfda39e1e668cefa60
ndroid/contacts/common/ContactPhotoManager.java
4e02563aa136f7ab38677e9dae41848385537df6 27-May-2015 Jay Shrauner <shrauner@google.com> am cb5599c9: am 7bcdf514: Fix NPE when event type is unset

* commit 'cb5599c9ae8d392376d2861aef522ecd3a2907cc':
Fix NPE when event type is unset
3e76408e47ca135c092b5eee73ae49d8697b0a10 22-May-2015 Walter Jang <wjang@google.com> Distinguish between editor back button presses and framework stopage

We carry whether the editor fragment is being stopped
because of a back button press or because the framework
stopped the hosting Activity all the way through the various
editor fragment callbacks and the ContactSaveService because
it is not until ContactEditorBaseActivity.onSaveFinished
where we start the next Intent -- starting it causes a
"flash" if recents is clicked and follwed by an immediate
starting of the next editor Activity, which is the bug
that was filed.

With this change, we only use the ContactSaveService
resultIntent to go back to the compact editor on back
presses. The expected behavior/tested scenarios are
described at go/b21198041

Bug 21198041
Bug 19624360

Change-Id: Ic350e12aa447cff81747e003f504f25100bd5c60
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
7bcdf5149804d766f3b3205143f78ac401fb38de 27-May-2015 Jay Shrauner <shrauner@google.com> Fix NPE when event type is unset

Bug:21443668
Change-Id: Ia0623a9cf9b379b882b661ab989195ba5ac91ac6
ndroid/contacts/editor/EventFieldEditorView.java
1af65d433fe92bf88352ed4c65ada8ab6894d245 27-May-2015 Walter Jang <wjang@google.com> am 9c0d8be1: am 11708263: Merge "Hide types when the associated (empty) edit text loses focus" into mnc-dev

* commit '9c0d8be1d804d1dc07c6dc176c55c1b62d57f6b5':
Hide types when the associated (empty) edit text loses focus
117082633dd4f358816a1daed08bdf9e5aaa8e3c 27-May-2015 Walter Jang <wjang@google.com> Merge "Hide types when the associated (empty) edit text loses focus" into mnc-dev
f43973fd13262553b497cd83f4ea9654a72ff22f 27-May-2015 Paul Duffin <paulduffin@google.com> Switching to use try-with-resources

The Closeables.closeQuietly(Closeable) method is no longer
present in v18. This change replaces usages with the
try-with-resource pattern.

This is part of the work to upgrade Guava to version 18.

BUG: 19672715
Change-Id: I70e965b839ec09c9bdc35418637b7719bfd3ceca
ndroid/contacts/util/ContactPhotoUtils.java
d9d7bac149eb54e592606c31e8187a3ab9b8af0d 26-May-2015 Walter Jang <wjang@google.com> am af470e52: am 24328180: Merge "Expanded name not passed to full editor for inserts" into mnc-dev

* commit 'af470e52dc23a349e1110f29a2ef5f9228bca907':
Expanded name not passed to full editor for inserts
f5877e3eb34d3a2cf474a4087143eca9fd7c38ea 26-May-2015 Walter Jang <wjang@google.com> Expanded name not passed to full editor for inserts

Bug 19624360

Change-Id: Ia1166655d12748129f1281b102c95c1583380d5c
ndroid/contacts/editor/StructuredNameEditorView.java
3a52e63987bc9858cc2967825994533ca4b0b1d6 21-May-2015 Yorke Lee <yorkelee@google.com> Handle some runtime permissions in ContactsCommon

Add utility methods to check if a permission group has been
granted at runtime.

Perform checks before executing certain functionality (CountryDetector,
Clear frequents dialog, preload of photos in ContactPhotoManager).

Bug: 20266292

Change-Id: I0dd3d82d69780b7d3243579eb5b09f96104c1c1f
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/dialog/ClearFrequentsDialog.java
ndroid/contacts/common/location/CountryDetector.java
ndroid/contacts/common/util/PermissionsUtil.java
3428a7a32a3ae2b40549c258004da965c08b3e57 22-May-2015 Walter Jang <wjang@google.com> am 7efc1121: am 66a2e93d: Merge "1/2 Allow the keyboard to resize the compact editor layout" into mnc-dev

* commit '7efc11217153823f94101409fe87b6ae9a70b661':
1/2 Allow the keyboard to resize the compact editor layout
968002b0b33e72d344974689fa257d42fb5bf04d 22-May-2015 Brian Attwell <brianattwell@google.com> am 7db3e37b: am ec0e096b: Fix button colors in alert dialogs

* commit '7db3e37b5ca325fe56107ca84ffa4b78d6b5f800':
Fix button colors in alert dialogs
f463e116e764ceb231df95b08d65f9a48a44d458 21-May-2015 Walter Jang <wjang@google.com> Hide types when the associated (empty) edit text loses focus

Bug 20299183

Change-Id: If6b4fa10957b52a84c0f8a77c8eeebaa220f42db
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
66a2e93d7475ea9346b32b66bce928c0b0553717 22-May-2015 Walter Jang <wjang@google.com> Merge "1/2 Allow the keyboard to resize the compact editor layout" into mnc-dev
3bb7a0f2a8ec3aed48ba740810997b3f8ad1a260 21-May-2015 Walter Jang <wjang@google.com> 1/2 Allow the keyboard to resize the compact editor layout

So we're reverting the fix submitted in ag/680795 and
preventing the landscape layout from getting messed up
by basing the photo resizing off of the display dimensions.

The reason is that adjustResize provides a better UX and
is necessary to fix the bugs related to showing and hiding
the type downdowns propertly.

Bug 20526470

Change-Id: Ia6755336cb8d1fa78142b754e5d40a45b4c50d44
ndroid/contacts/editor/CompactPhotoEditorView.java
ec0e096b3165c09f74b5c7cfe391a52e41a42fec 22-May-2015 Brian Attwell <brianattwell@google.com> Fix button colors in alert dialogs

Bug: 21198043
Bug: 19410482
Change-Id: I8c423b759d0fe05e83718ba2ed2536795603df6a
ndroid/contacts/datepicker/DatePickerDialog.java
3e6654745f85aa342ecb76c5a5ad01ef2159be43 20-May-2015 Brian Attwell <brianattwell@google.com> am b209df8b: am 9c28ccde: Merge "Remove compact PhotoActionPopup\'s "Remove Photo"" into mnc-dev

* commit 'b209df8b009aaa5440b04124f009f7f525ef4b3e':
Remove compact PhotoActionPopup's "Remove Photo"
9c28ccdec3d3371d1bcfb72323c7af66e64c06c8 20-May-2015 Brian Attwell <brianattwell@google.com> Merge "Remove compact PhotoActionPopup's "Remove Photo"" into mnc-dev
b0afa207a16d22f5d220dd2b18db756a0d159e09 15-May-2015 Brian Attwell <brianattwell@google.com> Remove compact PhotoActionPopup's "Remove Photo"

The "Remove Photo" option was causing problems. I was able to do the
following:
1) Remove a photo from a read only raw contact
2) Remove a single photo from a contact with multiple photos. This
removes the current photo and arbitrarily picks another photo
to be the current photo

Killing the "Remove Photo" option removes these problems and was
suggested by UX a couple months ago.

Bug: 19697372
Change-Id: I266b4bf671216f6c1a57e3954a0387a01c0c9574
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/PhotoActionPopup.java
394f0962473bb8579698d9ad3b5248718ffad8ce 15-May-2015 Walter Jang <wjang@google.com> am 4430e01a: am bf63a6d6: Fix contact name passing from compact to full editor on inserts

* commit '4430e01ae8ea820d01606f3ced4794ba8197c0d2':
Fix contact name passing from compact to full editor on inserts
bf63a6d6a888b3e1b5fb91accf2dadaab4384539 05-May-2015 Walter Jang <wjang@google.com> Fix contact name passing from compact to full editor on inserts

Bug 19624360

Change-Id: I50c415b59c4bad1d08f18f8c2bc7d57ddb73c418
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/PhoneticNameEditorView.java
773eff6e3cee2bcde0b748cd866ab040e96db3af 14-May-2015 Walter Jang <wjang@google.com> Parse all phonetic name parts under the insert extra

Bug 19624360

Change-Id: I24aaa721e24f359d6a5ff35376936e9fb7c81f45
ndroid/contacts/common/model/RawContactModifier.java
0afc03a2e3e1ccf547d4069c57d3d314a61dac65 14-May-2015 Brian Attwell <brianattwell@google.com> am f926462d: am 3126951b: Merge "Allow setting photos in managed profile" into mnc-dev

* commit 'f926462d6e142651342d175698cdfd21b78b988b':
Allow setting photos in managed profile
3126951b118920c412149a54fbc65dc39d63aa5c 14-May-2015 Brian Attwell <brianattwell@google.com> Merge "Allow setting photos in managed profile" into mnc-dev
5234be9645f202e94e9e0872efaa6ce9486dbf55 14-May-2015 Brian Attwell <brianattwell@google.com> Allow setting photos in managed profile

Bug: 20628786
Change-Id: I42bc27574d40b7725e64743961c250a5682f66f7
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
1b357ee0633051fae49d2dfc370c1acddfafda33 13-May-2015 Santos Cordon <santoscordon@google.com> [4.1/4] Use new Icon class in PhoneAccount.

Bug: 21088522
Change-Id: I11ceeee2086d275b12c4b8b146f63881ced74af5
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
3f5977b5f478b1fc1af46984714cfd1e5f2f39e4 13-May-2015 Jay Shrauner <shrauner@google.com> am 882128af: Fix NPE in onRestoreInstanceState

* commit '882128af0b342f13b03f78491225a89c45822699':
Fix NPE in onRestoreInstanceState
882128af0b342f13b03f78491225a89c45822699 13-May-2015 Jay Shrauner <shrauner@google.com> Fix NPE in onRestoreInstanceState

Bug:21117470
Change-Id: Id14fe8382bd29b4843d8dfb75edac2c2d754151c
ndroid/contacts/editor/TextFieldsEditorView.java
cb93d46d7863da14b22481c05f551f1105a2684b 13-May-2015 Yorke Lee <yorkelee@google.com> More video related API fixes

android.telecom.Connection.VideoProvider
* onSetPauseImage takes Uri instead of String
* changeCallDataUsage -> setCallDataUsage
* add quality constants to changeVideoQuality() docs

android.telecom.InCallService.VideoCall
* setPauseImage takes Uri instea dof String

android.telecom.VideoProfile.VideoState
* Move constants to VideoProfile, prefix with STATE_

Bug: 21040387
Bug: 21066505
Change-Id: I764e72aced9d1e2d30d6d0cf0862100860d47c79
ndroid/contacts/common/CallUtil.java
46c67592e53d0c0dd5040c56225f9d639199cda8 12-May-2015 Brian Attwell <brianattwell@google.com> Custom permission handling for vcard importing

Bug: 21029757
Change-Id: I74061f2db5a291b8583009b5f975b37dcd515187
ndroid/contacts/common/activity/RequestImportVCardPermissionsActivity.java
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
6aa50bc71fd11826ca85b0d3541d08c7f567d2b9 11-May-2015 Brian Attwell <brianattwell@google.com> Use setAlpha(float), not deprecated setAlpha(int)

Bug: 20923724
Change-Id: I9a6bd99bf3bef70359c1acc9398fa29917f40c74
ndroid/contacts/common/widget/FloatingActionButtonController.java
ef3c54529cd7a98bf0862183c1361a40e80ce267 09-May-2015 Brian Attwell <brianattwell@google.com> am d10db2d3: Merge "Handle runtime permissions" into mnc-dev

* commit 'd10db2d3fc6f44664af065b890e36f688d0f95d6':
Handle runtime permissions
d10db2d3fc6f44664af065b890e36f688d0f95d6 09-May-2015 Brian Attwell <brianattwell@google.com> Merge "Handle runtime permissions" into mnc-dev
bdd32641ae2c2bc6214608cc5712dfb2b96e0305 09-May-2015 Brian Attwell <brianattwell@google.com> Handle runtime permissions

For now, we handle runtime permissions in the most
hamfisted and maintainable way possible: don't let
any Activity's be fully created unless we get all the
runtime permissions.

Bug: 20066216
Change-Id: Iaab9ad2a8106d34b5e20a1eae1ef7a5560dc49a2
ndroid/contacts/NonPhoneActivity.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/PinnedHeaderListDemoActivity.java
3c7754668630f0b47962200a90326a7886b23c99 09-May-2015 Brian Attwell <brianattwell@google.com> Handle runtime permissions

For now, we handle runtime permissions in the most
hamfisted and maintainable way possible: don't let
any Activity's be fully created unless we get all the
runtime permissions.

Bug: 20066216
Change-Id: Iaab9ad2a8106d34b5e20a1eae1ef7a5560dc49a2
ndroid/contacts/common/activity/RequestPermissionsActivity.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/NfcImportVCardActivity.java
b91ae9ceeeed8218b02c38ab85d8b58eb86a8048 07-May-2015 Brian Attwell <brianattwell@google.com> am 9cfa24cb: Make FAB visible in onNewIntent

* commit '9cfa24cbd952a027d8e0dea2b0f164820dd6ab8d':
Make FAB visible in onNewIntent
71b97f3fa5190072fbfd84fa1be707edc6175d90 07-May-2015 Brian Attwell <brianattwell@google.com> am 4bb94b35: Don\'t cast LegacyAdapter to NonLegacyAdapter

* commit '4bb94b350164879f6315c160472fd802b7e8de89':
Don't cast LegacyAdapter to NonLegacyAdapter
957c01135eec3bf31714f054d1ba030bd8c4c3d1 07-May-2015 Andrew Lee <anwlee@google.com> am 698ff30e: Merge " Hide "clear" action for empty search query." into mnc-dev

* commit '698ff30e7657a6407cb435e544e0e367f6fb1b37':
Hide "clear" action for empty search query.
9cfa24cbd952a027d8e0dea2b0f164820dd6ab8d 04-May-2015 Brian Attwell <brianattwell@google.com> Make FAB visible in onNewIntent

Bug: 20706976
Change-Id: I29e13345a6892630f148ac7c80989f5ef3ecb635
(cherry picked from commit 4d3e9d0ebf16d521b4376f46c3b366a68c9df4c4)
ndroid/contacts/activities/PeopleActivity.java
143c1893ce5dd80038a730e48c6d80b5ee1b298d 04-May-2015 Brian Attwell <brianattwell@google.com> Add resetIn method. Undoes affect of scaleOut

Bug: 20706976
Change-Id: Ia41aaa13b4081e4cddb842dd0df9258827bd093f
(cherry picked from commit 195c7486110287dbeab91bca5e1510e30df95060)
ndroid/contacts/common/widget/FloatingActionButtonController.java
4bb94b350164879f6315c160472fd802b7e8de89 05-May-2015 Brian Attwell <brianattwell@google.com> Don't cast LegacyAdapter to NonLegacyAdapter

Bug: 20681571
Change-Id: I32a8e9df31eead4068ceb7c7c39b07f7144fee91
(cherry picked from commit e48aefc4022ceca71401d1490b595a8f71e95611)
ndroid/contacts/list/LegacyPhoneNumberPickerFragment.java
723d7625c82d942efcae4a21df923ead10841b31 05-May-2015 Brian Attwell <brianattwell@google.com> Work around: don't collapse 555, #555, *555

Bug: 20724444
Change-Id: I6004e4b95fb1a4e0729e140f3d517feb9dacb117
(cherry picked from commit db004c77ea67670ebd21c1e1da4bf8fbc71c58a6)
ndroid/contacts/common/MoreContactUtils.java
698ff30e7657a6407cb435e544e0e367f6fb1b37 07-May-2015 Andrew Lee <anwlee@google.com> Merge " Hide "clear" action for empty search query." into mnc-dev
ad6e0eea7026d82a2e27ad4a01c3f2d2e2c4360d 06-May-2015 Andrew Lee <anwlee@google.com> Hide "clear" action for empty search query.

Bug: 20700084
Change-Id: I9af6c50c266b8520b098140e0f968ca3ff75d1c9
ndroid/contacts/activities/ActionBarAdapter.java
bf6731b85f825f153d839183ea767435617f662f 05-May-2015 Andrew Lee <anwlee@google.com> Support changing FAB icon to add person.

+ Add function to change the icon on the FAB. Should likely
eventually include an optional animate parameter.
+ Change FAB controller so that it recognizes the FAB button
as an ImageButton.
+ Flip add person icons to white.

Bug: 19366434
Change-Id: I5f6cf07ffce1d0eaa1aa0733f7411247cba1d6c0
ndroid/contacts/common/widget/FloatingActionButtonController.java
c49d83446238581ac9a1eaa3a898cfb3367ffb9b 05-May-2015 Walter Jang <wjang@google.com> am 9e230619: Guard against null listener when picking contacts

* commit '9e2306198e2c0819cf852b61cb0dbaef63af1c91':
Guard against null listener when picking contacts
9e2306198e2c0819cf852b61cb0dbaef63af1c91 05-May-2015 Walter Jang <wjang@google.com> Guard against null listener when picking contacts

Bug 20841921

Change-Id: I6af688dc0e3ca7e1593824d5eb2f28f31fd897fc
ndroid/contacts/list/ContactPickerFragment.java
a2bd6f5ec08bc75a8e970875bf0eb17cfbf96c06 05-May-2015 Yorke Lee <yorkelee@google.com> Don't crash if phone account is null

Bug: 20720230
Change-Id: I684670c01e1f54cdc0d8f3597db90c2fbb85feb1
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
a0e35e9e6bdf441b1a9bb00da7de9f92998840b3 01-May-2015 Jay Shrauner <shrauner@google.com> am 1c06ce7b: Fix NPEs when contact is null

* commit '1c06ce7ba10cb95183a704d5835e8005c023f726':
Fix NPEs when contact is null
1c06ce7ba10cb95183a704d5835e8005c023f726 01-May-2015 Jay Shrauner <shrauner@google.com> Fix NPEs when contact is null

Fix NPEs in createLauncherShortcutWithContact and deleteContact.

Bug:20757451
Change-Id: Ib55789f2a54d5cab9fe269aa4d4f8c6858ed8806
ndroid/contacts/quickcontact/QuickContactActivity.java
c4698fbe3a5a94de639f91b01c2cb02b61d51331 30-Apr-2015 Jay Shrauner <shrauner@google.com> resolved conflicts for merge of 5f35f34f to mnc-dev-plus-aosp

Change-Id: I817a2ca1a3111fc1b06375e06294f27bddf75cd6
5f35f34f019bba6ff705521b28affbfdb75abd7b 30-Apr-2015 Jay Shrauner <shrauner@google.com> Merge "Pop-up "couldn't save contact changes" while switch ap during change the contact photo."
ac48ce4de74370237e8d6e862cf5e3b26aa8f763 28-Apr-2015 Walter Jang <wjang@google.com> Create a new temp file after contact photo is updated

So that subsequent photo selections (either take new photo
or choose new photo) add a new uri/bitmap pair to the cache.

In the full contact editor this happens when we bindEditors
is called after a photo is selected -- which leads to all
PhotoHandlers being recreated.

Bug 20562525

Change-Id: Id928dde5319928f72a1f9c1e038cf93e941824af
ndroid/contacts/editor/CompactContactEditorFragment.java
e2797dad8a5dd18561077c723db01d8e136a820d 23-Apr-2015 Walter Jang <wjang@google.com> Fix compact contact edit frag not added right on rotate

Bug 20517400
Bug 20317185

Change-Id: I6faac9745017781320d86f8cd19b8edafeaa0c7d
ndroid/contacts/activities/CompactContactEditorActivity.java
865847b1f567cb28664a57ac9cac05c3f2a8de32 20-Apr-2015 Brian Attwell <brianattwell@google.com> Improvements to multi select

* selection bar now uses an <- instead of X icon
* FAB animates away when entering either selection or search mode
* allow selection mode to be entered once already in search mode

Demo: https://drive.google.com/a/google.com/file/d/0B-vjphxTdjuANERMUDF6Y2NyQXc/view?usp=sharing

Bug: 19549465
Change-Id: I657bf564c8e6cdfca6f7779918c4807e09e78d9b
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
714678e38e79dd1b5edab282fd2d19e4fd18da5a 10-Apr-2015 Prerepa Viswanadham <dham@google.com> Merge commit '1c88500de94c7e549e1e553cfe82dfd227c1b2bf' into merge_work
ebf0a0f3675bd04a55ed1dd8d4b621fcbdc74829 04-Apr-2015 Jay Shrauner <shrauner@google.com> Fix NoSuchMethodException for missing constructor

Handle recreating the DialogFragment and stash constructor arguments
in args Bundle.

Bug:20064573
Change-Id: I1ba00f204da561eb725e9aebf91f343c520eac33
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
6c4b7b16ce70cc131acc2c63dd95c6c2d8972117 07-Apr-2015 Yorke Lee <yorkelee@google.com> Call onDialogDismissed callback in onStop, not onPause

Bug: 19927457
Change-Id: I9f90f8110b5ca9811994fd2d23a53bdf249a45c2
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
a69f58fcf5c143ac7dd6421a30004d56813e321a 02-Apr-2015 Walter Jang <wjang@google.com> Don't add compact editor fragment if it's already there

Bug 20040887

Change-Id: Ib968203e0340cd442e5652376a9e2aa7347994b1
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
511561dd8ef9e6cac3c62e138193ef48e6d79760 02-Apr-2015 Jay Shrauner <shrauner@google.com> Fix IllegalStateException in saveContact

Don't throw exception if unable to determine raw contact id for image
insertion.

Bug:20052719
Change-Id: I9654fe0b37ea9245950c1086a64b43dd69a3e137
ndroid/contacts/ContactSaveService.java
d6ce7743217f5bbcd7cb6a95e427d240d9ea899c 01-Apr-2015 Andrew Lee <anwlee@google.com> Merge "Store ContactsPhotoManager as singleton."
56933f651495f951e0251a74c412c2c559f1d0f0 27-Mar-2015 Andrew Lee <anwlee@google.com> Store ContactsPhotoManager as singleton.

Add method for testing to be able to set instance to be different
implementation for testing.

Bug: 19372817
Change-Id: I7e7c4d91b704bd836e6130b6ee9f845f7f8a1b2c
ndroid/contacts/common/ContactPhotoManager.java
f26fd6d6c6de1f75b33557c6297ee6b5a6e1c112 27-Mar-2015 Andrew Lee <anwlee@google.com> Don't return contact photos manager as service.

Initiliaze people activity test by specifying the underlying instance
to be a MockContactPhotosManager.

Bug: 19372817
Change-Id: Ib38a7917df7d0a34e5146e71655bba1ff43a8c16
ndroid/contacts/ContactsApplication.java
d426e96b4aaae12a9e6887400174c2e4e9af987e 24-Mar-2015 Rekha Kumar <rekhak@codeaurora.org> IMS-VT: Answer video call with different call types

-Add icon for receiving video call with VT_TX and VT_RX

Change-Id: I8777131f1280804e2e7256877fa781f2a26a7a40
ndroid/contacts/common/CallUtil.java
2b23191554d2d34140bfe37603966d0a498c2253 27-Mar-2015 Andrew Lee <anwlee@google.com> Fix buildbreak. ='(

Change-Id: Ib4ff523d0e38e095e7674d4037621a1d6ee5138d
ndroid/contacts/common/list/ShortcutIntentBuilder.java
9167812598f64df75e593f680ebbcdf9b224b3c5 27-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Fix sRGB profile compiler warnings."
1f0b62ca37db72a839c2ec98c9579dd1382045b0 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
ndroid/contacts/common/list/ShortcutIntentBuilder.java
69813bddbe51b7579e41ff19e9203302df33b6f3 27-Mar-2015 Tyler Gunn <tgunn@google.com> Merge "Support for click analytics in search results."
0809978e5d3f87687e1fd986130897deca1f74cd 25-Mar-2015 Jay Shrauner <shrauner@google.com> Fix NPE when EXTRA_CONTACT_STATE not set

Bug:19931085
Change-Id: I679ea5382ed6b1bb1bdd99a5c03d9c7bcb023417
ndroid/contacts/ContactSaveService.java
c57b8fd498061429922323f48dde1961840154cf 25-Mar-2015 Brian Attwell <brianattwell@google.com> Merge "Do DataUsageFeedback update after starting ACTION_CALL"
b600ac74427c2150e9e19f3a0cdba6b61874d999 24-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Remove shortcut icon background drawable."
002d1bdf4952bad36f88a974764541d19e908b20 24-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Change list shortcut item styling."
19c83e3f0f88c8598ab174660ae7a844d7d13df1 12-Mar-2015 LIANGTAO GAO <w20048@motorola.com> Do DataUsageFeedback update after starting ACTION_CALL

In QuickContactActivity, when clicking the Call button,
DataUsageFeedback update blocks the starting of ACTION_CALL
for 30-60ms.

"DataUsageFeedback update" and "ACTION_CALL" doesn't interfere with
each other. So it is harmless to update the DataUsageFeedback after
starting CallActivity.

Benefit:
Reduces 30-60ms of time needed to bring up the dialing UI.

Change-Id: I8a349b43c63f70724c89152a9e251f5a2230556f
Signed-off-by: LIANGTAO GAO <w20048@motorola.com>
ndroid/contacts/quickcontact/QuickContactActivity.java
1a74b7f6991e20ef3cb159c61366a0e5ca01807d 23-Mar-2015 Jay Shrauner <shrauner@google.com> Merge "Check for empty contact lookup keys"
8792875855e6e4f2c57265c3f33bb25d595d387a 23-Mar-2015 Jay Shrauner <shrauner@google.com> Merge "Check for null lookup uris"
dddf35652cd078b83bf9ef1e37ace896783b7f55 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
ndroid/contacts/common/list/ContactListItemView.java
78cadf518675f998b7c1f4a8da22c00a725e66fa 21-Mar-2015 Andrew Lee <anwlee@google.com> Remove shortcut icon background drawable.

Bug: 19372539
Change-Id: Ia73398f3e09a1856872eda8480562881b236658a
ndroid/contacts/list/HeaderEntryContactListAdapter.java
c405932c628c875cb06896ebca91a0d242660375 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
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsUtil.java
52913d367d53b2d1a7416ee2ff3072f67993890e 20-Mar-2015 Walter Jang <wjang@google.com> Merge "Don't parse extras twice when inserting contacts"
18f2e2ff824f1af19c7f7f6de7b5fa2eb2fb562e 19-Mar-2015 Walter Jang <wjang@google.com> Don't parse extras twice when inserting contacts

This is causing phone number (and other insert data
besides name) to be rendered twice when inserting a new
contact.

Bug 19849999

Change-Id: I8d211658a2b568eba2379795ecfbaf93639bbd3f
ndroid/contacts/editor/ContactEditorBaseFragment.java
9028db0d258947de2426db9bf62c18dc7c6fea87 19-Mar-2015 Yorke Lee <yorkelee@google.com> Revert "Revert "Enable video telephony support. (2/4)""

PhoneAccount.CAPABILITY_VIDEO_CALLING has been unhidden.

This reverts commit 8d4a6120138ba2ea1c4f0ac6734ecc29eceeba3f.

Change-Id: I254c534424cf5cc1b31145757c2876d4e0ace776
ndroid/contacts/common/CallUtil.java
d61c6da1f1d6789519e74784accf1d43a129afef 18-Mar-2015 Brian Attwell <brianattwell@google.com> Revert "Enable video telephony support. (2/4)"

This reverts commit 748cb36199662faefcb61d44a504de2a8a690da8.
ndroid/contacts/common/CallUtil.java
103edbc03becca7c1a30c55e991903e16bbe7f40 18-Mar-2015 Andrew Lee <anwlee@google.com> Merge "Add material text sms icon."
4a268d3dc9eb0fa067b1e408199ec7c969f34a25 17-Mar-2015 Walter Jang <wjang@google.com> Add gradient behind photo icon is contact photo is set

Bug 19732687

Change-Id: Iad82b23aedf25e3e9a9ced8d2cd30190b69240de
ndroid/contacts/editor/CompactPhotoEditorView.java
18ee523ae8793d95c52df249349d1b17df4afc8a 17-Mar-2015 Makoto Onuki <omakoto@google.com> Merge "Do not cache non-contacts URI in calllog provider. (1/2)"
ff16eea0e4d18cf2964667ce8e597780797e2b69 16-Mar-2015 Walter Jang <wjang@google.com> Move contact photo edit icon from ActionBar to lower right corner

Screenshots https://docs.google.com/drawings/d/1mekRSq4i3Y810Ow2tbNBDKBWl1NGmR4GLR7vlocZOxI/edit

Bug 19732687

Change-Id: I68f969eed59d925d9afd6d5c8e33ec80cbff5cfd
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoEditorView.java
9d8f37e77052543c4ae07cbf8329e4ff0ddef66b 16-Mar-2015 Walter Jang <wjang@google.com> Change compact contact edtior photo aspect ratio

To less severe 360:184/width:height

Change-Id: I72e65bd921f271cc74b8b13b27b3b99932f1beb4
Screenshots: https://docs.google.com/drawings/d/1rHxAfZg46OKhit0ccAZkxnS4QipiG_1wKZIUIcQeLyM/edit
ndroid/contacts/editor/CompactPhotoEditorView.java
261e106d87056d0c9727dd9ae436d5aadadd0762 13-Mar-2015 Walter Jang <wjang@google.com> Compact contact editor UI tweaks

* Move delete ActionBar icon option back into the overflow
* Move the "More fields" option back to left alignment and
give it accent color
* Make unfocused fields 25% black
* Layout/padding tweaks
- Remove the 0 bottom padding on names so that all fields
have the same spacing between each other
- Use the min edit height on the "More fields" row
so that the spacing is the same as the other fields.

Bug 19729447

Change-Id: Ia11c74c1b65f96f937d6e51ed143f5f088b41561
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
afb4aa0bbd79495b2f6664b3cd5d74cf62a66e85 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
ndroid/contacts/common/list/ShortcutIntentBuilder.java
ca6b31e23c5f30602fb1d4a959726a91e0e4241b 15-Mar-2015 Vinit Deshpande <vinitd@google.com> Fixing build after merge from mirror-m-wireless-internal-release

Change-Id: I522066bc3582710b8e0d59bf071d4c0bfc943310
ndroid/contacts/common/CallUtil.java
919b0b3cca855f6ac8114c5e17791dbefd2b09d6 16-Mar-2015 Vinit Deshpande <vinitd@google.com> Merge remote-tracking branch 'goog/mirror-m-wireless-internal-release' into master2
e320c0bcd539f9426db9b694147e845fe0e2d59d 05-Mar-2015 Jay Shrauner <shrauner@google.com> Check for empty contact lookup keys

Bug:19588470
Change-Id: I1b0b262483a316a0a84a051e2a4225c68523e47e
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
41b61c8cec352dfbadf9b553622481734b0333bb 13-Mar-2015 Jay Shrauner <shrauner@google.com> Check for null lookup uris

Bug:19588470
Change-Id: Ifada47dda455e059c8fe656298a16402210410f7
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ebfe75beec08f30b89de7e7251f4106a680f9ab3 12-Mar-2015 Walter Jang <wjang@google.com> Update contact photo edit options after photo is changed

Change-Id: I6cb9c432e7c98a4efc4c0c1c26efb8b1971acd15
ndroid/contacts/editor/CompactContactEditorFragment.java
1573aa697284e6627c7bb74eae4c350f56780c33 12-Mar-2015 Walter Jang <wjang@google.com> Re-apply tint after removing photo from compact contact editor

Change-Id: I288f5ce77c0061bb7cde38edbdfb9ac6462b3b15
ndroid/contacts/editor/CompactPhotoEditorView.java
055c66d459732973f7341331b143d7ab9974c4ed 12-Mar-2015 Walter Jang <wjang@google.com> Fixed some contact editor compiler warnings

Change-Id: I31deaeeedc4ae49da6b0326b128767785cd01852
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/quickcontact/DirectoryContactUtil.java
ee4d4ae4012ef3e18e18c8e66b34797e8523f860 12-Mar-2015 Walter Jang <wjang@google.com> No toast when navigating back to the compact editor for existing contacts

Bug 19624360

Change-Id: Ic1b344583a453e482acb2c2911ae05eee077fb43
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
1e8801bc9bc60bdd1c95f582c460590272cfad64 10-Mar-2015 Walter Jang <wjang@google.com> Pass full res contact photos between the compact and full editors

Bug 19624360
Bug 19655206

Change-Id: I590ec7ecec75a9af95b824f5db9cda8f8aeda675
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/quickcontact/QuickContactActivity.java
7e7d361442131504d15c7758ab753dd1aa4fcf53 11-Mar-2015 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in getRoundedBitmap"
ec84f389c2dcf5f04a136341cb1303de8e5a88b8 11-Mar-2015 Jay Shrauner <shrauner@google.com> Fix NPE in getRoundedBitmap

Check for null (ie, non-native) bitmap config.

Bug:19676488
Change-Id: I7839503d3a96c3e23d8147cad623bb84e86646f8
ndroid/contacts/common/util/BitmapUtil.java
921287ef72ca601027bf2971b0733493adde16d2 10-Mar-2015 Walter Jang <wjang@google.com> Fixes for returning to the compact editor from the expanded one

* Don't abort the save even if there are no unsaved changed
when returning the compact from the full editor
* No need to pass the material palette on insert intents.
It does, however, need to be passed back to the compact
editor when editing an existing contact w/o a picture.
* Fix returning to the compact editor repeatedly by
removing the Intent.FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET
on compact editor intents.
* Updated StructuredNameEditorView#getDisplayName to fall
back to the display name directly from the ValuesDelta.
This is required when the name is passed to the
contact editor, and the user does not change it, in which
case it will not be written to the underlying data
structure, and thus not passed subsequent expantions.

Bug 19624360

Change-Id: Ife285f3e411a869a76fbbff4d42939c866db617c
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/editor/StructuredNameEditorView.java
a65f2ad484aa426b4fba4f736e782ed27941f012 10-Mar-2015 Makoto Onuki <omakoto@google.com> Do not cache non-contacts URI in calllog provider. (1/2)

Bug 19546108

Change-Id: Ibf46ee11f857a7152130f1b0466edde7322d68f8
ndroid/contacts/common/util/UriUtils.java
a20bb7f936e902fdec2f8f0534fe058878b11a6c 10-Mar-2015 Walter Jang <wjang@google.com> Merge "Update compact editor photo to full res when possible"
41b3ea1c712f01164feb55455f1391564cb76dee 10-Mar-2015 Walter Jang <wjang@google.com> Update compact editor photo to full res when possible

Bug 19655206

Change-Id: If30c7ba83851dcc7c98fa1be4bed92e302ba8245
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
9f9d78e41f336b77012437c8622eafeaad4b2adc 09-Mar-2015 Walter Jang <wjang@google.com> Hide types on contact editors until associated field focused/clicked

Bug 19624274

Change-Id: I8add22fa23e395507fce60f177f4cf48bcc29191
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
5a7a23bdb698b8e741a425c9617c5e33e6314cdd 06-Mar-2015 Walter Jang <wjang@google.com> Return to the compact contact editor on back from the fully expanded one

Bug 19624360

Change-Id: I249f1e456a2d85c5ecd831358692d56b09ee5a5b
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorIntents.java
ndroid/contacts/quickcontact/QuickContactActivity.java
35fe296b51643fb5612cd0a130df9eda5a65d3fd 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
ndroid/contacts/common/list/ViewPagerTabs.java
b9c5a9bba107becfe1ad0465db8cd630efc4394d 07-Mar-2015 Walter Jang <wjang@google.com> Merge "Fix typo in singleTop compact contact editor Activity"
4c3a81d1fa0ae2de11f2ad090d33905b908bf468 07-Mar-2015 Walter Jang <wjang@google.com> Fix typo in singleTop compact contact editor Activity

Change-Id: Id44d1c132ae01f94b65ebe3e231c086858cbc0c2
ndroid/contacts/activities/ContactEditorBaseActivity.java
24722351f43d8b323b577c0faf2f0357d97a5f9b 06-Mar-2015 Brian Attwell <brianattwell@google.com> Merge "Improvements to multi select toasts"
6b0c94b7c6aebfd1d6b59eb3cae249fcf8e11e59 06-Mar-2015 Brian Attwell <brianattwell@google.com> Merge "Tweaks requested for multi select"
e986c6b5954f7b9fea58cfb11c86b61d3defa271 06-Mar-2015 Brian Attwell <brianattwell@google.com> Improvements to multi select toasts

Bug: 19549465
Change-Id: Ie42db78d0aa9cc93765337fbb5af794dfb52413f
ndroid/contacts/ContactSaveService.java
8f8937f9b33d220a4ca4f17fc334ad21cdd6fe8a 05-Mar-2015 Brian Attwell <brianattwell@google.com> Tweaks requested for multi select

UX requested two tweaks:
1. Unchecking the last check box exits selection mode
2. Selection count should be inset 72dp

Bug: 19549465
Change-Id: Icae0109e54317463cf224e41fc851bff8a512c53
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
b810373530d919d89c75c86709b2bf0a3d8823aa 06-Mar-2015 Walter Jang <wjang@google.com> Contact editor "discard changes" should do a discard

Not a split contact!

Change-Id: I4e4edbedc73c99ef4ee1e15e8984b7cfa8f8ba37
ndroid/contacts/editor/ContactEditorBaseFragment.java
3b21027019af908d9bbbc66785172541fae764e1 04-Mar-2015 Walter Jang <wjang@google.com> Update compact editor photo selection logic

* Look for non-empty super primary
* Look for any non-empty photo
* Use empty super primary (or the fallback ValuesDelta)

Bug 19124091

Change-Id: I2e397600802598d8ef820b0beb9cf85538c6b7a1
ndroid/contacts/editor/CompactRawContactsEditorView.java
3eafe8fabb1d00f511bf5985ba7c6008fe1cc435 05-Mar-2015 Brian Attwell <brianattwell@google.com> Merge "Layout mExpansionViewContainer when not displayed"
93f22ec7bf10df0d0a785d56e07d78b60a449975 04-Mar-2015 Brian Attwell <brianattwell@google.com> Layout mExpansionViewContainer when not displayed

Force mExpansionViewContainer to always be laid out. This will ensure
that the whitespace on the end of mExpansionViewContainer is correct
regardless of whether an expansion view is needed or not.

This fixes the way phonetic name is displayed on exchange contacts.
This has no affect on focus contacts since both expansion views
are set to View.VISIBLE for focus contacts.

Bug: 19503535
Change-Id: I28aad309158a21a07d38a9699f82b48d72b8e7c4
ndroid/contacts/editor/TextFieldsEditorView.java
91e64cd03600acd60f2ce2ba952b231bc51f80d2 04-Mar-2015 Brian Attwell <brianattwell@google.com> Set class name correctly

ResolveInfo.getClass() returns ResolveInfo.class. We want the class
name contained inside ResolveInfo. Not ResolveInfo.class.

This line isn't necessary. I added it at the last minute for performance
and didn't test it. Embarassing.

Bug: 19505368
Change-Id: I82ef33227e6cb73b3b706dc50f0c4577664fbbba
ndroid/contacts/common/util/ImplicitIntentsUtil.java
3a37a1a441dcc02ad93b8ccce15dda9f70caf5e8 04-Mar-2015 Walter Jang <wjang@google.com> Only show 1 phonetic name (per RawContactDelta) on compact editor

Also remove the delete button on the phonetic name
to be consitent with the fully expanded editor.

Bug 19124091

Change-Id: I851943a55d81723af7ec556f4dfef6de4f3d9b5d
ndroid/contacts/editor/CompactRawContactsEditorView.java
123cc938e365b486132f85e4bf2db78efc267b71 04-Mar-2015 Brian Attwell <brianattwell@google.com> Merge "Don't let queryIntentActivities cause crash"
35dab8078720e7e34c054e3db11aa34bc4199de7 04-Mar-2015 Brian Attwell <brianattwell@google.com> Don't let queryIntentActivities cause crash

Also, use PakageManager.MATCH_DEFAULT_ONLY. This restricts
the ResolveInfo to the list that would have internally used
by startActivity.

Bug: 19597471
Change-Id: Id9aea18801c55f81cc20341588f94b82289c9f14
ndroid/contacts/common/util/ImplicitIntentsUtil.java
48cea17ce347d6ff9ab3a59b99ad63dde70ce9c3 03-Mar-2015 Brian Attwell <brianattwell@google.com> Don't allow entering selection from search mode

Bug: 19549465
Change-Id: Ie33a676f64e30e437ca712a24bab17830d4c7868
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
1154bbabc1f174f7dca40d92f59d2b2731930b3a 03-Mar-2015 Brian Attwell <brianattwell@google.com> Exit selection mode after batch delete or merge

We still don't support this for batch shares. It difficult
to know whether a share intent was received or whether the
disambiguation dialog was cancelled. In order to do this,
you need to use a timer to guess whether the app has been
backgrounded or not. Since sharing is a non-destructive
action, I think it is almost appropriate to stay in selection
mode after sharing anyway.

Bug: 19549465
Change-Id: Ibb132504e7a19ba2866de84bca216d126e4fbfaa
ndroid/contacts/activities/PeopleActivity.java
e95ce440a7dd7277fbc4eb78c3d74b85fd55af2f 04-Mar-2015 Brian Attwell <brianattwell@google.com> Merge "Batch join contacts"
d3946cae17273ed1c2fceb507990882e3f828ba9 03-Mar-2015 Brian Attwell <brianattwell@google.com> Batch join contacts

* Add new action to ContactSaveService to support joining more than
two contacts toghether.
* Add new dialog fragment for the join

Bug: 19549465
Change-Id: Ib0b1d5e7652e429f8e78d81dd3d98d03b3129e1e
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/interactions/JoinContactsDialogFragment.java
f638b6f61faf9317a911a042057a33e3d9d67bef 03-Mar-2015 Walter Jang <wjang@google.com> Supress "saved" Toasts when expanding the compact editor

Bug 19124091

Change-Id: I38a329be3f997ae93ec90810d24473f5ef800488
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
230ac30818e43d993fc42eb4262c8cc36cee0384 03-Mar-2015 Walter Jang <wjang@google.com> Merge "Check if optional name fields are shown when expanding to full editor"
c8dea5679faa5c948bee7260430b256104c74006 03-Mar-2015 Walter Jang <wjang@google.com> Check if optional name fields are shown when expanding to full editor

Bug 19124091

Change-Id: Ib01df1b0dd222f1c21764ba3760f1f3b765bed32
ndroid/contacts/editor/StructuredNameEditorView.java
d2962a3bb669a381d31a586df3b906033a8fa571 02-Mar-2015 Brian Attwell <brianattwell@google.com> Batch deletion

Also: when re-opening the Activity from the launcher, clear the
mIsInSelectionMode variable in memory.

Bug: 19549465
Change-Id: If589983d3d84c9c18066da08f9879c22db1a75ed
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/ContactMultiDeletionInteraction.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
c00112f667c70df6ce6791c799b11a477392e3af 03-Mar-2015 Brian Attwell <brianattwell@google.com> Show checkboxes for all entries except for Me

Bug: 19549465
Change-Id: I676baf82162e09904940f860fce4220f93857454
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
d9f95a1dfe379fb7c9e3b653e84b544d79ecf795 03-Mar-2015 Walter Jang <wjang@google.com> Merge "Try to show the "right" name on the compact contact editor"
151f3e6883e5785019f7b5083dc8baf3e305dc18 27-Feb-2015 Walter Jang <wjang@google.com> Try to show the "right" name on the compact contact editor

* If a super primary is set use it on the compact editor
* If a super primary is not set and the compact editor
name value is changed, set it as super primary. But
don't make an unchanged name super primary when expanding
to the full editor. Also unset super primary if
the name field becomes blank.
* On the full editor, set the last changed name to super
primary. Also unset super primary if
the name field becomes blank.

Bug 19124091

Change-Id: I1352f25f4decf31c5aeda20dbef133ce48d5d248
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
5af0398c63716ab157e50e4b389773ce75cfa4ce 02-Mar-2015 Jay Shrauner <shrauner@google.com> Merge "Fix NPE when cursor is null"
053f7232e039170ce07bb80853e378e9092cc2e8 02-Mar-2015 Jay Shrauner <shrauner@google.com> Fix NPE when cursor is null

Bug:19566774
Change-Id: I9269c81555ba46616628b7bd7997790502d760a3
ndroid/contacts/interactions/ContactDeletionInteraction.java
f3a95a986fb25fb97b8ea45e778aaf86752f4e29 02-Mar-2015 Walter Jang <wjang@google.com> Check for super primary key before using it in quick contacts

Bug 19514122

Change-Id: Idb6e7272308500efb11af02ed57e591cd3aba131
ndroid/contacts/common/model/dataitem/StructuredNameDataItem.java
a9433713594c990cd3b0ac5a44e316e4b54992b0 28-Feb-2015 Jay Shrauner <shrauner@google.com> Fix NPE when copying photo URI

Bug:19564741
Change-Id: I0a4e0ccf2a917d403d1411fc737da293c81aded0
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/util/ContactPhotoUtils.java
2178d43eead00b5953d6b91149a41e8f43cc0249 02-Mar-2015 Brian Attwell <brianattwell@google.com> Merge "Multi-select to share Part 2"
20510ec0a26e7eeb7f3a321deb755e984445fe74 28-Feb-2015 Brian Attwell <brianattwell@google.com> Multi-select to share Part 2

UI work to supprot multi-select. Long pressing starts selection mode.
For now, you can only share the contacts that you have selected.

Manual tests:
* Starting selection mode
* starting selection mode by long pressing the Me Profile
* RTL layout
* rotation in search mode
* rotation in selection mode
* typing on keyboard while in selection mode:
$ adb shell input keyboard text 'this%sis%san%sexample' (should do nothing)
* press search key while in selection mode:
$ adb shell input keyevent 84 (should do nothing)
* sharing contacts via multi selection

Bug: 19549465
Change-Id: If438bddfaaee1f69e4c888716f926abcd00ddbc6
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/MultiSelectContactsListFragment.java
ndroid/contacts/list/MultiSelectEntryContactListAdapter.java
5b061e08d845c90d88bb62c069de80447daaf919 02-Mar-2015 Brian Attwell <brianattwell@google.com> Merge "Multi-select to share. Part 1"
88fa7f98c2bff1eb56542f3c5e9de3fb5b84d19f 02-Mar-2015 Walter Jang <wjang@google.com> Continue to load fully expanded editor on Intent.ACTION_EDIT

Regression was introduced in ag/638730

Bug 19559699

Change-Id: I62df3cbbcf9afab5332d1287721fd74bebee6169
ndroid/contacts/activities/ContactEditorActivity.java
ca42659ca4abe4a56cc4d85f99ec70c4c9778c44 20-Jan-2015 Tyler Gunn <tgunn@google.com> Enable video telephony support. (2/4)

- Add implementation of CallUtil#isVideoEnabled method which checks all
call capable phone accounts to determine if one has the
CAPABILITY_VIDEO_CALLING set.

Bug: 19062133
Change-Id: Ie6c2f91515b6ac953fc4e13f21eeab110854b911
ndroid/contacts/common/CallUtil.java
8025f801f5153917781a9496cabdd81ae1b6deaf 27-Feb-2015 Walter Jang <wjang@google.com> Use the super primary name on the quick contact about card title 2/2

Bug 19124091

Change-Id: I2ecbba5f73d13d6a92c3c7aa88a5f98c3195d53b
ndroid/contacts/quickcontact/QuickContactActivity.java
8010cd5a07502e894bb6ef86ce706afcc3fdf1e8 28-Feb-2015 Walter Jang <wjang@google.com> Use the super primary name on the quick contact about card title 1/2

Bug 19124091

Change-Id: I6e30a518ae97049a5c267751563798014cfee713
ndroid/contacts/common/model/dataitem/StructuredNameDataItem.java
207a8774b6c245d13a5f20c0ccd16185cf7f1676 28-Feb-2015 Brian Attwell <brianattwell@google.com> Multi-select to share. Part 1

Bug: 19549465
Change-Id: If438bddfaaee1f69e4c888716f926abcd00ddbc6
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListItemView.java
8ba5d8552a3c99122e7e1fc383b96c739aafd0bd 27-Feb-2015 Walter Jang <wjang@google.com> Merge "Start the fully expanded editor when "More fields" is clicked"
36d6a163bc31f76490d3bc0867a56437711bd1f7 20-Feb-2015 Walter Jang <wjang@google.com> Start the fully expanded editor when "More fields" is clicked

Note, StructuredName must be handled specially on inserts when it is
passed to the fully expanded editor when creating a new contact
because normally the contact name is not overriden.

Bug 19124091

Change-Id: I1d2b383c50b42a3624a7a8c18dd3278d7c3b069d
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
05287bf0cea303b93802a629aa883fb6322ca342 26-Feb-2015 Brian Attwell <brianattwell@google.com> QuickContacts can prioritize phone mimetype. Part3

Support prioritizing a single mimetype inside QuickContacts.
Also, fix a bug in ExpandingEntryCardView that causes divider
lines to dissapear after expanding, collapsing and then
expanding a second time.

Bug: 18391003
Change-Id: Ie5a93ad9e1919f470a638d4235d91fe337cb5ca3
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
42347745ffb8699c50f9a1aa2ca97c32fec6c5cb 26-Feb-2015 Brian Attwell <brianattwell@google.com> Don't use ImplicitIntentUtils for explicit intent

Bug: 19524362
Change-Id: Ief17e212e8e92ac500d3af5fe7f17adbfc2e6dd5
ndroid/contacts/common/util/AccountSelectionUtil.java
bfd3c47ee846cd60536b340acb0d42710b26416e 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
684318f21ae5e529d0431955870bf4faee956fc1 25-Feb-2015 Brian Attwell <brianattwell@google.com> One-off account for editing samsung contacts

Bug: 18777272
Change-Id: If064a11b3ef9db2b050efe27eb4de6938d14591c
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/model/account/SamsungAccountType.java
d35e5eff8737e757a4179d49dfe9c7db999b4e9d 24-Feb-2015 Walter Jang <wjang@google.com> Get join suggestions for the compact editor name field

Also fix photo height in portrait -- made a mistake in
ag/641233.

Bug 19124091

Change-Id: I988cbcf457002bc6f0996c87a8611fca82bdf78a
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/JoinSuggestedContactDialogFragment.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/SuggestionEditConfirmationDialogFragment.java
a5e4bb287ea08f895c84d5de56fcc2483386b306 24-Feb-2015 Walter Jang <wjang@google.com> Use a split screen for the compact contact editor in landscape

Also renamed the compact header since we're not doing the
toolbar over the photo right now.

Bug 19124091

Change-Id: I91032e149252d635d564064a3652df4cc0233c6c
ndroid/contacts/editor/CompactHeaderView.java
ndroid/contacts/editor/CompactPhotoEditorView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
83d09b68e139f830956b448a0b7ad395de7d2f2a 24-Feb-2015 Walter Jang <wjang@google.com> Use default primary color when creating new contacts

Missed this case in ag/639263

Bug 19124091

Change-Id: I33ea9a5d21d65f23fa3c5b5e5405edf92714a00d
ndroid/contacts/editor/CompactHeaderView.java
0e72ce9d97e0133a5f7cc348eef363bef9395979 23-Feb-2015 Walter Jang <wjang@google.com> Show edit contact photo options is a dialog

* Instead of a ListPopupWindow. This is more consistent with
the behavior of the other edit contact menu options.
* Also add an option menu icon to change the photo to
make this feature more easily accessible and since
users may not realize they can click the photo to
launch the choices dialog.

Bug 19124091

Change-Id: Ia4c37b3093f39d55784323f9a6d7bcf49ee96d16
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactHeaderView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/PhotoActionPopup.java
ndroid/contacts/editor/PhotoSourceDialogFragment.java
f46abd89a3386cbdadff99e96df826bb27f987e9 21-Feb-2015 Walter Jang <wjang@google.com> Apply the quick contact color to default photos in the compact editor

Bug 19124091

Change-Id: I375fc8c88ab7b1bd452fbeab0e3e6444b83be094
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactHeaderView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
32d5224bc27068f34caed078baf6644810837a94 21-Feb-2015 Walter Jang <wjang@google.com> Merge "Hide extra empty kind editor on compact contact editor"
d94574a91d3f725c96530c0d1e71d8188a9cbcf6 21-Feb-2015 Walter Jang <wjang@google.com> Merge "First pass on photo support for compact contact editor"
1044645b9c2050436f4f0e0c7e5b8da2931879ba 20-Feb-2015 Walter Jang <wjang@google.com> Hide extra empty kind editor on compact contact editor

* Also left align "More fields"
* Only show one structured name
* Be a bit smarter about the profile photo before
we have a real split screen

Bug 19124091

Change-Id: I046ea59437b035d43df045363677a3aaba0dca43
ndroid/contacts/editor/CompactHeaderView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/RawContactEditorView.java
5a268c093580a9d53f310d34e30cdd712f341afa 21-Feb-2015 Brian Attwell <brianattwell@google.com> Merge "Avoid senseless disambiguation #2/2"
3efae4aeae8715fbfcf67c56f123da49330ea01a 18-Feb-2015 Walter Jang <wjang@google.com> First pass on photo support for compact contact editor

Only updates the primary photo for now.

Bug 19124091

Change-Id: I1886888b4cf249da4c483d570b9db6e05564518a
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactHeaderView.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
b6ca272f26b47ecef8fafe94326c4d553576c521 20-Feb-2015 Walter Jang <wjang@google.com> Add placeholder button for showing fully expanded contact editor

Bug 19124091

Change-Id: I8051b8df460fd0bbc30466d736c7606caaa0837c
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
03b6424f5ded0d7c26e728977f7b5327460cec62 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
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/list/ShortcutIntentBuilder.java
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/util/ImplicitIntentsUtil.java
ndroid/contacts/common/vcard/NfcImportVCardActivity.java
c6100ffd22ae176a3e84a1062d8cb92d955faef2 20-Feb-2015 Brian Attwell <brianattwell@google.com> Avoid senseless disambiguation #2/2

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

Bug: 18777272
Change-Id: Ib75eadfb94eee2c5c8305747eddd01ba9a8b1dc4
ndroid/contacts/NonPhoneActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactBroadcastReceiver.java
e720fdeb3ef0892834d7ab9af8cc44dd9eb9be17 17-Feb-2015 Walter Jang <wjang@google.com> Always show email and phone fields

* This fixes showing an almost blank screen when
writing the "me" profile also when adding a new contact.
* Also fixed a bug when writing the "me" profile --
we weren't calling the RawContact.setAccountToLocal
in createNewRawContactDelta in the base editor fragment.

Bug 19124091

Change-Id: I93422047796189b4df060bfa39aa3c84ce47fa25
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/KindSectionView.java
b1c8762a9a398617d54c5c669359e283689e24a0 14-Feb-2015 Walter Jang <wjang@google.com> Fix up names on the compact contact editor

* Don't show a blank structured name if there is a non-empty
value and don't ever show more than one blank structured
name either
* Group phonetic and nicknames together instead of interleaving
with structured names and each other
* Use a KindSectionView for nicknames (for now) so that it
isn't intended so differently from everything else.

Bug 19124091

Change-Id: I50f41c0a0efb39de98a5b96c7da47b6ad6243633
ndroid/contacts/editor/CompactRawContactsEditorView.java
49ed2033f83005f92c30068ae33c3138d75e1825 12-Feb-2015 Walter Jang <wjang@google.com> Wire up saving edits using the compact contact editor

Also fix refreshing the edit activity data after joining

Bug 19124091

Change-Id: I161e38d9eaea89e3d090986d2b52cb6f8ee85422
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
3918c3178b882c42cc41d3245ef61527200fb15b 13-Feb-2015 Brian Attwell <brianattwell@google.com> am a207634c: am d8010fbe: Merge "Fix "the note of contact can\'t be deleted successfully""

* commit 'a207634cb54a599224a2cdfab057e59244070e9b':
Fix "the note of contact can't be deleted successfully"
a207634cb54a599224a2cdfab057e59244070e9b 13-Feb-2015 Brian Attwell <brianattwell@google.com> am d8010fbe: Merge "Fix "the note of contact can\'t be deleted successfully""

* commit 'd8010fbe22e7cd5f625e29c23d8438a30fcd8926':
Fix "the note of contact can't be deleted successfully"
43c90f91299562b5cea7f5395a9e1e2caf8e9ef5 13-Feb-2015 Brian Attwell <brianattwell@google.com> Merge "Revert "Revert "Implement Help&Feedback. P1/2"""
56bcc2fc455dcb434545fcdeb07c5f916dece847 13-Feb-2015 Brian Attwell <brianattwell@google.com> Revert "Revert "Implement Help&Feedback. P1/2""

This reverts commit fb49bad9a90dcec8a71dfaebb2810a9af82992ef.

Change-Id: I42af6fccc81895f17dfab2f24ab3fb87d1be59b8
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contactsbind/HelpUtils.java
cab3dcec1401a32aff583d946b4a9f8af954358f 10-Feb-2015 Walter Jang <wjang@google.com> First pass on showing only non-empty field on compact edit view

Bug 19124091

Change-Id: I49660c326f5829540463295218530f0a2d0fad9d
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/CompactRawContactsEditorView.java
fb49bad9a90dcec8a71dfaebb2810a9af82992ef 13-Feb-2015 Brian Attwell <brianattwell@google.com> Revert "Implement Help&Feedback. P1/2"

This reverts commit d0b4c6c3820fb64e868cc9aa1d4d8388a945ba9d.

Change-Id: Iacaa0e06e64c1ef43f229e0b906a1407331d7477
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contactsbind/HelpUtils.java
c5fdad4a620e815f7c622c253c7dada432fe1bb0 12-Feb-2015 Walter Jang <wjang@google.com> Merge "Add back discard changes dialog listener"
d0b4c6c3820fb64e868cc9aa1d4d8388a945ba9d 12-Feb-2015 Brian Attwell <brianattwell@google.com> Implement Help&Feedback. P1/2

Bug: 17377125
Change-Id: I111819543ff5fa5fd9786473ba9ff02c28353ee8
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contactsbind/HelpUtils.java
d5bef97a00636c32b07423a48f90bad3f97cf4ab 12-Feb-2015 Brian Attwell <brianattwell@google.com> am 67055acf: am 61dfc18d: am 6d83095d: am ed188281: Don\'t access mRecentLoaderResults in background

* commit '67055acf0c1126e34b894211ac4873caa277d0b2':
Don't access mRecentLoaderResults in background
2d6ccf7bd5205a2c200def3501df5ddb3ca6c1c9 12-Feb-2015 Walter Jang <wjang@google.com> Add back discard changes dialog listener

Bug 19343391

Change-Id: I043947150800ff8f4fb7d219b39fd9f687ec2689
ndroid/contacts/editor/ContactEditorBaseFragment.java
ed1882813d7c6b87543d8006a9d02aa55fef8b0d 11-Feb-2015 Brian Attwell <brianattwell@google.com> Don't access mRecentLoaderResults in background

Lists inside mRecentLoaderResults are cleared inside
Loader#onReset. Therefore, Retreiving items inside mRecentLoaderResults's
lists on a background thread can result in retreiving nulled out
ArrayList entries.

Fix:
* Only access mRecentLoaderResults on the main thread
* Don't crash when encountering null entries inside mRecentLoaderResults,
in case I'm wrong about the reason these entries are null
(although I can't see any other causes)
* make bindRecentData() sorting stable, since I'm already editing
this code anyway

Bug: 19320314
Change-Id: Id871a8c0de3685baf07a6c4d65a4835380b1b99a
ndroid/contacts/quickcontact/QuickContactActivity.java
3b1a8b2f6349d55ae8ef502d9d2f9451f24eff50 05-Feb-2015 kungaox <kunx.gao@intel.com> Fix "the note of contact can't be deleted successfully"

Reproduce step:
1.login Google account
2.launch the "Contacts" app
3.Edit a new contact and click the button "ADD ANOTHER FIFLED">select "Notes" item>Edit notes to this contact
4.Check this contact info include notes
5.Click "Edit" icon and clear the edited notes info
6.click top-left icon "√"
7.Check the contact info and found the note still exist.
Analysis:
When the only entry deleted, the mAboutCard fails to refresh its entries as
the size is 0. So shouldShow() will return true based on the old data.

Change-Id: I852443f60c7ce7df10d045b1d5f7baabccb35606
ndroid/contacts/quickcontact/QuickContactActivity.java
92f8ccc1f15df787b7434224857c056721281046 06-Feb-2015 Walter Jang <wjang@google.com> Do setIntentExtras, on[Save|Join]Completed in base contact edit fragment

Do setGroupMetaData in the child classes since the layout will be
drastically different between the two.

Also moved a public Intent extra constant to the base.

Bug 19124091

Change-Id: Idd20ff39b91eb3584c69e406f1e3472bcb278f42
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
4a0f7bf1846e186836adcb9405bfa30f37904ad1 07-Feb-2015 Brian Attwell <brianattwell@google.com> Set packageContext on pending intents

Bug: 19296918
Change-Id: I5b90be2c5f4f35becde8b7888b2f03fe19c1d0fe
ndroid/contacts/common/vcard/NotificationImportExportListener.java
3e9a62449b8ca3a38b1d51019c6ea13972263bc2 05-Feb-2015 Walter Jang <wjang@google.com> Move suggest joins popup & activiy to BaseEditContactFragment

Bug 19124091

Change-Id: Ic5a6b8b6359dc9691cfcac2348ba895c542d05d9
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/JoinSuggestedContactDialogFragment.java
ndroid/contacts/editor/SuggestionEditConfirmationDialogFragment.java
49027003416b84e6d0ebfd7f4c64a6211c38ebf6 05-Feb-2015 Brian Attwell <brianattwell@google.com> Use unhidden PhoneNumberUtils TtsSpan methods

Bug: 18777272
Change-Id: Ie6d19e39176d06da0c039e6e056bdbc438cc3ccd
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/util/ContactDisplayUtils.java
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
1eb21f12372b31794ef5a567013c1d2d98081120 04-Feb-2015 Walter Jang <wjang@google.com> Move join suggestion view to base contact edit fragment

So that we can keep setEnabled logic entirely within
the base fragment.

The rest of the join suggestion functionality will be
ported to the base so it can be shared with the compact
editor in a seperate CL.

Bug 19124091

Change-Id: I4d494c9b0c2db8a6dba6d9d752d049f48848f731
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
a4caca9b39be886183968b8e7dd72539be51357e 04-Feb-2015 Brian Attwell <brianattwell@google.com> Merge "Move CallUtil into Dialer. P2/3"
066bd684a9c318ca9b85492dc3aa7a9384ae353e 04-Feb-2015 Brian Attwell <brianattwell@google.com> Move CallUtil into Dialer. P2/3

CallUtil relies on the a priviliged intent that should only
be used by system apps. Therefore, it shouldn't be used by an
unbundled Contacts app.

I'm leaving one (isVideoEnabled) method from CallUtil inside
ContactsCommon. This way, when the changes that Tyler made
inside m-wireless-telephony-shamu-dev (b/19062133) get
merged back into master both ContactsCommon and Dialer
will be updated.

Bug: 18777272
Change-Id: I49c9cc714ded01d523ed770a5bf62cf92c378e2f
ndroid/contacts/common/CallUtil.java
b55107303cc46906c265582a8931172f13d684b6 03-Feb-2015 Walter Jang <wjang@google.com> Handle reading loaded Contact data in the base edit fragment

This reduces the number of abstract methods sub classes
must implement and also keeps us from having to duplicate
the logic to set up the new/local/me/existing RawContactData
List (mState) in all sub edit fragments.

The crux of this CL is moving the "bindEditor" methods
into the base fragment.

Also renamed the various bindEditors methods which are
mostly reading fields the loaded Contact and settting up
mState to be "setState" since we it seemed more appropriate
to reserve the name bindEditors for setting up the actual
Views.

Bug 19124091

Change-Id: Ieb4a906ac372faa20694e546caa3bcba8c6b53b4
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
87ffb827175b646ec5cb5e53a23d10a0a90e5482 03-Feb-2015 Brian Attwell <brianattwell@google.com> Don't use hidden INVALID_SUBSCRIPTION_ID

Alternatively, I could unhide INVALID_SUBSCRIPTION_ID.
However, the affected code doesn't actually need to know
the value of SubscriptionManager#INVALID_SUBSCRIPTION_ID.

ContactsCommon simply uses INVALID_SUB_ID when the value
for subscription ID doesn't matter, because we know
the mSubscriptionId value won't be read later.

Bug: 18777272
Change-Id: I473ef361ae6cfa3a1484c38ca3aed88cc0b5d6d1
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
505fd3ba4bfaeaa23b951736b210911e970ae775 03-Feb-2015 Brian Attwell <brianattwell@google.com> Merge "Don't use hidden QuickContact APIs"
eda5c85e54ca3de71a9155df5f45fbf6911cb4a6 03-Feb-2015 Brian Attwell <brianattwell@google.com> Don't use hidden QuickContact APIs

Bug: 18777272
Change-Id: Ia3a1fe77223dfd67ff5c9d9c011253dbb7695b6a
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
68ebd0db979f8c294d84ec639b9ae2bb34cbc2e2 02-Feb-2015 Walter Jang <wjang@google.com> Merge "Add edit contact menu options to compact editor"
ed8f6c9744dd38e089598acfba6fb90446954e6e 31-Jan-2015 Walter Jang <wjang@google.com> Add edit contact menu options to compact editor

* Also moved #setListener and #load from the sub contact editor
fragments to the base fragment
* Moved location of #setData in the base contact editor fragment

Bug 19124091

Change-Id: Icbe3d46e1bf60f3e79437db7bc6c05a7a95f824b
ndroid/contacts/editor/CancelEditDialogFragment.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
eb8e961d523af144d457266a6228922cd6659ba4 02-Feb-2015 Brian Attwell <brianattwell@google.com> Merge "Don't use hidden AggregationSuggestions.builder"
532df59787a7b0b41aa3177dc1e2a073f2b8c3c3 02-Feb-2015 Brian Attwell <brianattwell@google.com> Don't use hidden AggregationSuggestions.builder

Bug: 18777272
Change-Id: I5f2bce6ccffdd17e783708ccc2d9b3b58926145a
ndroid/contacts/editor/AggregationSuggestionEngine.java
849da3a21609455779f8615ca998478dd487feed 30-Jan-2015 Walter Jang <wjang@google.com> Merge "Move data loading and account creation to edit contact base class"
57f93e6e93c4f29ca00a688b73dfee9961ec8b68 30-Jan-2015 Walter Jang <wjang@google.com> Merge "Re-order contact edit KEYS and state save/restore to match member order"
ce31fc141ac06161268b2a50d3c811ccaf586857 30-Jan-2015 Brian Attwell <brianattwell@google.com> Merge "Remove use of NAME_VERIFIED. P1/4"
548f5c658547041feb50cdfbe6f48e900558c00c 28-Jan-2015 Brian Attwell <brianattwell@google.com> Remove use of NAME_VERIFIED. P1/4

Instead use IS_SUPER_PRIMARY to accomplish
approximately the same thing.

Bug: 18777272
Change-Id: Ib13d26a7d575724e2badf231a871f3e6e5ca3efa
ndroid/contacts/ContactSaveService.java
ba59deb669cf377bedf08af53c9196db3c1cc404 26-Jan-2015 Walter Jang <wjang@google.com> Move data loading and account creation to edit contact base class

While moving things from ContactEditorFragment to ContactEditorBaseFragment:

* The data loader callbacks, #onActivityCreated, #setData, and account
creation methods were not changed in any way
* For the restoration of contact editor state, one small change was made.
A new key, KEY_AUTO_ADD_TO_DEFAULT_GROUP, was added because the other
options passed in via intentExtras argument to #load are saved
so this looks like an oversight in the existing version.

Bug 19124091

Change-Id: I7973f9c5703082f6d8db53c9db22d08a230c5876
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
cf718aa47c11453925bb20f7970ca7c897f6e376 30-Jan-2015 Walter Jang <wjang@google.com> Re-order contact edit KEYS and state save/restore to match member order

This will make subsequent CLs which will move these to base classes
easier to read.

No KEYS or save/restore's were removed or added, except
KEY_SHOW_JOIN_SUGGESTIONS was renamed to more closely match the member that
it is backing.

Bug 19124091

Change-Id: I3557cffa37ee29fc5cd460a8e7358142c383967a
ndroid/contacts/editor/ContactEditorFragment.java
5263f910f83539a17513d18a3dfbba221908d4a2 29-Jan-2015 Tyler Gunn <tgunn@google.com> Merge "Adding User-Agent to URI photo requests in Dialer."
2005cbc26f38ea557327cdd44ccd29685ad24f4c 29-Jan-2015 Tyler Gunn <tgunn@google.com> Adding User-Agent to URI photo requests in Dialer.

- Adding stub UserAgentGenerator implementation in ContactsCommon; this
returns null to retain existing functionality.
- Modify ContactPhotoManager to include User Agent in requests for Uri
photos.

Bug: 15189476
Change-Id: I911e3a521587409bd729a218738985ff2232bf1e
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/commonbind/util/UserAgentGenerator.java
3f990ba4e35a99078d831c041290e574a320caa5 27-Jan-2015 Walter Jang <wjang@google.com> Move some contact editor functionality into new base classes

To make room for a new "compact" contact editor.

The Status and SaveMode interfaces in ContactEditorFragment were
moved to ContactEditorBaseActivity but the Listener interface
was moved to the ContactEditorBaseFragment.

The logic in ContactEditorFragment to construct the result
Intent after successful saves was alos moved to the
ContactEditorBaseFragment.

This reverts commit 02375f1e45ade453c56810f32d63dfe8eebe4f44.

Change-Id: Ib0129d9ba4e4351677b6979c5f720df2094bf48d
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
fb5dc6f857104c38ff49993d7498e8aa5fbc462e 28-Jan-2015 Walter Jang <wjang@google.com> Reorder edit contact fragment members

Before (re) moving editor functionality into base classes

Bug 19124091

Change-Id: I8185b54f546f7e88893afbdeb4ff55cff3335711
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
92101e77238e450dedb56814cec80edc0adf79c0 28-Jan-2015 Walter Jang <wjang@google.com> Split EntityDeltaComparator out of contact editor fragment

Bug 19124091

Change-Id: I01ccf06bd2527ea5054843b30c100b2c7cc4a7f4
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/RawContactDeltaComparator.java
4a1c574cd62eb7ca1e0fcc3a61e5378e5e0787fe 27-Jan-2015 Brian Attwell <brianattwell@google.com> Add Insert.EXTRA_{ACCOUNT,DATA_SET} to API. P #2/2

Bug: 18777272
Change-Id: I17a5b7cb4d4c5a0ba48936a6fc829acaab73f31d
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
8135289241b0863c8025bcb2c57857270994d2aa 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
ndroid/contacts/common/list/ContactTileAdapter.java
02375f1e45ade453c56810f32d63dfe8eebe4f44 26-Jan-2015 Walter Jang <wjang@google.com> Revert "Move some contact editor functionality into new base classes"

This reverts commit 5d1c571dbe5b4a60aec6cb81d69e9e595813268e.

Change-Id: Ia9df02198b460529c157fbee6012349b0eca0bf3
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
5d1c571dbe5b4a60aec6cb81d69e9e595813268e 22-Jan-2015 Walter Jang <wjang@google.com> Move some contact editor functionality into new base classes

To make room for a new "compact" contact editor.

The Status and SaveMode interfaces in ContactEditorFragment were
moved to ContactEditorBaseActivity but the Listener interface
was moved to the ContactEditorBaseFragment.

The logic in ContactEditorFragment to construct the result
Intent after successful saves was alos moved to the
ContactEditorBaseFragment.

Bug 19124091

Change-Id: I5dd0b64580026a72757025915ee59be0b7d1dcbc
ndroid/contacts/activities/CompactContactEditorActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactEditorBaseActivity.java
ndroid/contacts/editor/CompactContactEditorFragment.java
ndroid/contacts/editor/ContactEditorBaseFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
a97812ee2fab4339840812e600982680a49585d6 23-Jan-2015 Brian Attwell <brianattwell@google.com> Merge "Avoid hidden ContentProviderOperation type"
bd2db2d4a756d9ca02a945f6dcf720f6bf983e0a 22-Jan-2015 Brian Attwell <brianattwell@google.com> AggregationSuggestions.Builder Part 2/3

Now that AggregationSuggestions.Builder is partially unhidden,
use the parts that are unhidden.

Bug: 18777272
Change-Id: I5c4066d1e933cc4ab18df06809687ee2b7eac91c
ndroid/contacts/editor/AggregationSuggestionEngine.java
13f94e1c52f553a7137e6730c09c4d28c3f54c9f 23-Jan-2015 Brian Attwell <brianattwell@google.com> Avoid hidden ContentProviderOperation type

Instead of using hidden ContentProviderOperation fields,
use the accessors I added in ag/616035.

Bug: 18777272
Change-Id: I6be5f325bbf6fbeb7817e9b1f7fa1a1ae2002e0b
ndroid/contacts/ContactSaveService.java
8897287c19b394c1f0b402e6291ff4304acacbc2 22-Jan-2015 Brian Attwell <brianattwell@google.com> Remove typo. Fix build.

Change-Id: Ied5714cc203ae940a0f2eac779654025345ebd6e
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
d7f8ae4326492d652e4f73255d50b78829dcbdd6 22-Jan-2015 Brian Attwell <brianattwell@google.com> Merge "Remove call to hidden suppressLayout()"
245d3d2000150cbb21111370f42addaeeb1b10a0 21-Jan-2015 Brian Attwell <brianattwell@google.com> Remove call to hidden suppressLayout()

suppressLayout was previously called as a work around for using BoundsChange.
BoundsChange is designed for animations without layout changes. Two changes
are need to to avoid using suppressLayout

1. Don't use the BoundsChange Transition when collapsing the card. This
animation involves an unavoidable layout change.
2. Don't allow user interaction during the expand animation. User
interaction can cause layout changes during the animation.

Discussion: The Transition API designers think that BoundsChange should
never be used with layout changes (go/bounds-change-no-layout-change).

Bug: 18777272
Change-Id: Ie09cc8063f81ca451c00289b5d7b5a39886b0c27
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
7701dd2f35ad313b65e94be7dd6716df80b00138 22-Jan-2015 Brian Attwell <brianattwell@google.com> Merge "Don't call finish after cancelling Add Account"
95c2b2dd4297657d809a31f31afd6263067a5b34 22-Jan-2015 Brian Attwell <brianattwell@google.com> Don't call finish after cancelling Add Account

Bug: 19078495
Change-Id: I3be7679d1bbccf7f21c75d40c625584e46ccb7a8
ndroid/contacts/util/AccountPromptUtils.java
f48efd72289c1725f00550f09167f5cfc05e9bfd 21-Jan-2015 Brian Attwell <brianattwell@google.com> Don't use hidden Parcel#{read,write}CharSequence

Make ContactsRequest no longer parcelable in order
to avoid calling hidden APIs.

ContactsRequest only needs to be parcelable for the
sake of ContactsSearchManager. ContactsSearchManager
only exists for the sake of supporting the
FILTER_CONTACTS intent filter. The FILTER_CONTACTS intent
was only used by the system's search button which the contacts
app hasn't supported since gingerbread. Moreover, the FILTER_CONTACTS
API is deprecated.

Therefore, I remove all the things mentioned above.

Bug: 18777272
Change-Id: I8da1ff02bcdebce08acc5eac47d479b8d9617483
ndroid/contacts/ContactsSearchManager.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/UiIntentActions.java
8e29faf7730f744b8f6ff117cae04b5bca1235db 21-Jan-2015 Brian Attwell <brianattwell@google.com> Remove hidden PorterDuffColorFilter#getColor call

This method might be unhidden in MNC. I don't want to wait.

Bug: 18777272
Change-Id: I50dbae3982e5f048b5080a707eeddd0fed0a5aac
ndroid/contacts/quickcontact/QuickContactActivity.java
b716f50c6f30b347b403db8b39598c38aadd8c64 15-Jan-2015 Jay Shrauner <shrauner@google.com> Catch remote NPEs from photo pickers

Bug: 19017343
Change-Id: Iae7c9848f950178aede77d8d09973ad1cd4ab5d6
ndroid/contacts/util/ContactPhotoUtils.java
2ae200dc7b2995f6758887cce8dedf563b3f3aa3 09-Jan-2015 Jay Shrauner <shrauner@google.com> Make AccountWithDataSet null safe

Don't crash on null account names. Change AccountWithDataSet so that it
does not inherit from Account and allow name and type to be null.

Bug: 18959158
Change-Id: I6da8aa52d9c408288b2c85ac2c5a507ff42dc985
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/RawContact.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/vcard/ImportRequest.java
67e83223e954ed54898daa5e32400dbff6d3831a 09-Jan-2015 Jay Shrauner <shrauner@google.com> Local account handling cleanup

Clean up null account handling and update local account detection to allow
for a non-null account to represent a local account.

Bug: 18959158
Change-Id: I0d5f7acb7d9a8d1ba7b6d3a4e0b6584e3646934a
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
3a9e3b15ba184232412b2df6456589a42cab9745 09-Jan-2015 Brian Attwell <brianattwell@google.com> Merge "Unbundle from contacts contract part 3/3"
c3d202ccbaf93ddd8291672027e59f549c32eee3 09-Jan-2015 Brian Attwell <brianattwell@google.com> Unbundle from contacts contract part 3/3

* Remove some tests
* Move ContactsContract.Intents.UI into Contacts
* Remove references to ContactsContract.ProviderStatus.DATA1
and refactor to avoid usage of a new useless data object

Discussion: go/contacts-contact-intent-ui

Bug: 18777272
Change-Id: I9c6125cc30710e4637b38f3785608abb9928d1a2
ndroid/contacts/ContactsSearchManager.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/OnContactsUnavailableActionListener.java
ndroid/contacts/list/ProviderStatusWatcher.java
ndroid/contacts/list/UiIntentActions.java
a9a3d768ac98dfc7aeb712bed194ba217f8c5035 20-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Use getSystemService for services. Unbundling."
47ff9c6190f68e0bd52937cc014061823878c1b8 20-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Move TestLoaderManager into /tests. Unbundling."
73a6764f6724f69496afcce602234621efe7fca0 19-Dec-2014 Brian Attwell <brianattwell@google.com> Use getSystemService for services. Unbundling.

Don't directly instantiate or call .get() for UserManager
or TelephonyManager.

Bug: 16788935
Change-Id: I0b2af566776d85ceaf0e86af364418ddb2cdb3eb
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/util/PhoneCapabilityTester.java
09bfb912afb6936344429a486dc20fa2ce8e1827 19-Dec-2014 Brian Attwell <brianattwell@google.com> Move TestLoaderManager into /tests. Unbundling.

TestLoaderManager is injected into ContactDeletionInteraction
for the sake of one (flakey) unit test class. It is breaking
the Contacts build by using a hidden API.

Move this into /tests and reference an abstract base class inside
ContactDeletionInteraction.

Bug: 18777272
Change-Id: Icffa0256b418a319347f1f58f0415341be9d8054
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/TestLoaderManager.java
ndroid/contacts/interactions/TestLoaderManagerBase.java
0dd0b7de69f11c333f6ba2c2fe9c9d6eec15930e 19-Dec-2014 Brian Attwell <brianattwell@google.com> am 47612e5f: am 8c92be0f: am d462d3a9: Scroll to top of raw_contact on expansion

* commit '47612e5f4b04dcf5f1b27654f93aa4247094453a':
Scroll to top of raw_contact on expansion
493f8d14b1d974a2939a110ce89fa68e0c915c36 18-Dec-2014 Brian Attwell <brianattwell@google.com> Copy WebAddress into Contacts

Bug: 18777272
Change-Id: Ie095533a90bd66fc3d4737cc2b3a6fb47202e14d
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/WebAddress.java
3dad9f3cdfd5d1bcdf82ac6fc0bd34f24440ab31 18-Dec-2014 Brian Attwell <brianattwell@google.com> Unbundle DatePicker

Bug: 18777272
Change-Id: I2be6e5db694e5bfe2487f9bb87101756248dbc0c
ndroid/contacts/datepicker/DatePicker.java
ndroid/contacts/datepicker/ICU.java
ndroid/contacts/datepicker/TwoDigitFormatter.java
888cf9f96416b3ee26d24339c966c60415bf99af 18-Dec-2014 Brian Attwell <brianattwell@google.com> Merge changes Ia92e0619,Ifd0cfc06

* changes:
Don't reference UNDEMOTE_METHOD
Don't use internal VisibleForTesting annotation
2d88efaf9efa059c70783acffb6ec3055e1b883b 18-Dec-2014 Brian Attwell <brianattwell@google.com> Don't reference UNDEMOTE_METHOD

Instead use ContactsContract.undemote(), which accomplishes
the exact same thing.

Manual test: star/unstar a contact. Verify the change persists.

Bug: 18777272
Change-Id: Ia92e06190e891e313bca1d4ae24e7aa5e174b552
ndroid/contacts/ContactSaveService.java
72766542aebcde2c46ba76b216c9eb9869b0acd7 18-Dec-2014 Brian Attwell <brianattwell@google.com> Don't use internal VisibleForTesting annotation

Test
1) install GoogleContactsTest.apk
2) $ adb shell am instrument -w com.google.android.contacts.tests/android.test.InstrumentationTestRunner

Bug: 18777272
Change-Id: Ifd0cfc061f14d7cf4f476e837543819ad199a924
ndroid/contacts/interactions/CallLogInteractionsLoader.java
971b75822f5dff76ac9d8b2586400691e601e70f 18-Dec-2014 Brian Attwell <brianattwell@google.com> Don't rely on removed pattern character definitions

These pattern characters were removed from the API, since
using their underlying values is easier.

See commit that deprecated them:
https://android.googlesource.com/platform/frameworks/base.git/+/8326b9a429b63b680aa9af116c670ce674744d80

#unbundling

Bug: 18777272
Change-Id: Id2c6bd415cf3624d2c981f7a05666f38a9fb9f9f
ndroid/contacts/common/util/DateUtils.java
d462d3a9e9fe1ce0ff9562345a4292d45ffea46b 17-Dec-2014 Brian Attwell <brianattwell@google.com> Scroll to top of raw_contact on expansion

User feedback: when expanding a raw_contact section in the editor,
if it doesn't scroll onto screen, then the expanded section looks
like it is empty.

Therefore, we adjust the ScrollView's scrollY upon expanding
raw_contact editors. We also do some work to make sure that
focus makes sense after expanding/collapsing.

Bug: 18004959
Change-Id: Ib20c4d971d655650eea9e378e2ffde8876e5875c
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/EditorAnimator.java
2a3bf46d52d50cae159b724ad3d845d8c557a20b 17-Dec-2014 Brian Attwell <brianattwell@google.com> Remove hidden API calls from MultiShrinkScroller

Removed getBoundsOnScreen, DisplayInfo, DisplayManagerGlobal.get

The remaining hidden APIs used in multishrinkscroller require API
changes to fix.

Bug: 18777272
Change-Id: Iefc7d56e8d17db41ddd591658ef1e09925072f61
ndroid/contacts/widget/MultiShrinkScroller.java
cae9a73d0d07d0c3628515fd75738f5c169c1b00 17-Dec-2014 Brian Attwell <brianattwell@google.com> Remove dead PhotoSelectionActivity

The activity had dependencies on some hidden APIs.
Since it is dead anyway, lets remove it.

Bug: 18777272
Change-Id: Ib0071e2ef609fd53be4acb784e5cf67bb44155b7
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/TransformableImageView.java
f140227beb6d9e78955a7676dc0dd3f793f72017 17-Dec-2014 Brian Attwell <brianattwell@google.com> Don't directly reference hidden View fields

Remove references to hidden view properties and fields
where 100% analogous unhidden equivalents exist.
* isLayoutRtl()
* mContext

Bug: 18777272
Change-Id: I1cc69fd846893087787f5cf340bf2a0ee6571f42
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/widget/MultiShrinkScroller.java
a66d5fabe2490f44a343e4c7be51389a8bfe0dd5 15-Dec-2014 Brian Attwell <brianattwell@google.com> am 32d04225: am ddd4b580: am 1bec54a5: Merge "Support editable 3p accounts without nicknames" into lmp-mr1-dev

* commit '32d042256b817cacea5193ff5ff4888eb8ac0d34':
Support editable 3p accounts without nicknames
1bec54a5c318860dec6ce7cac501f01a830b6722 13-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Support editable 3p accounts without nicknames" into lmp-mr1-dev
55d38b43dd81fe81c3eb234cc4c420925c41820b 12-Dec-2014 Jay Shrauner <shrauner@google.com> am 99d7afd9: am 4181187f: am 02ecc3f4: Fix ContactLoader IllegalArgumentException crash

* commit '99d7afd95be3c08ef527b60372e2239b4a0e9f13':
Fix ContactLoader IllegalArgumentException crash
099046cfb5ede3a56cff494796e79d194bf81da6 12-Dec-2014 Brian Attwell <brianattwell@google.com> Support editable 3p accounts without nicknames

Fix a theoretical crash case.

We shouldn't assume the nickname field always exists.
All standard writable accounts have nickname fields.
But, it is possible to create an 3p account type with
an xml edit specification that omits the nickname
(I don't know if anyone does this).

Bug: 18004959
Change-Id: I9770e88891e5800ef56d2df8a0ddb8463e3e8815
ndroid/contacts/editor/RawContactEditorView.java
02ecc3f456a2e9d9fc2713583d387b708ae458d9 12-Dec-2014 Jay Shrauner <shrauner@google.com> Fix ContactLoader IllegalArgumentException crash

Display toast instead of crashing when unable to load contact due to
acore crash or invalid URI.

Bug: 18689131
Change-Id: I0e393e833bbb839af08ba6f4c10203a7d9abd3d7
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
5fb1b2fd214daea02eb6e878b753ba5af5780812 12-Dec-2014 Brian Attwell <brianattwell@google.com> am c017641e: am f7489352: am 8f253545: Merge "bugfix: don\'t show name in nickname field" into lmp-mr1-dev

* commit 'c017641e182bf2a6d2cbc15ad183f83f68d72e62':
bugfix: don't show name in nickname field
8f253545c6e2515625c0f2a872e5501984453949 12-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "bugfix: don't show name in nickname field" into lmp-mr1-dev
7c8012090926070dc6bde1691341a2969996518c 11-Dec-2014 Brian Attwell <brianattwell@google.com> bugfix: don't show name in nickname field

Bug: 18004959
Change-Id: Ic0ba640cf83bd614c77d30bed3b02f08347b237d
ndroid/contacts/editor/RawContactEditorView.java
e5ac8b14a6549e18d811b7241911d1231cf5f5fc 10-Dec-2014 Brian Attwell <brianattwell@google.com> Switch GoogleAccountType extension package to gms

Making this change will allow the G+ app to some day remove
their code for handling CP2 contacts. Additionally, this
gives us (GMS) more control over the future of contact
syncing.

The contacts app will examine GMS's people_contacts.xml
instead of G+'s es_contacts.xml. What affect does this have?
* The definition for the ContactsDataKinds will be exactly the
same as before. No affect here.
* GMS's PeopleSyncRawContactService will be used when a G+ thumbnail
is viewed instead of G+'s AndroidContactsNotificationService.
Note, that AndroidContactsNotificationService was already a shim
for PeopleSyncRawContactService. This only removes a level of
indirection. No affect here.
* The inviteContactActivity and viewGroupActivity will go through
an additional level of indirection: first GMS springboard
activities will open. These will redirect to the G+ app.
Right now these activities aren't even used inside the
Contacts app. So, not really any affect here.

Bug: 13033233
Change-Id: Ibdaf5a236b2e616328850d079ee0796fc519be4d
ndroid/contacts/common/model/account/GoogleAccountType.java
a17daac58dbc5d56a1f8e2001161335b07fe4456 10-Dec-2014 Jay Shrauner <shrauner@google.com> am 1e0482e1: am 01c67025: am dfb5839b: Merge "Catch ActivityNotFoundExceptions in onClick" into lmp-mr1-dev

* commit '1e0482e1040a81410d700c962e8b1405a10d27a8':
Catch ActivityNotFoundExceptions in onClick
817f99e16f16c1c122bf07abda5642fd26d58195 10-Dec-2014 Jay Shrauner <shrauner@google.com> am 579c27cd: am 93ed50ce: am 12ac1e6f: Fix ConcurrentModificationException

* commit '579c27cd95998b077ff1b03a52288f2fa1d5b06c':
Fix ConcurrentModificationException
08817dbc307a7b7469a5ebc41d890fbae0fa3dab 10-Dec-2014 Brian Attwell <brianattwell@google.com> Enable multiple SIP addresses per contact

Tested syncing multiple sip contacts from web to device, and
from device to web.

Bug: 3091121
Change-Id: I378a3701514a7473a6df3b3f6d49a8d8c7779f39
ndroid/contacts/common/model/account/BaseAccountType.java
60a5fb2b0ee4f928756e11e6aba4369d820b7a58 10-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Use buildDataStringForDisplay for phone field"
dfb5839b7827f889036d6facccf0d962aa2f082b 10-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Catch ActivityNotFoundExceptions in onClick" into lmp-mr1-dev
12ac1e6f15ae9e4d4e453e7f28467fdd561939a3 09-Dec-2014 Jay Shrauner <shrauner@google.com> Fix ConcurrentModificationException

Switch from using a HashMap to a ConcurrentHashMap for the loader
results map.

Bug:18688436
Change-Id: Ib90f794b673d88f54fc841c0fa001866139f47c6
ndroid/contacts/quickcontact/QuickContactActivity.java
3bcf09eac69251c05cd4e386badfa292ba56b4f0 09-Dec-2014 Brian Attwell <brianattwell@google.com> Use buildDataStringForDisplay for phone field

This just fixes the format of the number as displayed
inside the phone field.

It doesn't fix the formatting inside recent interactions:
we continue to display the exact phone number returned
from the sms and call log database. When the contact
doesn't have a name, we continue to show their name
as an unformatted number.

Bug: 7230016
Change-Id: I1d8b40c27fbd3497a4fef4e1f30ab2a21eca44d4
ndroid/contacts/quickcontact/QuickContactActivity.java
71ac3560f568fee4c2d8a43f5ccc28979c46ace7 08-Dec-2014 Ihab Awad <ihab@google.com> Merge "Add Text-to-Speech annotations to import/export menu phone numbers" into lmp-mr1-dev
cdd1d6c8f7447caa964fd10c39d1f00f103e5606 08-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Fix package manager TransactionTooLargeExceptions" into lmp-mr1-dev
3732180eb7150d6662775241a6a07b30f92ecb8d 06-Dec-2014 Ihab Awad <ihab@google.com> Add Text-to-Speech annotations to import/export menu phone numbers

Bug: 17321294
Change-Id: Iee6a3a9d26e464140f6cfdbd982297f0da06006f
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
07685ea823d125c2626e52087afa7812e5300f7e 05-Dec-2014 Ihab Awad <ihab@google.com> Add Text-to-Speech annotations for phone number displays (2/3)

Bug: 17321294
Change-Id: I98a6d6dd9684c1f3c29a97263155713493e162c2
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
eef0a78ac999f7b58f34a808976ebe583054bb9f 05-Dec-2014 Tyler Gunn <tgunn@google.com> Adding ContactLoader support to suppress contact photo loading.

Bug: 17308163
Change-Id: I3311fd18d666e1de33296fea00f49855b240d938
ndroid/contacts/common/model/ContactLoader.java
e5ef2f7588349b7121d79a11055ceb4b7e9810f2 04-Dec-2014 Jay Shrauner <shrauner@google.com> Fix package manager TransactionTooLargeExceptions

Change ExternalAcountType.loadContactsXml to use
PackageManager.queryIntentServices to avoid grabbing too much data back.
Change LocalizedNameResolver.resolveAllContactsNameFromMetaData to use
loadContactsXml.

Bug:18607092
Change-Id: I9c31615fc3f7e363612b127f54f2c6cb5a6d44d9
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/util/LocalizedNameResolver.java
97b5a683a1abc4f17eb86d40e5270ab342edda05 05-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Don't accidentally scroll QC off screen." into lmp-mr1-dev
d9bf3c2ddd46dbd2a3a45b2a171c2af55fe4c8e0 05-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Change text colors to reflect their state" into lmp-mr1-dev
5fd8698d05fad275bde82b8a1fb139f786dc609e 05-Dec-2014 Brian Attwell <brianattwell@google.com> Don't accidentally scroll QC off screen.

Behavior changes
1) Halt fling once it hits the top of the window
2) Add top EdgeEffect
3) Add springyness

These changes result in much simpler nested-scrolling
calculations.

UX may want to change some of the constants
after playing with this for a day. However, the
logic changes should remain unchanged.

Bug: 18571742
Change-Id: Icbc063beb2061bf7cd1e4401b16e604415140242
ndroid/contacts/widget/MultiShrinkScroller.java
d690dff231dd5a81b9bd7563838455f24e49c75c 03-Dec-2014 Brian Attwell <brianattwell@google.com> Change text colors to reflect their state

The editor's text color suffered from two conflicting
problems
1) It didn't all pass GAR
2) The difference between hint text and regular text
is too subtle to differentiate at a glance

Changes
1) Once a LabeledEditorView is non-empty, the text color of
the spinner should no longer be the hint text color
2) Once an editor field is focused, all fields in the same
EditKindSection get a slightly darker color. Since the various
name editors, don't actually belong to a EditKindSection
extra work needed to be done for them.
3) Drop down lists use non hint colors

Read only editor continues to use the darker hint color.
There is no need to strongly distinquish hint colors from
non hint colors in the read only editor.

Bug: 18004959
Change-Id: Ia6b16ab882b2fcb9113c2ac880e741f62115a1f9
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
6b447ced28913da9f1961d678d957b348dc97fd7 03-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Don't save contact after deleting it" into lmp-mr1-dev
4829b5481f40eddc9348713fcd8fdeee7dffd192 03-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in onHandleIntent" into lmp-mr1-dev
44ab57292cf57381337318741944489b20c3bfc0 03-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Hide keyboard when exiting search view" into lmp-mr1-dev
87901e0e2896ffc2a03f519bcc86e7cb88098fa1 02-Dec-2014 Brian Attwell <brianattwell@google.com> Hide keyboard when exiting search view

Bug: 18548146
Change-Id: Ia37dedca43352d609e8eef54761d1ed67ec6c133
ndroid/contacts/activities/ActionBarAdapter.java
8d0557eb013b2808402e491271fe0f13ffcfabef 02-Dec-2014 Brian Attwell <brianattwell@google.com> Don't show shortcut menu item for homescreen

Bug: 18581314
Change-Id: I169ca8e554d3fb288526eee7fc1532d7de2220da
ndroid/contacts/quickcontact/QuickContactActivity.java
afb025cfbcc1b6db48c6045a27387ce45e652a3a 02-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "In editor, use Up button instead of Save button" into lmp-mr1-dev
3a7cc76a5fdd41af0b8da0e6e27adbba51b73e52 02-Dec-2014 Jay Shrauner <shrauner@google.com> Fix NPE in onHandleIntent

Catch null intents.

Bug:18579403
Change-Id: I4ee3baf97c8767f0b166f122c13f8abab3a75a4f
ndroid/contacts/ContactSaveService.java
99c0c8519483dd187fa0dd21cb83065966253b7f 01-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Collapse extra raw contact editors" into lmp-mr1-dev
522008701c63fb33558c4b4d6809be0dbd661ef9 01-Dec-2014 Brian Attwell <brianattwell@google.com> Merge "Use delete icon from go/icons" into lmp-mr1-dev
10c5ec8d85e5e79d9f0c67aa2be6cedc4d3ab6c7 01-Dec-2014 Yorke Lee <yorkelee@google.com> Merge "Make MaterialPalette parcelable" into lmp-mr1-dev
2b54366e6334b6da48d229d3e5fbe191a8a4b54f 01-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in shareContact" into lmp-mr1-dev
4d81ebbb6c519a4357bf55ce5d391d655616ca9c 01-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in getInsertedRawContactId" into lmp-mr1-dev
288ae10f86a4a42bd5541d24b12a860db51899c5 01-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in loadInBackground" into lmp-mr1-dev
e4c2e469bfcefc03319b843ad4335830414b6bdd 01-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Fix cursor exception in getThumbnailSize" into lmp-mr1-dev
cf40e367e81405e1f6dfbc2a62c0a2c6e84becd0 01-Dec-2014 Jay Shrauner <shrauner@google.com> Merge "Fix cursor exception in changeCursor" into lmp-mr1-dev
ebf16faaec6e476940990e963922b3938e8d85b5 27-Nov-2014 Yorke Lee <yorkelee@google.com> Make MaterialPalette parcelable

Makes it easier to pass it around in intents

Bug: 18373617
Change-Id: I16d235b710dc6c0906c60bf936c7e069a086ca6a
ndroid/contacts/common/util/MaterialColorMapUtils.java
47b17c83b981172bda672314385eb8920753ba25 26-Nov-2014 Brian Attwell <brianattwell@google.com> Use delete icon from go/icons

Bug: 18004959
Change-Id: Ia8a5fe6006f6caf313a0f2eb044a94535c43878c
ndroid/contacts/editor/ContactEditorFragment.java
d391f8493fe19776d4f319b8d8ff74a894b04ecc 26-Nov-2014 Jay Shrauner <shrauner@google.com> Catch ActivityNotFoundExceptions in onClick

Display a toast when activity isn't found.

Bug:18537920
Change-Id: I84bf07e64fffa92b6fe6de8d3de0259d339d35f3
ndroid/contacts/activities/PeopleActivity.java
04f46aedf836e726152fc8b14d752fd58a7a7e99 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
ndroid/contacts/common/list/CustomContactListFilterActivity.java
49de62f06d24653484adebd69123eeff2850a757 26-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in shareContact

Check whether we have a shareable contact before trying to share it.

Bug:18535080
Change-Id: Id49d40227f58c592ff83c0d848ac690b85dde8d5
ndroid/contacts/quickcontact/QuickContactActivity.java
76c1a51953eccb49eb843e9aee0cbc2f23451042 26-Nov-2014 Jay Shrauner <shrauner@google.com> Display empty name as "no name" instead of "null"

Make prompt for join action consistent with name displayed in
addressbook listing (missing_name resource, or "(no name)" in English).

Bug:18532969
Change-Id: I645c0890a1c28fe91b0cdcbd98e6bd4a5b12e97e
ndroid/contacts/list/JoinContactListFragment.java
568f4e72711908455ccd20fbb04c1017b10d7e1c 26-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in getInsertedRawContactId

Bug:18532368
Change-Id: I5758ac9c4ce9c95c38b92c0153f7b39bee8e0a98
ndroid/contacts/ContactSaveService.java
2b24602f1b6661a669762cfc810cc76f51db6e16 26-Nov-2014 Brian Attwell <brianattwell@google.com> In editor, use Up button instead of Save button

We can't yet delete the assets from editor_custom_action_bar
since they are used inside the group editor. And we aren't 100%
certain we want to delete all the groups.

Bug: 18004959
Change-Id: Id60515d2e5bbaab98498162707581730baca2d8b
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
daa2058979fda84a0ce22e21edd53aa049e80aa0 26-Nov-2014 Brian Attwell <brianattwell@google.com> Collapse extra raw contact editors

There are now two different header styles
1) When creating a new raw contact: if there are multiple
accounts to create the raw contact under, then show a
header with an acconut selector
2) Otherwise, show a visually distinct account header without
a drop down account selector. If there are multiple raw
contacts, this header also lets you collapse raw contacts

Typical users, who only have a single writeable account, will
never see header (1). This is fortunate, since switching between
the two header styles is a bit visually inconsistent.

Bug: 18004959
Change-Id: I133a7355a220f20b55657a6c1a51ff44665ea3b9
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
91125a6a0e5f4626012f0122cace3051a0d94637 26-Nov-2014 Jay Shrauner <shrauner@google.com> Fix cursor exception in getThumbnailSize

Check for null cursor and check return value of moveToFirst before reading.

Bug:18527155
Change-Id: Id2fc5ff8e22c59968443a1e66d59f24480f045b2
ndroid/contacts/common/ContactsUtils.java
ff62773c066617339241fabca62c92b4b2491a47 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
ndroid/contacts/common/list/ContactListAdapter.java
cf082229e19336c1f0ae8476c81f2352e4f333cd 25-Nov-2014 Jay Shrauner <shrauner@google.com> Fix int/long mismatch for import from SIM

Make subscription id an int everywhere.

Bug:18524128
Change-Id: I33e443603acb4fbf6d67697b289d99b57ff0bbcd
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
b4154e46dd98bcb4d85eb6fb210a048c8a7ff7aa 25-Nov-2014 Brian Attwell <brianattwell@google.com> Don't save contact after deleting it

Bug: 18514447
Change-Id: I695aa41eb6870b7c256efb9f5eccf9e0eadefe4f
ndroid/contacts/editor/ContactEditorFragment.java
ba8a76b0f9aa3caf21c5915276d00f36e1321b43 25-Nov-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in decodedBitmapDrawable" into lmp-mr1-dev
7609b7dce7cd07cf7c8a2fbc518045c366a9cbb6 20-Nov-2014 Brian Attwell <brianattwell@google.com> Make color tinting less offensive

-don't tint colors when opening QuickContacts in its
semi-collapsed state. Ie, the state it starts in when
opened from Dialer
-the transition from untinted to solid color is quick
-always apply the black gradients to QuickContacts. Using
less tinting makes the absence of gradients a bigger
problem. We could have tweaked WhitenessUtils to apply
the gradient in all problematic cases. But this turns
out to be the majority of cases. So we should just
apply the gradient all the time.
-made the gradient more attractive

Bug: 17944406
Change-Id: I46c8a7a3fccc0f7a7e8bb7470dee621edf92b8cb
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/WhitenessUtils.java
ndroid/contacts/widget/MultiShrinkScroller.java
fa833f466f8989f80b27ed06b31573a54544a798 25-Nov-2014 Brian Attwell <brianattwell@google.com> Merge "Correctly set search string when entering search" into lmp-mr1-dev
7133e7c4f1897baffde0f9690c5b810b30deed91 24-Nov-2014 Jay Shrauner <shrauner@google.com> Fix too many variables SQLiteException

De-dup the set of accounts associated with the raw contacts before
appending to the SQL query.

Bug:18510108
Change-Id: Ia135a656965bdcfc76df28d60f0636d562f76382
ndroid/contacts/common/model/ContactLoader.java
884a4caf4debf620174486a1d1679b62f2b48457 24-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in decodedBitmapDrawable

Check for whether bitmap was successfully decoded from byte array.

Bug:18508529
Change-Id: If5c1bb3f0b726be5891d5b33d8bc7073cf40b108
ndroid/contacts/util/ImageViewDrawableSetter.java
5e5ce873a670fdf68470db3d340a63d5afee7fa4 24-Nov-2014 Jay Shrauner <shrauner@google.com> Merge "Fix SecurityException crashes in onClick" into lmp-mr1-dev
a7c14c686b982836b75aba4618fc738093a9878c 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
ndroid/contacts/common/list/ProfileAndContactsLoader.java
2994462deb5138ddc8f104a53e81b854f1bd323d 24-Nov-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in ContactSaveService" into lmp-mr1-dev
82a5a35c1a2b83b4118bcba56625f6f25e9663d0 24-Nov-2014 Jay Shrauner <shrauner@google.com> Fix SecurityException crashes in onClick

Catch SecurityExceptions when attempting to launch activites and display
a toast indicating the app isn't found, consistent with Launcher2 handling.

Bug:18506811
Change-Id: I1b0c4a02597279ac31621293aa3c29d87a006ba4
ndroid/contacts/quickcontact/QuickContactActivity.java
fcfcae34bd2d74e71ee218cfd7aa3567d7c3fc26 24-Nov-2014 Jay Shrauner <shrauner@google.com> Don't crash when sent malformed intent

If lookupUri isn't passed in abort the intent request without crashing.

Bug:18506352
Change-Id: I128a3e4e84ec35d48d139d2cc42da38cd761ff42
ndroid/contacts/quickcontact/QuickContactActivity.java
c12a280b496e6a997ab972641fb8e50e1eb8736c 24-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in ContactSaveService

Check for null cursors before accessing.

Bug:18504067
Change-Id: I9945adfd45671d296ad64cd57aa4985a94d18144
ndroid/contacts/ContactSaveService.java
71c20f20884b4775f05a7f0a951a36b3a14747f1 22-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Idd98aa46c15a9219ccf28091c62602ac8bf16c62
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
fde48de9ab7f1fb6e2037a32437e4f70716c719b 21-Nov-2014 Brian Attwell <brianattwell@google.com> Don't show search when unsupported

Bug: 18472894
Bug: 18418543
Change-Id: I95a6046d36e89b4c877a07f4b39142b95f434e4d
ndroid/contacts/activities/ContactSelectionActivity.java
cd2f88f5b540dc46b30fb3757d8452c04f624291 20-Nov-2014 Wink Saville <wink@google.com> Revert "Additional changes to SubscriptionManager API as per API council."

This reverts commit a63ae799821744f941a1f2d43850372199e075e8.

Change-Id: I30d9b82aeaff5595fe952313b5728fb9f6c2c076
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
a790f14db15df8028e3ce335888368f739849fd4 16-Nov-2014 Wink Saville <wink@google.com> Additional changes to SubscriptionManager API as per API council.

bug: 17575308
Change-Id: I7773965094510999bfce8fc6b2b31ba6ce496653
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
b3944dcec1fb1299d8bedeef251adb0a413fba52 19-Nov-2014 Brian Attwell <brianattwell@google.com> Correctly set search string when entering search

Changes
1) When entering search mode, explicitly clear the
search query
2) Make sure that the cursor starts after the text
that is programmatically inserted via setQueryText().

Manual tests:
-Type into search bar. Exit app. Resume app.
Open search bar again. Search bar should be empty.
-Type into search bar. Rotate app. Search bar shouldn't
be empty.
-Type into search bar. Close search. Open search.
The search view should be empty.
-execute "$ adb shell input keyboard text abcd". In KK
the search view will show "dabc". Now this shows "abcd".
-Place cursor in middle of a search term. Enter new text
using the soft keyboard or use adb shell to enter new text.
In both cases the new text appears after the cursor
position.

Bug: 18410365
Change-Id: I7ce260913e3c8e7448678bd2178859fb9c9270ab
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ae2c1cb4c4ca14810ae5f428dba2ae17e6400424 17-Nov-2014 Yorke Lee <yorkelee@google.com> am e94ad7cc: am faed3374: Switch from CALL -> CALL_PRIVILEGED

* commit 'e94ad7cc098ed77f4a69130a0393abdad835c9b9':
Switch from CALL -> CALL_PRIVILEGED
9458193d4486d3d7ec7a1495d2f7e853c49479a8 17-Nov-2014 Yorke Lee <yorkelee@google.com> am faed3374: Switch from CALL -> CALL_PRIVILEGED

* commit 'faed337493039d8b149aace3816000cd396c99fe':
Switch from CALL -> CALL_PRIVILEGED
3f316153a0f60732c12d2ccb892cb36fa9aaac6e 17-Nov-2014 Yorke Lee <yorkelee@google.com> Switch from CALL -> CALL_PRIVILEGED

Bug: 18332160
Change-Id: I5b9bcc8f413e5534bab94e0b2677371968a8e483
ndroid/contacts/common/CallUtil.java
0bb76dc6d0c28af61ab7c0d5fa6379669f18b4d6 14-Nov-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in background thread" into lmp-mr1-dev
699ac7532c2b567e4d1041bfbb0472d5c5e74571 14-Nov-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE when cursor is null" into lmp-mr1-dev
74b5d6ce8300ae5009938b8f846688b5950215fb 13-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE when cursor is null

Fix JoinContactLoader background loader to null-check returned cursor before
wrapping in a JoinContactLoaderResult CursorWrapper. Change
JoinContactListFragment to in turn check for a null JoinContactLoaderResult.

Bug:18373971
Change-Id: Ib973d1609ba4e555a98b2b9b8c07bd7e5e4e3601
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/JoinContactLoader.java
929a62f5c1bcdc3773270f7d189d88c0464b36ad 13-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in background thread

Check for null mContactData in doInBackground AsyncTask inside
extractAndApplyTintFromPhotoViewAsynchronously.

Bug:18373677
Change-Id: Ifab23b53da9689a7ab690cc160c2618b5c192a00
ndroid/contacts/quickcontact/QuickContactActivity.java
8f39429b533d35502182a1e7bd6220e65e7e7532 13-Nov-2014 Brian Attwell <brianattwell@google.com> Merge "Improve content descriptions a bit" into lmp-mr1-dev
be360b049f316885ffbcdd37bd91a86356ac3811 13-Nov-2014 Brian Attwell <brianattwell@google.com> Merge "Revert "Keep landscape quickcontact title on screen"" into lmp-mr1-dev
8c8cafb21cebbea33468c068efacea6c77635811 13-Nov-2014 Brian Attwell <brianattwell@google.com> Improve content descriptions a bit

* Don't apply content descriptions to empty images
* Content descriptions for mimetype images consistently
omit the word "section". Ie, "email" instead of "email section".

Bug: 18004959
Change-Id: I9d74b78dda7f071a0e7bdefe38eda3ad4b136fd2
ndroid/contacts/editor/KindSectionView.java
0b2f8cfd45499d8cbc12f992a5cb8154d4a5f926 12-Nov-2014 Walter Jang <wjang@google.com> Set snippet/data/phonetic textview text alignment to start

Bug 18268394

Change-Id: I9caa9ac5ae4a7df892e546413d7e9dce79ed3f31
ndroid/contacts/common/list/ContactListItemView.java
2c47b340b8d160b23de100e11df17ba68d9b2c86 13-Nov-2014 Brian Attwell <brianattwell@google.com> Revert "Keep landscape quickcontact title on screen"

This reverts commit d9ce069a8d6d240c8347919b7ecba6f5fc74b461.
In order to finish b/17417615, we needed to make some additional
design changes. Instead, lets revert the first CL and work
on this bug later.

Bug: 17417615
Change-Id: I0acd95eb437d5d7a327605eb89e7c3f5d1699d22
ndroid/contacts/widget/MultiShrinkScroller.java
da71919dcd16754cb378fc664967f4b278431c70 12-Nov-2014 Brian Attwell <brianattwell@google.com> Material design readonly editor

The readonly edit screen is a strange beast. At most, it
only shows fields for phones, emails, photos and
names even if more data is available. This CL updates
the appearance of these fields.

Bug: 18004959
Change-Id: I25847483cef36bb4c98f4b169970344b90e63add
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
fa399a556d1dbfb6b1bf6985f137d23ec7c352af 12-Nov-2014 Wink Saville <wink@google.com> Merge "Update SubscriptionManager API as per API council." into lmp-mr1-dev
5daa38f7d4d6ec2f548be0dc45b47a080f5dadd4 12-Nov-2014 Brian Attwell <brianattwell@google.com> Merge "New design for photo editor" into lmp-mr1-dev
7f7c9c7228cee999f4f1baf6f0d420c3059d9b48 06-Nov-2014 Wink Saville <wink@google.com> Update SubscriptionManager API as per API council.

bug: 17575308
Change-Id: Ib39a60e4f75981a466e9d606ec627756efad018d
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
18673ee9ead95034a1b4c3a9034787eab6cff318 03-Nov-2014 Ihab Awad <ihab@google.com> Update PhoneAccount icon API (2/6)

Bug: 18291787

Change-Id: I80252faaa5a836031d72eb99fe90d2f9aad27460
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
7e67082d3f7c4ab56945040c0e4617b71c7e5f0b 08-Nov-2014 Brian Attwell <brianattwell@google.com> New design for photo editor

The photo editor field now looks like the mocks. It includes
a RadioButton that allows users to choose which photo is
primary. This RadioButton only appears if more than one raw
contact has a photo inside the contact.

Additional changes:
-fixed non-regression that made it impossible to
set some photos as primary
-fixed non-regression that made it possible for multiple
photos to appear as primary
-I fudged with a bunch of padding values in order to
compensate for View insets and paddings. This can't always
be done perfectly, since some insets/paddings vary based
on screen-configuration. I needed to start taking fudging
with these paddings in order to make the photo editor look
consistent with the other editor fields.

This CL doesn't bother ensuring the readonly photo edit
field looks good. This will be done in a later CL.

Bug: 18004959
Change-Id: I683f3ffa8e7f8683c2c083a2b4592b2b95c58c63
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/PhotoActionPopup.java
ndroid/contacts/editor/PhotoEditorView.java
3d7edc3ef4f2521639bae91c93a8238e5a9509c1 10-Nov-2014 Jay Shrauner <shrauner@google.com> Fix ArrayIndexOutOfBoundsException crash

Bug:18305135
Change-Id: I8a562bebb217d278c84662b5057e786e62ce8a3f
ndroid/contacts/ContactSaveService.java
c300521331c04767cd19dfe05ab77567514bbaa0 06-Nov-2014 Brian Attwell <brianattwell@google.com> Use larger photo in contact editor

Increase the size of the photo in the contact editor.
This means we can no longer rely on thumbnails. We
now need to load contact photos from Uris.

Bug: 18004959
Change-Id: Ice2099998194adad9336c5d90e9873a230ca4bd5
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhotoEditorView.java
5206106f33a1793821052bb2c9892d47150ff358 06-Nov-2014 Yorke Lee <yorkelee@google.com> Fix build break in AOSP Dialer

Bug: 18158037

Change-Id: If67f5a7ec8c18d89d0b3ce16bc06b895a23406fe
ndroid/contacts/commonbind/analytics/AnalyticsUtil.java
2ebade8924bb6d2734b603938f418959cc79e2ad 05-Nov-2014 Brian Attwell <brianattwell@google.com> Editor name fields

The mocks show all name fields collapsed into a single field.
After deeper inspection, this proved to be poor UX. Instead
we show the three name types inside a single name section.

Screenshot: go/ba_screen_captures/contacts/b18004959_edit_screen_material/name_fields.png

Bug: 18004959
Change-Id: Ic06abcd151a64746cce32832b27e8f47ec6b981d
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ae31ccc37b6ab77d8ba7f88945e38f9ffb166741 05-Nov-2014 Nancy Chen <nancychen@google.com> Merge "Modify Select Account Dialog to align with UI mocks." into lmp-mr1-dev
043fba637b421dcd554c634f769f0e883fb5ff8b 30-Oct-2014 Brian Attwell <brianattwell@google.com> Material design of common edit screen fields

The normal edit screen fields, such as phone number and location,
have been updated to look like the new Material design mocks. I expect
this to be the largest CL needed to finish b/18004959.

Aspects of the Editor that haven't been touched in this CL
- readonly editor
- collapse nickname and phonetic name into StructuredNameEditorView. Then make
sure the layout is correct
- photo editor
- Material insert/delete interpolators (maybe fast_out_slow_in)
- account header

Some complicated/weird parts of the CL:
-KindSectionView no longer displays an "Add details" button. Instead
it always shows an additional empty row for each mimeType. The logic
that handles this is mostly inside #updateEmptyEditors(). A lot of code
could be deleted from RawContactEditorView because of this.
-LabeledEditorView's adapter displays TextView's inside Spinner. In order
to make the TextViews look like EditTexts, I set the EditText's background
(so the 9patch padding is used) and then later remove the background.
-Instead of keeping an expansion_view_container in every single field,
I only kept it where it was needed. As a result, I needed to add
null checks into the TextFieldsEditorView base class.
-I made an effort to reduce the depth of the view hierarchy and reduce
the use of LinearLayout weights for performance reasons, when it was
easy to do so

Bug: 18004959
Change-Id: I5934ca189b66468834faf3bb995b172ae2f90bed
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
8f9d84fffbc32b50cf3133b2340b18d0510a6c6e 04-Nov-2014 Brian Attwell <brianattwell@google.com> Remove field when removing the only char

This allows us to make a simplifying assumption for b/18004959.
After this, we can assume that updateEmptyEditors is never called
with emptyEditors.size() > 1 and findFocus() == null.

Bug: 18004959
Bug: 18194655
Change-Id: Idaf2c64bf3d359c1aa8938150a6cda3684542d42
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
8464756c50113c5b2e19485e737b2430d3c5dfd5 04-Nov-2014 Nancy Chen <nancychen@google.com> Modify Select Account Dialog to align with UI mocks.

+ Additional line for the phone number
+ Support optional title (for phone calls it will be titled "Call With")
+ Tweaks to make it more visually appealing.

Bug: 18204058
Change-Id: Ie2c0fce0b20cf5e889cb17254bc6462ed4fb6438
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
155ef41fe68ac75fab69481d051f61c181ff881b 31-Oct-2014 Stuart Scott <stuartscott@google.com> Clean up public API of SubInfoRecord.

bug: 17575308
Change-Id: I80472fe13887b6ed3bfc422abbbe4644a6d6dcf5
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
5d2e262ab3658118a12fbf6d0edab76484368c24 03-Nov-2014 Walter Jang <wjang@google.com> Make it easier to delete a contact

* Add delete menu item to quickcontact overflow menu
* Promote delete menu item on edit contact activity
from overflow menu to show as action

Bug 18061876

Change-Id: I3f99e1cd00151b968a157ff818bf977c0be15eb2
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
1fd7e1e789c4a6ba8c81d9056b73a9237e2ee921 03-Nov-2014 Walter Jang <wjang@google.com> Merge "Guard against null messages when constructing telephone ttspans" into lmp-mr1-dev
2e637f7e2dad8f0c31088986ac2e7ecdb9930427 03-Nov-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in getTargetFileForDisplay" into lmp-mr1-dev
bd72e369b0050997fe272f8ceae4ca9aa41fbe5f 03-Nov-2014 Walter Jang <wjang@google.com> Guard against null messages when constructing telephone ttspans

Bug 18217519

Change-Id: I1903422f285831b66eeb39787cc5a7898a3800b1
ndroid/contacts/common/util/ContactDisplayUtils.java
714ee29c22ab76d20a13231d0f4686f0aa5164e1 03-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE in getTargetFileForDisplay

Check for null string before calling BidiFormatter.unicodeWrap

Bug:18216877
Change-Id: I979b38cc508d44e82978e0684190797f9bd8807e
ndroid/contacts/common/vcard/ExportVCardActivity.java
b5047da9c81ed5ee593d0fbd05ca29e0e0777629 01-Nov-2014 Jay Shrauner <shrauner@google.com> Fix NPE when intent is null

Bug:18209396
Change-Id: Ia6678f13387471a4865f32b64ca02beedd4d0f2e
ndroid/contacts/common/location/UpdateCountryService.java
675bcfb095029c9018662dee31adf1e189f37548 31-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Fix analytics in Contacts app" into lmp-mr1-dev
d46781c636ef01a38e7aa8e97f0e246958e83d61 31-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Improve analytics" into lmp-mr1-dev
0da93008e49306e99a90b114b7f8a60c78774fc3 31-Oct-2014 Brian Attwell <brianattwell@google.com> mutate() BitmapDrawable before directly editing

ExpandingEntryCardView directly modifies BitmapDrawables instead
of calling ImageView#setTint(). This was convenient, but had
the side affect of preventing re-use of these BitmapDrawables
with different tints.

Now that we want to share the same BitmapDrawables inside the
edit screen, we need to call mutate() on these drawables before
editing them in order to avoid affecting the tint in the edit
screen. Alternatively, we could change ExpandingEntryCardView
to use ImageView#setTint() instead. But this is more work.

Bug: 18004959
Change-Id: I5c0e33348cf538a69a10802a6205ad36fc548d54
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
913e18a7d53132fefb59229574cd329c9935b85f 30-Oct-2014 Brian Attwell <brianattwell@google.com> Update edit screen ordering

Bug: 18004959
Change-Id: I363955932b6c971ee789b172681523e54e3042a6
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/ExchangeAccountType.java
ndroid/contacts/common/model/account/GoogleAccountType.java
4823a293739240978e6dc7a36d6dd4eaee7f9699 30-Oct-2014 Nancy Chen <nancychen@google.com> Merge "Making a subclass for InCallUI uses of MaterialColorMapUtils." into lmp-mr1-dev
c2e912c41b4f0fc4ca4b948b6d0aaa84eeb8d1d9 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
ndroid/contacts/common/activity/TransactionSafeActivity.java
ndroid/contacts/common/dialog/ClearFrequentsDialog.java
ndroid/contacts/common/dialog/IndeterminateProgressDialog.java
ndroid/contacts/common/editor/SelectAccountDialogFragment.java
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/vcard/CancelActivity.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/NfcImportVCardActivity.java
ndroid/contacts/common/vcard/SelectAccountActivity.java
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsActivity.java
ndroid/contacts/commonbind/analytics/AnalyticsDialogFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsInterface.java
ndroid/contacts/commonbind/analytics/AnalyticsListFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsPreferenceActivity.java
ndroid/contacts/commonbind/analytics/AnalyticsPreferenceFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsUtil.java
a3e498a1d189010791f98183c1267d869f0d941b 27-Oct-2014 Brian Attwell <brianattwell@google.com> Fix analytics in Contacts app

Remove dependencies on old analytics code.
Initialize analytics inside ContactsApplication.

Improving analytics CL #3/4

Bug: 18039620
Change-Id: I115315519ad245ff199bcf532270f56b9a2d6b61
ndroid/contacts/ContactsApplication.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
1a21fe5123f737bee9f47b27de944825aba9c459 16-Oct-2014 Walter Jang <wjang@google.com> Set TtsSpans on names and snippets that could be phone numbers

Bug: 17322140

Change-Id: I9afa9c59e1db6c5ad7123bdb37d288fa64faeddf
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/util/ContactDisplayUtils.java
e8c0131bb59e1c8a4232e281d444f6e21f21932c 29-Oct-2014 Nancy Chen <nancychen@google.com> Making a subclass for InCallUI uses of MaterialColorMapUtils.

Removing a method previously used for InCallUI in favor of creating a
subclass.

Bug: 17971273
Change-Id: I1c6c1654a14398940a58f29f10fc17b00d62f76c
ndroid/contacts/common/util/MaterialColorMapUtils.java
7ce5352a70e8aaf120bf4f7bd05d595f46abb080 29-Oct-2014 Walter Jang <wjang@google.com> Apply TtsSpan to known phone numbers in contact interactions

The primary content description in ContactInteraction must be
made a Spannable so that the TtsSpan can be progated from the
Loader (where the ContactInteraction is constructed) up to the
ExpandingEntryCardView.

Bug 17322140

Change-Id: If668f27cab20822f3c80aab606089e6b6f2a96c0
ndroid/contacts/interactions/CalendarInteraction.java
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/ContactInteraction.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
8a3fe52802135be2402a5b216325615fb796a509 16-Oct-2014 Walter Jang <wjang@google.com> Sms and call log entry content description string fixes

* This is incremental work to fixing TalkBack for
all phone number Strings
* Date was being added twice to the call log content
description string
* Use xliff tags for all parts of both the sms and call log
content description strings
* Removed an unnecessary ExpandingEntryCardView constructor

Bug 17322140

Change-Id: Iccc39dad5dcc3fc7f8079de439b07d306b6c24e3
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/CallLogInteractionsLoader.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/interactions/SmsInteractionsLoader.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
3450ad4d2624c73f6a6bdf3561a4c14134bec05a 29-Oct-2014 Ihab Awad <ihab@google.com> Merge "PhoneAccounts include literal icon bitmap (2/4)" into lmp-mr1-dev
d1360e143c30dcf357d19f2a671b2099544079aa 24-Oct-2014 Ihab Awad <ihab@google.com> PhoneAccounts include literal icon bitmap (2/4)

Change-Id: Id0b4ef5db7cbba40344096c08c6c27bd361802a4
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
5e29d6ea29800f738035e8e6e6e0ae9707836c1c 27-Oct-2014 Nancy Chen <nancychen@google.com> Extract default InCallUI colors for display.

Because we are now dynamically setting the InCallUI color, we need to
be able to get the default InCallUI color for display.

Bug: 17971273
Change-Id: I99101510662dcd920228ae6275bed35646d807c6
ndroid/contacts/common/util/MaterialColorMapUtils.java
9a47c57646780d7ea4aad4e810d4e25ed611600f 28-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Avoid Resources$NotFoundException" into lmp-mr1-dev
841c333c527c087894c093ec0ad51d331e457625 27-Oct-2014 Brian Attwell <brianattwell@google.com> Avoid Resources$NotFoundException

I'm guessing that this bug was being caused by doOnPreDraw()
callbacks occuring after rotation (the monkey links 404, so it
is hard to do more than conjecture)? To fix this: define the
resource for both landscape and profile. To make this more
testable: load quickcontact_landscape_photo_ratio during
contruction instead of inside an asynchronous callback.

Additional cleanup: don't use two different ways to determine
whether we are in landscape mode. This wasn't causing a bug
that we know of.

Bug: 18102632
Change-Id: I1f27d873ca71be28de7a1e59aa628c4696cb4c89
ndroid/contacts/widget/MultiShrinkScroller.java
fb21341434e2566d58b5c3ed8735ea2abc824429 27-Oct-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in onPageSelected" into lmp-mr1-dev
0b267fec5cb5b2d836057b16d0085be349be5243 24-Oct-2014 Brian Attwell <brianattwell@google.com> Fix blackened background screen

Commit ag/544274 was a hack suggested by someone on the Window Manager
team to work around one of their minor issues. Its use in QuickContacts
contains a flaw. Even without this flaw, I'm still nervous about
using this code.

I can no longer reproduce b/17388576. So we may as well revert
this CL and fix b/17428798.

this reverts 2e6387f0bef606bb4be3facaedeafd080156d6c6
Bug: 17428798
Change-Id: I3c4268cfd6a8a616c3179811b933b9f42f7e3867
ndroid/contacts/quickcontact/QuickContactActivity.java
8545504127c5e3866ef618a9f14029784203c8f8 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
ndroid/contacts/common/list/ViewPagerTabs.java
f187d2eb252d77277ce20f527128619b227d4933 24-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Clicking in the top 56dp of QC card now expands it" into lmp-mr1-dev
d46d90548e91efd39f42c9a33e0c503c188cd618 23-Oct-2014 Wink Saville <wink@google.com> Change subId to int from long

Change-Id: Idae6335e63e7b1e4e714bc17e71b1a4705e38474
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
954e744f20ee4598151c10c83787792f7da62964 23-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Use Material theme for ShowOrCreateActivity dialog" into lmp-mr1-dev
812c690066a95ddee7f100be2cfad7c13f8146bd 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
ndroid/contacts/common/activity/TransactionSafeActivity.java
ndroid/contacts/common/dialog/ClearFrequentsDialog.java
ndroid/contacts/common/dialog/IndeterminateProgressDialog.java
ndroid/contacts/common/editor/SelectAccountDialogFragment.java
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/vcard/CancelActivity.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/NfcImportVCardActivity.java
ndroid/contacts/common/vcard/SelectAccountActivity.java
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsActivity.java
ndroid/contacts/commonbind/analytics/AnalyticsDialogFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsInterface.java
ndroid/contacts/commonbind/analytics/AnalyticsListFragment.java
ndroid/contacts/commonbind/analytics/AnalyticsPreferenceActivity.java
ndroid/contacts/commonbind/analytics/AnalyticsPreferenceFragment.java
e4c2f549b6fe20ae65a8ae1097fabe5f22b5750d 23-Oct-2014 Brian Attwell <brianattwell@google.com> Use analytics activities and fragments

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

Bug: 18039620
Change-Id: Ia550263640f60bc3f7daa7e85cd9f612f0dfc8a8
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
1f9f48d413810c01b4daaebfe398a1bb875ea10a 23-Oct-2014 Jay Shrauner <shrauner@google.com> Merge "Fix ActivityNotFound crash" into lmp-mr1-dev
97625364f1a8bca4501caad3e956dd9598ef3d07 23-Oct-2014 Nancy Chen <nancychen@google.com> am 90917145: Add an option to set the selected phone account as the default. (3/3)

* commit '90917145825ca7e8e34d407c72c80a15300fafdc':
Add an option to set the selected phone account as the default. (3/3)
593e5a7f2551b7946ada9913408f649e530202c8 23-Oct-2014 Brian Attwell <brianattwell@google.com> Show SIP address on tablets

Bug: 18091297
Change-Id: Iad9e39f5c0cd12cf3c5f6620d98e79e770894d47
ndroid/contacts/quickcontact/QuickContactActivity.java
fdb76beef577c84d3a8a0ef28df051f11b91763e 22-Oct-2014 Nancy Chen <nancychen@google.com> Add an option to set the selected phone account as the default. (3/3)

Modify the phoneAccountSelected method to support the option to set the
selected phone account as the default for outgoing phone calls.
Add checkbox to the select account dialog for user interaction.

Bug: 18078232
Change-Id: I7e6af5238fe2ff95d7f1e0622f7fa24111147f4e
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
1c8065448ec1fcbb0906ffdaa9678bce9cc98fbd 22-Oct-2014 Brian Attwell <brianattwell@google.com> Clicking in the top 56dp of QC card now expands it

Bug: 17625782
Change-Id: Idb2523379be4f25ba3a9daad008874e4bec087ea
ndroid/contacts/widget/MultiShrinkScroller.java
417309a770568d7b278abc91c46a739020e48157 22-Oct-2014 Jay Shrauner <shrauner@google.com> Fix ActivityNotFound crash

Show toast when no activity is enabled to handle intent.

Bug:18086629
Change-Id: Id17dac1872fc9ab81b02295c5f8edffa649fbcca
ndroid/contacts/quickcontact/QuickContactActivity.java
a4bdc951c80e5cd6468a790691133bb5d74eb622 22-Oct-2014 Jay Shrauner <shrauner@google.com> Fix NPE in getKindTypeColumn

Need to check hasKindTypeColumn before calling getKindTypeColumn.
Use TextUtils.equals for null safe string comparison.

Bug:18085367
Change-Id: I436b7b0843844d7041a572f0501cdf88baa059e4
ndroid/contacts/common/model/dataitem/EventDataItem.java
ndroid/contacts/common/model/dataitem/RelationDataItem.java
53e4201f992cef0e27db221d2857c8fc6bf1f176 22-Oct-2014 Brian Attwell <brianattwell@google.com> Use Material theme for ShowOrCreateActivity dialog

Bug: 16823509
Change-Id: I96ec9d0f01bf65c3abe06bd5146242e4a0f2bd97
ndroid/contacts/activities/ShowOrCreateActivity.java
467aa45fbba4b30f94af675d3d80826e6d4eb5d5 22-Oct-2014 Jay Shrauner <shrauner@google.com> Fix NPE when custom protocol is unset

Bug:18086070
Change-Id: I1325426425c3eadf574132982a0ca6386e2dfd53
ndroid/contacts/common/model/dataitem/ImDataItem.java
b2215766433478ac1c53d61c08f4844326dfe4f8 22-Oct-2014 Jay Shrauner <shrauner@google.com> Fix NPE when calling unicodeWrap

unicodeWrap isn't null safe so check before calling

Bug:18086401
Change-Id: I74537fff226276733b0475029b4a4a57a0055244
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/SmsInteraction.java
3560f9348c973483307e4f2b64487dcc27739215 21-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Only display calendar events with last_synced=0" into lmp-mr1-dev
6446d83a0041ca56a23a43f74ab3ebc1d3ab8e82 20-Oct-2014 Brian Attwell <brianattwell@google.com> Only display calendar events with last_synced=0

Bug: 18034745
Change-Id: I98e7182c52e1cb58b354952c3788f1770d1d368e
ndroid/contacts/interactions/CalendarInteractionsLoader.java
20ffd99740d8ffb05401be733f6c74731196f1bc 20-Oct-2014 Yorke Lee <yorkelee@google.com> Merge "Add method to BitmapUtil to return cropped + round photos" into lmp-mr1-dev
59a585b78d061c84367ec24c71e137fae55d10ce 18-Oct-2014 Brian Attwell <brianattwell@google.com> Fully reload recent interaction data after resume

Bug: 17361583
Change-Id: I8716c17a7a9f89006b823baacf49d32044d7a34d
ndroid/contacts/quickcontact/QuickContactActivity.java
e625b22320e368e0a1f6c8f25363f9f4e04dbd50 18-Oct-2014 Yorke Lee <yorkelee@google.com> Add method to BitmapUtil to return cropped + round photos

Bug: 18021170
Change-Id: I89315dfc7787d37cd622b89ac83f852eb89ce527
ndroid/contacts/common/util/BitmapUtil.java
1c82437024e98fcc126f9493c1db515db5994212 18-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Improve appearance of export file path" into lmp-mr1-dev
9f5be98a0629e8db7cab36f58c2f5b490ef741ae 17-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Copy display name into Organization entry" into lmp-mr1-dev
f0a4cf6c9109d134a2ff5107099711919386ee7a 17-Oct-2014 Brian Attwell <brianattwell@google.com> Improve appearance of export file path

I fixed two issues
1. We were using two kinds of numerals in the file path, arabic
and english. Lets just stick with english numerals
2. English numerals are "weakly LTR" characters. Therefore,
having the following formatting 0001.vcf is equivalent to
<weak ltr chars><neutral chars><strong rtl chars>. This results
in weird rendering, since the default locale is RTL. Fix: put
the url in a LTR embedding.

Bug: 9195099
Change-Id: I1260a3430d7d3a0c029c1a1ac5ffcc421b08a98a
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/VCardService.java
ab22b8260746fb24195b7060ad9bc51c3cb519cd 17-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Call finish() in QC if contact doesn't exist" into lmp-mr1-dev
144bec245398260cd80baf36a67e132fa6166535 17-Oct-2014 Brian Attwell <brianattwell@google.com> Don't open a single contact after importing 50

The vcard import notification shouldn't open a single contact,
on click, if more than one contacts where imported.

Bug: 17243892
Change-Id: I3f00b0fbbdb658d4f2165935beee35994393af17
ndroid/contacts/common/vcard/ImportProcessor.java
ndroid/contacts/common/vcard/NotificationImportExportListener.java
d829b5fb95032e4101da65a78fc1e5522423115b 17-Oct-2014 Brian Attwell <brianattwell@google.com> Use brand colors in import/export notifications

Use Dialer/Contact's theme color (stored in the poorly named
dialtacts_theme_color variable).

Bug: 17424753
Change-Id: I0a743188de31a75d347843c78df8cbf55012ffaa
ndroid/contacts/common/vcard/NotificationImportExportListener.java
e40f8c3af2210bb632d6b0776c05570cd21a18f6 17-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "RTL support in starred contacts" into lmp-mr1-dev
b9bd549d7bbb74411c27cea332b5c86250cc48a4 17-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Map MenuItems to ViewPager tabs correctly in RTL" into lmp-mr1-dev
fc423b4040a0ec1728ee32ff40ef430f3e16e9dc 17-Oct-2014 Brian Attwell <brianattwell@google.com> Copy display name into Organization entry

For corporate directory lookup entries, don't copy the organization name
into a structured name field. Instead, copy it into the organization field.
This way, we will still be able to guess that the contact represents an
organization.

Bug: 17309754
Change-Id: Ibdaa12e8ca357b6935a879f8875bab5785d83f43
ndroid/contacts/quickcontact/QuickContactActivity.java
b78a98444724d7d705fcd9fbb80c5dc8c46016b4 17-Oct-2014 Brian Attwell <brianattwell@google.com> am f6e40485: Merge "Allow importing contacts from mulitple sims" into lmp-sprout-dev

* commit 'f6e4048588b0a848886736862b0e273b48e55cd1':
Allow importing contacts from mulitple sims
8a6d9f72ae3e9d648ee99965637872aaf04591d5 17-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Allow importing contacts from mulitple sims" into lmp-sprout-dev
c07c8bb87a95877904fc79d6a9e75e779fff2f99 06-Oct-2014 Brian Attwell <brianattwell@google.com> Allow importing contacts from mulitple sims

There are multiple options we may need to display under Import/Export
for SIM cards

1. If only one sim card, display "Import from SIM" option

2. If multiple SIMs, display "Import from SIM, <name> - <phone-number>
for each sim subscription.

3. If a sim subscription doesn't have a known phone number, display
"Import from SIM, <name>" for the sim subscription.

Bug: 16525652
Change-Id: I73b3c45be116c75d597727f4b31ccf2d0e61c623
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
930da3ae6e392777986ed0722c5480caf1bd9e7e 17-Oct-2014 Brian Attwell <brianattwell@google.com> Call finish() in QC if contact doesn't exist

Bug: 17946654
Change-Id: I1550b1007c4daaa1022297556831db7bedcbaac0
ndroid/contacts/quickcontact/QuickContactActivity.java
9203788d3f55e84d55db4c5a87bbbf1fa1e36b43 17-Oct-2014 Brian Attwell <brianattwell@google.com> Map MenuItems to ViewPager tabs correctly in RTL

Also improved the handling of the mContactsUnavailableFragment in RTL.
The tabs still don't work perfectly in RTL for mContactsUnavailableFragment,
but this isn't a regression (and proved very tricky to solve without
changing the design). I'll file a bug for the remaining work after
checking this in.

Bug: 18011426
Change-Id: I695018464625f3f8329a33882d2d728f61c3b110
ndroid/contacts/activities/PeopleActivity.java
5fa9b1ee4528e3dcf7916dcf7f4d67d73f764f33 16-Oct-2014 Nancy Chen <nancychen@google.com> am 85a5b87c: Add utilty method to get voicemail intent.

* commit '85a5b87ca9e2064abd8acc194004ffebd8827b17':
Add utilty method to get voicemail intent.
c946ecab1110f477bacc8d4d27c85c2821fae91d 16-Oct-2014 Brian Attwell <brianattwell@google.com> RTL support in starred contacts

See photos in bug

Bug: 18013005
Change-Id: I035369009d1e4b7bbbacc2985697b167b1d59ef0
ndroid/contacts/common/list/ContactTileAdapter.java
d9ce069a8d6d240c8347919b7ecba6f5fc74b461 16-Oct-2014 Brian Attwell <brianattwell@google.com> Keep landscape quickcontact title on screen

When QuickContacts opens partially offset from the top of
the screen, the title should be visible. To do this, I
offset the title padding by the amount that QuickContacts is
offset from the top of the screen, up to a maximum amount
equal to the starting QuickContact offset.

See bug for demo mp4s.

Bug: 17417615
Change-Id: Ie39c130c23c9541bdd912bbb406a9bae0966e965
ndroid/contacts/widget/MultiShrinkScroller.java
7d1fa7df21b65c0f8ee1669911c3ded09daea81b 16-Oct-2014 Nancy Chen <nancychen@google.com> Add utilty method to get voicemail intent.

Voicemail intent is just a URI with a "voicemail:" scheme. Create this
intent using the call utils.

Bug: 17925501
Change-Id: I8e368d3b006190e910ae46d82e80c6603f5a42c4
ndroid/contacts/common/CallUtil.java
b76f86d1a416522bac1f88ec4aa9a574ac58cfb1 10-Oct-2014 Brian Attwell <brianattwell@google.com> Fix inserting photos into unwriteable contacts

When someone tries to ATTACH_DATA a photo onto an unwriteable contact,
insert a writeable raw_contact into that contact in order to
make this possible.

Sometimes we need to prompt the user to set their backup account,
which is a bit awkward.

Testing: I manually tried inserting photos into an unwriteable contact,
in the following ways:
* Only having a witeable account on the phone (WhatsApp and nothing else)
* Not having a writeable account on the phone and opting to store locally
* Not having a backup account set, and choosing the default when
inserting a photo
* Not having a backup account set, and not choosing the default when
inserting a photo
* Having a backup account set (this is the case from b/14577185

Bug: 14577185
Change-Id: I9b8b5f5108725e8b69b58fd12f7aaa52d2a7d531
ndroid/contacts/activities/AttachPhotoActivity.java
97b1e2d6206ad8f64af6bc935451654204706661 13-Oct-2014 Paul Soulos <psoulos@google.com> Fixes a renaming bug (renamed instantiation without refactoring uses)

Change-Id: Ibf28eeadd3c1f2b0e248d12c838c6515924751b7
ndroid/contacts/quickcontact/QuickContactActivity.java
6a2a1a7d87cd3c59d0e09abce0739ab4175a670e 11-Oct-2014 Paul Soulos <psoulos@google.com> Adds secondary actions for hangouts and g plus

bug: 17374362
Change-Id: Ib4535669737d4132dede07e39aa61e29cc94e5b5
ndroid/contacts/quickcontact/QuickContactActivity.java
4ab296bf80193ddb77909cebd0e539ab0e899e5a 10-Oct-2014 Elliott Hughes <enh@google.com> Fix internationalization of percentage formatting in ContactsCommon.

Bug: 15476051
Change-Id: I70180503e552d6aa9e32552f7178f3b723181dde
ndroid/contacts/common/vcard/NotificationImportExportListener.java
711c3440e01df8fc0a94fbc411195184d9d7cdfc 09-Oct-2014 Brian Attwell <brianattwell@google.com> Better INSERT_OR_EDIT contact-picker title

The title is now "Add to contact" instead of "Choose a contact".

Bug: 17390969
Change-Id: I6955561823709de0264de6b2e2a55e6994f28ab5
ndroid/contacts/activities/ContactSelectionActivity.java
d3956f95ebddeb4d89fbbdc8f6fa5dd2b5503c27 09-Oct-2014 Brian Attwell <brianattwell@google.com> Merge "Stop rejecting valid flings in quick contacts" into lmp-mr1-dev
bf2854dda8e57835ae09a286639912b212ee8746 09-Oct-2014 Brian Attwell <brianattwell@google.com> Stop rejecting valid flings in quick contacts

I continue to regret basing MultiShrinkScroller off of
ScrollableViewGroup instead of directly basing it off of the
less buggy ScrollView code.

* Previously we only tracked velocity inside onTouch.
Now, we will also track it in onInterceptTouchEvent, similarly
to ViewDragHelper. This will result in double tracking of
some events. This isn't a problem: VelocityTracker.cpp considers
the timestamp when performing the velocity calculation.
* Don't dismiss vertical flings simply because they also contain
a horizontal fling

Bug: 17919260
Change-Id: Ic0e512633dd6d99b1e55adfb56a57e4f170f2e73
ndroid/contacts/widget/MultiShrinkScroller.java
1821c25dec2babbd6e82d9b280fc5295e4fbf96e 08-Oct-2014 Nancy Chen <nancychen@google.com> Generalize select account dialog for usage anywhere in dialer (2/2)

Currently the select account dialog is specific to InCallUI, but there
are other places in the dialer app that will need the user to select an
account (e.g. MMI pin) so we want to reuse this dialog.
+ Move dialog to ContactsCommon
+ Add a listener to the SelectPhoneAccountDialogFragment class

Bug: 17917937

Change-Id: I4756daf40a518e12ac19d97bc09e62647de422b4
ndroid/contacts/common/widget/SelectPhoneAccountDialogFragment.java
b831b14466d640fe260ba2e752c88c7fcd62a14b 04-Oct-2014 Brian Attwell <brianattwell@google.com> Don't crash QuickContacts because of null uri

When composeQuickContactActivity() is passed a null uri, then
startActivity throws the following exception:

ActivityNotFoundException: No Activity found to handle Intent
{ act=android.provider.action.QUICK_CONTACT flg=0x20000000 (has extras) }

I can't reproduce this. So lets just fix the crash.

Inside contact list fragments, ignore clicks on views bound to null uris.
We don't need to change Dialer. It already handles these cases.

Note that we can't fix this by checking for null URIs inside
ContactEntryListFragment. One of the Dialer subclasses of
ContactEntryListFragment requires null URIs.

Bug: 17807956
Change-Id: I41dd878b23b8cc3e9b8ad49e12675a4da9ced466
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/EmailAddressPickerFragment.java
ndroid/contacts/list/PostalAddressPickerFragment.java
c62cc7931593b4137f8a507689b653e1e15e1260 02-Oct-2014 Brian Attwell <brianattwell@google.com> Display phone numbers as LTR

Also, force some TextView to align with viewStart. Otherwise, when using
a LTR locale some TextViews will have different alignment depending on their
contents. This looks bad.

Bug: 17761636
Change-Id: If40dafc73ae5f4f3c99d985304d426ad59722140
ndroid/contacts/detail/ContactDisplayUtils.java
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
962677f56389b2c12b452135673a85b6f6de7d05 26-Sep-2014 Brian Attwell <brianattwell@google.com> Switch fragment position in RTL

Bug: 17667723
Change-Id: If3705942e38d050bebbebd86a957b201e18e1782
ndroid/contacts/activities/PeopleActivity.java
ae6c7170daf92a91b9a189a985cd6d06817d92bd 25-Sep-2014 Brian Attwell <brianattwell@google.com> Don't let Threads.getOrCreateThreadId crash us

Bug: 17657656
Change-Id: Ifab9743d6dcd4c6c960abc006eb5288f753f429f
ndroid/contacts/interactions/SmsInteractionsLoader.java
f37ba16e057670884e67d3cb6654fac3b29b53d8 23-Sep-2014 Brian Attwell <brianattwell@google.com> Remove click-to-collapse from QC

Bug: 17625895
Bug: 17471953
Change-Id: I3bc8bf3370dc2afd3dc003fc545b73aacacfe93b
ndroid/contacts/widget/MultiShrinkScroller.java
820dbff1b94d28b3c3570019df222179df29916f 23-Sep-2014 Brian Attwell <brianattwell@google.com> Apply max scroll velocity to QC

Bug: 17446457
Change-Id: Iae79e9f41b44ce99c93024f725a5529286590e6b
ndroid/contacts/widget/MultiShrinkScroller.java
c95fbc9827f479f8ba500ba99acb361379328424 19-Sep-2014 Chris Craik <ccraik@google.com> Remove use of ColorMatrixColorFilter.setColorMatrix

bug:17262092
Change-Id: I47214486e0b82f01b8babcac4f2f945f233e761d
ndroid/contacts/widget/MultiShrinkScroller.java
fc98ff91106de05bef5b59c3a21ed4ac724847fe 12-Sep-2014 Paul Soulos <psoulos@google.com> Fixes photo authority issues in Contacts

bug: 17462942
Change-Id: Ie67a2a3643cddff7fe83f1a5571ef027617cfa74
ndroid/contacts/util/ContactPhotoUtils.java
64c1415c31745162edb2541cb1f3e1184c37bd6a 17-Sep-2014 Santos Cordon <santoscordon@google.com> Merge "Use PhoneNumberUtils directly to get emergency number. (1/2)" into lmp-dev
c090d0e135342a667da78d233916700694625333 17-Sep-2014 Santos Cordon <santoscordon@google.com> Use PhoneNumberUtils directly to get emergency number. (1/2)

Bug: 17520392
Change-Id: I49399ab99229ea9bf1b3c1f9cb4766399a8849a9
ndroid/contacts/common/util/PhoneNumberHelper.java
ca619e023c657e9a488a80c7d52a9e2ed219fb30 16-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Call super.bindView() in list subclasses" into lmp-dev
f19dda97bfdef84e3f39ba069a981004a5c797b1 16-Sep-2014 Paul Soulos <psoulos@google.com> Disables the delete menu option on "insert or edit" actions

bug: 17468225
Change-Id: I9c26279cbedfe773d6fbd39ad49470d39ac88f2e
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
073bbdc5274f50d55eb09802e77b82ad7bebe463 16-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Set setIsSectionHeaderEnabled in bindView()" into lmp-dev
a5ad557c82a043f30b5158c565b04450d16850c7 15-Sep-2014 Brian Attwell <brianattwell@google.com> Set setIsSectionHeaderEnabled in bindView()

Bug: 17506125
Change-Id: Iea754d389e8ede27ffc220bc6b8015ac132d45d6
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
c9e810710a7624d645e33ec22e5fb90e30c7780b 15-Sep-2014 Brian Attwell <brianattwell@google.com> Call super.bindView() in list subclasses

Bug: 17506125
Change-Id: Ic3b0227b6fb7095196e6489d838988b442f652a3
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
0a90373fd7d704c6b711e9eadc3a34ae3bcb3127 15-Sep-2014 Yorke Lee <yorkelee@google.com> Remove CallerInfoCache update broadcast intent

Bug: 17499855
Change-Id: I3d7cacf1418d3df21da3abcb7d69bb5441633640
ndroid/contacts/ContactSaveService.java
ndroid/contacts/util/CallerInfoCacheUtils.java
5cf7f01aa00d67edbcd9d65fbfcbc1a4c56f60c3 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
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/list/ShortcutIntentBuilder.java
0319222b43927d4d9ce7e2a9070f3543661b5782 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: I220691c43c87ab69d521a059cf945f7004f23cbf
ndroid/contacts/NonPhoneActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
c23508e6e4740d798147f15c8ce1dff3395079bd 12-Sep-2014 Paul Soulos <psoulos@google.com> Fixes duplicate badges and animating text

bug: 17480284
Change-Id: I58a6464ed71ad46557458d669acd7c32fc37b726
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
fffcf2a8885a328335eb8348d9afb2c9866351ec 11-Sep-2014 Paul Soulos <psoulos@google.com> Revert "Adds solid background to N9 in portrait"

This reverts commit 5f697e2f1815190f8488b73d6a2fdc4f6d1fbe48.

Change-Id: I30e4af9a2b6c8075be9f8a38a987dfd0a5114fed
ndroid/contacts/widget/MultiShrinkScroller.java
2e6387f0bef606bb4be3facaedeafd080156d6c6 11-Sep-2014 Paul Soulos <psoulos@google.com> Removes status bar flash when launching a new intent from the contact card

Bug: 17388576
Change-Id: I1f3f0573de11089f74e024fa2a3510a28a91e56b
ndroid/contacts/quickcontact/QuickContactActivity.java
4cd9ed68dca5f4adeb8ec2065526c18f33af5926 10-Sep-2014 Paul Soulos <psoulos@google.com> Remove animation on see more/see less text

bug: 17445957
Change-Id: I35cacb9a0e3f414ff36b97b2962533da39548332
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
793e73c859ed839c28cc37d80d62bde0a361c78a 10-Sep-2014 Paul Soulos <psoulos@google.com> Forces intents that launch from the Contact card to use a new task.

bug: 17428798
Change-Id: I7c6c35d70da083099849ae793ef8ecd326c181a6
ndroid/contacts/quickcontact/QuickContactActivity.java
7d13d9cec5be388e1e938ca99107c0e863cb83f2 09-Sep-2014 Brian Attwell <brianattwell@google.com> Fix scroll offset calculation for collapsed header

When originally writing the logic that handled flinging and EdgeEffect
it was impossible for contacts viewed inside the Contacts app
to have a collapsed contact photo without the contact photo
touching the top of the window. Now that we have added click-to-expand
and click-to-collapse to the contact photo, we need to handle one
more case.

Bug: 17405547
Change-Id: I0fbad31b96ae7cf182708e9386b5327dfda8a226
ndroid/contacts/widget/MultiShrinkScroller.java
88ebfb9c7ad4602c8f2103773b5dd040c2bab775 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
ndroid/contacts/common/list/ContactTileAdapter.java
5f697e2f1815190f8488b73d6a2fdc4f6d1fbe48 09-Sep-2014 Paul Soulos <psoulos@google.com> Adds solid background to N9 in portrait

bug: 17379653
Change-Id: I2be70fc07ca05f8c1b59f47bf6afc7358dd2716d
ndroid/contacts/widget/MultiShrinkScroller.java
9e1774c9ac0c32d87ced6c0881bab4f498954841 09-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Disable "Place on Home screen" in corp Contacts" into lmp-dev
66965e14e741be40f3f5ad6aa21a75795f9a1eb1 09-Sep-2014 Brian Attwell <brianattwell@google.com> Disable "Place on Home screen" in corp Contacts

Bug: 17363218
Change-Id: Icef9736986b95358cd74655f0d1a8f1d3ab40b7e
ndroid/contacts/quickcontact/QuickContactActivity.java
97f27809c3e6153ce0bc5050bc5ee466a646e8ec 08-Sep-2014 Paul Soulos <psoulos@google.com> Adds setting and clearing primary to long click on phone nums and emails

bug: 17372583
Change-Id: I0aa2b3540cf53fe3ca107ede201424180dc64bb4
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
48290bed7c6a8bd5e7be8b206dddacf9047a945f 08-Sep-2014 Paul Soulos <psoulos@google.com> Dedupes badges in the expanding card

Bug: 17374360
Change-Id: Id498209049f7807d99034e24234a9eb76b3c03a8
ndroid/contacts/interactions/CalendarInteraction.java
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/ContactInteraction.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
0476093877e0cf9076430d40ba90a1313cd1b8f7 07-Sep-2014 Jay Shrauner <shrauner@google.com> Fix NPE when mAdapter is null

Bug:17414016
Change-Id: Id35d0de1a48b38bb4ef32c3f89e47bf2c374dda5
ndroid/contacts/common/list/PinnedHeaderListView.java
ed1a3b2598d3aafb3f9ec8583e231cbe72ea8020 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
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/list/ShortcutIntentBuilder.java
1cd88e3ecfa72f43c3fe25c912d9f67848f11e60 06-Sep-2014 Jay Shrauner <shrauner@google.com> Use framework scheme definitions

Use PhoneAccount defined values for SCHEME_{TEL, SIP, VOICEMAIL}.

Bug:17398074
Change-Id: I798561791f094c8961dfe54dd9019af9a63b4769
ndroid/contacts/NonPhoneActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/PhoneCapabilityTester.java
43ddc89c6f4992e34a5afd8c924cc38c5b563df5 06-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Don't let QC title overflow photo container" into lmp-dev
cf930c704f7e27dd9e8fd0dd7106ad6ff600e409 06-Sep-2014 Brian Attwell <brianattwell@google.com> Don't let QC title overflow photo container

Bug: 17402906
Change-Id: I699edfe025787674516831cfd4427ad2fb80adca
ndroid/contacts/widget/MultiShrinkScroller.java
2ea151c7227385af7f49b01dbac37bdf0e159185 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.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
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
4ded4e736fbecafc09bddd5adb4d38629127bcbd 05-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Support gmail's exchange account type" into lmp-dev
ab538e545529fc187e69aecc0a144a879d8db346 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
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
35eefad58f34831a96b7891d3e5dc869b4d634d0 05-Sep-2014 Yorke Lee <yorkelee@google.com> Merge "Follow ContactsContract API changes" into lmp-dev
056e4a7b42973c0c5c4a35c70b995c007bd68cb7 05-Sep-2014 Yorke Lee <yorkelee@google.com> Merge "Follow ContactsContract API changes" into lmp-dev
9a598ebb26f7d12b681847cdd56c05ff83558933 04-Sep-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API changes

Bug: 17390425
Change-Id: Ia88fb0235a56becc3ec5a770067856311769a68c
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
9d2b6d5bcead8c71e96dcd27bc393e9ee0ec656f 04-Sep-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API changes

Bug: 17390425
Change-Id: Ic35a5b599ec347848128d7babfdcd7151ede6a2e
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
c0a9d748d6c1724405ba2e6c262e6475e67bba4f 05-Sep-2014 Nancy Chen <nancychen@google.com> Merge "Add "SCHEME_VOICEMAIL" as a constant in CallUtil." into lmp-dev
419fed1b064078a9e6a5892db73a40c6d6f382b4 04-Sep-2014 Brian Attwell <brianattwell@google.com> Support gmail's exchange account type

Bug: 17383877
Change-Id: Ic175d456f6b9553a9d3e051c718d5eb37d406b53
ndroid/contacts/common/model/account/ExchangeAccountType.java
942bb004e3648b057b5b6996db2c74587560b9bc 04-Sep-2014 Nancy Chen <nancychen@google.com> Add "SCHEME_VOICEMAIL" as a constant in CallUtil.

We check for the voicemail scheme in InCallUI so add this constant to
ContactsCommon.

Bug: 17363355
Change-Id: Ieb09f7772654ed738fb5127bb6d9fed1246e3a00
ndroid/contacts/common/CallUtil.java
d75daa47c5c1eb1e63802d3b1b6a8a7c3a876da9 04-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Fade QC contact photo more slowly" into lmp-dev
4f4ce6a88af40381ade60824081c9a8571e54afb 04-Sep-2014 Brian Attwell <brianattwell@google.com> Fade QC contact photo more slowly

What the spline looks like: http://jsfiddle.net/rc3rfrgc/

Bug: 17380032
Change-Id: I2edc76b068a3d848a535a6b54e82a2c8e91939dc
ndroid/contacts/widget/MultiShrinkScroller.java
cd493841f7a0e61f48d8080f1c20ad8b7086b4f3 04-Sep-2014 Paul Soulos <psoulos@google.com> Fixes crash for numbers with only symbols

bug: 17375946
Change-Id: Ib83eef3440830c18e3c1b3c5fb66bd02886bf3d8
ndroid/contacts/interactions/CallLogInteractionsLoader.java
d2daa2b9cd691ae5f33605027b77e33d3053a688 04-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Draw background behind contact photo when needed" into lmp-dev
40d7a65c6e68967f3f486715b194c144d93c296f 03-Sep-2014 Paul Soulos <psoulos@google.com> Updates the calendar event query range to 7 days future, 1 day past

bug: 17364127
Change-Id: I85877a1abdbc1098fca1c09c0afae6f9b4f7f0eb
ndroid/contacts/quickcontact/QuickContactActivity.java
5c748642f7a2c88d8ceb5154c9c2803d3f297926 03-Sep-2014 Brian Attwell <brianattwell@google.com> Draw background behind contact photo when needed

When the contact photo might contain some transparent
pixels, draw a background behind the contact photo.

Bug: 17373093
Bug: 17107394
Change-Id: I3f911a80f4822e6429f8006c6711ef020373a271
ndroid/contacts/widget/QuickContactImageView.java
1a686e30919379f621eaafebfda7a08ce9a167f2 03-Sep-2014 Andrew Lee <anwlee@google.com> Merge "Some changes to FAB controller pertaining to animations." into lmp-dev
d2bbc2c5dbb7c0e81721e32031e35703761660da 30-Aug-2014 Andrew Lee <anwlee@google.com> Some changes to FAB controller pertaining to animations.

+ Fade out icon on scale out, so it's resizing isn't noticeable.
+ Add delay parameter for scale in.
- Remove manuallyTranslate function; no longer used.

Bug: 16399233
Change-Id: Ie765e2510c94db57b13f0fc3f7467d29055efafb
ndroid/contacts/common/widget/FloatingActionButtonController.java
c8bd00d2119313e454b2ef55ffaf04db3e257120 03-Sep-2014 Zheng Fu <zhengfu@google.com> Merge "Fix star/unstar on empty contacts by stopping caching them" into lmp-dev
1bbce6450c75fddbd58c1897fa120cb50a6e0151 03-Sep-2014 Paul Soulos <psoulos@google.com> Properly parses all day events in contact card

bug: 17362750
Change-Id: Ie093a094643631ea4f55fbda0fdef26b9d04ef7a
ndroid/contacts/interactions/CalendarInteraction.java
c00a0b5370f0714f6af1ea9b3e29b10f25e91af0 03-Sep-2014 Zheng Fu <zhengfu@google.com> Fix star/unstar on empty contacts by stopping caching them

Bug:17157218
Change-Id: I7c43755b415125c42f14bc1faf21aed64fd34d4d
ndroid/contacts/quickcontact/QuickContactActivity.java
3c8a09988f454a78bbfaf490f6565d4a1d0321f6 03-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Move contactInteractionsToEntries() off UI thread" into lmp-dev
30e1ef1927a1a21370b6b5dedd73540152062475 03-Sep-2014 Brian Attwell <brianattwell@google.com> Move contactInteractionsToEntries() off UI thread

This removes one missed frame from QuickContactActivity's entrance
scroll animation. There is still one more frame that will be missed
because of the re-measuring that occurs after setting the recentCard
and aboutCard VISIBLE.

Bug: 17360983
Change-Id: I7ff6af6de92a984b9d5b38fc33e1de785cd894fd
ndroid/contacts/quickcontact/QuickContactActivity.java
420ea60333d790d80f4a33b6cacfed383882fc00 03-Sep-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in QuickContactActivity" into lmp-dev
5c798a938676726e75b9fc3b02df311d12b613e3 03-Sep-2014 Jay Shrauner <shrauner@google.com> Fix NPE in QuickContactActivity

Return Pair of nulls to callers instead of single null when get invalid
request so that they can dereference first and second without null checking
the Pair object itself.

Bug:17360477
Change-Id: I2a11fe4c39e0004aae95c9240b331a4fa654d58a
ndroid/contacts/common/ContactsUtils.java
85d470376626fa573aa54102db31cdd91a038a9e 03-Sep-2014 Zheng Fu <zhengfu@google.com> Merge "Making display name optional for directory contacts." into lmp-dev
f0d04c11b649e953177e79722d05fa048e53273d 02-Sep-2014 Jay Shrauner <shrauner@google.com> Fix crash with null intent

Bug:17357045
Change-Id: Icb0bc6e161911b7548ea1d23535a2bd4bab88ae9
ndroid/contacts/quickcontact/QuickContactActivity.java
b5ba61de74ae133d203361893a3e5915bd906576 02-Sep-2014 Brian Attwell <brianattwell@google.com> Merge "Circular direct-message shortcut" into lmp-dev
7958e584f79208156771671b3e1a102e2e2f47b4 30-Aug-2014 Zheng Fu <zhengfu@google.com> Making display name optional for directory contacts.

Bug: 17034954
Change-Id: I0ebec04ddad3cc1c8d979b02f834e5d544e8d6f3
ndroid/contacts/common/model/ContactLoader.java
98771ce9e2cc3e60a81c92e486ef39b59b002e82 02-Sep-2014 Brian Attwell <brianattwell@google.com> Circular direct-message shortcut

Bug: 17330895
Change-Id: I344fa0fc2225d0f0fb1bf54e4518047c2c2a92cc
ndroid/contacts/common/list/ShortcutIntentBuilder.java
e81d3b72b9a38416333db75f4b10f5a9b37486b6 02-Sep-2014 Paul Soulos <psoulos@google.com> Merge "Adds TalkBack content details to Contact card" into lmp-dev
dca6ce7639857ee7a19332c8f35dc6cd228102fa 29-Aug-2014 Paul Soulos <psoulos@google.com> Normalizes numbers before a CallLog query in Contact card

bug: 17309747
Change-Id: I49924ff0d7ec3a8fd80acae45b000106e81892c3
ndroid/contacts/interactions/CallLogInteractionsLoader.java
3d3262b5ab49f79ac4e32c8962d4671b9d68d5cc 31-Aug-2014 Yorke Lee <yorkelee@google.com> Fix pinned header jump for first pinned header

Bug: 17333005
Change-Id: I85b2e356c9c1486ef92ba97ec0f461d71ae2cf00
ndroid/contacts/common/list/PinnedHeaderListView.java
23e2836c1e9cbe8996a1344301e69d67bb617891 29-Aug-2014 Paul Soulos <psoulos@google.com> Adds TalkBack content details to Contact card

bug: 17308004
Change-Id: I357c6b508eaa3ef7dbb61be99c09806b322f6770
ndroid/contacts/interactions/CalendarInteraction.java
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/ContactInteraction.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
9bb1a80e499d7c5c673a043011ff921ca58788f7 29-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Square QC contact photo on Volantis" into lmp-dev
ab54ea15274dd3975c82a6aac29ba268aaed0799 29-Aug-2014 Paul Soulos <psoulos@google.com> Change the QuickContacts add flow

Bug: 16127700
Change-Id: I026bb409fc29528cbf9cdb2958aab3e018ef2a71
ndroid/contacts/quickcontact/DirectoryContactUtil.java
ndroid/contacts/quickcontact/QuickContactActivity.java
1e3d3a9a2dd5f1a394bb7163fcefc072da774f5a 29-Aug-2014 Brian Attwell <brianattwell@google.com> Square QC contact photo on Volantis

Bug: 17329968
Change-Id: I8b832cbc2b841de272a1ebecf95fee5ea89f6fe2
ndroid/contacts/widget/MultiShrinkScroller.java
758411b29848fd25eb20d4cb5e227ebc923c6838 29-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Increase size of avatar and bussiness letter tile" into lmp-dev
c73bdd909656067dd45a63e5500e18b462ca6b6f 29-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Correct padding at start of Frequently Contacted" into lmp-dev
1deb532faf5b7e00d42a6c1764147ebda0dd7072 29-Aug-2014 Paul Soulos <psoulos@google.com> Centers the QuickContact card in portrait on large tablets

bug: 16679207
Change-Id: I72f527296d219fcd168f790b82e4517625d9c0ca
ndroid/contacts/widget/MultiShrinkScroller.java
a8fa55d88996d452d4ccc043092924a49279bfad 29-Aug-2014 Brian Attwell <brianattwell@google.com> Increase size of avatar and bussiness letter tile

Don't bother increasing the size of the ic_voicemail_avatar.
This icon isn't used in contexts that require a larger size.

Bug: 17139147
Change-Id: Id0484460cf56f5e04981727648955b0c358c7c02
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
335244b1b15915ca74f15b5f8d571c5055c7882f 29-Aug-2014 Brian Attwell <brianattwell@google.com> Correct padding at start of Frequently Contacted

Bug: 17285107
Change-Id: Ie47077a2a41241b46e8c136f90f9cd9395f14c17
ndroid/contacts/common/list/ContactTileAdapter.java
1c85a9165d9831e536cc1b97ee80f572c3972e06 29-Aug-2014 Brian Attwell <brianattwell@google.com> Fix tablet padding of ContactPickerFragment

The ContactPickerFragment marks its ListView View.GONE until data
is finished loading. This would cause the ContactListViewUtils
to perform incorrect measurements. Change ContactListViewUtils
to measure the root view instead.

Bug: 17305317
Change-Id: I7d6d723fc95ff3d1dbfd5f7311ee38743c072245
ndroid/contacts/common/util/ContactListViewUtils.java
200423195a1d3a372038509b41b98afd7141555d 29-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Use default-corp photos in QC for corps" into lmp-dev
14d479223f59dec06c4090173417e8ff1950a45d 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
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/util/ContactListViewUtils.java
0b5dab7b74c94bbbe243561226a6610919e51cc4 29-Aug-2014 Andrew Lee <anwlee@google.com> Merge "Only animate alignment of FAB if the FAB container is shown." into lmp-dev
955e10d3b07db60791c88f156bb05e568b28f7a2 29-Aug-2014 Andrew Lee <anwlee@google.com> Only animate alignment of FAB if the FAB container is shown.

The bug in Dialer where the FAB is showing up is because it's hidden,
but then being aligned. The alignment causes the FAB to show again.

Bug: 17316942
Change-Id: I180769d51b431b9191bb7d847acd41d4d7e71299
ndroid/contacts/common/widget/FloatingActionButtonController.java
c51f6eea5642bb79539414d49c38dfe0a4406e9f 28-Aug-2014 Brian Attwell <brianattwell@google.com> Apply card padding when fragment becomes unhidden

Part 2/2. See ag/535716 for part 1.

Bug: 17303217
Bug: 17135027
Change-Id: I38bb34a6a1e52403aaf47bef91148378653acc92
ndroid/contacts/list/ContactTileListFragment.java
66772d9a775de31fc4475da017ae6206a0fcdcc0 28-Aug-2014 Brian Attwell <brianattwell@google.com> Fix EdgeEffect clipping in contact scrollers

Bug: 17318701
Change-Id: I5fc5b25aba44bbe757876a1233db6773da2a6a81
ndroid/contacts/common/util/ContactListViewUtils.java
02eaf11669d25fd885606b3b0700358323532cdd 28-Aug-2014 Brian Attwell <brianattwell@google.com> Use default-corp photos in QC for corps

Also use higher resolution default-avatar images. Now
that we have 720dp photos we no longer need to use the
CENTER scale type. Instead use the CENTER_CROP scale type.

Bug: 16630102
Change-Id: I81db0c0c862d939a18f067bb566a1193b57577c4
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/QuickContactImageView.java
6d4035062dfa6e8f1f86fbbd50ce4e0a79eb115a 28-Aug-2014 Zheng Fu <zhengfu@google.com> Merge "Adding common contact list view and card layout" into lmp-dev
0300386156602aa5c93ca5abd8c7c0e20eb5ee9b 26-Aug-2014 Zheng Fu <zhengfu@google.com> Add padding to join contact list view

Several changes are involved:
1. Add padding to all the contact list views of ContactSelectionActivity so
they can be contained in a centered card in sw600dp-land and sw720dp mode.
2. Make the tab indicator thicker on tablets.
3. Make tab text size, frequently contacted title text size, list item text
size and list item line space bigger on tablet.

Bug:16553819
Bug:17132856
Bug:17157006

Change-Id: I5f5a53e33f8ea090573edb1c7f23ebac7260190d
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
0dd2bdb5733afc79274f718376c11a7ca776c5cb 26-Aug-2014 Zheng Fu <zhengfu@google.com> Adding common contact list view and card layout

Bug: 16553819
Bug: 17157006
Change-Id: I498b3de918a98b59e589e5216ea6ae3a0d3902a7
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/util/ContactListViewUtils.java
ndroid/contacts/common/util/SchedulingUtils.java
95c268e8dae6ed6b3bf6a205b02eadd995dec2c0 27-Aug-2014 Brian Attwell <brianattwell@google.com> Use thumbnail for color extraction

Previously, Contacts was downscaling the full sized image returned from
ContactsLoader. The resulting thumbnail was different enough from the thumbnails
synced by ContactSyncAdapter that about 20% of contact photos had different
extracted colors in Bugle and Contacts.

Bug: 17258486
Change-Id: I8e2cd239195a18afbe0610e47104d7cbe63d3f23
ndroid/contacts/quickcontact/QuickContactActivity.java
270cc7a2c6dab0162e84507c21326e8328075dcd 27-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "ContactLoader always stores thumbnail blob" into lmp-dev
393d9285cad767dfed95bb8e0e99c3ec13f248e6 27-Aug-2014 Brian Attwell <brianattwell@google.com> ContactLoader always stores thumbnail blob

Bugle always uses Contact.PHOTO for color extraction. Therefore, in
order for Contacts' color extraction to match Bugles' color extraction
ContactLoader needs to include Contact.PHOTO regardless of whether a large
contact photo is available.

Previously, Contacts was downscaling the full sized image returned from
ContactsLoader. The resulting thumbnail was different enough from the thumbnails
synced by ContactSyncAdapter that about 20% of contact photos had different
extracted colors in Bugle and Contacts.

Bug: 17258486
Change-Id: Ib274da7bd6b6159a91beee0b2e35e0ffdfaab74a
ndroid/contacts/common/model/Contact.java
ndroid/contacts/common/model/ContactLoader.java
3d29145a939c92b7a825be9605628e2e52a04c3d 27-Aug-2014 Brian Attwell <brianattwell@google.com> Fix QC NPE in landscape orientation

Bug: 17289130
Change-Id: I441a2f2aa5008df77f25fe6bc72775d2addc9a85
ndroid/contacts/widget/MultiShrinkScroller.java
61084f690f71450e419eeba94879763a10cfbdef 27-Aug-2014 Yorke Lee <yorkelee@google.com> API changes for ContactsContract

* Remove usages of NAME_VERIFIED
* Update ContactLoader tests
* Also fix broken unit tests as a result of ProviderInfo not having
an authority.

Bug: 17253963
Change-Id: I887fb291fa4de8db6859655956a80898d1ee618c
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/common/model/RawContact.java
f764730a34da560db87206f9a48390d4c8085365 26-Aug-2014 Paul Soulos <psoulos@google.com> Fixes break from ag/530785

Change-Id: I8d729da69bc0d9ff0cc5e8e5cdb4de013bf00199
ndroid/contacts/quickcontact/QuickContactActivity.java
48fc91217042fd854f0e96c2028c188e50a5e21d 26-Aug-2014 Paul Soulos <psoulos@google.com> Adds VOLTE icon and capabilities to QuickContact

bug: 16015752
Change-Id: I9970d5901f80fc56d7528d61da6b4e8b8c66e0c1
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
a9cdf98491f942e1ee11ee5edf5cb64730e49fb6 26-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Move QC's title contentDescription into photo" into lmp-dev
91bd30037049e727f81a3b85e9569c79fac76761 26-Aug-2014 Brian Attwell <brianattwell@google.com> Move QC's title contentDescription into photo

In Talkback, the contact photo will now read <Contact Name>
instead of "contact photo". The title textview will no longer be
readable by Talkback to avoid redundancy.

I didn't delete the @string/description_contact_photo since
another View uses it.

Bug: 17198755
Change-Id: I25384ba72e6222ac24d5dd20c2bf32326d3dca13
ndroid/contacts/widget/MultiShrinkScroller.java
998492107a7907ef4bc0e992aec6196ce4db3b76 22-Aug-2014 Nancy Chen <nancychen@google.com> API Review PhoneManager -> TelecommManager. Rename methods (2/6)

PhoneManager
- handlePinMMI docs should explain what a Pin is and what MMI is
- rename isInAPhoneCall to isInCall
- rename showCallScreen to showInCallScreen
- merge this class into TelecommManager, we don't need both

Bug: 16960458

Change-Id: I8b7ed389c60ab074eb28d29d0fa8d9429e414875
ndroid/contacts/common/CallUtil.java
cc5ec22992ee61d130cb2ee99a038fb1761b8d35 25-Aug-2014 Paul Soulos <psoulos@google.com> Makes the expand/collapse animation more fluid.

This is accomplished by having separators move instead of fade in and out.

Bug: 16680415
Change-Id: I925bb978811680f4ee1418441ebda38db77cc5c7
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
9854e16e2ada5000ee21bb02def9543405bec248 22-Aug-2014 Brian Attwell <brianattwell@google.com> Decrease LetterTile scale for starred contacts

Bug: 17137563
Change-Id: Ic0d9aafe277969133d655fca1c87d74ce80e0755
ndroid/contacts/common/list/ContactTileStarredView.java
c55a684635178aac53d0e8bf2361f7c88335769d 21-Aug-2014 Brian Attwell <brianattwell@google.com> Small WhitenessUtils changes

Improve tracing bug.
Reduce the area checked for whiteness.

Bug: 17186235
Change-Id: I145b70b8f0371a9b6e55fa4b3d458285e8a26450
ndroid/contacts/quickcontact/WhitenessUtils.java
2e04f1a0598bba3f58757eaa217b53bcf7d9e0a4 21-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Move dataItemToEntry() off UI thread" into lmp-dev
6bb01347eab60f95deafdfe523b0c368707210f3 21-Aug-2014 Brian Attwell <brianattwell@google.com> Move dataItemToEntry() off UI thread

Bug: 17166691
Change-Id: Ie85ee0673c21933f21a7584db9b34d678ebfaa90
ndroid/contacts/quickcontact/QuickContactActivity.java
8d4304c19b3c3d1e4f03805df62b14e47f965d9e 21-Aug-2014 Brian Attwell <brianattwell@google.com> Don't scale non-square QC photos while scrolling QC

To avoid re-scaling the non-square QC photo when resizing the QuickContact
ImageView, crop the contact photo into a square contact photo.

It is possible to use scaleType="matrix" with a custom matrix to avoid
needing to copy & crop the bitmap. However, it isn't worth the effort
given how rare non-square contact photos are. I have only seen non-square contact
photos for bussinesses.

Bug: 17135898
Change-Id: Idaa955d65c9fde74e104237908edf87e4c8cc1da
ndroid/contacts/util/ImageViewDrawableSetter.java
9f3f8879da6149930c1527e699d481c4acbb3006 21-Aug-2014 Paul Soulos <psoulos@google.com> Adds a "You: " prefix to messages sent by you

bug: 17107373
Change-Id: I93518d0c98f27b89f9db1f1d0372d84ffee8dade
ndroid/contacts/interactions/SmsInteraction.java
7e558dcdb3af3f8a1ef57f0c445d4ef5172ee935 21-Aug-2014 Andrew Lee <anwlee@google.com> Pass context into isVideoEnabled. Add getContext() method to adapter.

Bug: 16211386
Change-Id: I4b928abe242dd42f00ea19c972375f777367eee4
ndroid/contacts/common/CallUtil.java
aca95b8c684a4cdc85faad878c8609aaebcabc33 19-Aug-2014 Nancy Chen <nancychen@google.com> Add method to TouchPointManager to check for valid point.

When a point is initialized, its value is (0,0), since it is highly
unlikely a user will touch at that exact point, we define a valid point
as any point that is not (0,0).

Bug: 17124195

Change-Id: Iba3adfa862f262ac2b753815594b54441d997320
ndroid/contacts/common/interactions/TouchPointManager.java
8b3d71d4e0ab077a8f97835bda072fe5fe3078b6 21-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Fix crash editing newly saved directory contact" into lmp-dev
41e7497bee5ce3a532eef57819300224a858bdc6 21-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Discuss nested scrolling options at top MS" into lmp-dev
7267ee24038dd87f1658cfdf621236a8244aaa9a 20-Aug-2014 Brian Attwell <brianattwell@google.com> Discuss nested scrolling options at top MS

To prevent people from copying MultiShrinkScroller's implementation
of nested scrolling, add a comment at the top pointing readers
to other approaches.

Bug: 16951620
Change-Id: I68495df8141de6ff6af9abeca10b419caff7d367
ndroid/contacts/widget/MultiShrinkScroller.java
88fc1257c832d971f5c4141aa77335b67aefb199 20-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Use TouchPointManager method "hasValidPoint" to made code more readable." into lmp-dev
568d5d82610f87a5e733690e57075f0a99551972 20-Aug-2014 Paul Soulos <psoulos@google.com> Fixes a bug where extra top padding is added to the top entry during expands

bug: 17141115
Change-Id: I3a044edfab4135cedb58b717fab712693b02d4c4
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
1f8a3fda87bf61e579d61e3fdd246548943d070a 20-Aug-2014 Nancy Chen <nancychen@google.com> Use TouchPointManager method "hasValidPoint" to made code more readable.

Substituting new TouchPointManager method instead of calculating
directly in QuickContactActivity.
When a point is initialized, its value is (0,0), since it is highly
unlikely a user will touch at that exact point, we define a valid point
as any point that is not (0,0).

Bug: 17124195
Change-Id: Ie6ca75a76d2068314fbf746d4b3711425ac4e28f
ndroid/contacts/quickcontact/QuickContactActivity.java
bfa9442453c1d86e11e56702f9b8ef0e8e0da0b1 19-Aug-2014 Brian Attwell <brianattwell@google.com> Make QC scrim darker

Bug: 17136622
Change-Id: I4f172befb5d2519d257e2e77483a02cb3b230f3b
ndroid/contacts/quickcontact/QuickContactActivity.java
435dbb93a393399972acf2b9ecad5f7c89ac4e6a 19-Aug-2014 Andrew Lee <anwlee@google.com> Add scaleIn/scaleOut methods to the FAB controller.

Bug: 16399233
Bug: 15862303
Change-Id: I3e7cd0d79bf4016c60d5551923fd8afbd9d8ea51
ndroid/contacts/common/widget/FloatingActionButtonController.java
56046089a707f905482ea01eac697d36fcde4556 19-Aug-2014 Paul Soulos <psoulos@google.com> Moves isVideoEnabled into ContactsCommon

bug: 16015752
Change-Id: Ic875b3012b705e72fbb4f592061cacb2302be305
ndroid/contacts/common/CallUtil.java
63176c96f33b5a0bcb25816c80889bb11e5c7152 19-Aug-2014 Brian Attwell <brianattwell@google.com> Fix crash editing newly saved directory contact

After saving a directory contact via QC, mLookupUri still refers to a directory
contact. ContactLoader knows to map the directory URI to a local URI.
When editing/starring a contact we should therefore use the URI returned
from ContactLoader instead of the URI passed into QuickContactActivity.

I also fixed some IntelliJ style nits.

Bug: 16670552
Change-Id: I8cb04b645c050e2aa563abaa64125d1ef17e402e
ndroid/contacts/quickcontact/QuickContactActivity.java
cd4976199532b44144a929a2fe05a27628317b13 20-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Save menu state on rotation, in contact editor" into lmp-dev
bd127671f7fbcefb87a1b383140dee89cdb7039c 20-Aug-2014 Brian Attwell <brianattwell@google.com> Save menu state on rotation, in contact editor

Bug: 17148558
Change-Id: I4f31ddd7a685b6bc6ea6d13e4c0d0f9be78df49a
ndroid/contacts/editor/ContactEditorFragment.java
a42ef76251778161d27bc07db214b8c81720e476 20-Aug-2014 Paul Soulos <psoulos@google.com> Stop entries from jumping before the intent in launched

Bug: 16980262
Change-Id: Ie5857fad11ff4c65f74bd17dd4d63d5827c928a2
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
edd44f03e0e7aa57d4eb721147d4a3f3d2551c1a 20-Aug-2014 Paul Soulos <psoulos@google.com> Pixel push with Allen

bug: 17137146
Change-Id: Ibf56e0bf33a4e5f8df97b498853860051a5017c6
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
1301baff1e893a67ce974d1c5fe3eee2c8f0a75f 19-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Override "dispatchOnTouch" instead of LinearLayout for quantum reveal." into lmp-dev
f619e432bcebb7f91c9ed88fc384abab16a9cd6a 19-Aug-2014 Nancy Chen <nancychen@google.com> Override "dispatchOnTouch" instead of LinearLayout for quantum reveal.

Changed approach for capturing touch event in QuickContactActivity. Same
behavior: InCallUI reveals from the touch point.

Bug: 15284651
Change-Id: Id64886fe694f53e1e06fe9173dcefa586106a3d0
ndroid/contacts/quickcontact/QuickContactActivity.java
aff5bba2818fe71a104ee670e7062a93c77d1a00 18-Aug-2014 Paul Soulos <psoulos@google.com> Uses the material contacts icon (1/2)

bug: 16205836
Change-Id: I261a3b419a096664758f2e145cf20143ff751f62
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
307b49420ce66b0aee5563bf2624dba7e20e28e2 16-Aug-2014 Paul Soulos <psoulos@google.com> Adds material sip icon

bug: 16458396
Change-Id: I031759f96920f53011e4b15904b74f2de4ab2927
ndroid/contacts/quickcontact/QuickContactActivity.java
43e0dead719568ed610f9f111f6e7614368445ef 16-Aug-2014 Paul Soulos <psoulos@google.com> Fixes extra mimetype icons

bug: 17044280
Change-Id: I8c27dfad4851e48bab17c1c7d9b996017fba3200
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
c25109d616e0b106a10bd2e1339ef0b4ddeb746b 18-Aug-2014 Andrew Lee <anwlee@google.com> Merge "Add resize method to FAB controller." into lmp-dev
7c7eaa7651588ae6e278446d5ebea56fe6dcc84d 15-Aug-2014 Andrew Lee <anwlee@google.com> Add resize method to FAB controller.

+ Add method which resizes the container, but not the icon.
- Remove a now-unused margin constant.

Bug: 16399233
Change-Id: I8919228d45760174aaa6cb02614ce0f8c16f0931
ndroid/contacts/common/widget/FloatingActionButtonController.java
16231a351c96463642d17ad733bbd3f86e75fce0 16-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Update margins around directory headers and search bar icons." into lmp-dev
e20d1ace7d272d811af3fc075272c468c853a791 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
8f32671ba8daa006df63fedc47da36e06b12b3eb 14-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Fix ViewPagerTabs not scrolling correctly after tab selected" into lmp-dev
d0a46cd054a4206f2fc7944081ba455bf816615b 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
ndroid/contacts/common/list/ViewPagerTabs.java
02a8971c1041ed0d9c9739cf120a8649f6917745 14-Aug-2014 Zheng Fu <zhengfu@google.com> Merge "Set paddings on the portrait contact list view" into lmp-dev
589fb01e4cb45824b11edfdb15393a0dd30cebd6 14-Aug-2014 Zheng Fu <zhengfu@google.com> Set paddings on the portrait contact list view

Bug: 16568715

Change-Id: I3750285bf3354c4df1ea58a5cce30ecf7bcdcbcd
ndroid/contacts/list/ContactTileListFragment.java
f1076dc20feb3ee0c687c818d70ffc1d25bef909 13-Aug-2014 Brian Attwell <brianattwell@google.com> QC scrim opacity depends on scroll position

Scrim opacity depends on scroll position after the initial
entrance animation.

This is the last CL needed for b/16683381. Also, this is the
last feature-requestish ui-tweak I plan on doing before
LMP (I promised this one to UX a while ago).

Bug: 16683381
Change-Id: I8a62ff1eda6f2174b50f71f54c4301c111182b7f
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
0a221fc115a95ebb131eb15e081e163baf9c10a2 08-Aug-2014 Ihab Awad <ihab@google.com> Final structural tweaks to Telecomm API (2/8)

Bug: 16416927
Bug: 16494880
Change-Id: Ice2cd91628fefcca46f11ae9245ed00ef937f63f
ndroid/contacts/common/CallUtil.java
fcbfe9bf30def08a2b19c4f499f607e1f21ff3a2 14-Aug-2014 Yorke Lee <yorkelee@google.com> Merge "Protect against invalid long numbers in Dialer" into lmp-dev
e9825a9a5529f883b1221e2ff368e700006b9c1d 14-Aug-2014 Yorke Lee <yorkelee@google.com> Protect against invalid long numbers in Dialer

Bug: 14307606
Change-Id: I788fec72dac4ea467644f1c2ead0f466ea8e7fa9
ndroid/contacts/common/list/PhoneNumberListAdapter.java
a6734b9e776ae71a2b9c915f57b12a10fe67d282 14-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Allow call reveal from touch point in contacts" into lmp-dev
1321736e0b6f4da580aa77075dd3845c8781f460 14-Aug-2014 Paul Soulos <psoulos@google.com> Adds extra padding to top entry if no title

Bug: 16679107
Change-Id: Id5bff96d419acd27b179f7f2913b08b61afe09c5
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
70e3f4f45c040a2d09bfb46462242b450cf20b29 14-Aug-2014 Nancy Chen <nancychen@google.com> Allow call reveal from touch point in contacts

QuickContacts sends a direct call intent from the phone number card,
the InCallUI should expand from the tap point.

Bug: 15284651

Change-Id: Ief37404ac69f123f7de9f4a663ef1fe746308371
ndroid/contacts/quickcontact/QuickContactActivity.java
b6f3a94d93493841b57aae8ec710f4066cf6a33c 14-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Fix QC title translation near bottom of screen" into lmp-dev
691dd8fc7ce4b330cb6341f8e54fa6703564bd3e 14-Aug-2014 Paul Soulos <psoulos@google.com> Fills in cards so that they reach the max collapsed size

bug: 16298670
Change-Id: Ia6d307c903fcd81010d42b780f77d64e125d48a3
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
77b4a598f724a76b67ab1634b0666fd6c0b67375 13-Aug-2014 Brian Attwell <brianattwell@google.com> Fix QC title translation near bottom of screen

When part of a TextView is clipped outside its parent, its View#getHeight()
values changes even though the text size appears the same. Therefore,
calculations that expect TextView#getHeight() to represent the full
height of the TextView, both inside and outside its parent ViewGroup,
will be incorrect.

Bug: 16992872
Change-Id: I7c011f25f0b5222c6544ee1d653cc333d4c81369
ndroid/contacts/widget/MultiShrinkScroller.java
6e07857a0780ba1e6b4f8773272c32e871a51cf7 14-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Subclass of linear layout for parent activity to listen to touch." into lmp-dev
555c40e1edcbe5f6058f147a51bd7ed7708d81a9 14-Aug-2014 Nancy Chen <nancychen@google.com> Subclass of linear layout for parent activity to listen to touch.

Both QuickContactsActivity and CallLogActivity use this class to listen
to touch events.

Bug: 15284651
Change-Id: I6ef24d0b994e7cad11039a4414aec333d33cdb53
ndroid/contacts/common/widget/ActivityTouchLinearLayout.java
f4474e6a054dad17a55291ac26dc294b874354c4 13-Aug-2014 Nancy Chen <nancychen@google.com> Add Singleton class to keep track of coordinates of user touch.

Touch point needs to be passed to InCallUI to allow for reveal animation
at touch point.

Bug: 15284651
Change-Id: I3dc7d7a4f76f1e539ce1f680f743d1cd0acd9e74
ndroid/contacts/common/interactions/TouchPointManager.java
2ed2a73d15bd80bced18e5924d3f84c8a9e5e5a5 12-Aug-2014 Paul Soulos <psoulos@google.com> Fixes text overlapping secondary icon

Bug: 16858313
Change-Id: I64f535b8f803ebb9e60ce3337aa1f64e995f2222
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
fa238949855fba3b28a57fad3d585b13e80362bb 12-Aug-2014 Brian Attwell <brianattwell@google.com> Add comment about ignoring large data ids

Bug: 16191530
Change-Id: Icee092e6d0c37212a4b36b3e7be5246a98e82bb8
ndroid/contacts/quickcontact/QuickContactActivity.java
f71ca7763607fb99594ca11e84818b3c902d5b61 12-Aug-2014 Brian Attwell <brianattwell@google.com> Use ic_person_white_64dp with correct padding

UX gave me updated ic_person_white_64dp icons with the correct
amount of padding built inside them.

ag/505983 contained a work around for having ic_person_white_64dp
resources with the wrong amount of padding. This CL reverts this
work around since it is no longer needed.

Bug: 16683381
Change-Id: If0fc283f5e1cfc4e4ac3f20896652da8cd14473b
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
f848c49cac796f99549c8418f8d4e2469ac9f963 12-Aug-2014 Paul Soulos <psoulos@google.com> Adds long press to special dates

Bug: 16876062
Change-Id: Iaa4649d2bceb3cfa37a80d3bde8549d461070570
ndroid/contacts/quickcontact/QuickContactActivity.java
aaa4e64477923db29f5a6700b508970678b76488 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
a214463444f570fc693d66ba9870fff68896e606 09-Aug-2014 Brian Attwell <brianattwell@google.com> Allow last item in contact-picker to be selected

Bug: 16871962
Change-Id: I61f650499eeaea14f9ddc20a352d64f8b0dee354
ndroid/contacts/list/HeaderEntryContactListAdapter.java
fff7ad261951c6716757b646703f51dbcaa24b29 08-Aug-2014 Brian Attwell <brianattwell@google.com> Fix bugs MultiShrinkScroller#snapToBottom()

* use distinct logic for deciding when to snapToBottom in landscape
* I was using the wrong constant in a calculation before. I was
using mTransparentStartHeight instead of mIntermediateHeaderHeight.
The result is subtle so I didn't notice until I looked at the code
again.

Bug: 16875627
Change-Id: I6ede58afa3717540f01d8d59eaad80e11db7ac14
ndroid/contacts/widget/MultiShrinkScroller.java
0a0422bcb561b0927549647cb3972178ec4ce028 08-Aug-2014 Nancy Chen <nancychen@google.com> Merge "Disable pinned headers for directory headers" into lmp-dev
9252825655f2c60d3668c0e14ab58d92b1abe62b 08-Aug-2014 Nancy Chen <nancychen@google.com> Disable pinned headers for directory headers

Bug: 15596340
Change-Id: Ida586663a57ab08fb9b01b946451ee59593565dc
ndroid/contacts/common/list/ContactEntryListFragment.java
93fb435354e26d6f98a2cb5ae9fb5d9e48f7c846 06-Aug-2014 Chris Craik <ccraik@google.com> Use new RoundedBitmapDrawableFactory

Change-Id: I8427ac646091e33eaa2ed567fb656b1a4ea267a7
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/list/ShortcutIntentBuilder.java
f27dd32c54d8560b3efd03b613b362027d2de670 07-Aug-2014 Brian Attwell <brianattwell@google.com> Add RECT_OUTLINE_PROVIDER to ViewUtil

This can be used to enable shadows on transparent views.

Bug: 16856049
Change-Id: Ie1ddd46ff6963ae79e190a94be184ea339524411
ndroid/contacts/common/util/ViewUtil.java
4a24965cd5561be07fb18bf9fca91402ef9117ae 07-Aug-2014 Brian Attwell <brianattwell@google.com> Merge "Use custom ViewOutlineProvider to enable shadows" into lmp-dev
d41ab8ace81a2e44f8b28aa8782679b9e9cca1b9 07-Aug-2014 Brian Attwell <brianattwell@google.com> Use custom ViewOutlineProvider to enable shadows

Bug: 16856049
Change-Id: I8f4c430437395e988e8bcbd5073444a902bab63f
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/quickcontact/QuickContactActivity.java
a0fa4c18dc111ceea9ff47f35ee01fecc1003578 07-Aug-2014 Paul Soulos <psoulos@google.com> Fixes ArrayIndex bug

bug: 16856880
Change-Id: I953e9a90e7fd6504387cc792371b0e01cc184a9b
ndroid/contacts/quickcontact/QuickContactActivity.java
2a4207fb39330e840436215c896cde911489e111 01-Aug-2014 Paul Soulos <psoulos@google.com> Adds copy menu to long click on entries

Bug: 16484669
Change-Id: Ifb9185f863b86d245d9124a26a74caef0f6906bd
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
15195ee50d2c5394b20efa0cc0360e2190fe0464 07-Aug-2014 Brian Attwell <brianattwell@google.com> Don't pass invalid/infinite values into setScale()

Bug: 16779614
Change-Id: Ibdda90c1656e3e52ff23c84aeebd9ed32098bdb3
ndroid/contacts/widget/MultiShrinkScroller.java
a153dba33c2152332c5706178a367f52b0550723 06-Aug-2014 Paul Soulos <psoulos@google.com> Sort about card entries in a specific order

bug: 16182551
Change-Id: Ia6e5f66531ff3b1d6effbca90d730e86a7e8cebc
ndroid/contacts/quickcontact/QuickContactActivity.java
c205cf1d4db6a85f52175af0add8852d5e1f8605 04-Aug-2014 Paul Soulos <psoulos@google.com> Rotates the expand/collapse arrow

bug: 16787869
Change-Id: I1b9fea6fa4d75b202b1ef20336abfd9b19efcc30
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
a41d6d1c9d87fe81630426f537bdb864c1ee6db4 01-Aug-2014 Brian Attwell <brianattwell@google.com> Don't show MenuItem for sharing directory entries

Bug: 16700301
Change-Id: I1a5ad232533ec133d4a6da7c28ca8b55b1932f5c
ndroid/contacts/quickcontact/QuickContactActivity.java
8ee2e2796b85ad18b090673baac06b476b3832d9 06-Aug-2014 Sai Cheemalapati <saicheems@google.com> Added an analytics dialog fragment.

Added another fragment to analytics scope.
ImportExportDialogFragment now reports views.

Change-Id: I850e7edd7f20e54b31937c08b48851d557859bb2
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
7a47bb54d353658196475e85377c7341385134f0 31-Jul-2014 Brian Attwell <brianattwell@google.com> Scale text more gradually via PathInterpolator

The interpolated path will look like http://jsfiddle.net/9kfAC/

Bug: 16683381
Change-Id: I70397ecd18310376083c48bb2e236ccc45a3ccec
ndroid/contacts/widget/MultiShrinkScroller.java
9de2a9ff64846dedac96b661ac7b46179a06f4b0 31-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Increase max QC title size on 720dp+ tablets" into lmp-dev
0d3fd2ee426a36e3032285ca4e75d76db5d9d839 31-Jul-2014 Brian Attwell <brianattwell@google.com> Increase max QC title size on 720dp+ tablets

Because of the way that View#setScaleY() works, the maximum size of the
title TextView has to be less than the minimum size of the of the TextView's
parent. As a result, increasing the title size caused unexpected behavior.

Fixing this odd behavior required me to remove the title TextView
out of the header ViewGroup and instead manually control its position
inside MultiShrinkScroller. This required me to make MultiShrinkScroller
a FrameLayout. This necessitated lots of little changes inside MultiShrinkScroller
(ie, what type of LayoutParams to cast into).

There is a reason nobody else has messed around with scaling title TextViews.

Bug: 16683381
Change-Id: Ib8fc065931a6a0c2a96b8bd5a11bb055457aa3dd
ndroid/contacts/widget/MultiShrinkScroller.java
fc00d0b3bf888751d53e946ad7e170e871c95788 31-Jul-2014 Brian Attwell <brianattwell@google.com> Only the first QC snap should be aggressive

Only when first interacting with QC should the QC aggressively
snap to the top or the bottom of the screen.

Bug: 16683381
Change-Id: Ie250a5b4b77cacc4e4f3f77007ab7c92c5b4dd02
ndroid/contacts/widget/MultiShrinkScroller.java
ac9b31665c157e6aa7bce487a5467e8abd8224d5 31-Jul-2014 Paul Soulos <psoulos@google.com> Use CardView for cards
UI Tweaks with Allen

Bug: 16373753
Change-Id: I550b8fe39b973a8789c18154eed9cac67308eb8b
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
76939f7f94f01e89b2375b2d90484185327a2891 30-Jul-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API change

Bug: 16403306
Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
97ed5019d75bd6afdfd5f3a8150161d9d9441275 29-Jul-2014 Paul Soulos <psoulos@google.com> Only one icon and separator per mimetype

bug: 16626220
Change-Id: I14eebe881cc542af89778cd6bce83dbc21f962bb
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
723e2f667d8a306d48e2948d006527c718083111 28-Jul-2014 Brian Attwell <brianattwell@google.com> Fix for real this time.

Change-Id: I77e79da6a57d0a6d6b92807495ec66d8a137c6d7
ndroid/contacts/editor/StructuredNameEditorView.java
0c882a00cdd43e31f291a870240e90dd23f104bd 31-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Correctly setGravity for RTL mode" into lmp-dev
4a624f6644396e9881a649db7f77d5c6ec93982c 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
ndroid/contacts/common/list/ContactEntryListFragment.java
525f513144236ad1f6d28a4bb2ccc33982f20dbd 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/IndexerListAdapter.java
19e4f8d2e6b12191004346873a1b73dfaa69c54a 30-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Follow ContactsContract API change" into lmp-dev
6fa0d21415c642aefb93e051965e4ef31cc379da 30-Jul-2014 Yorke Lee <yorkelee@google.com> Follow ContactsContract API change

Bug: 16403306
Change-Id: I21d25ba836d9d9ab45a7ebdca0e2f24f8c678e43
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
a69518c11e1b7e1f0d7a6924bbe37a99cf2a8986 28-Jul-2014 Paul Soulos <psoulos@google.com> Adds tests and makes sure all DataItem types collapse correctly

Bug: 16517558
Change-Id: Ib819864dce11818861d455efbf2b9059d91f622c
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/model/dataitem/DataItem.java
ndroid/contacts/common/model/dataitem/EventDataItem.java
ndroid/contacts/common/model/dataitem/ImDataItem.java
ndroid/contacts/common/model/dataitem/RelationDataItem.java
a80db7afac980c6c2d0253702c6cad7ceeefab0e 18-Jul-2014 Yorke Lee <yorkelee@google.com> Switch from ACTION_CALL_PRIVILEGED TO ACTION_CALL (5/5)

Bug: 6948882
Change-Id: I1f90c9f3f33d875482958d5f565629160ce2177e
ndroid/contacts/common/CallUtil.java
3c084241448870866f42e1f7118710c511842028 28-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Fix name-suffix rotation crash, for real this time" into lmp-dev
95d3538f51935195521cfc996a0c9f85927bc5f2 28-Jul-2014 Brian Attwell <brianattwell@google.com> Fix name-suffix rotation crash, for real this time

This reverts commit 97b2ccd1e32457382dd5ce7c0ee2a3ab485d8be9.

Bug: 16558948
Change-Id: I736a55c33867e7442ac55417fcb2112c3d7d641d
ndroid/contacts/editor/StructuredNameEditorView.java
256b1ac1464d2914bf14f5706c474eeaedaa4f97 28-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Revert "Fix name-suffix crash on rotation"" into lmp-dev
97b2ccd1e32457382dd5ce7c0ee2a3ab485d8be9 28-Jul-2014 Brian Attwell <brianattwell@google.com> Revert "Fix name-suffix crash on rotation"

This reverts commit 32c91fdd680c55836e235255fbb5bdba27cb9ca6.

Change-Id: I8d014c70e04b747545075e6b287a93a1126bf4aa
ndroid/contacts/editor/StructuredNameEditorView.java
6b6328915d66f0c5947badc3d1973c31f29eef62 28-Jul-2014 Paul Soulos <psoulos@google.com> Adds badges to the expand button

Bug: 16242770
Change-Id: I6966c86cfda4ccd51ee15e7172ba25b7b2f6ae3d
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
32c91fdd680c55836e235255fbb5bdba27cb9ca6 28-Jul-2014 Brian Attwell <brianattwell@google.com> Fix name-suffix crash on rotation

Make sure to copy the mimetype so that the DataItem gets
serialized properly.

Bug: 16558948
Change-Id: Ia4f25256670d52e415b7e99b765e47c19fdd60c4
ndroid/contacts/editor/StructuredNameEditorView.java
c96ca7524290fe747c78cc9104bd433f042ca85a 28-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Fix name-suffix crash on rotation" into lmp-dev
7de6f85b0ee66deda13505f545c6b7125b2ac462 28-Jul-2014 Paul Soulos <psoulos@google.com> Update IM entry display header and event custom text

bug: 16629466
Change-Id: Ie58b3edd013fa4ce8f56b1bf82b7ab20b1e97b77
ndroid/contacts/quickcontact/QuickContactActivity.java
20bdf9d2d21e1c82513f798ef4205b9d1713996d 28-Jul-2014 Paul Soulos <psoulos@google.com> Fixes crash in clicking entries without intent uri

Bug: 16559592
Change-Id: I47f8ad2b93c0e2435cac7d0c806d47d0f1b4d06c
ndroid/contacts/quickcontact/QuickContactActivity.java
8bd49e409ec5c4e487fa03d20140121501477e48 29-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Don't save scroll position inside nested scroller" into lmp-dev
b80b4fe87efae6f09d544a8af294b7db9b50558f 29-Jul-2014 Brian Attwell <brianattwell@google.com> Don't save scroll position inside nested scroller

Delegate all saving/restoring to the parent scrollview.

Bug: 16555313
Change-Id: If2165b1b05eddf4ef923d27f3e9ba050a4e43288
ndroid/contacts/widget/TouchlessScrollView.java
215b885f6b616b0d8c43f4d34b18b03a9656343f 25-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Remove private usage of isLayoutRtl" into lmp-dev
923859f758f551ce8e32e4690d120e912bfd1777 25-Jul-2014 Yorke Lee <yorkelee@google.com> Remove private usage of isLayoutRtl

Change-Id: I318cdd61cb82ea71e8b78056fd620843fd93d272
ndroid/contacts/common/widget/FloatingActionButtonController.java
89a93a7611d66fc721360cb00d9100d84398c6a4 29-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Update uses of VideoCallProfile.VideoState." into lmp-dev
9635d373ca1fe6122997593a02119abcd7e71dcc 28-Jul-2014 Andrew Lee <anwlee@google.com> Update uses of VideoCallProfile.VideoState.

Bug: 16629892
Change-Id: Ie6d04a2d8b10fa9047073ae4e8cb3841b4cfe824
ndroid/contacts/common/CallUtil.java
ddf8d0121bf785fa2e24400c2be00e40bb418c5a 25-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Ensure status bar color gets set" into lmp-dev
847bf2cd3946b1801c83c745d7183aed5143b44c 24-Jul-2014 Brian Attwell <brianattwell@google.com> Ensure status bar color gets set

Bug: 16546263
Change-Id: If30c8086ce1eee44c48e32cd84d1259cb1060808
ndroid/contacts/quickcontact/QuickContactActivity.java
825afde137389020e5e9b9d3f8354b4c196fc04f 25-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Fix RTL EdgeEffect in QC" into lmp-dev
e48a3b5b2ec152e38aec77fe513e44852a1a223f 23-Jul-2014 Brian Attwell <brianattwell@google.com> Remove tinting from landscape QC photos

Bug: 16458784
Change-Id: I5c14008fd55bd3881c6d082635c26d944c61a9b3
ndroid/contacts/widget/MultiShrinkScroller.java
90689f2e3a8eba5a236513fce26443d38eb013b0 24-Jul-2014 Brian Attwell <brianattwell@google.com> Fix RTL EdgeEffect in QC

Bug: 16163805
Change-Id: Iadb008cbad525617d4047af6d97d95c9e1208c95
ndroid/contacts/widget/MultiShrinkScroller.java
5d22c41a997c88cf6e44b53a4a76617944f16e53 24-Jul-2014 Paul Soulos <psoulos@google.com> Remove ContactDetail code.

Bug: 16457366
Change-Id: I79367304bb7a0dfdc2b420580f8d8207ef602856
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactLoaderFragment.java
17f639c449f4b5dee93c1459d5731153a385f2d9 23-Jul-2014 Paul Soulos <psoulos@google.com> Fixes bug in Organization inflation

Bug: 16491164
Change-Id: Ie8f0a80fd9d6a6b44bc2ca1d0543965bbc6ca018
ndroid/contacts/common/model/account/BaseAccountType.java
e7a112803590851e6b404ff8ae0ab6cca1b3f5c0 24-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Fix tabs when using ContactsUnavailableFragment" into lmp-dev
8d71f11c70c974518f3482c46a10a5601628a029 24-Jul-2014 Brian Attwell <brianattwell@google.com> Fix tabs when using ContactsUnavailableFragment

Also fix landscape tabs when opening the app from landscape
launcher.

Bug: 16516327
Change-Id: Id930dd1aa8d1a9001d7c7901a5822ebbf4cfa2db
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
6a4d2736d772cc5cbb79d04e115f2d6117826860 22-Jul-2014 Paul Soulos <psoulos@google.com> Adds direction secondary intent for StructuredPostal

Bug: 16489228
Change-Id: I0139daa9f59a940ab0eb3ba3bee9df152bffbfab
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/StructuredPostalUtils.java
4b943553afdb7286b33e4bc2481431e816c57967 23-Jul-2014 Paul Soulos <psoulos@google.com> Fixes some entry layouts

Moves text over to match up with "See all"/"See less" and adds top margin when only header text is visible.

Bug: 16326938
Change-Id: Ib9171ba8c27ffccfc5eb3c1e023e827e8e71e7fe
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
891bd2bad8de331a089466777cd054674261a969 22-Jul-2014 Paul Soulos <psoulos@google.com> Fixes TouchDelegate bug in QCA

bug: 16460824
Change-Id: I0357cec8ad1899137174bae23c0d494bd290190d
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
03ece86bc2bda7f29aa2f8f2111035e4c6c6b871 23-Jul-2014 Paul Soulos <psoulos@google.com> Removes extra spacing in Entry

Bug: 16516807
Change-Id: Id61e659266398d2c7122417e063878afec5d3232
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
0cda9aeb01f1922fce2a9e87ae4c0146c177b4f0 23-Jul-2014 Paul Soulos <psoulos@google.com> Adds fancier animation to ExpandingEntryCardView

Bug: 16218702
Change-Id: I2b3d440b3cedf48becb9f82c8fe67f903f8611c8
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
81cc3b3d09d9296e521ac3454ad01c6b6c2ba71b 23-Jul-2014 Brian Attwell <brianattwell@google.com> Contact picker: add search icon & hide searchview

Hide/unhide the SearchView when you click a seach menu item.
This is the first and more important step for b/16190113.

In a later CL, I might remove the SearchView and replace it
with the custom actionbar view created by dialer & used
in PeopleActivity.

Also merged JoinContactActivity into ContactSelectionActivity.

Bug: 16190113
Change-Id: I04bf7d22dffbf7f104362b17c9064cb386a01abe
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
b92b637873ce501abce1d4d5cb4ce8f949a5e4fd 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
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
a2fa4ba1d5032620be04691f8fda6d31b92bc50f 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
ndroid/contacts/common/list/ViewPagerTabStrip.java
ndroid/contacts/common/list/ViewPagerTabs.java
ndroid/contacts/common/widget/FloatingActionButtonController.java
333091ae754ddfc25714c14b9b89534be24379f9 22-Jul-2014 Paul Soulos <psoulos@google.com> Adds support to selecting name preference order

Bug: 16467223
Change-Id: I34b4267929cded27cc9f71a7d7c7af5798f84931
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDisplayUtils.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/AlphaTouchInterceptorOverlay.java
3c763b3a614375a1dbe273feec5a7664cd5939d3 21-Jul-2014 Brian Attwell <brianattwell@google.com> Use custom ViewPagerTabs

Use the custom ViewPagerTabs from contacts common.
In portrait, the tabs are below the toolbar. In landscape
the tabs are inside the toolbar.

Bug: 16158921
Bug: 15616182
Change-Id: I6c2067fdc10fa15ebd6e0fa93aa1c4f8e7cd45a7
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
adf09de234550e1cdcd4ce8d50817a40b7745889 21-Jul-2014 Brian Attwell <brianattwell@google.com> Move custom ViewPagerTabs into common

Bug: 16158921
Bug: 15616182
Change-Id: I164fe830636577f85357aa3bf1ddf803de9abf94
ndroid/contacts/common/list/ViewPagerTabStrip.java
ndroid/contacts/common/list/ViewPagerTabs.java
c6e110946e2c51be6276591b85ac8abe169534a0 22-Jul-2014 Paul Soulos <psoulos@google.com> Adds phonetic name to the about card

Bug: 16467163
Change-Id: Ibd989eb1aba58b7991b477839151e4e961fdb8c0
ndroid/contacts/quickcontact/QuickContactActivity.java
c8e2a91807b581194566eb45019fa16e2268b462 21-Jul-2014 Paul Soulos <psoulos@google.com> Fixes rebase bug

Change-Id: I1084054758bb6d4fcc0bdb1ed4da77532b99eec6
ndroid/contacts/quickcontact/QuickContactActivity.java
89966b4ed8cc9d385e5ac6b4a7e9e08ada387eb0 21-Jul-2014 Paul Soulos <psoulos@google.com> About card always expanded

Bug: 16347400
Change-Id: Ie2fa3e57c1c3040ec547fd82b070df0c3b42032c
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
1cda01b35a37f79b22e907cc970314b8c0a9e00c 21-Jul-2014 Paul Soulos <psoulos@google.com> Fixes sip address not appearing in contact card

Bug: 16400678
Change-Id: I324b2eb83739ed48c8d8eaf62ba6cd2f5df6af7f
ndroid/contacts/quickcontact/QuickContactActivity.java
856820d962add9f457353a8d84e804d0cec7d8aa 18-Jul-2014 Paul Soulos <psoulos@google.com> Fixes storing primary flags as booleans

Bug: 16327819
Change-Id: I6c71519b834a2194f4d79b92bd85d48cd5edeaa6
ndroid/contacts/common/model/dataitem/DataItem.java
8fe111fccff65b89a5d3d8a01cfdf5c28e9becd9 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccountMetadata to PhoneAccount

Change-Id: I4597b14110c1cee7f637ec125b839852ef0f34c4
ndroid/contacts/common/CallUtil.java
0dc7d4b5d2951ee2787b878bd924b385968c5f35 20-Jul-2014 Evan Charlton <evanc@google.com> Rename PhoneAccount to PhoneAccountHandle

Change-Id: I2e97b348e6316a8b3ccc39fd81013e7f514a2889
ndroid/contacts/common/CallUtil.java
1227b2a7a6d0ae8bfa4cf2065bed4d5f9e341e37 20-Jul-2014 Evan Charlton <evanc@google.com> Migrate TelecommConstants to TelecommManager

Change-Id: Icdd7637ba1ae27ce7d1f13714257b4a946961037
ndroid/contacts/common/CallUtil.java
e8321f42d52724de750af39fd6a71f2bd42623be 18-Jul-2014 Chris Craik <ccraik@google.com> Update Outline API

Change-Id: Ied10f67bbff2321481478797efb978b2a35c5088
ndroid/contacts/common/util/ViewUtil.java
c8fb69d2e9117fe45254746309938f0febd43734 18-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Update avatar drawable in LetterTileDrawable" into lmp-dev
83d6877397d9a7d1b45a9ab132674b5507013208 18-Jul-2014 Brian Attwell <brianattwell@google.com> Update avatar drawable in LetterTileDrawable

Use the same image as QC uses. Except, instead of scaling down
the ~140dp image start with a 64dp image.

The images provided by allen don't have an amount of border built into
it that looks good inside the LetterTileDrawable. Therefore, I wrapped
the image inside a ScaleDrawable. To do this, I changed LetterTileDrawable
to operate on internal drawables instead of internal bitmaps.

Bug: 16290899
Change-Id: I741c3a603d025068614c7004ea61fb349f6d6944
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
be07d3ee398e59a29f75aa003ca4ad04ac9b37fd 18-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Inline "select new contact" entry in contact picker" into lmp-dev
4106b5dbe12e64b93c00a6c2e17f614d6cff58d9 18-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Accessibility: Announce star/unstar actions" into lmp-dev
35ccdba7b8b2270204f7f96d824d258e408fe6ef 18-Jul-2014 Brian Attwell <brianattwell@google.com> Accessibility: Announce star/unstar actions

Bug: 341812
Change-Id: Ifa448f8609ee0f50b3827f5d7aec5d0a6a2e6f9c
ndroid/contacts/quickcontact/QuickContactActivity.java
bbd220183e9bc6d0b056af3c68fa4a31f5b747f2 17-Jul-2014 Brian Attwell <brianattwell@google.com> Inline "select new contact" entry in picker

Removed the FAB now that we have a better way to create
new entries inside the contact picker.

Contacts: Created HeaderEntryContactListAdapter class that
overrides an adapter defined in ContactsCommon.

Part 3/3

Manual testing:
-verify dialer still builds, and displays its "Add to
contacts" button correctly
-test rotation in contact picker
-Open intents in Contacts Intents app for legacy/non-legacy
picker types. Verify they behave similarly
-perform a search inside the contact picker, and
watch the "Add to contacts" entry vanish. (In my version of the framework
SearchView is broken, so I needed to do this manually)
-remove accounts, and verify that both contact picker
and legacy contact picker don't crash

Bug: 16209705
Change-Id: I1bafc557aa9cdae776fbfcc73aac3607a7bebe3e
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/HeaderEntryContactListAdapter.java
29a6d898051fb57b22aac508a6f9a1d06462f8ef 17-Jul-2014 Paul Soulos <psoulos@google.com> Fixes crash with special characters in phone number

Bug: 16352385
Change-Id: I1ccbd2e46eefc6b53179732e14f411e8ce325d8f
ndroid/contacts/interactions/CallLogInteractionsLoader.java
2101c3d08c08675e778f14115d534b41e57dca3a 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
f5cc63f9f25f8d75a524202d2bd4f7d388d787a8 16-Jul-2014 Paul Soulos <psoulos@google.com> Removes separator if not ExpandingEntryCardView title is set

Bug: 16326734
Change-Id: I3cd86ecd51ee19b5f1d4b0fee38222bbe1709a78
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
5ca1b1d12b8e535a7ca04a9039872ed4c3d7c05d 15-Jul-2014 Brian Attwell <brianattwell@google.com> Updated LetterTileDrawable colors.

Now that LetterTileDrawable colors are the same as the colors used by
MaterialColorMapUtils, I unified the colors inside colors.xml and was
able to delete some MaterialColorMapUtils code.

BUG: 15889179
BUG: 16159407
Change-Id: I02b96011a30def913fb1de589aeb7a8c336e2154
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
ndroid/contacts/common/util/MaterialColorMapUtils.java
0782e7cdab82a4364991dab3e6e356f7330438ba 15-Jul-2014 Nancy Chen <nancychen@google.com> Merge "Remove Account selection dialog because it will no longer exist" into lmp-dev
9c88d6cc343453cf0523fb107d86135d5a120285 14-Jul-2014 Nancy Chen <nancychen@google.com> Remove Account selection dialog because it will no longer exist

Because the account selection dialog was confusing for the user, we
decided to remove it from the UI.

Bug: 16290489
Change-Id: I59933efd0836462ca40a156e973b4068de2c8a86
(cherry picked from commit e14570cceebd1c31139307f72ed5613e32076ef6)
ndroid/contacts/common/PhoneAccountManager.java
ndroid/contacts/common/dialog/SelectAccountDialogFragment.java
cd12a084c90a8a3e2eedc97c32b1d4ba63697e56 16-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Make ContactPreferences use SharedPreferences instead of System settings (3/5)" into lmp-dev
0b0e794921ffe9540ddbb8d3489779ad3afd38b7 16-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Make ContactPreferences use SharedPreferences instead of System settings (2/5)" into lmp-dev
714455bba22b99d168a2e864dfbc74a6e30dfdb6 15-Jul-2014 Paul Soulos <psoulos@google.com> Fixes TouchDelegate in RTL and applying color to empty contact

Bug: 16325484
Change-Id: I4052e2d6b976307ce1c304f16fc9b17dbf206dd1
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
a3859ed9ff9f315d492e199620a08ae35ab8569f 15-Jul-2014 Brian Attwell <brianattwell@google.com> Use changed MaterialColorMapUtils

BUG: 16159407
Change-Id: I216248b432fe9557111c4c4f68e612bb3a84266d
ndroid/contacts/quickcontact/QuickContactActivity.java
aed3d5a4ab674917fe2c1264ce3bdc1debe345e2 15-Jul-2014 Paul Soulos <psoulos@google.com> Merge "Adds secondary icons and intents to entries if they exist" into lmp-dev
dd7419d90cda5c52e81491bea3cf3c3f4e0535c7 15-Jul-2014 Paul Soulos <psoulos@google.com> Adds secondary icons and intents to entries if they exist

Bug: 16206384
Change-Id: I759c842d3be6e7c7b28bc4ef52d2d3935dd7931c
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
cb4fcc7ef75c33411d2b900db7933c5bc4336527 15-Jul-2014 Paul Soulos <psoulos@google.com> Moves StructuredPostal above 3P data types

Bug: 16296394
Change-Id: Ideeb847733e63337d0bea4ded0ea937dcb0fd3c5
ndroid/contacts/quickcontact/QuickContactActivity.java
a2fec386b90e3031249b6c09841fa289677edff6 15-Jul-2014 Paul Soulos <psoulos@google.com> Fixes separator width not matching mocks

Bug: 16157984
Change-Id: Ia2dfee76c7a80793dc136c3e4c5bdc283279c333
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
a8fce966f48d84af82f5ad767aa7986740ca7b26 15-Jul-2014 Paul Soulos <psoulos@google.com> Fixes About card disappearing on rotation

Bug: 16157949
Change-Id: Ifb0602c10351b528451ce593e326f917e5d2f851
ndroid/contacts/quickcontact/QuickContactActivity.java
2fa690807a94708384789b211965bfc75b5ac38e 15-Jul-2014 Paul Soulos <psoulos@google.com> Removes the title from the Contact card

Bug: 16163442
Change-Id: I950f90ad941ced2ae3125d7196694d6b9f7411e4
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
48ebbaafcf467c072e4477c98ef2faba1c65af7e 15-Jul-2014 Paul Soulos <psoulos@google.com> Removes icon shading from 3p icons

Bug: 16241178
Change-Id: Ib0f88f085753e344e7a5115b5b753a91bacdb5c7
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
f9473aacc466e4746cc4dde256cf290cad556ff3 15-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Copy Color.hue to materialColorMapUtils" into lmp-dev
a186d040e3d998381beb9d107fd4ab72929b01e2 15-Jul-2014 Tyler Gunn <tgunn@google.com> Adding required video call intent for use with "Video Call" link
in call log.

Bug: 16013879
Change-Id: Ib599a154549fab221510d30715930080cba95c78
ndroid/contacts/common/CallUtil.java
059319e6b1c0de1f72c634bdc13e36daeda37726 15-Jul-2014 Yorke Lee <yorkelee@google.com> Copy Color.hue to materialColorMapUtils

Color.hue is a private API and has been pending API approval since 2009.
Copy its implementation into our codebase since it is unlikely to ever change.

Bug: 6948882
Change-Id: I9c411351b6c236f5583104f23d74191ea04a227a
ndroid/contacts/common/util/MaterialColorMapUtils.java
805e92f7b47ce10b2a942b08298b247e247d5073 15-Jul-2014 Brian Attwell <brianattwell@google.com> Revert "Adds secondary icons and intents to entries if they exist"

This reverts commit 85a4b71bb40d0d9bb0fb6f15333c21ce10b9770e.

Change-Id: I41846103ecefe54c16d865039e460e51d7275ed7
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
85a4b71bb40d0d9bb0fb6f15333c21ce10b9770e 15-Jul-2014 Paul Soulos <psoulos@google.com> Adds secondary icons and intents to entries if they exist

Bug: 16206384
Change-Id: Ifaa1132cad1fb3622e982bcf116f167ef3a5383d
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.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
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/preference/DisplayOrderPreference.java
ndroid/contacts/preference/SortOrderPreference.java
b3d841a64bb0eb8dd80552b66688b1614e904a35 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
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/preference/ContactsPreferences.java
ndroid/contacts/common/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/common/preference/DisplayOrderPreference.java
ndroid/contacts/common/preference/SortOrderPreference.java
3d388f5bd7f777bee9c9f0dc7be69ca329227d57 14-Jul-2014 Sailesh Nepal <sail@google.com> Update EXTRA_PHONE_ACCOUNT do not merge

Change-Id: I2e40c5c64c0d242dc41b680943d7e9209142db5b
(cherry picked from commit 47c4b0754c22a6d3601a84ea66419b97ae642550)
ndroid/contacts/common/CallUtil.java
405ae406379ad9c47770783afc76a660f6c55fca 15-Jul-2014 Paul Soulos <psoulos@google.com> Fixes empty About card and crash

Bug: 16294907
Change-Id: I86c687bd274b1cc2f751194c28a214d6ccaa131d
ndroid/contacts/quickcontact/QuickContactActivity.java
6095369885edcca566a812b551886e29c7ff8039 12-Jul-2014 Brian Attwell <brianattwell@google.com> Prompt users to add contact details in QC

Also fixed a recent ExpandingEntryCardView regression.

Bug: 16161801
Bug: 16157948
Change-Id: I596ad6975391c4042adcb321e78567339ea8d89e
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
73ea4d9aa9d0dfd607ceacabdaaee0d33e582423 12-Jul-2014 Brian Attwell <brianattwell@google.com> Fix RTL layout of QC title

Bug: 16163405
Change-Id: I2c9ad45cc7637388a97912e4af7598e884b727b3
ndroid/contacts/widget/MultiShrinkScroller.java
21d9c16d3cca3ee304a7aec695abae79cc1a495f 09-Jul-2014 Ihab Awad <ihab@google.com> Implement multi-SIM capabilities (2/6) [DO NOT MERGE]

Use new PhoneAccount & metadata APIs

Bug:16292368
Change-Id: Ia53fc2c94b45196fd0bbd3f1da0ca5565d22360a
(cherry picked from commit 264629ca27d9b830806a81f7fda4ee493fda8652)
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/PhoneAccountManager.java
ndroid/contacts/common/dialog/SelectAccountDialogFragment.java
a4a5c91f1c2d57587299a5f42da7756b6694e01c 11-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Use MaterialColorMapUtils"
a5d18433b39ede4df806cf136872c9787b0764a5 11-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Clean up menus"
2e4214c79170cdb6c1b8b6ff0408925d3f512bec 11-Jul-2014 Brian Attwell <brianattwell@google.com> Clean up menus

Made sure to add titles to all menus

Bug: 16218365
Bug: 15845381
Change-Id: I52fc3c142080c3485753a939353f0d1be58a656b
ndroid/contacts/quickcontact/QuickContactActivity.java
faf973989af7ac3b735c2aee1bec22ef6608b123 11-Jul-2014 Brian Attwell <brianattwell@google.com> Use MaterialColorMapUtils

Bug: 500800
Change-Id: I050b70a8ac44e73cca327a82efd341e3d81ce3c2
ndroid/contacts/quickcontact/QuickContactActivity.java
e005566a1616d6797fb7e204d0d41bd341b37543 11-Jul-2014 Paul Soulos <psoulos@google.com> Uses predefined icons for google properties in the contact card

Change-Id: Ie17444f6923cfe9708005862ad262b9445c02a01
ndroid/contacts/quickcontact/QuickContactActivity.java
cf6d8f9b3a8cfebc4218e5198c4d604717518b99 12-Jul-2014 Chris Craik <ccraik@google.com> Merge "Move from old setOutline() api to setOutlineProvider()"
a718cfdeab35814c62f7a37cd5b275286837c30b 12-Jul-2014 Chris Craik <ccraik@google.com> Move from old setOutline() api to setOutlineProvider()

Change-Id: I4cd665da579bd9f7a1730be2459b1b78d2403ddd
ndroid/contacts/common/util/ViewUtil.java
845b020c79d2e5f1142611c595d4b7278dfddf2b 11-Jul-2014 Brian Attwell <brianattwell@google.com> MaterialColorMapUtils

Bug: 16159407
Change-Id: I234d709f47bd0a32e3ac0130457290e0cd9fbf84
ndroid/contacts/common/util/MaterialColorMapUtils.java
60e5108e39e54d0a7e4c6924b33597d338be3fb9 10-Jul-2014 Paul Soulos <psoulos@google.com> Sorts mimetypes together in the cards

Change-Id: I1247874e4fb671551d9b0554960a566a5a5d6b0d
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
6d147afdbb7dc4d11cfc3d54799e5993d73c08e5 10-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Make ContactSelectionActivity useable"
89ee39518c6375f3261b51089bfba6321d48971e 10-Jul-2014 Brian Attwell <brianattwell@google.com> Make ContactSelectionActivity useable

This fixes the glaring bugs with ContactSelectionActivity.
It doesn't attempt to unify the ContactSelectionActivity
styling with the search styling in PeopleActivity.

Also fix a FAB RTL issue

Bug: 16164583
Bug: 15596131
Change-Id: I4d5b2cc8c5d20ae5cc2caa3e26550a51acc2d966
ndroid/contacts/activities/ContactSelectionActivity.java
294fc31bbc89abf05a5976749f3c044c5da91276 10-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Add NFC support into QC"
dff843a3b4c84cc38384a576638270c6c80bc5c8 10-Jul-2014 Brian Attwell <brianattwell@google.com> Show avatars in tablet's portrait layout

Delete and inlined unused tablet configurations

Bug: 16161013
Change-Id: I7c3d64a4802c29d6eeb1f886d754cf2bcbea0767
ndroid/contacts/list/DefaultContactBrowseListFragment.java
2d150da246632b1649999cfabed776133b097775 10-Jul-2014 Brian Attwell <brianattwell@google.com> Add NFC support into QC

Modified NfcHandler to be more generic. Didn't bother
updating the ContactDetailLayoutController to use the
modified NfcHandler, since ContactDetailLayoutController
is completely dead code.

Bug: 15911911
Change-Id: I91f294f1576cba02e68cb442d26dcf8d87c8a735
ndroid/contacts/NfcHandler.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/quickcontact/QuickContactActivity.java
81ca7ee54104585371a4ff4beea1401c4534d7dc 10-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Use circular photos in contact picker"
ab6f8c4fdfa46ec7a7c37da005643b65dccbfe9f 10-Jul-2014 Brian Attwell <brianattwell@google.com> Use circular photos in contact picker

Bug: 16159886
Change-Id: I820aff2abbb6bdaee26a788c97083d45c2694016
ndroid/contacts/common/list/PhoneNumberListAdapter.java
c095aee097899239c8ec427cc640f9870edad1ee 09-Jul-2014 Nancy Chen <nancychen@google.com> Remove SelectAccountDialogFragment for PhoneAccount on Dialer app (2/2)

One-time select will no longer be available within the dialer app so the
fragment and menu item have been removed.

Bug: 15473965
Change-Id: Id72b82ff1f70dc5830ce8d5b30b3559c8186dffe
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/PhoneAccountManager.java
ndroid/contacts/common/dialog/SelectAccountDialogFragment.java
6d0f3595e6a6480452e3c891e2209fb97151a0e9 10-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Set video call state on call intent and add getVideoCallIntent()."
9ef60b3706956430f4d585cd2b76d85f27163a3b 10-Jul-2014 Paul Soulos <psoulos@google.com> Merge "Fixes NPE with 3p entries in QuickContact"
32777801796c1b1793491d44161da41327e07f53 09-Jul-2014 Paul Soulos <psoulos@google.com> Fixes NPE with 3p entries in QuickContact

Bug: 16169465
Change-Id: Ia106ca42ac6e267d314b2100bd9101998c13ddff
ndroid/contacts/quickcontact/QuickContactActivity.java
93a6cb0b017eb7028d9093749494a24c22e63c17 09-Jul-2014 Baligh Uddin <baligh@google.com> Merge "Fixes null storage error in QuickContact"
ae4cafed699b7cd6c5d4dad855bc0d4948452983 09-Jul-2014 Paul Soulos <psoulos@google.com> Fixes null storage error in QuickContact

Change-Id: Iff86f8cc62f06b2e78d175ce37502dabaf34a812
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
70bf7bd1f6d17883e8e7a15679e4f51cd65a492e 09-Jul-2014 Brian Attwell <brianattwell@google.com> Show account prompt <=1 times in PeopleActivity

Bug: 16155251
Change-Id: Ib5efd3baeaad003e8e2cd4c39be29b10d051e564
ndroid/contacts/activities/PeopleActivity.java
6adcfc949428bd6fdc9c20dfa5c27c0454b4ca01 09-Jul-2014 Paul Soulos <psoulos@google.com> Merge "Fixes NPE in QuickContactActivity"
f9d5c0e24d1b11527475227549f9530127e9dc07 09-Jul-2014 Paul Soulos <psoulos@google.com> Fixes NPE in QuickContactActivity

Bug: 16164625
Change-Id: Ief58d7dcbe36a18ee10ea1630af8d9dd5efb0d34
ndroid/contacts/quickcontact/QuickContactActivity.java
e14c4713b9aeb33a07b695b4566d0c49a48c3dbe 09-Jul-2014 Brian Attwell <brianattwell@google.com> QC: black nav bar instead of transparent

Bug: 16159429
Change-Id: Ieb548b28467d36d5a519927f94c5b904b25ffc9b
ndroid/contacts/quickcontact/QuickContactActivity.java
bc3f295fb97452dd0211405c829bcef8eac4e855 08-Jul-2014 Brian Attwell <brianattwell@google.com> Use linear_out_slow_in for entrance QC animation

Change-Id: Ic31b76b9995907afdb9e539443933f97df464514
ndroid/contacts/widget/MultiShrinkScroller.java
c33ae17c9816b770041ee1f9ccde10e7c7eee491 01-Jul-2014 Brian Attwell <brianattwell@google.com> In Contacts, QC image should start full size

This means that QC won't initially show contact photos as tinted
when opening them inside Contacts.

We still show QC contact photos as tinted when opening them outside
Contacts. This is because we need to perform cropping when opening
QC outside Contacts. And, cropped photos look bad without a tinting.

Bug: 15892293
Change-Id: Ic34303d32a40c9ea5f88c8a8ebd88ce1ea8e261d
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
ea5e0b715030f1b0e8015defd10842127a8a4121 09-Jul-2014 Paul Soulos <psoulos@google.com> Updates DataUsage table on entry click

Change-Id: I0c0b5a527577cc57ff260637ab75898dee96a8e4
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
7d22b94ce50f7a65dd89d4533f2aa3a3392e7972 09-Jul-2014 Paul Soulos <psoulos@google.com> Changes xml attributes to end instead of right

Change-Id: Ia1208f9de21fe0f7473377685c82ea0a2da6f548
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/widget/MultiShrinkScroller.java
c18a7548cc07635f52575309d28a1f465748b717 09-Jul-2014 Andrew Lee <anwlee@google.com> Set video call state on call intent and add getVideoCallIntent().

Bug: 16013180
Change-Id: Ia9ac012baf5bbb64b9fde458879df8ddb8552ba3
ndroid/contacts/common/CallUtil.java
555d81516b2d72046c70b5feba26d6292541541d 09-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "QuickContact launcher shortcut is a circle"
5b53b8de6adc71b04e62f2803fdb7a3c3b266d85 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
ndroid/contacts/common/list/ShortcutIntentBuilder.java
aed0a9e58a372b897c61d6007183e294ba014c4b 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
ndroid/contacts/common/list/DefaultContactListAdapter.java
eb64a4b5c51b39fe56ba4ef97dfff73fdcdf8c75 08-Jul-2014 Paul Soulos <psoulos@google.com> About Card

Change-Id: Idfe396d0a4fa24214599990c2895ed9569e5c0fa
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/ResolveCache.java
544ed99796569be96a2f2288658ee9de62e587ae 08-Jul-2014 Brian Attwell <brianattwell@google.com> Merge "Disable default animation for launcher shortcut"
e98b88d33c236d3b25238aab06f05bbcb2f3cb5e 08-Jul-2014 Paul Soulos <psoulos@google.com> Moves more Im Intent functions to ContactsUtils

Change-Id: I2b1462f91ec385cd203475bc2b550df11a576e09
ndroid/contacts/common/ContactsUtils.java
8a0cbec6a59806073c088f6d565ba5992c58fc42 08-Jul-2014 Brian Attwell <brianattwell@google.com> Disable default animation for launcher shortcut

Change-Id: I118ee8e61ca276be2ae5734fd148f3468402a08e
ndroid/contacts/common/list/ShortcutIntentBuilder.java
12a56bc3a0345cd7b86ff18de6375565f7caef48 07-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Add in-app CountryDetector (1/4)"
6a29fcb4823725103d58e5fde4e2125ae4d22b12 14-Jun-2014 Yorke Lee <yorkelee@google.com> Add in-app CountryDetector (1/4)

Replace use of the hidden CountryDetector system service with one that
runs in-app.

Instead of using a LocationManager listener to listen to location updates,
the in-app CountryDetector uses pending intents to passively listen to
any location updates.

This change also introduces an IntentService that is used to simplify the
asynchronous geocoding of the location that is provided to the CountryDetector's
BroadcastReceiver by the LocationManager

Bug: 15593973

Change-Id: I2915aad176963a04c7c577addb659984f0db56f2
ndroid/contacts/common/GeoUtil.java
ndroid/contacts/common/location/CountryDetector.java
ndroid/contacts/common/location/UpdateCountryService.java
1ff2fcb999b43f1249a3105563c4b170ea735283 07-Jul-2014 Paul Soulos <psoulos@google.com> Moves getCustomIMIntent to Util class

Change-Id: I7b8f818becb5e0e1d855db742de053d9a23a09a2
ndroid/contacts/common/ContactsUtils.java
a0f20f77e1b4f6cde5934d8b3348d93b58fd6362 07-Jul-2014 Brian Attwell <brianattwell@google.com> Fix contacts build. Use getVibrantSwatch

I accidentally reverted ag/495948 in a rebase.

Change-Id: I0482db6ef00b98ce89da656399b5f066749933ae
ndroid/contacts/quickcontact/QuickContactActivity.java
a9eee6e5ccedca27b4bbf47196e8d7fa77ac8c16 03-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Overload onCallNumberDirectly with isVideoCall option."
e63a26a48a44c91fb99ac6f4f6df704878b85b84 02-Jul-2014 Ihab Awad <ihab@google.com> Merge "Fix references to two constants"
413589f0b9279e06d8913761cdcf03c8fef7ffd8 02-Jul-2014 Ihab Awad <ihab@google.com> Fix references to two constants

The names of two constants missed getting updated in a previous CL,
causing a build breakage.

Change-Id: I2dec3d91f79aa74f24d84324569cda95c7e455c4
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/util/LocalizedNameResolver.java
e0a273a872611569b1e04cb2204febaca65acea9 01-Jul-2014 Ihab Awad <ihab@google.com> Rename Telecomm "Subscription" to "Account" (2/7)

Change-Id: I73cd3d1a2e7ae12f2e8d94f0a093c6d91bf7c912
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/PhoneAccountManager.java
ndroid/contacts/common/SubscriptionManager.java
ndroid/contacts/common/dialog/SelectAccountDialogFragment.java
ndroid/contacts/common/dialog/SelectSubscriptionDialogFragment.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/util/LocalizedNameResolver.java
4936a92aeef739ae6b57dad00f385307d1b1c5b8 03-Jul-2014 Brian Attwell <brianattwell@google.com> QC gradient when background image is white

Change-Id: Ie38c53d7b6532b3d16ba3b3e2ed299af042686b3
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/WhitenessUtils.java
ndroid/contacts/widget/MultiShrinkScroller.java
e6b8a790ab9b0698c911708ba0ae194c701499b0 03-Jul-2014 Chris Banes <chrisbanes@google.com> Update Contact's Palette integration

Needed for I06f1efefcdfa3d22578653b5f5da3d61a064b5d5

Change-Id: Ia19627db83af0f387c6646e881a5625b29d499aa
ndroid/contacts/quickcontact/QuickContactActivity.java
2e87d2cf6b8a4f2d5dc3f738681f1909074f32fb 03-Jul-2014 Andrew Lee <anwlee@google.com> Merge "Implementing overloaded onCallNumberDirectly() with new parameter."
b92e2f1128fd4137395ed8b2769225a68883cb72 02-Jul-2014 Ihab Awad <ihab@google.com> Merge "Rename Telecomm "Subscription" to "Account" (2/7)"
91740d8ee86686f76f11f07ba94f2ce8b183dc55 02-Jul-2014 Paul Soulos <psoulos@google.com> Fixes bug in merging DataItems for collapse

Change-Id: I87eb2b4eab5af1b71cc47edf2471824c83b45d4a
ndroid/contacts/common/model/dataitem/DataItem.java
86c224e7a50a4241ab41db280384a1cff3bf00af 02-Jul-2014 Andrew Lee <anwlee@google.com> Implementing overloaded onCallNumberDirectly() with new parameter.

Bug: 16013180
Change-Id: I1ae1705351e4d394e3ab7108dc866a105f115e20
ndroid/contacts/activities/ContactSelectionActivity.java
de13cd9d40aa6c8d9fac954a3b1d38ada3de5406 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
ndroid/contacts/common/list/OnPhoneNumberPickerActionListener.java
949d3fb9e459c67b48ee3ce015e4c9ff186e8e44 02-Jul-2014 Jay Shrauner <shrauner@google.com> Fix NPE in isEncodedContactUri

Check for null return from getLastPathSegment

Bug:16034483
Change-Id: Ide3cd794bb7702465814c86b1eb406242eba9149
ndroid/contacts/common/util/UriUtils.java
c1e7ecdbe098604d9f2b775b20acbfe91f39839c 01-Jul-2014 Paul Soulos <psoulos@google.com> Fixes ContentValues misuse in CalendarInteraction

Change-Id: Iab30fa8a8cd925a8832eb25d77beac002e97df15
ndroid/contacts/interactions/CalendarInteraction.java
ba986e1a0b24e6d05f9825fb574a8dd893fa9655 02-Jul-2014 Andrew Lee <anwlee@google.com> Cleanup: PhoneNumberUtils.isVoicemailNumber is now public.

This code isn't needed anymore (?). It seems to follow a very similar
codepath, except for this uses extractNetworkPortion instead of
extractNetworkPortionAlt. I think it seems safe enough to cleanup?

Change-Id: I6b626fa7797ead5f5eeb9456589805694055f037
ndroid/contacts/common/util/TelephonyManagerUtils.java
bf8600ed36b360c31cfe319bb0b59701f1c1d60e 02-Jul-2014 Andrew Lee <anwlee@google.com> Add method to check whether telephony has a video call subscription.

This is a stub to unblock VoLTE development while other refactoring
happens. Still need to implement this later.

Bug: 16013178
Change-Id: I64d11b0f88772047fb15521bf765d6008d0e5076
ndroid/contacts/common/util/TelephonyManagerUtils.java
981192dcc06079b55e5cb5dd283aeead7221f4a8 01-Jul-2014 Paul Soulos <psoulos@google.com> Adds and limit to the call log loader query

Change-Id: I182474e8d28cb7999759debeed221ebdbb9369f9
ndroid/contacts/interactions/CallLogInteractionsLoader.java
d75f0962c2d9b6efd62f44c87b7beb943a806dbf 30-Jun-2014 Paul Soulos <psoulos@google.com> Comment out ContactDetailFragment collapsing

Change-Id: I48749abc3b52dd3e2391d65d0f76cf8e4aed36dd
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
d92f358482659d3b08073d6dfac6ea399fc7ac85 01-Jul-2014 Yorke Lee <yorkelee@google.com> Merge "Clean up SearchSnippetColumns API (3/3)"
a12a04ccf7af143851ba1491cd1a2b09354b9027 01-Jul-2014 Yorke Lee <yorkelee@google.com> Clean up SearchSnippetColumns API (3/3)

Bug: 6948882
Change-Id: I102d21f363ac541c1e54ad06e30913ab6c7fc9b8
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ef576707cab0af304837e506595bc0143aebec88 30-Jun-2014 Paul Soulos <psoulos@google.com> Properly collapses lists of data items

Change-Id: I3f2b9ff40e981076bd50b264bd17ca4023d3b178
ndroid/contacts/common/Collapser.java
5b221086e4b994d6325d7396625900a79e27ae51 27-Jun-2014 Sai Cheemalapati <saicheems@google.com> Change lists' landscape layout on 7" screens.

The favorites and all fragments now have similar
layout/margins to the new contact activity.

Change-Id: Ide74ac16057e335d75495bdd355e360a0859d580
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
d814b030e13987147a4eebcd91f35c0c76793b4b 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
ndroid/contacts/common/list/ContactListItemView.java
585fbc9b99d0be6691c5779250220cc092d64b9b 30-Jun-2014 Yorke Lee <yorkelee@google.com> Merge "Remove private reference to ArrayUtils"
9e795d3af5eab5bc831ba8827039296ad946221c 30-Jun-2014 Paul Soulos <psoulos@google.com> Changes the Collapse interface and makes DataItem collapsible.

This reverts commit e71d24368f53b9d9f2b99eb0a72ddb19bc790097.

Change-Id: I13d1b5f6f6be38086fd983ee8688316e2a9ce874
ndroid/contacts/common/Collapser.java
ndroid/contacts/common/model/dataitem/DataItem.java
5eeaa10f8c20cb896dbf961a29ba6e460943501c 28-Jun-2014 Nancy Chen <nancychen@google.com> Merge "Add EXTRA to call intents in order to include subscription information"
fe2edfc42536c558584164fa93edddd24e968574 28-Jun-2014 Paul Soulos <psoulos@google.com> Revert "Changes the Collapse interface and makes DataItem collapsible."

This reverts commit 7d50fb4f3b536f7ddc275759cf855b821203d761.

Change-Id: I4c16351cb66ef3b6246f0785b28d6690d8fa146a
ndroid/contacts/common/Collapser.java
ndroid/contacts/common/model/dataitem/DataItem.java
6c918c72a6b4d98ea0f2e60f9dc436f5d3a543e9 27-Jun-2014 Paul Soulos <psoulos@google.com> Changes the Collapse interface and makes DataItem collapsible.

Change-Id: I50d935428626e2484163ecd6495840e72e543ea4
ndroid/contacts/common/Collapser.java
ndroid/contacts/common/model/dataitem/DataItem.java
8a43e7c99e1084f60bcf64528de96ce808946247 30-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Don't examine window width in MultiShrinScroller"
ac3ed8e48cc474448aa5a7cfed5d6b95073b84f9 28-Jun-2014 Brian Attwell <brianattwell@google.com> Don't examine window width in MultiShrinScroller

Change-Id: I6f0f590a1877c3f7b7b901f45d79c2037c16f25a
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
0c6b438f48cf6e5a391e37a2006264a43438d5d8 28-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "If extra ScrollView space, don't compress header"
e838a44d3cf12bbc6135610f5095a34991d222f5 28-Jun-2014 Brian Attwell <brianattwell@google.com> If extra ScrollView space, don't compress header

When scrolling upwards, don't compress the header unless
scrolling is needed to show additional content.

Change-Id: I1da3d06b00d9e2efb5834f05fe515593363784e5
ndroid/contacts/widget/MultiShrinkScroller.java
5a4c59db3fd96d6b1478dc4fe2ca9ac2924d854a 27-Jun-2014 Brian Attwell <brianattwell@google.com> ContactEditorActivity title styling

Change-Id: Ib42eb4c4e310d4cec1a795c08741b7d8f5b15995
ndroid/contacts/activities/ContactEditorActivity.java
2eb3ed2fe177f6adecabbf8052e36e7849a8c4aa 27-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Add touch feedback to QC header"
ed6cda6e1e88bc927a361866de8a4c9e35f92d46 27-Jun-2014 Brian Attwell <brianattwell@google.com> Add touch feedback to QC header

Use white touch feedback. Change ActionBar's MenuItem ripples to
also be white.

Change-Id: Ib9f0854bc999ee51e6005c1a1d6ad5714794af98
ndroid/contacts/widget/MultiShrinkScroller.java
6c4385d3ee02325f0e69cf8bb74d1c3351e3548c 30-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Expand header when card collapses"
e8ce6ee1c5ab9f4f3dd11526337c70a8867647d9 28-Jun-2014 Brian Attwell <brianattwell@google.com> Expand header when card collapses

If the card collapses enough to open up unused space inside
MultiShrinkScroller, then expand the contact header.

Change-Id: I88f3009ad90b2defcb7825cc797fd6105178efa4
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
4e1db272f590c9585d9b91deac0c3c763cb3497f 30-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Don't use String.valueOf()"
f43f573340fd9de5d30b43d7c96cac1ec9021e58 30-Jun-2014 Brian Attwell <brianattwell@google.com> Don't use String.valueOf()

This reverts commit 02477604d7cc803b6a7de10b45ed176c4e70f312, and
re-implements the commit.

Change-Id: Ie629acf519d04d5729ef2730269f546f7b723a10
ndroid/contacts/quickcontact/QuickContactActivity.java
ac810ae05f5d74e68ef47a67bf29f7baa6a284a0 30-Jun-2014 Paul Soulos <psoulos@google.com> Fixes redundant methods in Contacts

Change-Id: I4210501fb08aaabc2beda56f97027c4905ca83dd
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/DataAction.java
70c2828a0b719e5ab73c5952dcf5c5c9899c0b32 30-Jun-2014 Paul Soulos <psoulos@google.com> Merge "Updates methods to match interface"
0646ee3eb604800e381575035665258629b1ab47 27-Jun-2014 Paul Soulos <psoulos@google.com> Updates methods to match interface

Change-Id: Id3e9d9771de19f2ef7622e7e84c39836b0e301c0
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/DataAction.java
0deac47c9e5d1f310072fe5856361977bf8336d8 26-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Update LetterTileDrawable colors"
f5138ee63e1d87a60923a4ca3c124a1793810d83 26-Jun-2014 Brian Attwell <brianattwell@google.com> Update LetterTileDrawable colors

Contacts/Dialer still uses a different hashing function to
pick the colors.

Bug: 15889179
Change-Id: I93746fe12b772743fd98923c7fea331a984bb1e5
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
b9cdb2f63ad5e381fd4a193f5c3afd69a0fed7c1 27-Jun-2014 Paul Soulos <psoulos@google.com> Temp overload a function so build doesn't break

Change-Id: I5fa29da1058d91600c0c302e61a7ad6ef28cebb8
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/DataAction.java
ac51a8788f5ecf755784d00e1ef40a1a87b437c1 24-Jun-2014 Nancy Chen <nancychen@google.com> Add EXTRA to call intents in order to include subscription information

The getCallIntent method should receive subscription parameter in order
to pack it into the intent to call (which will get passed to the
CallManager).

Bug: 15473965

Change-Id: Ib166c17f910aabc5581029afad527fa3dbedf93d
ndroid/contacts/common/CallUtil.java
b21388ae34c57d758b795750489fad569e6e47eb 26-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Frequently Contacted title style in Favorites tab"
8cb7b46ee8f8a34c8621e221ae7cd7e52e63d112 25-Jun-2014 Brian Attwell <brianattwell@google.com> Frequently Contacted title style in Favorites tab

Change-Id: I2effc74dfd1b570844296c003de456ec71e2940d
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/list/ContactTileAdapter.java
6e06dd1a784e77fbe7b5c5f3f98d73d57b6ed68b 25-Jun-2014 Paul Soulos <psoulos@google.com> Adds retrieving a raw contact id from a data item.

Change-Id: I956a53211719cfaa85ce3cd18ee15616eb571a97
ndroid/contacts/common/model/dataitem/DataItem.java
8bf96e78497ea9c8c893bcb357fc1e3175fb2e9b 26-Jun-2014 Brian Attwell <brianattwell@google.com> QC: Clear action map before reconstructing it

Also, I changed the ActionMultiMap to be a local variable.
1) I figured this enhanced maintainability. This was the only
object field that was mutated off the main thread. Leaving
it global could lead to confusion.
2) This is only used in one method

Bug: 15814131
Change-Id: I4e3a315ae2347e2e1e652eb79023b2907f0c7c7e
ndroid/contacts/quickcontact/QuickContactActivity.java
d798078346ed33d0ef6bd63655c1ee6870a3e2d6 25-Jun-2014 Brian Attwell <brianattwell@google.com> Default QC avatar

UX still hasn't decided how they want to display the default avatar.
I'm confidant most of the work in this CL will be usable once they
make up their mind.

Change-Id: Id24160d4339b0bd1bdd428c007d32f42942c0a43
ndroid/contacts/widget/MultiShrinkScroller.java
ndroid/contacts/widget/QuickContactImageView.java
28a239eb826c14f3c49ac64e4e08014ee2096b2f 25-Jun-2014 Paul Soulos <psoulos@google.com> Adds the rest of Action mimetypes to the end of the contact card.

Change-Id: Id6f3eeb02ddbcb7d45b4f2af8fc9b544c4366ef7
ndroid/contacts/quickcontact/QuickContactActivity.java
3808f3008ffe27b0304091540b2a8c75ec52cf77 25-Jun-2014 Yorke Lee <yorkelee@google.com> Remove unneeded EXTRA_MODE from ShortcutIntentBuilder

Bug: 6948882
Change-Id: I78ebd9cd1e41e06381d7f1d227854be2b7632d20
ndroid/contacts/common/list/ShortcutIntentBuilder.java
be48e0c3be9c2dacce92f32e44303eed48630189 25-Jun-2014 Brian Attwell <brianattwell@google.com> Set margin of QC's uncollapsed title

Needed to add some additional MultiShrinkScroller code in order to support
interpolating between the maxiumun and minimum margin values. Previously, this
value was constant.

Also noticed I was pointlessly recalculating the minimum margin values.

Change-Id: I234a528517b91ea698eab0fc7996bbe9a8f1f404
ndroid/contacts/widget/MultiShrinkScroller.java
8571dd3953ddf2cf8442335657a1945487d665a1 24-Jun-2014 Brian Attwell <brianattwell@google.com> Download hi res photo when viewing QC

Needed to change some color handling code in order to write this
CL. While I was looking at the color code, I added support for
coloring the ExpandingCardView assets the correct color.

Change-Id: I8e4cf1d0c1507f56d54c3f95fa904f88c4f1f84e
ndroid/contacts/quickcontact/QuickContactActivity.java
82d2391311be703c74f958512c3d9676ad98dc3e 24-Jun-2014 Paul Soulos <psoulos@google.com> Updates DataItem getTimesUsed and getLastTimeUsed return types to Objects

Change-Id: I8853d0e18e4e704e9854c46bd113e75388533793
ndroid/contacts/common/model/dataitem/DataItem.java
ed7ef5d172e354d8bebe41f8fa068d4604a2f245 24-Jun-2014 Yorke Lee <yorkelee@google.com> Remove private reference to ArrayUtils

Bug: 6948882
Change-Id: Ia4177896c62726975acf55cd5d0c716fdf9ceca4
ndroid/contacts/common/dialog/SelectSubscriptionDialogFragment.java
84e3a88b3101d81d62256e8081fa3e6920707c9b 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
ndroid/contacts/common/list/PinnedHeaderListView.java
29c98071e53e106156932723063311ffd41e1960 25-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Bag o' QC UX improvements"
9b889e6ef4534db6925e3f915bed281733ea8bc3 24-Jun-2014 Brian Attwell <brianattwell@google.com> Bag o' QC UX improvements

UX and I spent a couple days trying out different tweaks to QC.
This is the result.

Main Changes:
-landscape
-better blending, and interpolation of blended values
-different scrim animation length
-updated colors & dimensions
-scaling of title TextView during scroll
-EdgeEffect color is now dynamic
-Drop shadow size

Bug: 15725269
Change-Id: Ib992b41692704d3d932527cef715693ed7a7f4cc
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
ndroid/contacts/widget/QuickContactImageView.java
16339336653fa028a2e02e1eee92851fe5084d1c 24-Jun-2014 Paul Soulos <psoulos@google.com> Sorts contact methods based off of times used (frequency)

Change-Id: Ib17e012d08e31b69aedafcd7d3ffa2e3eafe348c
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
7b0b0ce616c6c2fa149918c112128388712f5657 24-Jun-2014 Paul Soulos <psoulos@google.com> Colorize ExpandingEntryCards further.

This moves the responsibility of coloring from the QuickContactActivity
to the ExpandingEntryCard.

Change-Id: I991464b7bc5dfeb2092e057ceafc77538ee1ad64
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
75d5a915cb764f610db6141148c57b1c8e080564 24-Jun-2014 Paul Soulos <psoulos@google.com> Fixes a crash caused when getting values from the ContactInteraction
ContentValues

Change-Id: I5348784465d263d3fc991c6cd288c66b22681659
ndroid/contacts/interactions/CalendarInteraction.java
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/SmsInteraction.java
c6b2494b3456da063311b4c8b1a8259af5e3a837 24-Jun-2014 Jeff Davidson <jpd@google.com> Merge "Fix broken reference to R file."
b4574d6f585f665cbb5cef31628e7d23d43b3f08 23-Jun-2014 Jeff Davidson <jpd@google.com> Fix broken reference to R file.

The "yesterday" and "tomorrow" strings seem like they come from
packages/apps/Contacts/res/values/strings.xml, not from
ContactsCommon.

Change-Id: Ic37cf0187a569bdd33a6d9f4639e09f36e6fc0ae
ndroid/contacts/interactions/ContactInteractionUtil.java
8684f74d46aae4f099a73b26194eb0733d5bd3fb 23-Jun-2014 Paul Soulos <psoulos@google.com> Adds support for DataUsageStatColumns

Change-Id: I9f3a538284106605ba55cc42ac757b157c3ebd42
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/common/model/dataitem/DataItem.java
0c2d07324cff8ee507aea072acf63f416470bdd1 21-Jun-2014 Yorke Lee <yorkelee@google.com> Remove getPlusExtensionPackageName()

Bug: 15673170
Change-Id: I2c2aed6a39b9a6d5d1b0ad6a7f2b8ebacfc85140
ndroid/contacts/common/model/account/GoogleAccountType.java
2357dd95feb392451e7bdb9bf94c347e327140e3 21-Jun-2014 Yorke Lee <yorkelee@google.com> Merge "Remove use of SystemProperties in ContactsCommon"
23f270d2db331913825ff479b6c25c695d96170b 21-Jun-2014 Yorke Lee <yorkelee@google.com> Remove use of SystemProperties in ContactsCommon

Bug: 6948882
Bug: 15673170
Change-Id: I246cb16b11cf2db0cc7fe0d59f8e59fd8f7af76f
ndroid/contacts/common/model/account/GoogleAccountType.java
c4017d1043b03f7e0dcbe638f13b1e671ab19695 19-Jun-2014 Sai Cheemalapati <saicheems@google.com> Update Emergency Dialer to match Dialer (2/7).

Emergency dialer style updated to match style in Dialer and
InCallUI.
Moved all dialpad resources to PhoneCommon.

Change-Id: I5741364301c50770fd082758ef81fc79fd7c3b73
ndroid/contacts/common/animation/AnimUtils.java
ndroid/contacts/common/animation/AnimationListenerAdapter.java
ndroid/contacts/common/dialpad/DialpadKeyButton.java
ndroid/contacts/common/dialpad/DialpadTextView.java
ndroid/contacts/common/dialpad/DialpadView.java
ndroid/contacts/common/dialpad/DigitsEditText.java
e023fe579e661e62b7dd0d5bfc9f016d8c8ded39 20-Jun-2014 Yorke Lee <yorkelee@google.com> Revert "Update Emergency Dialer to match Dialer (3/5)."

This reverts commit 8e7cebc6aff9b41192dd3348fc52ef62c06236ab.

Change-Id: Ifa42f45868286b80e111229bb0761798af884293
ndroid/contacts/common/animation/AnimUtils.java
ndroid/contacts/common/animation/AnimationListenerAdapter.java
ndroid/contacts/common/dialpad/DialpadKeyButton.java
ndroid/contacts/common/dialpad/DialpadTextView.java
ndroid/contacts/common/dialpad/DialpadView.java
ndroid/contacts/common/dialpad/DigitsEditText.java
e6fb40f1e7e741745a27f91c91614efab5a4a789 19-Jun-2014 Sai Cheemalapati <saicheems@google.com> Update Emergency Dialer to match Dialer (3/5).

Emergency dialer style updated to match style in Dialer and
InCallUI.
Moved all dialpad resources to PhoneCommon.

Change-Id: I2c346c4d51249972f549e30577b013423e20481a
ndroid/contacts/common/animation/AnimUtils.java
ndroid/contacts/common/animation/AnimationListenerAdapter.java
ndroid/contacts/common/dialpad/DialpadKeyButton.java
ndroid/contacts/common/dialpad/DialpadTextView.java
ndroid/contacts/common/dialpad/DialpadView.java
ndroid/contacts/common/dialpad/DigitsEditText.java
ef25b28643610e9b46c8bc3b9ea5baeee740f865 19-Jun-2014 Nancy Chen <nancychen@google.com> Add reference to TelephonyManager, renaming, remove checkbox (2/2)

Incorporating API calls to TelephonyManager.getSubscriptions.
Added new SubscriptionManager class to wrap data about subscriptions for
the purpose of passing between Dialer and its fragments.
* This particular CL deals with the introductoin of the
* SubscriptionManager class and the implementation of the dialog.

Bug: 15473965
Change-Id: I8c3a1f34e41bb8b39b5bfae43b6bad1792ed72e5
ndroid/contacts/common/SubscriptionManager.java
ndroid/contacts/common/dialog/SelectSIMDialogFragment.java
ndroid/contacts/common/dialog/SelectSubscriptionDialogFragment.java
de1c78c417fa95e989d7c2ae277d03011b527a57 19-Jun-2014 Yorke Lee <yorkelee@google.com> Follow new PinnedPositions API changes (2/2)

Bug: 15593967

Change-Id: Ie78300e15e4289323be8324daf3f9cfa8056915d
ndroid/contacts/ContactSaveService.java
ef245fc69b4e75150ffc3b2622b8b9e0757f7da7 19-Jun-2014 Paul Soulos <psoulos@google.com> Merge "Fixes a NPE in CalendarInteractionsLoader"
0a76a46cf162884b6599b346ca7e9206a49b62de 19-Jun-2014 Paul Soulos <psoulos@google.com> Fixes a NPE in CalendarInteractionsLoader

Bug: 15721703
Change-Id: I90791d8c0a455b536a494083cecfbe8c0e2d9424
ndroid/contacts/interactions/CalendarInteractionsLoader.java
0d90afea92dc37245d5c2cad4d6b8040f2faed5c 19-Jun-2014 Brian Attwell <brianattwell@google.com> Click on transparent QC region to dismiss QC

Also: in order to make this work better for both landscape and
portrait, I replaced the transparent margin with a transparent
view.

Change-Id: Iba12f924fde2224bd51b4a6d0bcae16b97b23dda
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
8477eafe57bca7b6b72da6e2e419ebeaf4de9674 19-Jun-2014 Brian Attwell <brianattwell@google.com> Cleaned up QC exit animations

Pressing back button now starts proper exit animation.

Also, window shim dims while scrolling animation occurs. The activity
does not finish() until the shim and scrolling animations have both
finished.

Change-Id: Id79ad86c8ab646027b768ca4b5f62781946ffb8a
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
f7f2eaeaba82673f74c729e5ea1b0373cfb0ceee 19-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "snapToBottom() uses non janky interpolator"
b442dc78781e5b9edc9425342525b573b048be13 18-Jun-2014 Brian Attwell <brianattwell@google.com> snapToBottom() uses non janky interpolator

Use an interpolator that starts with the velocity
of the current scroll. This prevents a point of discontinuity.

UX complained about the previous interpolator.

Change-Id: I3b02f64446050197c14aebc9235d8a7ab1c60107
ndroid/contacts/widget/MultiShrinkScroller.java
6feb9f3b14c321c03aefb783f1723c25c9ebcea5 18-Jun-2014 Brian Attwell <brianattwell@google.com> QC: Half expanded header should be tinted

UX request.

Change-Id: I83d3767a8ee86e60c7ab4c49d935e8902380957d
ndroid/contacts/widget/MultiShrinkScroller.java
5e0d0b9d2efe3c0a4a0172c590cfef94ec841146 17-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Do not smoothScrollBy(0)"
9a0c06f7a5f05980d08a845a07d44730db51cd6f 17-Jun-2014 Brian Attwell <brianattwell@google.com> Merge "Remove reference to internal settings bool"
c9c4db7ab9f47bcedfe6793db9898e851f38b447 17-Jun-2014 Brian Attwell <brianattwell@google.com> Remove reference to internal settings bool

We no longer need this work around now that b/5045558
will be fixed by ag/486018.

Bug: 15675746
Change-Id: I4147972221688ae59b1135c50febf2333f3fe7d9
ndroid/contacts/activities/PeopleActivity.java
ab840448dd00ce3f02ec7317df69b24613ade8a9 17-Jun-2014 Paul Soulos <psoulos@google.com> Adds Call Log interactions to the recent card

Change-Id: I2ade43cee543c706a90da81a4c4bd256b71411f8
ndroid/contacts/interactions/CallLogInteraction.java
ndroid/contacts/interactions/CallLogInteractionsLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
245b8d15a22ce976e1c550ece39fccb80a4d1afd 17-Jun-2014 Brian Attwell <brianattwell@google.com> Do not smoothScrollBy(0)

Change-Id: Idc3e61928ae27e236a03fd25a6f35b30d4eb8ae9
ndroid/contacts/widget/MultiShrinkScroller.java
08b0d9a980a0dbb7ea2d2f95b0827201a244507d 17-Jun-2014 Brian Attwell <brianattwell@google.com> Remove unused class: TextWithHighlightingAnimation

TextWithHighlightingAnimation referenced internal attributes.
Fortunately, fixing this reference was easy: delete the entire
class and everything that uses it.

Bug: 15675746
Change-Id: Id43cea63316ba3af837ac82b76114f7ea1b5670b
ndroid/contacts/list/ContactNameHighlightingAnimation.java
ndroid/contacts/widget/TextHighlightingAnimation.java
ndroid/contacts/widget/TextWithHighlighting.java
ndroid/contacts/widget/TextWithHighlightingFactory.java
78f053bb8c3caf344dcf0858461edc06e1c26b27 17-Jun-2014 Brian Attwell <brianattwell@google.com> Merge changes Ia3743acd,I92d22d25

* changes:
Remove reference to com.android.internal.util
Remove internal references from DatePicker
3bb467da0f4539ec4f5ff8e1929e77ce9e3ce39d 17-Jun-2014 Brian Attwell <brianattwell@google.com> Remove reference to com.android.internal.util

Bug: 15675746
Change-Id: Ia3743acd634569463d03b2bdbb712683322b1b37
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ee89164751f62370e74e72f1204a6e248e614527 17-Jun-2014 Brian Attwell <brianattwell@google.com> Remove internal references from DatePicker

Bug: 15675746
Change-Id: I92d22d25c140a82831eb6086772d66cf4ea62b86
ndroid/contacts/datepicker/DatePicker.java
ndroid/contacts/datepicker/DatePickerDialog.java
31c7bf977e06fe3ed198cacf34d94b0a2c131a14 17-Jun-2014 Paul Soulos <psoulos@google.com> Fixes a Monkey NPE in PeopleActivity

Change-Id: Ifb9ee35a536bb4d83a3c1abe12640d073d2f23c5
ndroid/contacts/activities/PeopleActivity.java
8a6d0022b07640d4a1fb8b264c8822bbab2981ad 17-Jun-2014 Paul Soulos <psoulos@google.com> Fixes NPE error in QuickContactActivity.

Change-Id: Ibaa41202da7cfd24b3c4e2e78f8a351d3d55f78c
ndroid/contacts/quickcontact/QuickContactActivity.java
7fa11d1adfa876daef636104834cbb522b041aa9 13-Jun-2014 Brian Attwell <brianattwell@google.com> Scroll scroll view to top on header clicked

Change-Id: Ie5a0c3276570bb6b059e9d56506cc80cac0025ca
ndroid/contacts/widget/MultiShrinkScroller.java
64d3abcec966d48e5c0a0b5c53d6f17073a5b3a3 13-Jun-2014 Brian Attwell <brianattwell@google.com> Clicking on QC header expands the header

* The maximum expansion size of the image is equal to its width.
* For the minimum header size. We now rely on android.R.attr.actionBarSize
instead of using a value in dimens.

Change-Id: I9e2438a457bd2afc50f07d028c810efc8455678e
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
65732032096019c8dcca18c6afe4b100be27c8df 13-Jun-2014 Nancy Chen <nancychen@google.com> Merge "Add dialog for SIM card select option on dialer menus"
24dad55ee7543df36a7d89be313cce654278df2b 12-Jun-2014 Paul Soulos <psoulos@google.com> Move rotateDrawable to ContactsCommon

Change-Id: Ib3ee75d667a65490cd85305cea11a6be1f07404c
ndroid/contacts/common/util/BitmapUtil.java
801fccd97dbd3756e553ebe92d4f123b258eff0f 11-Jun-2014 Andrew Lee <anwlee@google.com> Use setColor instead of setTint to apply styleable color to ripple.

Ripples now have their color defined by color field instead of tint.
We set this programatically based on a style attribute, so this code
had not caught up and was crashing.

Bug: 15549256
Change-Id: I0988a7e148c510565c41e739cc26854e3d9ff34c
(cherry picked from commit c57395002642035adccf980462fd54b18d3b2150)
ndroid/contacts/common/dialpad/DialpadView.java
30cfd121ad8c8adb83cf417ff1d40a8ba1e3761d 14-Jun-2014 Brian Attwell <brianattwell@google.com> Use white icons in actionbar

Switched some of the black alpha masks to white alpha masks,
this way I didn't need to apply any tint.

We use ic_person_add_24dp drawable in both black and white.
So I had to apply a tint to this one.

Change-Id: If8e08998f368b643d19cbf8bfa5a372932abfffe
ndroid/contacts/quickcontact/QuickContactActivity.java
2a865f9bce03bc8498dfcebf1a4322ec936c5dc1 12-Jun-2014 Brian Attwell <brianattwell@google.com> Add ContactTileView#isContactPhotoCircular()

This parameter can be overriden inside dialer.

Bug: 15573471
Change-Id: I2183d3c406cb43223856e2bf653a894b4fa37ef0
ndroid/contacts/common/list/ContactTileView.java
67dcc6fa49392fceb5da370c99d3e2c8faa02434 11-Jun-2014 Nancy Chen <nancychen@google.com> Add dialog for SIM card select option on dialer menus

Create new dialog that will be brought up when "Select SIM card" option
is chosen in the main dialer activity menu or the dialpad fragment menu

Bug: 15473965
Change-Id: Iff4943cebe98af0f7627795116802ba1a536c548
ndroid/contacts/common/dialog/SelectSIMDialogFragment.java
84ef8a4724998643f10178a7696e412f5ca982e3 12-Jun-2014 Paul Soulos <psoulos@google.com> Runtime Fix for CalenderInteractionsLoader

Change-Id: I4642817f17a779f4ab4891cc5f7302317c354b90
ndroid/contacts/interactions/CalendarInteractionsLoader.java
e3baab9a46377d05d29ba85172f4235bf476ba32 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
ndroid/contacts/common/list/ContactTileAdapter.java
efd210a2a8d1e43a51d034c0d367cb57f3fe15fd 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
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/ContactTileFrequentView.java
ndroid/contacts/common/list/ContactTileView.java
d3217b28ef0dcc2bb7cdd00d598178fdc9324d72 29-May-2014 Brian Attwell <brianattwell@google.com> Show starred contacts in circles

Change-Id: I9b3171a507a6b8e0be8bc29e13b4c98f7a0cb737
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/ContactTileView.java
77faaf5a7a2c9de254f1b39c1161031b64b57037 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
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/ContactTilePhoneStarredView.java
921668128ad1605835caa45f45f857c3c4e1c955 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.
fbaa5dc3900fe71d14d00d9b9aa8086fbe2411cc 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.
73adf56b75796bf9cb9575c9df00de959066e14b 11-Jun-2014 Andrew Lee <anwlee@google.com> am 09b5369f: Merge "Update setCanDigitsBeEdited to show overflow menu button if editable." into lmp-preview-dev

* commit '09b5369fb846d725e30c0f5beffa4be7089129d9':
Update setCanDigitsBeEdited to show overflow menu button if editable.
b1b2a6f34aef3acd539b88fcf49f888aa3ba4f3e 10-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Apply list item padding left to the contact list pinned header." into lmp-preview-dev
c28c62409c82335d6513aacd8dc5d99a94e11c68 10-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Add support for full-bleed selection of contact list items." into lmp-preview-dev
899aa21e911ee7170beab228d44d7fed68c414e4 11-Jun-2014 Paul Soulos <psoulos@google.com> Adds Calendar events to the Recent card

Change-Id: Iaddba9649cd838fe9a866906eea356dbc743ee3c
ndroid/contacts/interactions/CalendarInteraction.java
ndroid/contacts/interactions/CalendarInteractionUtils.java
ndroid/contacts/interactions/CalendarInteractionsLoader.java
ndroid/contacts/interactions/ContactInteraction.java
ndroid/contacts/interactions/ContactInteractionUtil.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/interactions/SmsInteractionsLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
019c71fc77420b162e2f54dec6eca5b0046a5c9c 11-Jun-2014 Brian Attwell <brianattwell@google.com> Apply tint QC Toolbar once it is at minimum size

Change-Id: I36204fcbc9908f1164193064d1d85d9270b52c87
ndroid/contacts/widget/MultiShrinkScroller.java
02477604d7cc803b6a7de10b45ed176c4e70f312 11-Jun-2014 Brian Attwell <brianattwell@google.com> Fix null pointer exception in QC#actionsToEntries

Exception was added in ag/478768

Change-Id: I231be9c8a4dca3e70bbae6add04a1540bc91841b
ndroid/contacts/quickcontact/QuickContactActivity.java
752cccf954bd6070c5fb623875314951c8e9849d 11-Jun-2014 Brian Attwell <brianattwell@google.com> QC Share and Add to Homescreen menuitem impl

Implementation taken from the ContactLoaderFragment

Change-Id: I24fd1d2b1178f4ed29e2d34409383022d1252ba2
ndroid/contacts/quickcontact/QuickContactActivity.java
c4508d8c3548a6b922e98785ae673ee5e827e6ec 11-Jun-2014 Brian Attwell <brianattwell@google.com> Remove Add menu item now that we have a FAB

The icon is from contacts common so I'll leave deleting it until later.
I'm trying to avoid touching master-contacts's contacts-common.

Change-Id: Icdba1c122c805c6c671b2698226c2aa7a9080196
ndroid/contacts/activities/PeopleActivity.java
d28851f436c39a83f02d3b405fd91f0fb4833b2a 10-Jun-2014 Brian Attwell <brianattwell@google.com> Use Toolbar for QC

* Moved star, add and edit buttons into Toolbar
* Fixed implementation of add/edit: copied the
ContractDetailFragment implementation
* Added unimplemented Share and Place on Home menu items
* Deleted some of the quickcontact_activity.xml files
* No longer handle click events on Contact photo view

Change-Id: Id333b11e89d8755ace600700be15077fd47b6172
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/quickcontact/DirectoryContactUtil.java
ndroid/contacts/quickcontact/InvisibleContactUtil.java
ndroid/contacts/quickcontact/QuickContactActivity.java
23889ba7ca18ed4ea56248355438a734511bc0b7 10-Jun-2014 Paul Soulos <psoulos@google.com> Update Contact card UI.

1. Adds a separate entry for SMS (still up for debate)
2. Uses the proper icon resources for common contact types
3. Colorizes the icons if available

Change-Id: Ibf491e0e05d453d0d06b0ad16847e4eb34084811
ndroid/contacts/quickcontact/QuickContactActivity.java
8a6f4ade05e5a8a89d91078ef9c22944450ac8ba 07-Jun-2014 Brian Attwell <brianattwell@google.com> Bag of QuickContact improvements

* QuickContacts open full screen when inside the Contact app
* Status bar color (aka system bar)
* Added and animated shim
* Moving code off UI thread (without these, I was seeing ~20
frames dropped from the shim animation)
* QuickContacts now acts reasonably when re-entering QuickContacts
from the edit view

Change-Id: Idafc20b62b1d04f0a9c437b3708555ec6dddedf5
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
0d49d81a3df2eea40dfe57570767c7661463f2dc 07-Jun-2014 Brian Attwell <brianattwell@google.com> Lazily inflate entries in ExpandingEntryCardView

When first initializing ExpandingEntryCardView, don't inflate all
its subviews.

Change-Id: I7696ed4c327a6dbc6dc5e7e7fb81e8910234284c
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
b3054e551173887029c55cb10b83f1afb7f8a6fe 06-Jun-2014 Paul Soulos <psoulos@google.com> Adds Recent Interaction loading to QuickContacts.

This is launched after the Contact is loaded from CP2, during the bind stage.

Change-Id: I63290e0e94c476da1771f6e8b92a9c664f2fe9d3
ndroid/contacts/interactions/ContactInteraction.java
ndroid/contacts/interactions/ContactInteractionUtil.java
ndroid/contacts/interactions/SmsInteraction.java
ndroid/contacts/interactions/SmsInteractionsLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
a513f720d2a15be6a00894c9a2812355d0643fcf 06-Jun-2014 Brian Attwell <brianattwell@google.com> Add delete button to Edit View

When a contact is deleted, QuickContacts is told by LoaderCallbacks
that it shouldn't be visible prior to onResume().

Change-Id: I5f9c84cbfefddca3722bd1de3c5a98760547ef0a
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
31b2d42fb0889e61515d27314aa5a245147100da 05-Jun-2014 Brian Attwell <brianattwell@google.com> Use support.v7.palette to get header tint

Todo in later cls:
-save the extracted tint, so we don't have unnecessary delay
when returning from the edit screen
-animate the change of tint color. This matters for tablet
and after the photo changes.

Change-Id: I11685c1489a5c7b49f46c250033f4f303b076ef6
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/widget/MultiShrinkScroller.java
2c1bfd01bcd8f00723110c6964b399b96405a12e 05-Jun-2014 Brian Attwell <brianattwell@google.com> Remove two panel layout from PeopleActivity

Also, removed tablet versions of PeopleTheme. There isn't a good
reason to have seperate themes for tablets and phones. The only
differences will be dimensions. These will be controllable by
dimens.xml.

Change-Id: Icf24e57fe052d6a820e8bee50fced438bba157b2
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactTileFrequentFragment.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ndroid/contacts/util/PhoneCapabilityTester.java
5cc21eb9fd21c50ada1d94665560099025f9853d 04-Jun-2014 Brian Attwell <brianattwell@google.com> Quantized edit fragment

Switched edit fragment's view to use the PeopleTheme.

After this, the default padding inside EditText changed. I set the
padding back to Holo padding.

Change-Id: Ic7ad33f4c0e6d75e6c173cc7c1689fb4651f959a
ndroid/contacts/editor/TextFieldsEditorView.java
dcb938f8e06e3855064f968e50150ba15ccab3d5 04-Jun-2014 Brian Attwell <brianattwell@google.com> Dynamic photo tint in QuickContact's header

Change-Id: Iabee00bc9e8f18d87cf75f54847a1cbc5e82322b
ndroid/contacts/widget/MultiShrinkScroller.java
d257a90e1a9a439da44a97d328c3a933d54f2cae 04-Jun-2014 Brian Attwell <brianattwell@google.com> Move phone menu options into edit screen

Currently, these options will only supported for existing contacts.
This is what UX's mocks show.

Change-Id: I97fd58c11aea1594052945cdfd956b6eff883b7c
ndroid/contacts/editor/ContactEditorFragment.java
b7e4364d6536449271ac4534dbeb7430134c096b 02-Jun-2014 Brian Attwell <brianattwell@google.com> Custom scrolling ViewGroup for QuickContact

Plus basic entrance animation

As our UX person gets to play with this, the MultiShrinkScroller's
snapToTop and snapToBottom() methods will likely be changed a lot.

Change-Id: I75adde129f5e5224e3519733f214fc638c2512ab
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/SchedulingUtils.java
ndroid/contacts/widget/MultiShrinkScroller.java
ndroid/contacts/widget/TouchlessScrollView.java
71032f3fb7038995297666602773ae023c1351c4 03-Jun-2014 Brian Attwell <brianattwell@google.com> Use predraw height for expand animation

Since TextViews can wrap multiple lines, their measurements
can change after layout() is called on them. Therefore,
it isn't sufficent to perform a manual measurement call on
mEntriesViewGroup. We need a predraw listener.

Bug: 15021154
Change-Id: I01daa89cb25cd381425c3994eda67f8769a40c13
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
b8eb33c2ef87d0eeac209f43dab1fae51d9ed3dd 31-May-2014 Paul Soulos <psoulos@google.com> Change the Edit icon resource

Change-Id: I27cd5ec9994bd0ab01c3c0d2f649d37381cc0edb
ndroid/contacts/quickcontact/QuickContactActivity.java
6adbf1e7870e9de4ad203d334c8786ffca7d123d 31-May-2014 Brian Attwell <brianattwell@google.com> Unified search bar style, and new animation

Change-Id: I87516ceae4a5d64edb1febd50bd96b4f7471af67
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
a05431fe824f39e60a8b25a244a1fea39805a61b 31-May-2014 Brian Attwell <brianattwell@google.com> Remove dual panel code from ActionBarAdapter

We don't want to use NAVIGATION_MODE_LIST anymore.

Removing this now will simplify my next CL that touches the
ActionBarAdapter.

Change-Id: I0b8b05aa2f5d6b5a58a56f8aedd14ed638a7599f
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
5ec23fdf243596717197a0c45495f24492cf0641 30-May-2014 Paul Soulos <psoulos@google.com> Makes QuickContactActivity full screen and swaps full detail for edit.

Change-Id: I9403a592ba916bcb627e023736d133b6b33a1420
ndroid/contacts/quickcontact/QuickContactActivity.java
2d48b5ae6664a7ae0ed9941f55fae9dc327bd640 29-May-2014 Paul Soulos <psoulos@google.com> Add ExpandingEntryCardView to QuickContact

The communication card is slightly implemented to make sure ExpandingEntryCardView
works as intended. There is more work to do in a different CL to finish this.

Also delete a bunch of QC code.

Change-Id: If7d8373866560c635851fe0e09ffad9cc0054f4f
ndroid/contacts/quickcontact/ExpandingEntryCardView.java
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
2b9563d4c3aa7d3f57ab16ea4cb98cd9e588c50d 28-May-2014 Paul Soulos <psoulos@google.com> Uses a floating action button for adding new contact

Change-Id: I47cc26e857f7b3da8537bc52c8cb08b969af44b7
ndroid/contacts/activities/PeopleActivity.java
130e5f6583c9144c7e3c6959d48edd73971e9571 29-May-2014 Brian Attwell <brianattwell@google.com> Don't use ContactDialAdapter#STARRED_DIALER_ONLY

The code is dead inside Contacts anyway.

Change-Id: I76a8d435030c028c8e228ff8a47b2616674d44d2
ndroid/contacts/list/ContactTileListFragment.java
b0d3c7609a21d7432bcac0cf97411d1ff64851ba 22-May-2014 Brian Attwell <brianattwell@google.com> Revert^4: Use action bar style from ContactsCommon""

Move this into master-contacts

This reverts commit 88636968c74a13c79629fc8adf200f670a98ff02.

Change-Id: I879450b5871c5ef4b925a839dcd64c4ec1bf6141
ndroid/contacts/activities/ActionBarAdapter.java
5fb3a58ebc48ecbede7346a411e59ad4a99c77c9 20-May-2014 Paul Soulos <psoulos@google.com> Updated PersonActivity row click and QuickContact intent filters.

The entire row in PersonActivity now launches the QuickContactsActivity.
Removed ContactDetailActivity and move its intent-filter to QuickContactActivity.

Change-Id: Ibfb7d92059f97cbbc5fd426453b6b5a1918bf590
ndroid/contacts/activities/PeopleActivity.java
2090743a5a401feb70d513d7cef4c4539973ae44 10-Jun-2014 Tyler Gunn <tgunn@google.com> Removing flawed "getTodayString" and "getYesterdayString" methods.

These methods made assumptions of how getRelativeTimeSpanString works that
were incorrect.

Bug: 15541650
Change-Id: Ibdba688587b21d5fc547832ebee0997fc290c9fb
ndroid/contacts/common/util/DateUtils.java
9ffd8f695804d4dd42509803235afd9233c2a44a 10-Jun-2014 Andrew Lee <anwlee@google.com> Merge "Update setCanDigitsBeEdited to show overflow menu button if editable." into lmp-preview-dev
4683e54c3fc18fdb1207125821c818dc08d68f47 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
0861aada142d44e5033a2f33c35a5ed8a88f96a7 09-Jun-2014 Andrew Lee <anwlee@google.com> Apply list item padding left to the contact list pinned header.

Bug: 15517457
Change-Id: I18b9cf5daa36e44ec01ef905550e09b5db2cbdd6
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
a1259611738f5c56dab7b8fc6f60c2f10566d11b 07-Jun-2014 Andrew Lee <anwlee@google.com> Update setCanDigitsBeEdited to show overflow menu button if editable.

Bug: 15453278
Change-Id: Iefe44b5131b4ec9de4384f7aa8c31071be2dba05
ndroid/contacts/common/dialpad/DialpadView.java
b9ec8fc7a83ddc1866aa5b224d0c9a04275785cc 06-Jun-2014 Andrew Lee <anwlee@google.com> am 1009021a: Fix bad text kerning in dynamic resizing EditText.

* commit '1009021a12bef40b46423c0d1e4ea49a4537b2f6':
Fix bad text kerning in dynamic resizing EditText.
6cff9cf3437ffb6214f9e95023c52fa2253e887d 05-Jun-2014 Sai Cheemalapati <saicheems@google.com> Moving FAB logic to ContactsCommon.

Moved FAB to ContactsCommon.
Cleaned up FAB Controller.
Replaced implementation of FAB in InCallUI with controller.
Prevented animations from happening again in InCallUI on
orientaton change. FAB also repositions correctly on
orientation change in InCallUI.

Bug: 15386162
Change-Id: I4fec5c2edbc4605394bb8aef79cda65bb97f4d01
ndroid/contacts/common/widget/FloatingActionButtonController.java
f651efc9a6a010b937a4e89878d7c3e5e3c26201 06-Jun-2014 Andrew Lee <anwlee@google.com> Fix bad text kerning in dynamic resizing EditText.

This used to work with setTextScaleX, I thought, but now it seems
that changing that property only affects the character and not the
spacing, which looks sad.

This fixes by scaling text size instead. This is a slightly indirect
method of doing this, because text size doing this not map directly
to width, but this appears to be effective nonetheless. It scales
more smoothly with better spacing; I can fit up to ~19 digits now.

Bug: 15457260
Change-Id: I93bef566766246a86000c6658d058cc1688adc46
ndroid/contacts/common/dialpad/DigitsEditText.java
c15a4d184a8aa63f639932fb7bf564d574003035 05-Jun-2014 Brian Attwell <brianattwell@google.com> Expose color of LetterTileDrawable via accessor

The color is needed by ag/479024

Change-Id: I9f18130cba81316a3b99af9b4eaacd1e482601fd
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
50f7df66e362ca54877481706a429cb8ff140bf6 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.
a3dcc1c8c4e3f7ab24fa70eda0131d254fe3b99f 04-Jun-2014 Brian Attwell <brianattwell@google.com> Fixed LetterTileDrawable#setColorFilter

Change-Id: I47c488ef21195e709a82c8319684797b1b68ae13
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
741cbbf1ffa232656853a72a41facb99f374d616 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
ndroid/contacts/common/list/PinnedHeaderListView.java
498ead268fb9e280389e1a95068bb05181732e8b 02-Jun-2014 Jay Shrauner <shrauner@google.com> Merge "Show toast when no app to handle RINGTONE_PICKER"
66f778ef8118cfb8521e16c1cb0520694d1597ff 01-Jun-2014 Jay Shrauner <shrauner@google.com> Fix exception when no app to crop photos

Catch ActivityNotFoundException when attempt to crop photo before
setting as contact photo.

Bug:15361188
Change-Id: I37c66cc11b14ec0621464334875f9946a89095ae
ndroid/contacts/activities/AttachPhotoActivity.java
f4c924f79e2b6178f3cac8a66c67919df27c068f 01-Jun-2014 Jay Shrauner <shrauner@google.com> Show toast when no app to handle RINGTONE_PICKER

Catch ActivityNotFoundException when attempting to invoke
RINGTONE_PICKER and show toast.

Bug:15361774
Change-Id: I2e0d030981aa886c25f20e06308c3cdc7530ae8d
ndroid/contacts/detail/ContactLoaderFragment.java
d46e4d9d48bd6e652dbd9e5c3ba680278206ce6b 31-May-2014 Elliott Hughes <enh@google.com> am 003ee843: am 24a4f48d: am 302ae3fd: Merge "Move Contacts off private ICU API."

* commit '003ee843b4cbbdd774214a8ed29ede0198519899':
Move Contacts off private ICU API.
24a4f48dc5c768188143648e267889477e4185e8 31-May-2014 Elliott Hughes <enh@google.com> am 302ae3fd: Merge "Move Contacts off private ICU API."

* commit '302ae3fdc38a90233c958269765f5a6e52a1a0cf':
Move Contacts off private ICU API.
3d576380d4fb77fc0328b9ace0efa179419c0c36 31-May-2014 Elliott Hughes <enh@google.com> Move Contacts off private ICU API.

Change-Id: I03b05bb294ebe4d772c9e278a70af7b5bdb15aa0
ndroid/contacts/datepicker/DatePicker.java
f8210ad64a65ae00b6e946abf0fcfaff69f72452 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.
815ce480846530f33d6b11b5bb91e1ea0e2e921f 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
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
edfa7437cf52518199a910b08f3145df6581a43d 30-May-2014 Yorke Lee <yorkelee@google.com> am 7a3f3a77: Merge "Add callback mechanism to fadeIn and fadeOut in AnimUtils" into lmp-preview-dev

* commit '7a3f3a77dac05ed4135ab817e3ee7057aba1f182':
Add callback mechanism to fadeIn and fadeOut in AnimUtils
41bb8f77606bf5e886425eae4b4c2a950e2b059f 30-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add callback mechanism to fadeIn and fadeOut in AnimUtils" into lmp-preview-dev
f86f4ba384c58303482c18e5f093cc7c4f574f83 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.
ba44896a7aee778e9bb5e186c9a509660963d569 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
ndroid/contacts/common/list/ContactListItemView.java
5a57e57c122edefbeea40a35102d53598aebfc1c 29-May-2014 Jay Shrauner <shrauner@google.com> Fix cursor overrun in updateSuggestedContactIds

Modify loop logic in updateSuggestedContactIds so only traverses the
cursor once so we guard against trying to read values that we can no
longer move to.

Bug:15330979
Change-Id: I1161ad894ada160691f43e8fbfc2efb060f43421
ndroid/contacts/editor/AggregationSuggestionEngine.java
f8390ef7de92fb60ba84937747e40073bdae5876 29-May-2014 Yorke Lee <yorkelee@google.com> Add callback mechanism to fadeIn and fadeOut in AnimUtils

Bug: 15120649

Change-Id: I3c2aaf35309c739d02f67b69232ea497295f3ff6
ndroid/contacts/common/animation/AnimUtils.java
69d16caef660c71ed52b829e067a7fa3309f51a3 29-May-2014 Andrew Lee <anwlee@google.com> am 1e0cb2e4: Add styleable attribute for dialpad ripple touch tints.

* commit '1e0cb2e4c9fa5426034073075265c509a7d83f31':
Add styleable attribute for dialpad ripple touch tints.
16bf43272ab406e548f31ac4f713252c970ec568 28-May-2014 Yorke Lee <yorkelee@google.com> Fix broken Contacts tests

Fix broken dependencies on InjectedServices because its name space
was conflicting with the TestCommon package in ContactsCommon

After rebuilding both ContactsCommon and Contacts, you might have to
clear out your data/app folder by doing

adb root; adb remount; adb shell
cd data/app
rm *.*

and then doing adb sync again

Change-Id: Ie67ef6fbba14768cb37f76dfd3c52dd343ed478c
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/RawContactDelta.java
ndroid/contacts/common/model/ValuesDelta.java
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/test/InjectedServices.java
ndroid/contacts/common/test/NeededForTesting.java
ndroid/contacts/common/testing/InjectedServices.java
ndroid/contacts/common/testing/NeededForTesting.java
7039633999b3a46a87c851fa06d9168897ccc54b 28-May-2014 Yorke Lee <yorkelee@google.com> Fix broken contacts tests

Change-Id: Ie9c803ede45b300f20a03a25d6a646cd6eb1f39e
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/widget/CompositeListAdapter.java
0485287328f55416dc847094a5a1576b99f38013 29-May-2014 Andrew Lee <anwlee@google.com> am 439f955e: Adjust key button durations.

* commit '439f955e48ad5e6cf4b3aa8f20b6d78c123f50b1':
Adjust key button durations.
63888302faeeec530bdf7029ff75a86a50bd8dea 29-May-2014 Ed Heyl <edheyl@google.com> Merge "Fix build breakage: Revert "Fix broken Contacts tests""
28daa7d3e7f81e92ebc134b19ae7fe2d902aa531 29-May-2014 Ed Heyl <edheyl@google.com> Fix build breakage: Revert "Fix broken contacts tests"

This reverts commit 90ef577763f3ccb2d43fda1d21c62533acbbecdb.

Change-Id: If98147879e1658c3a48d04b855c033d191fec2f6
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/widget/CompositeListAdapter.java
85231505e0695b294f89f6ef6aed36ca91ac8c94 29-May-2014 Ed Heyl <edheyl@google.com> Fix build breakage: Revert "Fix broken Contacts tests"

This reverts commit dca4d855aac546f0969113d611355aaf3a698656.

Change-Id: If68bf7fd2191c8403b8e3fe18d22610fc96dab4a
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/RawContactDelta.java
ndroid/contacts/common/model/ValuesDelta.java
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/test/InjectedServices.java
ndroid/contacts/common/test/NeededForTesting.java
ndroid/contacts/common/testing/InjectedServices.java
ndroid/contacts/common/testing/NeededForTesting.java
207092b605761e97e0cef892ccbaff44055bd036 28-May-2014 Andrew Lee <anwlee@google.com> Add styleable attribute for dialpad ripple touch tints.

- Add an attribute, which can be set in Dialer/InCall.
- Read this attribute in DialpadView, and if defined set this on the
ripple drawable which is applied to the dialpad key button. We aren't
able to instantiate a new instance of RippleDrawable right now, so
this is the slightly roundabout way of accomplishing this. This
drawable is then set as the background of the dialpad key buttons.

Bug: 15168708
Change-Id: I64d6e0957c0167827c6a6124a4855d46feb87452
ndroid/contacts/common/dialpad/DialpadView.java
989e5cc526f860726c4de9dde38e945fd1adbf84 29-May-2014 Yorke Lee <yorkelee@google.com> Merge "Fix broken Contacts tests"
90ef577763f3ccb2d43fda1d21c62533acbbecdb 28-May-2014 Yorke Lee <yorkelee@google.com> Fix broken contacts tests

Change-Id: I0edda45234edb7fe4e322138ad48af426133634f
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/widget/CompositeListAdapter.java
55fe3e13df925ed02a89ccd85cc72fe3fbacac96 29-May-2014 Andrew Lee <anwlee@google.com> Adjust key button durations.

- Cut down on the duration/delay by using multipliers.
- Added EASE_OUT_EASE_IN interpolator to AnimUtils (and removed the
reference formerly used in the DialpadView).

Bug: 15169764
Change-Id: I9567ecb4d18f39803e0887c0ff0e40ca251a8985
ndroid/contacts/common/animation/AnimUtils.java
ndroid/contacts/common/dialpad/DialpadView.java
34bf08e2f43e9d27dfb495fad823651e5e964236 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)
ndroid/contacts/common/list/ContactListItemView.java
c3e19e121977540b82a16ee994156944759de8aa 28-May-2014 Yorke Lee <yorkelee@google.com> am e4deb696: Add PathInterpolators to AnimUtils

* commit 'e4deb6966ddba78999992c1dd53bd2db54e17a7e':
Add PathInterpolators to AnimUtils
fa1f749aa447111f2352f0f91daff43bc6120cf8 28-May-2014 Yorke Lee <yorkelee@google.com> Fix broken Contacts tests

Fix broken dependencies on InjectedServices because its name space
was conflicting with the TestCommon package in ContactsCommon

After rebuilding both ContactsCommon and Contacts, you might have to
clear out your data/app folder by doing

adb root; adb remount; adb shell
cd data/app
rm *.*

and then doing adb sync again

Change-Id: Iabbe19b4a40d3ec76c410c0352ea48ba9e344a34
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/model/AccountTypeManager.java
ndroid/contacts/common/model/RawContactDelta.java
ndroid/contacts/common/model/ValuesDelta.java
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/test/InjectedServices.java
ndroid/contacts/common/test/NeededForTesting.java
ndroid/contacts/common/testing/InjectedServices.java
ndroid/contacts/common/testing/NeededForTesting.java
ae1420533fc4ca054df7594623dc9ae7589d752a 28-May-2014 Yorke Lee <yorkelee@google.com> Add PathInterpolators to AnimUtils

Bug: 14820894
Change-Id: I20482a129ef32e253d5a56bb59561037a0b45441
ndroid/contacts/common/animation/AnimUtils.java
877fadcaa0f8649d3c5be8c44c7e1b117601c6c7 28-May-2014 Jay Shrauner <shrauner@google.com> Fix NPE in onPageSelected

Check for null action view returned for the specified position.

Bug:15310717
Change-Id: I5fbec5808d47fac2b05d99eb0079c68db7f067ac
ndroid/contacts/quickcontact/QuickContactActivity.java
54b088253a209c9836c9f9e8f11eabe314f4c90c 28-May-2014 Santos Cordon <santoscordon@google.com> 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"
7c776a5dcbd1dc7ec618ab393b99cd753f50c43e 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
ndroid/contacts/common/list/ContactListItemView.java
be38dbf6d5f3ab006d67cc48d887876efa1f25af 28-May-2014 Jay Shrauner <shrauner@google.com> Merge "Catch OutOfMemoryError on photo load"
a11eb16b670d964942daef8d759e28022124fce8 28-May-2014 Yorke Lee <yorkelee@google.com> Merge "Remove use of TelephonyManager.getDefault"
bc10159c228e2131fd6d9b02604daae2676a5bc6 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.
7b0cbeb5ca1d0f3b26e1c3e738de8439697548bc 28-May-2014 Andrew Lee <anwlee@google.com> Provide Color.BLACK as default name text color.

Bug: 15248629
Change-Id: I722fef6cd23b10bdbebbe8d3d04c3923376301cf
ndroid/contacts/common/list/ContactListItemView.java
d33af0b2b31b6b16f72ea92f5015a30f6a723d2d 28-May-2014 Jay Shrauner <shrauner@google.com> Catch OutOfMemoryError on photo load

Catch OutOfMemoryError in loadUriBasedPhotos.

Bug:15288070
Change-Id: Id793c9bf989e0410656d811b2bdd3d3bef7c082c
ndroid/contacts/common/ContactPhotoManager.java
2c092fd9aa840f10bf088dba87cde03050c68906 28-May-2014 Andrew Lee <anwlee@google.com> am 5a4ed853: Add default duration constant to AnimUtils class.

* commit '5a4ed853b9fe9abcd47d83e90da0ba33a10c87e2':
Add default duration constant to AnimUtils class.
35ab21c2e52200bf7143573217abbfe6464eb2bc 28-May-2014 Yorke Lee <yorkelee@google.com> Remove use of TelephonyManager.getDefault

Bug: 6948882
Change-Id: Ie542eb92bb1fbe410af9e14229286ce23a92acb3
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
0f755aeb3325f724cd2ef94f25737c6e574f64a5 27-May-2014 Andrew Lee <anwlee@google.com> Add default duration constant to AnimUtils class.

This way, when using this util we can have the option of defaulting
to the system animation default duration.

Bug: 15281475
Change-Id: Ic725a6af67f7332dddbdd94b70b1629d0ae4eea2
ndroid/contacts/common/animation/AnimUtils.java
6227d2c153f92efc7cdb90e9a6bf3d4b71f6fa20 27-May-2014 Yorke Lee <yorkelee@google.com> am 1d026495: Merge "Add fadeIn and fadeOut methods to AnimUtils" into lmp-preview-dev

* commit '1d026495660b85d62a035c77c947a9729f49e92a':
Add fadeIn and fadeOut methods to AnimUtils
c53a9369bebe40c8bcaf4e0215b3eb46d8e77fe2 27-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add fadeIn and fadeOut methods to AnimUtils" into lmp-preview-dev
2b133442e0d4f1b04c32edead8b6ba395c4f91b7 27-May-2014 Paul Soulos <psoulos@google.com> Fixes comment typo in ContactListItemView

Change-Id: I961c4fa58c060d05a30acf11e88116dd6daf23c4
ndroid/contacts/common/list/ContactListItemView.java
dbb2e93a2baa84aadff424f2d554f399a8355bfd 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)
ndroid/contacts/common/list/ContactListItemView.java
ae96176652cd42a880c443ae9456df0fe8979ac4 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
ndroid/contacts/common/list/ContactListItemView.java
eabd9829911ff8a865a93b091989f6b3d15e91a6 21-May-2014 Yorke Lee <yorkelee@google.com> Add fadeIn and fadeOut methods to AnimUtils

Change-Id: Ifef7c42c2a662e13419bbd13c7008e2b589570b4
ndroid/contacts/common/animation/AnimUtils.java
ndroid/contacts/common/animation/AnimationUtils.java
454f59b6cf27f8e82a179ae1ef9d10d6a26a64c9 23-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add FAB utility method and dimension to ContactsCommon" into lmp-preview-dev
b372e48cd72a22099598cf790eeb313ff01e71c4 23-May-2014 Yorke Lee <yorkelee@google.com> Add FAB utility method and dimension to ContactsCommon

Bug: 15164687
Change-Id: I8d288989ba878bea34970c3e58775e8ee89c631a
ndroid/contacts/common/util/ViewUtil.java
1ae8e745f63c464e27e95714d1d33d2425f726a1 23-May-2014 Yorke Lee <yorkelee@google.com> Make nearby places photos not look like jellybeans

Bug: 14392467
Change-Id: I22f7a021c8f2af9124f0f04d65107367bbed4c09
ndroid/contacts/common/ContactPhotoManager.java
88636968c74a13c79629fc8adf200f670a98ff02 22-May-2014 Brian Attwell <brianattwell@google.com> Revert "Revert^2: Use action bar style from ContactsCommon"

I am going to move this to master-contacts

This reverts commit ede793ef6a2f155ce55ad6a64c1299beae5500e4.

Change-Id: I4c31e825adf14605153efa8ceb08363bdf7ac94e
ndroid/contacts/activities/ActionBarAdapter.java
bbe7687ed79958032235e5a7afd79fac81dfa06e 22-May-2014 Yorke Lee <yorkelee@google.com> Remove withLayer calls in Dialpad animation

Change-Id: I62ef51418e5ce3aaa454b27f6a6619d771de08fd
ndroid/contacts/common/dialpad/DialpadView.java
093e6852e1b48f96627d249340e9ab9f5ad80e0c 21-May-2014 Yorke Lee <yorkelee@google.com> Cancel previously assigned animations if interrupted

Change-Id: Ibf01fe4023380744fc1647d93195d37c157b4c81
ndroid/contacts/common/animation/AnimationUtils.java
0af6f6014db33c091440663786c6a4184c53c252 20-May-2014 Yorke Lee <yorkelee@google.com> Add new AnimationUtils class in ContactsCommon

Bug: 14900155
Change-Id: I7ecdc5ae1a4287badcf5724eed5cf366496dee5a
ndroid/contacts/common/animation/AnimationUtils.java
ede793ef6a2f155ce55ad6a64c1299beae5500e4 16-May-2014 Brian Attwell <brianattwell@google.com> Revert^2: Use action bar style from ContactsCommon

Change-Id: I9371b796f98ffde303e9e8ad6c5fbbc89200c5d6
ndroid/contacts/activities/ActionBarAdapter.java
fe9ba4f88520e0cd2ca38adf91419f9fe1d8bb35 19-May-2014 Brian Attwell <brianattwell@google.com> Merge "Revert "Use action bar style from ContactsCommon""
15c43d91b85cbc4f66fc2e16f35fcb589bb77d5a 19-May-2014 Brian Attwell <brianattwell@google.com> Revert "Use action bar style from ContactsCommon"

This reverts commit 80df79f4279b7f4f0f2f275ff6dca47cdc6d4632.

Change-Id: I1f1f855ef55206fbee246a2379367415a8f42885
ndroid/contacts/activities/ActionBarAdapter.java
334cdf46cbbdc0d05bb4e9342f177a0008d687cb 16-May-2014 Andrew Lee <anwlee@google.com> Implement custom view for rendering numerals.

This is a custom text view intended only for rendering the numerals
(and star and pound) on the dialpad. TextView has built in
top/bottom padding to help account for ascenders/descenders.

Since vertical space is at a premium on the dialpad, particularly
if the font size is scaled to a larger default, for the dialpad we
use this class to more precisely render characters according to the
precise amount of space they need.

Change-Id: I0eb18b2b2c1f31fa87aae30a71f51b323a9906a3
ndroid/contacts/common/dialpad/DialpadTextView.java
71bf676818659fb0742b5648325d5700acc65bc9 19-May-2014 Brian Attwell <brianattwell@google.com> Merge "Use action bar style from ContactsCommon"
80df79f4279b7f4f0f2f275ff6dca47cdc6d4632 16-May-2014 Brian Attwell <brianattwell@google.com> Use action bar style from ContactsCommon

Change-Id: I5097ad30b103ceddc0e72c3d016c364a99026e71
ndroid/contacts/activities/ActionBarAdapter.java
db108c7ee7199b99fc6f15af58979aa5a0747e75 19-May-2014 Yorke Lee <yorkelee@google.com> Merge "Set isCircular flag correctly in CallDetailActivity"
8269bb1b65493ddbf6c2585546ae59cf7152aaa2 19-May-2014 Yorke Lee <yorkelee@google.com> Set isCircular flag correctly in CallDetailActivity

Bug: 14590880
Change-Id: I9230ef292c70d1bc07bb9ba38c61b5e74062b4e4
ndroid/contacts/common/ContactPhotoManager.java
2be1220c2866a0538c848c2b8cb5b6007caa2efe 19-May-2014 Yorke Lee <yorkelee@google.com> Fix visibility of overflow menu

Bug: 14974654
Change-Id: I7372f0960ac94f1d09dd52930869d8d3f4aa0ab5
ndroid/contacts/common/dialpad/DialpadView.java
509d5f5d724448d107be83525180b1d8680d9490 16-May-2014 Brian Attwell <brianattwell@google.com> Merge "No "merge" and "seperate" actions on insert"
6d21ec78728065adee5e5741f468e2cf8f13f91c 16-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add AnimatorListenerAdapter stub"
e87328504a8d432777fe3c7443da834e13569075 15-May-2014 Yorke Lee <yorkelee@google.com> Add AnimatorListenerAdapter stub

Change-Id: I05cc3f505eabb04f6527af33694d4da3628bc371
ndroid/contacts/common/animation/AnimationListenerAdapter.java
838671a4be907cf34b4a578cea3b911bbd700856 15-May-2014 Brian Attwell <brianattwell@google.com> Merge "Revert "Remove "Help" action from Contacts app""
abeccb70d42853c505ec539f8c1c24df1fbb7945 15-May-2014 Andrew Lee <anwlee@google.com> Merge "Only modify search progress visibility if view exists."
8bb3d1ee5bc37f31051638c1e1303fd829662087 15-May-2014 Brian Attwell <brianattwell@google.com> Revert "Remove "Help" action from Contacts app"

I committed the previous CL thinking it was a different
CL.

This reverts commit f49a823175cd1201e30410977f33992749de0bb6.

Change-Id: I33c24687b1fba1287b944e607cd2b284fef97bad
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/HelpUtils.java
af9bcfb4c182d53faaabf794efdef88b1f04a307 15-May-2014 Brian Attwell <brianattwell@google.com> Merge "Remove "Help" action from Contacts app"
b8671d271e6a7c48aca785b867ef9a86c5012a85 15-May-2014 Brian Attwell <brianattwell@google.com> No "merge" and "seperate" actions on insert

Only show these actions for existing contacts. Not
when creating a new contact.

Change-Id: Iaf7dee665301e28841dc3c4a1bd7d5c1ce3297c5
ndroid/contacts/editor/ContactEditorFragment.java
d5506984b9475ccafa87f957c88b8bd323a41c10 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
ndroid/contacts/common/list/ContactEntryListFragment.java
e599bf0b2e77167e6b3bcce5db69102d65bebb9d 15-May-2014 Andrew Lee <anwlee@google.com> Only modify search progress visibility if view exists.

Bug: 14900155
Change-Id: I93d7e72696b5db1d123490c62945e5353819a771
ndroid/contacts/list/DefaultContactBrowseListFragment.java
f49a823175cd1201e30410977f33992749de0bb6 15-May-2014 Brian Attwell <brianattwell@google.com> Remove "Help" action from Contacts app

Change-Id: I75d6d756cbb119c6f42bbefe29c4010d919c375f
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/HelpUtils.java
55d7b0cc1aa5ac4ddc710f310e808c09f7b0a0fe 15-May-2014 Tyler Gunn <tgunn@google.com> Merge "Adding day group headings in the call log which group call log entries under 4 headings, "Today", "Yesterday", "Last week", "Other"."
5f057fa8a0d1be9529024846c9e69b5764078d2c 15-May-2014 Paul Soulos <psoulos@google.com> Removes the Group tab from the People Application.

There are still Group related code and resources that need to be removed.
This will occur in smaller subsequent CLs to reduce the scope of each.

Change-Id: Ifcedf38377f9da022942c694193e4e15f3ed77d3
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
e2c4845e8c892c3fa8a97f2af22efbcd3a9c84f5 15-May-2014 Tyler Gunn <tgunn@google.com> Adding day group headings in the call log which group call log entries
under 4 headings, "Today", "Yesterday", "Last week", "Other".

Bug: 13962594
Change-Id: Iba10211c1f6e162309063f9944b437c543013b7f
ndroid/contacts/common/util/DateUtils.java
5238772ff6dec175d04f33cac6ed974e95a982ec 13-May-2014 Santos Cordon <santoscordon@google.com> am fb47aac4: Removing explicit destination for CALL intents sent from dialer.

* commit 'fb47aac4d86461d78ddd0c2ea4df2462af2cec42':
Removing explicit destination for CALL intents sent from dialer.
05c73e695dbeba63fb641db86ca11c7d0b4d8d4e 13-May-2014 Makoto Onuki <omakoto@google.com> Allow contacts.xml to have a different name

This is to allow sync adapters to have a contacts.xml without making it visible
on older platforms.

Bug 14680165
Bug 14662482

Change-Id: I9904d059990d111b8e7baef8f57df7fac86881ea
ndroid/contacts/common/model/account/ExternalAccountType.java
2e11e26496b2a739b249cf4a68a434901a917d7a 10-May-2014 Tyler Gunn <tgunn@google.com> Merge "Correcting issue where businesses with business photo URLs show a person avatar until the photo loads."
48c391d92012965245437b2b66377cab4c1d4252 10-May-2014 Tyler Gunn <tgunn@google.com> Correcting issue where businesses with business photo URLs show a person
avatar until the photo loads.

Added an encoded fragment to business photo URLs so that we can identify
the URLs at load time as being for businesses
Bug: 14252674

Change-Id: If51dbb404432ee3262ffc31b26b3b5e4ed3e62a2
ndroid/contacts/common/ContactPhotoManager.java
600a93ed90bfe5a0f64b2ed4be80858fa2d803d9 09-May-2014 Andrew Lee <anwlee@google.com> Tweak dialpad opacity animation.

- Do opacity transition individually on keys. This is done with
layer to improve performance.
- Remove opacity transition on the whole dialpad view.
- Remove hide animation entirely.

Bug: 14471388
Change-Id: Ic91e9fa3aeae2933dcc24b1266b9f60df021552d
ndroid/contacts/common/dialpad/DialpadView.java
e84e8631d4d6ead31c67cdd2830f490b85d79b20 08-May-2014 Andrew Lee <anwlee@google.com> Move more menu to top, and resize digits text.

- Move the overflow menu to the top in the layout.
- Remove the add contacts button from the layout.
- Change DigitsEditText to dynamically resize text to fit.
- Style Digit text area to redlines.
- Add accessor for the overflow button in the DialpadView.

Bug: 14471388
Change-Id: I9ab875a5d9ff0b43233e5d8595eb7206dc7b7dab
ndroid/contacts/common/dialpad/DialpadView.java
ndroid/contacts/common/dialpad/DigitsEditText.java
8deb856a6322a64788eff535aa182d42aeca4052 07-May-2014 Andrew Lee <anwlee@google.com> Add function for animating dialpad hide.

Bug: 14471388
Change-Id: If854c8487801ee1bb93b31ae05d68daa0fa498bc
ndroid/contacts/common/dialpad/DialpadView.java
f1e9d52080fef9f46e8d60f0780664fcb763b025 07-May-2014 Andrew Lee <anwlee@google.com> Animate dialpad in when shown.

- Provide for duration/translation of key buttons.
- Set opacity fade in on the entire dialpadfragment.
- Don't clip children on the dialpad view.

Bug: 14471388
Change-Id: I0cce5e13e0047b64e76c272a6da8e0e3ee5aca63
ndroid/contacts/common/dialpad/DialpadView.java
3b12448a88b06449a75e4e998ca54396665f6c54 06-May-2014 Yorke Lee <yorkelee@google.com> Display non-square bitmaps as circles

Bug: 14392467
Change-Id: I4dd2872bd5678ef6c1a3f3084c33b8450b42fd22
ndroid/contacts/common/ContactPhotoManager.java
a0553166b19db33b41ad4c4c83d67f5f19ce4f85 06-May-2014 Yorke Lee <yorkelee@google.com> Fix missing add to contacts button

Change-Id: I76fe3181745b7a766144ef0b606bef1196e8aac3
ndroid/contacts/common/dialpad/DialpadView.java
e9500c4ad1de5c4737d232979668153e229b42f5 05-May-2014 Yorke Lee <yorkelee@google.com> Move more Dialpad resources to ContactsCommon

Change-Id: I021f35bdeb6f77345b920a1dba4ce39057c02c93
ndroid/contacts/common/dialpad/DialpadKeyButton.java
ndroid/contacts/common/dialpad/DialpadView.java
ndroid/contacts/common/dialpad/DigitsEditText.java
4b8b6ed745e3b5a93578395e2eda59ae20645d97 03-May-2014 Yorke Lee <yorkelee@google.com> am f7d16ddb: am 9309d52c: am a804764b: Merge "QuickContact: onLongClick save item data to clipboard"

* commit 'f7d16ddbf7420a1912d213ede20ecf519c6dba88':
QuickContact: onLongClick save item data to clipboard
9309d52ccbbeb1a0f67c1a026b440154c6959bbf 03-May-2014 Yorke Lee <yorkelee@google.com> am a804764b: Merge "QuickContact: onLongClick save item data to clipboard"

* commit 'a804764b1797b1bb855c362bef4b1f6e5473db46':
QuickContact: onLongClick save item data to clipboard
1c6fa3a9edf10104f02a5d9714a7e04f89cc0e42 01-May-2014 Arnav Gupta <championswimmer@aokp.co> QuickContact: onLongClick save item data to clipboard

We should be able to copy phone numbers, email address
etc from the QuickCOntact Dialog itself. Going into
the Contact page to be able to copy that data is
cumbersome.

Change-Id: I3620f156ad0a5e387dc3819adb012f1c945d35e6
Signed-off-by: Arnav Gupta <championswimmer@aokp.co>
ndroid/contacts/quickcontact/QuickContactListFragment.java
5e852972525b95116f595c3ff697c42547d52a2f 02-May-2014 Yorke Lee <yorkelee@google.com> Merge "Update ContactListItemView.setIsSectionHeaderEnabled when binding view"
9e100255b106e84beb771cc59b649aa4a4ace9b5 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
ndroid/contacts/common/list/ContactListAdapter.java
dd321d19a8a465bccfff1b337633a99f128c9fe4 02-May-2014 Andrew Lee <anwlee@google.com> Merge "Delete mContactsCount tracking in ContactEntryListAdapter."
c36461855f38fac871c8f6dbd1de39c1fd0393fe 02-May-2014 Andrew Lee <anwlee@google.com> Merge "Restyle "Set up my profile" option."
873337737f18683e304b2b0065a63686b8d66994 01-May-2014 Andrew Lee <anwlee@google.com> Delete mContactsCount tracking in ContactEntryListAdapter.

Bug: 13956531
Change-Id: I0345cf85ae428441718c08d0b5a3a5eee2eef883
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
e15828e840217d1f0035c826c45f16b1129e9f2f 01-May-2014 Andrew Lee <anwlee@google.com> Restyle "Set up my profile" option.

- Delete header count functionality.
- Relayout the "ME" header to the left of the profile button.
- Styling tweaks to get things to layout properly.

Change-Id: Icbadef9fb7b6e5acc7fc878948a8fe5c4985b394
ndroid/contacts/list/DefaultContactBrowseListFragment.java
a4c2c99b59286702290d9c5c365c0e2cac4af8e4 01-May-2014 Yorke Lee <yorkelee@google.com> Merge "Add circular photo support to ContactPhotoManager"
41369d7b93d565c0ed1a4f59d1f415858c480f5b 29-Apr-2014 Yorke Lee <yorkelee@google.com> Use circular photo support in ContactPhotoManager

Bug: 13747208

Change-Id: Iedbeefdaf1bda3e5a26a050b537bbb19d9aa5f2d
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/util/ImageViewDrawableSetter.java
c4a2a23bda2fdbbf9de43ffca7948bb7721a9e50 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
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactTileView.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/list/ShortcutIntentBuilder.java
dbfa3abfb0b0bcef1a725d253826afc64f438a14 01-May-2014 Brian Attwell <brianattwell@google.com> Merge "Remove "TODO use syncadapter package instead""
dd28d83756af58eacfa30e5affd197487e01bcd0 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
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
6ca8b0f27bf076df840dea7b9031a6399fd1b8f8 30-Apr-2014 Brian Attwell <brianattwell@google.com> Remove "TODO use syncadapter package instead"

Change-Id: Id8c082c5e9fbaf6be9317b52999776a751abecfa
ndroid/contacts/common/model/AccountTypeManager.java
0ca22a895c76d7fde9429e8287415b08d43b78a6 29-Apr-2014 Bill Yi <byi@google.com> Merge commit 'b5539c14f05bb02527bb06d7cfbb6b5b7ac08e4d' into HEAD
f9c55d8da5ed5493b2af3b1dc4eb68cea32d35e3 28-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Moves section header in contacts list to the left side."

Change-Id: I59a2050e67cc0290df5fb28f7e5b8dcb844d2cf8
b49a1a93195d71c24c21bdad8ed6900dc76a7f0a 28-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Restyle section header to left."
f91e525414b5b4b727f21e4e0001070c5ce5b68b 28-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Moves section header in contacts list to the left side."
020ba62cc13611cd9af1ca51c5d68c77eb5bb424 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/IndexerListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/list/PinnedHeaderListView.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
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
cdd9e18c392133a76c68c573b467db16ac57601c 26-Apr-2014 Yorke Lee <yorkelee@google.com> Merge "Use ShapeDrawable for floating action button."
a423b78bfb8b615a0b8ffc9f38f00baf48edcd1f 26-Apr-2014 Yorke Lee <yorkelee@google.com> am 0b211b11: am 1a576923: Merge "Check whether the contact exists when saving the contact"

* commit '0b211b11c2049c51baf6c8746d308179f2e5db96':
Check whether the contact exists when saving the contact
0b211b11c2049c51baf6c8746d308179f2e5db96 26-Apr-2014 Yorke Lee <yorkelee@google.com> am 1a576923: Merge "Check whether the contact exists when saving the contact"

* commit '1a576923d9eaa74f68076227949fdcfade5baa9c':
Check whether the contact exists when saving the contact
a88f4b2fe6cfdb336563cb71b1a2a0d8a65265fb 25-Apr-2014 Andrew Lee <anwlee@google.com> Change default photo position from right to left.

Bug: 13956531
Change-Id: I7ce2991394f7465eced2889c89b9b54887aaae2b
ndroid/contacts/common/list/ContactListItemView.java
177888c8d7d5eba474eda974c8e8b8fc4a0c9024 25-Apr-2014 Yorke Lee <yorkelee@google.com> Use ShapeDrawable for floating action button.

Framework support for providing an outline for ShapeDrawables
is currently still broken, so continue manually assigning an outline
to the floating action buttons.

Change-Id: Id068fda523970de4c38ca4d3c0de4b5e8fa35832
ndroid/contacts/common/util/ViewUtil.java
b44032feb88d91dffd81f4d05e4f59b802a0a1c5 25-Apr-2014 Andrew Lee <anwlee@google.com> Delete functionality to set count in the pinned header views.

Bug: 13956531
Change-Id: Iad1ab60ae486bfa059ad14a856eb6f3aa6637bdc
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/IndexerListAdapter.java
f2032d2830c67a3f5eee1297a101595f0a24f2d1 24-Apr-2014 Andrew Lee <anwlee@google.com> Move floating action button constants and helpers to ContactsCommon.

- Move constants from Dialer to ContactsCommon.
- Move configure method from DialtactsActivity to Viewutil.

Bug: 13956531
Change-Id: I7013315a8bff25eb8137cd777fa9748b49ad8d4e
ndroid/contacts/common/util/ViewUtil.java
4b1af3f8f68c3f5de459d17c218853fb0849d9f5 23-Apr-2014 Andrew Lee <anwlee@google.com> Set consistent background color on PeopleTheme.

Before, the color on the People Activity was set programmitcally and
it was not being applied to certain scenarios/activities (ie. the
ContactSelectionActivity).

Bug: 13956531
Change-Id: I5ff78b8b0df93b87c912efa748d3fd52c1822092
ndroid/contacts/activities/PeopleActivity.java
342de108624e4c3c796050624572d2f1f815dcd3 05-Jun-2013 jiezha2x <jiex.z.zhang@intel.com> Check whether the contact exists when saving the contact

Step to reproduce it on Nexus 4 with 4.4.2:
1.Launch Gallery app-->Random select one picture-->"Set picture as"
-->"Contact photo"-->Random tap one contact-->"Crop picture"-->
"Just once"-->crop the picture-->press home key
2.Launch People app-->delete the contact which selected in step1-->
press home key-->Launch Gallery app again-->"Save"

When I set a picture cropped for a contact, before doing the save
operation, I delete the contact, now go on doing the save operation,
because the contact does not exist, the RawContacts is null, so the
function createRawContactDeltaList occurs a crash.

Change-Id: Ie6d26ff188790937e16915e636e4b484cacb12a4
Signed-off-by: Zhangjie <jiex.z.zhang@intel.com>
Signed-off-by: guojingx <guojingx.wu@intel.com>
ndroid/contacts/activities/AttachPhotoActivity.java
9710e27c6ac817712c599ab2532beb2d324e9e08 23-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Delete contacts list item dividers."
2c0e871f654c7161563df48fbdd2d88ab4994d09 23-Apr-2014 Andrew Lee <anwlee@google.com> Merge "Delete use of contact list item divider."
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
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
cd366f30b21c56abe9b54e2ccf72d3413258e9c7 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
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
262c01e14f299d2bf645256f8f927b9a1345a568 22-Apr-2014 Jay Shrauner <shrauner@google.com> Merge "Check for null cursor in callback"
91ae79cb54310305c2d7ff23aaee51f24c7a21b7 22-Apr-2014 Yorke Lee <yorkelee@google.com> am fbc6cdd5: am 08afec7f: Merge "Move cursor to the right place when adding phonetic name"

* commit 'fbc6cdd5f9ed04f95e9d1ef565017c2208f61d20':
Move cursor to the right place when adding phonetic name
fbc6cdd5f9ed04f95e9d1ef565017c2208f61d20 22-Apr-2014 Yorke Lee <yorkelee@google.com> am 08afec7f: Merge "Move cursor to the right place when adding phonetic name"

* commit '08afec7f1251b6a337eda32762afd023fbe2ec95':
Move cursor to the right place when adding phonetic name
8f09bf5317c366d52084de8d5cf4381a71ba8625 19-Apr-2014 Jay Shrauner <shrauner@google.com> Handle null cursor

Handle null cursors sent in to setContactCursor

Bug:14165361
Change-Id: If9487b79fff9b21549b8c2267564f12c00922118
ndroid/contacts/common/list/ContactTileAdapter.java
84a60b16755f4e1f8a46a1d545384c76d26a6d8d 08-Feb-2014 Jay Shrauner <shrauner@google.com> Check for null cursor in callback

Check for null cursors returned to onLoadFinished()

Bug:14165361
Change-Id: I12fd1ed893f4cb48ff3c8fcb88ffc4c100c4205b
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactTileListFragment.java
ad4f583ecc7390846dfc19da692d6778a7f50b3c 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
232df2f3b2f34455928c0f163b56f12dd55132b3 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
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
c26bc592c0e9a4587512a9677bc2dd9d311b0975 15-Apr-2014 Ben Gilad <gilad@google.com> Fix NPE in android.graphics.BitmapFactory.decodeFile

Change-Id: Iab8db2f1ae173f44cb12cf0376e8b53768c6d069
ndroid/contacts/editor/ContactEditorFragment.java
ba3c839fed47eabbcf27d45ef7cc61202a49b9df 11-Apr-2014 Yorke Lee <yorkelee@google.com> Make sure country code is uppercase

getNetworkCountryIso returns a lowercase country code, causing number parse
exceptions when using PhoneNumberUtils.parse to try and format and geocode
an unknown phone number.

Bug: 13971546
Change-Id: I0112df7a6053b8d3fb2d63597977d20a02b33b4b
ndroid/contacts/common/util/TelephonyManagerUtils.java
6ba58c7dc8d63e1a6f803f9c2dd1990d80567c59 06-Jun-2013 Puneet K Jain <puneet.k.jain@intel.com> Move cursor to the right place when adding phonetic name

When adding the phonetic name, the Editor fails to get the focus automatically.

Change-Id: I6371508ea595b83e10a89c7a647452bd969a9d17
Signed-off-by: guojingx <guojingx.wu@intel.com>
ndroid/contacts/editor/RawContactEditorView.java
69f471a37a9dd891d542e91a9e53bfe30ae431d1 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
ndroid/contacts/common/list/ContactListItemView.java
e9c612ed455fda2de85b292ec0cabc28862677c8 01-Apr-2014 Andrew Lee <anwlee@google.com> Don't replace phone number text if formatted number is null.

Bug: 11734577
Change-Id: I21e11b9aed0dde06f96fcbdcc605cef0f2c4120f
ndroid/contacts/common/list/ContactListItemView.java
c6d2f865dc518c6dbb19935d080def18da6a91f7 31-Mar-2014 Andrew Lee <anwlee@google.com> Deprecate/Remove showPhoneNumber() in Contacts/*.

Change-Id: Ie0bef7be948df7dc75af6946af8556479bebe253
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
32e17da029986b44092b8e226b9dc200dc85ecdb 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
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
9cb2693758be39ad015df724d0288edb43b32628 26-Mar-2014 Yorke Lee <yorkelee@google.com> Fix for default avatars not refreshing in landscape

Make sure we obtain a new LetterTileDrawable in ImageViewDrawableSetter
if the previous drawable was an instance of LetterTileDrawable

Bug: 13584977
Change-Id: I8431fbdd473441a0e77425cdeab90688dbda65bd
ndroid/contacts/util/ImageViewDrawableSetter.java
b0f251bc84c19069749470373b6027f9251c498a 20-Mar-2014 Yorke Lee <yorkelee@google.com> Merge "Remove unused fields in ContactLoader"
b7fef59e7c311973ef932aa7c70c1ac776d850f3 18-Mar-2014 Yorke Lee <yorkelee@google.com> Remove unused fields in ContactLoader

RawContacts.ACCOUNT_TYPE_AND_DATA_SET
Data.RES_PACKAGE

These fields are private in ContactsContract and are not
actually used anywhere else within Contacts or Dialer.

Bug: 6948882

Change-Id: Ie5ca6d9c37fa40f2c5d7d27e15fdbf745f8fc74f
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/common/model/RawContact.java
426e5d474d81fc018c01814f6087cb17f5fe8510 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
ndroid/contacts/common/format/SpannedTestUtils.java
ndroid/contacts/common/list/ContactListItemView.java
4e2ed107630f618a52698fadfb2bbad2b676f715 17-Mar-2014 Yorke Lee <yorkelee@google.com> Remove unused Groups.ACCOUNT_TYPE_AND_DATA_SET column from query

Bug: 6948882
Change-Id: Ic11a4f826c1fa6aa461b0b1312fd215ae9b4b126
ndroid/contacts/common/model/ContactLoader.java
9e8e7cb9ec53b46ff476336e1b40f7dfa6ccb61c 17-Mar-2014 Yorke Lee <yorkelee@google.com> Fix usage of PhoneNumberUtils.isUriNumber

PhoneNumberUtils.isUriNumber is private and should not be used.

Bug: 6948882
Change-Id: I0724364080a402b64c78f2d82aed72e9acc04111
ndroid/contacts/common/CallUtil.java
ef4e54842509631607bb63afcc28bbf8dccab9db 15-Mar-2014 Craig Mautner <cmautner@google.com> Merge "Disable animations if manually overriding. DO NOT MERGE." into klp-dev
02e6cea0819158808734bbc605874688d539da5d 11-Dec-2013 Craig Mautner <cmautner@google.com> Disable animations if manually overriding. DO NOT MERGE.

Contacts manages its own dismissal animations so it needs to disable
the system from doing any.

Fixes bug 12013550.

Change-Id: If2e2d08b7dd1e4c2a81551145e46ef290011e2e3
ndroid/contacts/quickcontact/QuickContactActivity.java
3174f56e2465c0f9d9dbf123c0b651ccbb274d24 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
ndroid/contacts/common/list/ContactListItemView.java
2b8fc03f1d42826ac575926e843abb7de098c36b 08-Feb-2014 Brian Attwell <brianattwell@google.com> Don't initialize ActionBar with invalid tab index

If an invalid tab index is persisted to SharedPreferences then every time you
open the People app, the app will crash. This CL fixes this crash. It doesn't
prevent the tab index from getting in an invalid state in the first place.

I don't understand how this invalid tab index gets set. The
ActionBarImpl and TabPagerAdapter would both have to believe that a tab
at position 3 exists, otherwise a crash would occur before an invalid
tab index could be persisted.

TESTING
-verified that I could close and open the app from every tab position
-pushed an invalid shared_preferences.xml to a phone. This causes crashes
without this CL. This CL fixes the crashes.

Bug: 12938207
Change-Id: I6eb9a9043dcc76ce94a1cc280c7441e57a4abfd1
(cherry picked from commit 26dc5592145eeddcd435daf2dae29d8e483f1b7b)
ndroid/contacts/activities/ActionBarAdapter.java
f044393cc4f51c5bdfd0cf25aeabdf97b31be382 13-Feb-2014 Brian Attwell <brianattwell@google.com> Include original exception to ease debugging

Pass the original OperationApplicationException exception
into the thrown exception in order to make the following
Feedback issue easier to debug. This is in case we are
unable to fix this bug by MR2.

Bug: 12996134
Change-Id: Ib26d473574f1c0788d80fef0ceb4ef4748ec11e1
(cherry picked from commit 3b6c628fc9e717a41c2954b1101c3a04ad382c55)
ndroid/contacts/ContactSaveService.java
b00ca40641bfa0f8056edae7420b7f4cf713b5a1 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
(cherry picked from commit f677450d82e7b961fda2a18fea2ad51e88437e8b)
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/TransformableImageView.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/util/ImageViewDrawableSetter.java
550241c85227b8d0228d0e99d979646759983393 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix crash in getPhotoPickSize" into klp-dev
19a0255d3a8e274c5ffbb4a8dc29920bf9a2e6be 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Catch ActivityNotFoundExceptions" into klp-dev
de047f43f7b113f256e573fe586b86a18ebd6d80 18-Jan-2014 Jay Shrauner <shrauner@google.com> Fix crash in getPhotoPickSize

Handle null or empty cursors.

Bug:12619944
Change-Id: I5cae8c16e29474afbc78a172f39bbb04daec446a
(cherry picked from commit b126f4a7427095468ee66fa4c3b9586f0b889288)
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ce29a6c702318192f696787a077159cad747b4f7 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in setGroupMetaData" into klp-dev
bb9bfba85b4b0fc359cc7e93cce30f44721c21e3 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Don't crash if account label is null" into klp-dev
0af43f597f6a03ac003b0512ec6b4ab2b544fa85 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Catch ActivityNotFoundExceptions" into klp-dev
fe05992e463a2e181551b2880235026870dde301 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE when phone number or email is null" into klp-dev
6a4db337c716d739c55b0c154eb16770a4b917e4 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE on non decodable Bitmap" into klp-dev
8a66abdfb9c09ba4cdd089921e9aa2934769e413 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix potential NPE with null cursor" into klp-dev
583be4d812ae2f30fd0a962bd7952e8432720935 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE when sorting accounts lacking type" into klp-dev
65be0b454246053df0d491a5ae10e09c1ae20ce9 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix crash on missing mimetype" into klp-dev
7b5a6d32d9b56292b7635c5087e8e3d2941a43f1 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE in bindEditor" into klp-dev
33aba58a08914ba4f9f74d3bb33f2c697ddaf2a2 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE on null cursor close" into klp-dev
2a8fba36db12792704e760b7070dc57b39158ced 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Handle null returns from insertChild" into klp-dev
4c61147c3e72d07fab25d76f9986b92c457502c5 04-Mar-2014 Jay Shrauner <shrauner@google.com> Merge "Fix IllegalState in ContactSelectionActivity" into klp-dev
77bafaa37d64b262c26694d523946b544efa4223 03-Mar-2014 Yorke Lee <yorkelee@google.com> Merge "Tweaks to redlines for letter tile avatars"
7052b7a33149b889ce4e8c2067df6f8c69145b3b 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
ndroid/contacts/common/list/ContactTileView.java
8baea884d71867f07390dee4bbb046c94bc7b538 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
ndroid/contacts/common/list/ShortcutIntentBuilder.java
af7b79978693a0921437bb2c6ceec985003a2c67 21-Feb-2014 Jay Shrauner <shrauner@google.com> Fix NPE in setGroupMetaData

Check that listView is non-null before dereferencing it. Catch case
in onClick() where popup was dismissed but mPopup wasn't cleared.

Bug:13136064
Change-Id: I8f826ae969434c4dce88c5fb506b5ed2cc9ea04b
(cherry picked from commit 9813b71d3a6a2e0baba96cda72ee55415e523166)
ndroid/contacts/editor/GroupMembershipView.java
515baf4c152b3143e6b719fc71713a3a632794a7 20-Feb-2014 Jay Shrauner <shrauner@google.com> Don't crash if account label is null

Third party sync adapters may return null when we query for account
type display label. Handle that case.

Bug:13083964
Change-Id: I77fb891a5cdf5a583ea4a8901c857f22683e432f
(cherry picked from commit 97b3461d59292363159f1cda0a6fe7fcaa1686d3)
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupDetailFragment.java
256515179e1c197b72bf1a878a2c7eacaec10c9a 31-Jan-2014 Jay Shrauner <shrauner@google.com> Catch ActivityNotFoundExceptions

Catch ActivityNotFoundExceptions when attempting to view a circle.

Bug:12838969
Change-Id: I4c8a73fd0aeabbe736a0157be0e479ee3f1223a9
(cherry picked from commit 3dd189e5a5fce7772c120d6de2e185398f0275a6)
ndroid/contacts/group/GroupDetailFragment.java
35bf18b819c13297ce5a5106003bb0c81381cd93 31-Jan-2014 Jay Shrauner <shrauner@google.com> Catch ActivityNotFoundExceptions

Catch ActivityNotFoundException when attempting to insert or edit a contact.

Bug:12837767
Change-Id: I46688c1f6c59515ff48ddadeaa92e4a74e803eb8
(cherry picked from commit 1d815e67ea1304d693b9e09e7e53e76dc61883e1)
ndroid/contacts/activities/ContactSelectionActivity.java
d7ab82f8303c0d7943db602a01ebdbb9244222e0 30-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE when phone number or email is null

Don't crash if phone number or email address is null; instead, skip the
entry.

Bug:12821628
Change-Id: I3f5de7926278fb54941f9cdb59e9366060d420eb
(cherry picked from commit 89095c7a4bb85a54d7e6c56322a7fcbf0b60f93e)
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
1e090bfaee34b45e1127dc1549bae1d60ca75b66 30-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE on non decodable Bitmap

Fix so don't crash if unable to decode Bitmap that user is attempting to
assign to a contact.

Bug:12819739
Change-Id: I34f31b1e84a76a15d4de92ccd5544ff502743079
(cherry picked from commit 5d170911503c81aca63a9a089aeb0c5664ef0487)
ndroid/contacts/activities/AttachPhotoActivity.java
9b9dacbbb2353f3415fb70cc1ae8b2e9152e4ecb 28-Jan-2014 Jay Shrauner <shrauner@google.com> Fix potential NPE with null cursor

Detect and handle null cursors returned from CP2 queries.

Bug:12767708
Change-Id: I1571463b80e5b85656fe119c6bc83de36be30c7f
(cherry picked from commit 13c42f4ebb1c7f31750262946ce3b390c93d5320)
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
d0dac2f45e6c5900f0f83ba228b26d041164281c 21-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE when sorting accounts lacking type

Fix NPE when accountType is null in comparator.

Bug:12661115
Change-Id: I37d8b10a48f85f6a23e5761b7bf85a5f612c7379
(cherry picked from commit d97719de77bc3758c34fe11301cf29651578e58d)
ndroid/contacts/editor/ContactEditorFragment.java
ea6e4ec315d71bff9b97dff652a9bf92f384270c 17-Jan-2014 Jay Shrauner <shrauner@google.com> Fix crash on missing mimetype

Fix so ContactSaveService shows a toast instead of crashing if called
with malformed intent.

Bug:12622453
Change-Id: I0495649574a90eeb1960de65b22f051a1dc78c78
(cherry picked from commit 57fca1851e5371f259d4dd6bdf322e20c606c975)
ndroid/contacts/ContactSaveService.java
2ba6dc6f8bd65176f42491a013c6f1d1d3d4d152 15-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE in bindEditor

Correctly handle null return values from getMimeEntries()

Bug:12568010
Change-Id: Ic43afb302fa0bdf7852b2247745eaefffa9f7492
(cherry picked from commit ea1b1c62c3232f89d9a56450abf0003af434a962)
ndroid/contacts/activities/ConfirmAddDetailActivity.java
946ebfa1d649e9efd17b50d84111996c5c84970b 15-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE on null cursor close

Only query once for photo dimensions. Don't crash if cursor is null.
Use default of 720 if unable to query provider.

Bug:12552331
Change-Id: I2bd5ad3db86316b3e61d719bc44b524de8758387
(cherry picked from commit 409737c0585f374e2cd0ad1fea9128905a276b85)
ndroid/contacts/activities/AttachPhotoActivity.java
a8c9337bf6ca808382d6c4401b05ddc79929e9f5 10-Jan-2014 Jay Shrauner <shrauner@google.com> Handle null returns from insertChild

insertChild() returns null whenever kind is null. Don't crash in these cases.

Bug:12490438
Change-Id: Idf1cd8fa9d6dfe6a2f91f3ff656663f0692f4a3f
(cherry picked from commit f54c9f2c84a88e046e29123fa65b19040e5a457b)
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/RawContactEditorView.java
3238dc9316e847b9b9e64c617e1b18b8c28c9427 10-Jan-2014 Jay Shrauner <shrauner@google.com> Fix IllegalState in ContactSelectionActivity

Handle ContactsRequest.ACTION_DEFAULT as a ContactsRequest.ACTION_PICK_CONTACT
action in ContactSelectionActivity.configureListFragment instead of crashing.

Bug:12489968
Change-Id: I60e2ca8357b211216ff44a7ba297e183c7e9757a
(cherry picked from commit 98609ec4faea054971938f440438bad792596e99)
ndroid/contacts/activities/ContactSelectionActivity.java
a1f9ffe290974a74da539a76047b45325a89760a 10-Jan-2014 Jay Shrauner <shrauner@google.com> NPE fix on ContactDetailActivity

Remove unnecessary Log.i statement that was causing NPEs

Bug:12489182
Change-Id: Ieed833b1dbb2c854b165871a132aa55003958640
(cherry picked from commit afcdbbde47c94ebcb052f4c11c6d37806c02c162)
ndroid/contacts/activities/ContactDetailActivity.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
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/TransformableImageView.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/util/ImageViewDrawableSetter.java
9df5e19332197900e8af8c5349a614be9b6c032a 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
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/lettertiles/LetterTileDrawable.java
ndroid/contacts/common/list/ContactEntry.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/ContactTileView.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/model/Contact.java
1774a2ff24c4f80d45ca146b4bf78e83a160d04e 27-Feb-2014 Yorke Lee <yorkelee@google.com> Fix Contact photo flicker in People and Dialer

Bug: 11634428
Change-Id: Ied6f6dcfe8ae905e6223973d32fb64406ca085a9
ndroid/contacts/common/ContactPhotoManager.java
9813b71d3a6a2e0baba96cda72ee55415e523166 21-Feb-2014 Jay Shrauner <shrauner@google.com> Fix NPE in setGroupMetaData

Check that listView is non-null before dereferencing it. Catch case
in onClick() where popup was dismissed but mPopup wasn't cleared.

Bug:13136064
Change-Id: I8f826ae969434c4dce88c5fb506b5ed2cc9ea04b
ndroid/contacts/editor/GroupMembershipView.java
97b3461d59292363159f1cda0a6fe7fcaa1686d3 20-Feb-2014 Jay Shrauner <shrauner@google.com> Don't crash if account label is null

Third party sync adapters may return null when we query for account
type display label. Handle that case.

Bug:13083964
Change-Id: I77fb891a5cdf5a583ea4a8901c857f22683e432f
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupDetailFragment.java
d00877d86b18dc6b67fbd06f53186c92454012b6 15-Feb-2014 Brian Attwell <brianattwell@google.com> Merge "GoogleAccountType extension schema from gmscore"
67b2eaacabc466b248f124bc270e2f5c5fab68f3 11-Feb-2014 Brian Attwell <brianattwell@google.com> GoogleAccountType extension schema from gmscore

Bug: 11629361
Change-Id: Ide0719c8c3a1da4ac9f27c11a40b7314d06f7adf
ndroid/contacts/common/model/account/GoogleAccountType.java
bf7a85c39ef352e851968ecdcf77a29c6965253c 13-Feb-2014 Yorke Lee <yorkelee@google.com> Merge "Make ContactTileLoaderFactory.COLUMNS_PHONE_ONLY visible for testing"
3b6c628fc9e717a41c2954b1101c3a04ad382c55 13-Feb-2014 Brian Attwell <brianattwell@google.com> Include original exception to ease debugging

Pass the original OperationApplicationException exception
into the thrown exception in order to make the following
Feedback issue easier to debug. This is in case we are
unable to fix this bug by MR2.

Bug: 12996134
Change-Id: Ib26d473574f1c0788d80fef0ceb4ef4748ec11e1
ndroid/contacts/ContactSaveService.java
f51039b7631652daf91574d01681b5a400a2b77d 12-Feb-2014 Brian Attwell <brianattwell@google.com> Remove stream attributes from ExternalAccountType

Bug: 12975316
Change-Id: Id323c0e1972f72a52a6b253c8fa3d94f002d6f56
ndroid/contacts/common/model/account/AccountType.java
ndroid/contacts/common/model/account/ExternalAccountType.java
b465dcaaaf36de6e62c0bcc0b8b2d392a7caed7a 11-Feb-2014 Yorke Lee <yorkelee@google.com> Make ContactTileLoaderFactory.COLUMNS_PHONE_ONLY visible for testing

Change-Id: Ib052c165915bb90ee9577aea3ac6146ecb020399
ndroid/contacts/common/ContactTileLoaderFactory.java
139966e42c7aa9d94ab913d7ffe744e6eceb4678 10-Feb-2014 Brian Attwell <brianattwell@google.com> Merge "Don't initialize ActionBar with invalid tab index"
26dc5592145eeddcd435daf2dae29d8e483f1b7b 08-Feb-2014 Brian Attwell <brianattwell@google.com> Don't initialize ActionBar with invalid tab index

If an invalid tab index is persisted to SharedPreferences then every time you
open the People app, the app will crash. This CL fixes this crash. It doesn't
prevent the tab index from getting in an invalid state in the first place.

I don't understand how this invalid tab index gets set. The
ActionBarImpl and TabPagerAdapter would both have to believe that a tab
at position 3 exists, otherwise a crash would occur before an invalid
tab index could be persisted.

TESTING
-verified that I could close and open the app from every tab position
-pushed an invalid shared_preferences.xml to a phone. This causes crashes
without this CL. This CL fixes the crashes.

Bug: 12938207
Change-Id: I6eb9a9043dcc76ce94a1cc280c7441e57a4abfd1
ndroid/contacts/activities/ActionBarAdapter.java
311d9c6fc956cd1568de36118266dad3142fd9da 05-Feb-2014 Jay Shrauner <shrauner@google.com> Merge "Catch ActivityNotFoundExceptions"
8335729ab83cbd333900a32ea997557e975cd9e7 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
ndroid/contacts/common/list/ProfileAndContactsLoader.java
fc50bdd15a2de6560581b67d3b73688a48ae0b3f 05-Feb-2014 Brian Attwell <brianattwell@google.com> Delete dead social/stream code from Contacts

Searched for stream/social code. Next, deleted layouts that
showed up in the results from "lint Contacts --check UnusedResources".

I didn't bother cleaning up the unused strings.

Change-Id: I7473127e8e4e33c97b205f85d4d63f459e9d2b10
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/util/HtmlUtils.java
ndroid/contacts/util/StreamItemEntry.java
ndroid/contacts/util/StreamItemPhotoEntry.java
b5c7e0402458fc26c59ec9f7087183d7739c67ee 05-Feb-2014 Brian Attwell <brianattwell@google.com> Add @VisibleForTest to TestLoaderManager ctor

Fix for some old test failures inside
ContactDeletionInteractionTest.

Change-Id: I7b61f9d7749d82b148d0600e671904c3cc0fc865
ndroid/contacts/interactions/TestLoaderManager.java
cb89f71e69d411d882c7334d68f60dd70f730ba0 04-Feb-2014 Brian Attwell <brianattwell@google.com> Remove ContactDetailLayoutController's social code

Prior to this change, the ContactDetailLayoutController
used ViewPagers and Carousels to display nothing but the
ContactDetailFragment. Originally these ViewPagers and carousels
were used to display social code.

I have removed the now useless ViewPagers, carousels and adapters.

Now that ContactDetailLayoutController's layout only contains
the ContactDetailFragment, there is no need for multiple different
ContactDetailLayoutController layouts.

Change-Id: Iea09bab7e39cfafded56be5c2302f3e36fd40f4c
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ContactDetailViewPagerAdapter.java
ndroid/contacts/detail/StreamItemAdapter.java
3dd189e5a5fce7772c120d6de2e185398f0275a6 31-Jan-2014 Jay Shrauner <shrauner@google.com> Catch ActivityNotFoundExceptions

Catch ActivityNotFoundExceptions when attempting to view a circle.

Bug:12838969
Change-Id: I4c8a73fd0aeabbe736a0157be0e479ee3f1223a9
ndroid/contacts/group/GroupDetailFragment.java
1d815e67ea1304d693b9e09e7e53e76dc61883e1 31-Jan-2014 Jay Shrauner <shrauner@google.com> Catch ActivityNotFoundExceptions

Catch ActivityNotFoundException when attempting to insert or edit a contact.

Bug:12837767
Change-Id: I46688c1f6c59515ff48ddadeaa92e4a74e803eb8
ndroid/contacts/activities/ContactSelectionActivity.java
49dbee1b8f079d1aeac08576e1917adfa21177c4 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
ndroid/contacts/common/list/ProfileAndContactsLoader.java
89095c7a4bb85a54d7e6c56322a7fcbf0b60f93e 30-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE when phone number or email is null

Don't crash if phone number or email address is null; instead, skip the
entry.

Bug:12821628
Change-Id: I3f5de7926278fb54941f9cdb59e9366060d420eb
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
5d170911503c81aca63a9a089aeb0c5664ef0487 30-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE on non decodable Bitmap

Fix so don't crash if unable to decode Bitmap that user is attempting to
assign to a contact.

Bug:12819739
Change-Id: I34f31b1e84a76a15d4de92ccd5544ff502743079
ndroid/contacts/activities/AttachPhotoActivity.java
9f6cd41a07c29d330a402d5bf04658249837a7cd 29-Jan-2014 Jay Shrauner <shrauner@google.com> Merge "Fix NPE with null cursor"
9e3335369ff93f51e4d1558dbfb814e23514b456 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
ndroid/contacts/common/list/ProfileAndContactsLoader.java
007d530ad5f28dde01407b8b4ec28d151915aa66 28-Jan-2014 Jay Shrauner <shrauner@google.com> Fix potential NPE with null cursor

Detect and handle null cursors returned from CP2 queries.

Bug:12767708
Change-Id: I7bc4f97848a59140aba5a2c924c79fdc2749b150
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/common/util/NameConverter.java
13c42f4ebb1c7f31750262946ce3b390c93d5320 28-Jan-2014 Jay Shrauner <shrauner@google.com> Fix potential NPE with null cursor

Detect and handle null cursors returned from CP2 queries.

Bug:12767708
Change-Id: I1571463b80e5b85656fe119c6bc83de36be30c7f
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
d97719de77bc3758c34fe11301cf29651578e58d 21-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE when sorting accounts lacking type

Fix NPE when accountType is null in comparator.

Bug:12661115
Change-Id: I37d8b10a48f85f6a23e5761b7bf85a5f612c7379
ndroid/contacts/editor/ContactEditorFragment.java
57fca1851e5371f259d4dd6bdf322e20c606c975 17-Jan-2014 Jay Shrauner <shrauner@google.com> Fix crash on missing mimetype

Fix so ContactSaveService shows a toast instead of crashing if called
with malformed intent.

Bug:12622453
Change-Id: I0495649574a90eeb1960de65b22f051a1dc78c78
ndroid/contacts/ContactSaveService.java
b126f4a7427095468ee66fa4c3b9586f0b889288 18-Jan-2014 Jay Shrauner <shrauner@google.com> Fix crash in getPhotoPickSize

Handle null or empty cursors.

Bug:12619944
Change-Id: I5cae8c16e29474afbc78a172f39bbb04daec446a
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ea1b1c62c3232f89d9a56450abf0003af434a962 15-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE in bindEditor

Correctly handle null return values from getMimeEntries()

Bug:12568010
Change-Id: Ic43afb302fa0bdf7852b2247745eaefffa9f7492
ndroid/contacts/activities/ConfirmAddDetailActivity.java
409737c0585f374e2cd0ad1fea9128905a276b85 15-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE on null cursor close

Only query once for photo dimensions. Don't crash if cursor is null.
Use default of 720 if unable to query provider.

Bug:12552331
Change-Id: I2bd5ad3db86316b3e61d719bc44b524de8758387
ndroid/contacts/activities/AttachPhotoActivity.java
f54c9f2c84a88e046e29123fa65b19040e5a457b 10-Jan-2014 Jay Shrauner <shrauner@google.com> Handle null returns from insertChild

insertChild() returns null whenever kind is null. Don't crash in these cases.

Bug:12490438
Change-Id: Idf1cd8fa9d6dfe6a2f91f3ff656663f0692f4a3f
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/RawContactEditorView.java
2ebf20e5d67d9dfca7ca2ce50efc2a0acc5cdfa1 10-Jan-2014 Jay Shrauner <shrauner@google.com> Fix NPE when kind is null in getBestType

Fix alternate insertChild() method to detect and bail on null kind just
like primary insertChild() method does. Also change getBestValidType()
not to crash on null kind.

Bug:12490438
Change-Id: I82c351ccd5a880fb8bc71b5b27ffb2662c071be3
ndroid/contacts/common/model/RawContactModifier.java
98609ec4faea054971938f440438bad792596e99 10-Jan-2014 Jay Shrauner <shrauner@google.com> Fix IllegalState in ContactSelectionActivity

Handle ContactsRequest.ACTION_DEFAULT as a ContactsRequest.ACTION_PICK_CONTACT
action in ContactSelectionActivity.configureListFragment instead of crashing.

Bug:12489968
Change-Id: I60e2ca8357b211216ff44a7ba297e183c7e9757a
ndroid/contacts/activities/ContactSelectionActivity.java
afcdbbde47c94ebcb052f4c11c6d37806c02c162 10-Jan-2014 Jay Shrauner <shrauner@google.com> NPE fix on ContactDetailActivity

Remove unnecessary Log.i statement that was causing NPEs

Bug:12489182
Change-Id: Ieed833b1dbb2c854b165871a132aa55003958640
ndroid/contacts/activities/ContactDetailActivity.java
3a4e7a282867bfe4803940eca40e35094507605b 08-Jan-2014 benny.lin <benny634@gmail.com> Pop-up "couldn't save contact changes" while switch ap during change the contact photo.

Photo file will be deleted while switch ap during change the contact photo. When savemode is close state, photo will be deleted.

Change-Id: I78be2f9bfa5ad6e9543b28b8293ff2240428f242
Signed-off-by: benny.lin <benny634@gmail.com>
ndroid/contacts/ContactSaveService.java
a2481c65c88445c783675a38af9c65cbdb4c8ff9 13-Dec-2013 Santos Cordon <santoscordon@google.com> Removing explicit destination for CALL intents sent from dialer.

Change-Id: I547d469e457397c9f9298b7f60da5324476affba
ndroid/contacts/common/CallUtil.java
30266de102f19158ab68ee60e1f0687758838033 11-Dec-2013 Craig Mautner <cmautner@google.com> Disable animations if manually overriding

Contacts manages its own dismissal animations so it needs to disable
the system from doing any.

Fixes bug 12013550.

Change-Id: If2e2d08b7dd1e4c2a81551145e46ef290011e2e3
ndroid/contacts/quickcontact/QuickContactActivity.java
ee01af700f683cc8d3e19578fe8f7f53d40a9873 05-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Add null check for cursor in DirectoryListLoader"
5fe2d21baf3de9bb8d16dcce8d4fd60652df9441 05-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Remove dead code using CountryDetector"
1a115712b19edf76f46c798a4030ce16e516a2da 05-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Copy private pointInView method to ContactListItemView"
1e94cb5d34c52c528b8210f719547fc5603593ce 05-Dec-2013 Yorke Lee <yorkelee@google.com> Add null check for cursor in DirectoryListLoader

Bug: 12015142
Change-Id: Iaf7a97efb31e06402d583d399fa1f66f12e086d9
ndroid/contacts/common/list/DirectoryListLoader.java
58a7d5583416715a63cc14e35acfbd4f5602d059 05-Dec-2013 Yorke Lee <yorkelee@google.com> Remove dead code using CountryDetector

Bug: 6948882
Change-Id: Idaa3d59f40cd2aa27b1ddb6c1a9915394d796b99
ndroid/contacts/common/GeoUtil.java
62ff5cdadacc120c0bd709d055639ad0ccefb4da 03-Dec-2013 Yorke Lee <yorkelee@google.com> Copy private pointInView method to ContactListItemView

Bug: 6948882
Change-Id: Ieef3d4c8933eacea59fe5a5398edc5ba0141fd2c
ndroid/contacts/common/list/ContactListItemView.java
d4793dcdd624e3b6026a56b6e9ab76b8f7a51f69 03-Dec-2013 Yorke Lee <yorkelee@google.com> Remove private reference to RawContactsEntity.FOR_EXPORT_ONLY

This boolean parameter is not used at all anywhere in the
ContactsProvider

Bug: 6948882
Change-Id: I932a03362a0fbe64134e319694f02572a24a565d
ndroid/contacts/common/vcard/ExportProcessor.java
89884c42c3e2fda486389a2a1709de16211f9142 03-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Replace usages of mContext with getContext"
796824d82b420f33b720cbbb32dcbbf43bf8944a 03-Dec-2013 Yorke Lee <yorkelee@google.com> Replace usages of mContext with getContext

Bug: 6948882
Change-Id: I730f690f36e9541dd6945abe6df9890c96d72676
ndroid/contacts/common/list/ContactListItemView.java
216cd56422eaaa40c246741227d66c2b2906383c 02-Dec-2013 Yorke Lee <yorkelee@google.com> Fix more libphonenumber dependencies

Bug: 6948882
Change-Id: I6b48e06f6cd6ed5434ee712926f5a3e8c43f2d68
ndroid/contacts/common/MoreContactUtils.java
e079172ff2a120c668930c6990a8dfabd0d9f13b 02-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Remove private references to android.R.styleable"
3d18e9ed473aa43bd30a446f730940e99f1c6b1e 02-Dec-2013 Yorke Lee <yorkelee@google.com> Merge "Copy quickcontact badge drawable in framework to ContactsCommon"
5cdc7fee7fb8fc5b1d0194bfd621948b8ebc78a9 25-Nov-2013 Yorke Lee <yorkelee@google.com> Fix libphonenumber dependencies

Libphonenumber is already included as a library in Dialer's makefile, so
there is no need to refer to the internal framework methods.

Bug: 6948882
Change-Id: I93d8e8adb92e56d261a8db897a2acef045f05b01
ndroid/contacts/common/GeoUtil.java
8bb6247f2cdc6733bbee195bca3b89ce301cdd27 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
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/util/LocalizedNameResolver.java
4ad1d3620b16ef0f58e5b59dbf75ff768377fdcd 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
ndroid/contacts/common/list/ShortcutIntentBuilder.java
000c9bed2b44208c9b241a6b71554faa2550b59b 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
fbabc144dc99b04a7a71fcc874ca682e019bed77 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
3237242caa8796eaf15449958315626dc982a886 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Merge "Make fonts consistent in contact list." into klp-dev
81cf4e460031bba5b44f57c563deb434752b8437 14-Nov-2013 Chiao Cheng <chiaocheng@google.com> Make fonts consistent in contact list.

Bug: 11674807
Change-Id: I86e08025085e140ecee7cfa796aff006ea3e270b
ndroid/contacts/common/list/ContactListItemView.java
68ec6a1e96a527cc21ee876251ca1e5d3500e26a 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
ndroid/contacts/common/list/ContactListItemView.java
ff9173c6ecf9fd98b9180956d195243d5af0c06d 08-Nov-2013 Sailesh Nepal <sail@google.com> Merge "isLocalEmergencyNumber: Add null check"
5f94198ff7ece7e0153f404665efd2060eddd496 08-Nov-2013 Yorke Lee <yorkelee@google.com> am 4f7a1ca4: am d8467baa: am 589bf503: Fix NPE in CallDetailActivity

* commit '4f7a1ca468f699b8ce7108a10e93ee6b3929d355':
Fix NPE in CallDetailActivity
7f80d16110e7c969dc795eaaaa3e4bba16b699ec 07-Nov-2013 Yorke Lee <yorkelee@google.com> Fix NPE in CallDetailActivity

Bug: 11574365
Change-Id: I8998e9a631ef5bb3d2e4e317e117e672c3b3d798
ndroid/contacts/common/util/UriUtils.java
72c36be57c7ea8e858eaec54d03b1a9d9f607b7b 07-Nov-2013 Sailesh Nepal <sail@google.com> isLocalEmergencyNumber: Add null check

This is consistent with other functions that also do null checks.

Change-Id: I2fbdd330b37d3b32cb3dadc89e81727ca99b5ad4
ndroid/contacts/common/util/PhoneNumberHelper.java
917360d9e2b17498cb53a0278d91ee5860cbfb12 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
745da9ebb72a80bcbd962e72d5493b222af870e3 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
c6f5698eaa3e48aad9df471edad51fa32cf14530 06-Nov-2013 Yorke Lee <yorkelee@google.com> am 963ade15: am 7c38711c: am cf3a8475: Merge "Move ContactLoader related code to ContactsCommon" into klp-dev

* commit '963ade153b9bee0ee7a1763dc3d530c55a7a7447':
Move ContactLoader related code to ContactsCommon
7a331f3e1df16b9f7aeefdecfa75705abbb3c0e3 06-Nov-2013 Yorke Lee <yorkelee@google.com> am 077a7723: am 4193823e: am 5d2be5b3: Merge "Move ContactLoader related code to ContactsCommon" into klp-dev

* commit '077a77236c3c7975469866457e27f2d90db875ad':
Move ContactLoader related code to ContactsCommon
b137b25a998236c419139030c8b8650d421feb16 06-Nov-2013 Yorke Lee <yorkelee@google.com> Merge "Move ContactLoader related code to ContactsCommon" into klp-dev
cd321f65f1e50409812976380ad1f0fdb3fa35cb 28-Oct-2013 Yorke Lee <yorkelee@google.com> Move ContactLoader related code to ContactsCommon

This CL simply moves classes from Contacts into ContactsCommon.

This is needed so that Dialer can use ContactLoader related code
for b/11294679. A ContactLoader will also be needed in the future
to allow InCallUI to download hi-res photos while in call.
Bug: 11294679

Change-Id: Ia033f3ea2406a907a4e71290c9ce810a5583dab8
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/GroupMetaData.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/ViewNotificationService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/datepicker/DatePickerDialog.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/model/Contact.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/RawContactDeltaList.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/EmailDataItem.java
ndroid/contacts/model/dataitem/EventDataItem.java
ndroid/contacts/model/dataitem/GroupMembershipDataItem.java
ndroid/contacts/model/dataitem/IdentityDataItem.java
ndroid/contacts/model/dataitem/ImDataItem.java
ndroid/contacts/model/dataitem/NicknameDataItem.java
ndroid/contacts/model/dataitem/NoteDataItem.java
ndroid/contacts/model/dataitem/OrganizationDataItem.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/model/dataitem/PhotoDataItem.java
ndroid/contacts/model/dataitem/RelationDataItem.java
ndroid/contacts/model/dataitem/SipAddressDataItem.java
ndroid/contacts/model/dataitem/StructuredNameDataItem.java
ndroid/contacts/model/dataitem/StructuredPostalDataItem.java
ndroid/contacts/model/dataitem/WebsiteDataItem.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/test/InjectedServices.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/util/ContactLoaderUtils.java
ndroid/contacts/util/DataStatus.java
ndroid/contacts/util/DateUtils.java
ndroid/contacts/util/HtmlUtils.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/util/NameConverter.java
ndroid/contacts/util/StreamItemEntry.java
2644d947574240b71c427d457f7a775dc160ec09 28-Oct-2013 Yorke Lee <yorkelee@google.com> Move ContactLoader related code to ContactsCommon

This CL simply moves classes from Contacts into ContactsCommon.

This is needed so that Dialer can use ContactLoader related code
for b/11294679. A ContactLoader will also be needed in the future
to allow InCallUI to download hi-res photos while in call.

Bug: 11294679
Change-Id: If56a60aed2003ac7b8fcedac7ce4f1a7503bce94
ndroid/contacts/common/ContactsUtils.java
ndroid/contacts/common/GroupMetaData.java
ndroid/contacts/common/model/Contact.java
ndroid/contacts/common/model/ContactLoader.java
ndroid/contacts/common/model/RawContact.java
ndroid/contacts/common/model/RawContactDelta.java
ndroid/contacts/common/model/RawContactDeltaList.java
ndroid/contacts/common/model/RawContactModifier.java
ndroid/contacts/common/model/dataitem/DataItem.java
ndroid/contacts/common/model/dataitem/EmailDataItem.java
ndroid/contacts/common/model/dataitem/EventDataItem.java
ndroid/contacts/common/model/dataitem/GroupMembershipDataItem.java
ndroid/contacts/common/model/dataitem/IdentityDataItem.java
ndroid/contacts/common/model/dataitem/ImDataItem.java
ndroid/contacts/common/model/dataitem/NicknameDataItem.java
ndroid/contacts/common/model/dataitem/NoteDataItem.java
ndroid/contacts/common/model/dataitem/OrganizationDataItem.java
ndroid/contacts/common/model/dataitem/PhoneDataItem.java
ndroid/contacts/common/model/dataitem/PhotoDataItem.java
ndroid/contacts/common/model/dataitem/RelationDataItem.java
ndroid/contacts/common/model/dataitem/SipAddressDataItem.java
ndroid/contacts/common/model/dataitem/StructuredNameDataItem.java
ndroid/contacts/common/model/dataitem/StructuredPostalDataItem.java
ndroid/contacts/common/model/dataitem/WebsiteDataItem.java
ndroid/contacts/common/test/InjectedServices.java
ndroid/contacts/common/util/CommonDateUtils.java
ndroid/contacts/common/util/ContactLoaderUtils.java
ndroid/contacts/common/util/DataStatus.java
ndroid/contacts/common/util/DateUtils.java
ndroid/contacts/common/util/NameConverter.java
7511884a09edb0f2912ecf75e8bf802f197781e9 05-Nov-2013 Chiao Cheng <chiaocheng@google.com> am 7b337210: am 54da47db: am 7ded6b24: Merge "Fade out default avatar when fading in contact image." into klp-dev

* commit '7b3372101977d974f2f3f40424a3ed2a574cec90':
Fade out default avatar when fading in contact image.
859cd9653b32f15ee93b683d0ab25bcfcf0b7680 05-Nov-2013 Yorke Lee <yorkelee@google.com> Merge "Remove use of isLayoutRtl and move to utility method"
50a89a528c71af6ff0d13841060d734382c436b8 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
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/PinnedHeaderListView.java
ndroid/contacts/common/util/ViewUtil.java
79bce57e8eb462f1f710c52ad7fe562fe56299a7 04-Nov-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fade out default avatar when fading in contact image." into klp-dev
bbdf0cc14c78b2ac33f2533073ab22c9f52bb76a 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
ndroid/contacts/common/list/ContactListItemView.java
35c643a5448014f06797dbc05f0b652099d96483 31-Oct-2013 Yorke Lee <yorkelee@google.com> Fix searchsnippet highlighting in People

Bug: 11451572
Change-Id: Id1490940488726f8e7573068dc8440acb7370170
ndroid/contacts/common/list/ContactListItemView.java
8b9602683d3ce386e146c2854e5790d0f52724b9 30-Oct-2013 Yorke Lee <yorkelee@google.com> Use TruncateAt.END instead of private TruncateAt.END_SMALL

Change-Id: I76e5705dd5ce849324fdf9d88c08bedaba76b993
ndroid/contacts/common/list/ShortcutIntentBuilder.java
db535d52814fdb7c377749e08f3f87d75aba5c23 28-Oct-2013 Chiao Cheng <chiaocheng@google.com> Fade out default avatar when fading in contact image.

Bug: 11415331
Change-Id: I7d58fb0bec01de104decedda4a5258bece330bcd
ndroid/contacts/common/ContactPhotoManager.java
4ffb16a594f32ee5812305a4d7b5b43ab4aec33b 25-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Remove private references from ContactsCommon"
b47d598bf3acd9d4eb5ebb9aefd02853bd5e3639 25-Oct-2013 Christine Chen <christinech@google.com> Merge "Adding utility functions."
f3f259c09f15bbdee04a25763dbcb4bd5742727a 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
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/util/ContactDisplayUtils.java
2eda4795da760765b333d87851bcacefba651be5 25-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Switch to using ActivityManager.isLowRamDevice in ContactPhotoManager"
cf1773d64d67c99fd13774705bd59515391ca43c 24-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Remove use of applicationScale from ContactsCommon"
22426f92b5e27ebf2dadb2d74610a72450fbff4b 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
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/list/ContactTilePhoneFrequentView.java
ndroid/contacts/common/list/ContactTileView.java
03741c6809ca7d40740df049be1b37c146d8fc1a 24-Oct-2013 Christine Chen <christinech@google.com> Adding utility functions.

- Incorporates Ben and Chiao's comments on the previous CL.

Change-Id: I0e3793b2329d451c2b629652ec8de5b704ef9574
ndroid/contacts/common/util/PhoneNumberHelper.java
ndroid/contacts/common/util/TelephonyManagerUtils.java
a24122289fa71f4347f01f30d5362bd40233e8d8 24-Oct-2013 Yorke Lee <yorkelee@google.com> Switch to using ActivityManager.isLowRamDevice in ContactPhotoManager

Change-Id: Ib48022684939b41ff6af2a6db1721df5e811b983
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/util/MemoryUtils.java
4cb871fe0975242bf02ec51496c5d3a10ddcc627 18-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Don't use private resources in ContactsCommon/Dialer" into klp-dev
9f2769de8478d7b1e72b934bcc3e4760beba1fcc 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
ndroid/contacts/common/list/PinnedHeaderListView.java
ndroid/contacts/common/model/account/ExternalAccountType.java
572290be359989402a546a75d7c6378913a4bb2d 16-Oct-2013 Yorke Lee <yorkelee@google.com> Fix People flash on tablets when collapsing QC card

Bug: 9370423
Change-Id: I6312563482e9ffe2bfc28c40b7f45ebfd9c43b49
ndroid/contacts/activities/PeopleActivity.java
4baccccf2713402df02016dfe48fbcc653bd62e7 16-Oct-2013 Yorke Lee <yorkelee@google.com> Fix fast scroller regression in People

Bug: 10841097
Change-Id: I8abb74704dc106d82db3c7d1882e254b20e4df31
ndroid/contacts/common/list/PinnedHeaderListView.java
0d9f050af895626eefacc2b48fb3ba0bf849efac 14-Oct-2013 Yorke Lee <yorkelee@google.com> Section/directory font and size changes for ContactsCommon

Bug: 10861682
Change-Id: Ic34a46de80da691dfba1506b769df6b98a9fa9a3
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
3e073f3d65109ba16f73d6987c68eb3e059ebb2a 10-Oct-2013 Yorke Lee <yorkelee@google.com> Correctly pass photo data to contact editor

This preserves existing behavior of always going through the same
Create new contact or add to existing contact flow, but correctly
passes the photo into the contact editor.

Bug: 11168659
Change-Id: Ie8b249cf6d1825f72b884b5eea1e0b465998d111
ndroid/contacts/model/ContactLoader.java
208f2208891ec44e14505d32ebbd1d2ce7ea1ba5 08-Oct-2013 Yorke Lee <yorkelee@google.com> Hide PII in encoded json uri in logs

Bug: 11127944
Change-Id: I481be889dd82ce9664753be8bb9c749c8d76f08f
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/util/Constants.java
e323773f8eb00703cbd021afc7fba201f848eb85 08-Oct-2013 Yorke Lee <yorkelee@google.com> Put PII in uri fragment instead of query parameter to prevent logging

Bug: 11127944
Change-Id: Ifa6b6eca268f9c26c3165afe9ce937e43b63c1a4
ndroid/contacts/model/ContactLoader.java
69f67d00a13279c010d2dde4414a0600dff99294 05-Oct-2013 Ben Gilad <gilad@google.com> Add missing contentDescription tags.

bug: 11067808
Change-Id: Ib4032f3ca93635e02ab328e9dc7be7a5b4596e6e
ndroid/contacts/quickcontact/QuickContactActivity.java
2257cb63f7d1808efdba2ef3957298af7bf5e7d9 03-Oct-2013 Yorke Lee <yorkelee@google.com> Disable animation for pinned headers

Bug: 11048864
Change-Id: Ife1cd02baec9d3b0fc41f6fece8014066b7968e5
ndroid/contacts/common/list/PinnedHeaderListAdapter.java
47a57409bfb2d6e64e8937ebb9502124e7cbc666 02-Oct-2013 Yorke Lee <yorkelee@google.com> Merge "Support tapping on directory headers in PinnedHeaderListView" into klp-dev
fbae83759c2eb83d6425a71e053aed0c9ffac65d 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
ndroid/contacts/common/list/PinnedHeaderListView.java
a9602e7a2729f8060cb1e93ddc6c17270c90b225 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
ndroid/contacts/common/list/ContactEntryListFragment.java
b20f092859ec1626accca8c1f8552378c845a886 30-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Fix NPE in AttachPhotoActivity after rotating while cropping" into klp-dev
88df7126c8052ff0676587835662496399e44413 30-Sep-2013 Yorke Lee <yorkelee@google.com> Make clicking on profile image on unknown QC add a contact

Bug: 10693314
Change-Id: Ibbb7f9ae8abf91120b7e9501b4b4340bd4186e4c
ndroid/contacts/quickcontact/QuickContactActivity.java
2518abdb0c4a268a8607a4b6247bcde899b2628d 29-Sep-2013 Yorke Lee <yorkelee@google.com> Fix NPE in AttachPhotoActivity after rotating while cropping

One of the uris was not getting saved to the persisted bundle after
activity destruction.

Bug: 10972558
Change-Id: I9d6174cee18a6cd2786b6fe3ab99a3bdb33129ca
ndroid/contacts/activities/AttachPhotoActivity.java
9642118876826e64a82b54bb6012c88f725a820c 27-Sep-2013 Yorke Lee <yorkelee@google.com> Default to mobile number type when adding unknown phone numbers

Bug: 10693314
Change-Id: I368adeba114d2d2543bcf4c66324950c6b3edd79
ndroid/contacts/model/RawContactModifier.java
6cb6f6f8304d4b42fc9db4bbb0cc4058ab53afe3 27-Sep-2013 Yorke Lee <yorkelee@google.com> Add "Add to contacts" button in QC for supported contacts

Allow users to directly add an unknown contact to local contacts
from the QC card. Nearby places contacts are not supported because
directory export support is disabled.

Bug: 10693314
Change-Id: I4c6a5850282460b61cff1ad1a341cb1cbcb546ca
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/quickcontact/QuickContactActivity.java
f82d1a8038450b97edbd6ea31dc1f555ea639792 25-Sep-2013 David Braun <dabraun@google.com> Merge "Update People app to direct SMS SEND_TO only to the default SMS app." into klp-dev
76de0fada634c9fa73ade154a42ba9a96730ecae 25-Sep-2013 David Braun <dabraun@google.com> Update People app to direct SMS SEND_TO only to the default SMS app.

In KLP we have added the concept of a default SMS app to the platform. Only
this application has write permission to the SMS database. To help ensure
a better user experience we will always direct "send to sms" in the people
app to the app that the user has selected as their default SMS app.

Bug: 10870624 System should direct "SENDTO" intent with "sms" and "mms" schemes to the default SMS app
Change-Id: Ic35282b52d0f12baa11b57dc1b3ae8556ecb9a5a
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/util/PhoneCapabilityTester.java
5472268894412bae7a4cea9cd2504e0caf429821 25-Sep-2013 Yorke Lee <yorkelee@google.com> Changes in ContactsCommon to add number type support in Dialer

Bug: 10888792
Change-Id: I6e203d598edb753c19b33bf1d60fa7e39e5bb404
ndroid/contacts/common/ContactTileLoaderFactory.java
ndroid/contacts/common/list/ContactEntry.java
ndroid/contacts/common/list/ContactTileView.java
27aaf72a00a393fd5ccbafca1b5b78cb657fba6e 24-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Rename column in ContactTileLoader" into klp-dev
544e5a461aab6af12ae53c54171ca4c1c0173489 24-Sep-2013 Yorke Lee <yorkelee@google.com> Rename column in ContactTileLoader

Bug: 10888792
Change-Id: Ifc35461a6232d4404610b9ba4d82155cbdb8aad4
ndroid/contacts/common/ContactTileLoaderFactory.java
bbb8c99a34061911c800bbd1981b74fb7f5b5a9d 24-Sep-2013 Yorke Lee <yorkelee@google.com> Fix crash when starring the user's profile

Bug: 10897667
Change-Id: I61b11ff7aea0fa7b1b76bdf7c1780a2189070570
ndroid/contacts/ContactSaveService.java
1e431c9e823939b6a4b14a88694e879317e0ea27 23-Sep-2013 Christine Chen <christinech@google.com> Merge "Adds starred field to ContactEntry" into klp-dev
b193500fd1694f4af95136bb75388d37b25f09db 21-Sep-2013 Christine Chen <christinech@google.com> Adds starred field to ContactEntry

Bug: 10862067
Change-Id: I4d7988e39e68370f0ce7222cd97c1cf8dedc68ef
ndroid/contacts/common/list/ContactEntry.java
ndroid/contacts/common/list/ContactTileAdapter.java
528258e97f9d73d7a32bbdb1c9505d46551506bb 21-Sep-2013 Yorke Lee <yorkelee@google.com> Fix fast scroller in PinnedHeaderListView

Bug: 10841097
Change-Id: I93400b623024054a3370e3957c464b2ea3e3818a
ndroid/contacts/common/list/PinnedHeaderListView.java
adeadcf055fee765df22c479fc0afc9a3e4d5e66 20-Sep-2013 Yorke Lee <yorkelee@google.com> Fix security exception when setting contact photo from Downloads

Bug: 10842701
Change-Id: I56936ee7a656a6e5418d15082365f4f38b109221
ndroid/contacts/activities/AttachPhotoActivity.java
6e11b111985afea3c4c2e27652645c3cdfcbee7f 19-Sep-2013 Chiao Cheng <chiaocheng@google.com> Merge "Add support for multiple items in a single mime type." into klp-dev
1668d2aba092ffbf6f069c1fc0d46c382b87e918 19-Sep-2013 Chiao Cheng <chiaocheng@google.com> Add support for multiple items in a single mime type.

Bug: 10513085
Change-Id: I226fc4994f6e56a2da304749e770e94ef053d6e0
ndroid/contacts/model/ContactLoader.java
637a38ec9de6b1f434d7a13105f2e747faae5107 14-Sep-2013 Yorke Lee <yorkelee@google.com> Make contacts photo pickers compatible with new documents UI

The old contacts photo picker code was using unguaranteed behavior
(that Intent.GET_CONTENT would support MediaStore.EXTRA_OUTPUT) and this
caused it to not work anymore with the new document picker.

This CL changes all usages of files to instead use URIs.

Also, a FileProvider has been added to Contacts, to allow us to pass in
URI pointing to our private cache in intent.setClipData with
Intent.FLAG_GRANT_WRITE_URI_PERMISSION and Intent.FLAG_GRANT_READ_URI_PERMISSION
so we no longer have to reply on the MediaStore.EXTRA_OUTPUT being parsed
and supported. The use of the FileProvider also prevents unauthorized access
to temporary files during the caching process.

Bug: 10745342

Change-Id: Iaee3d7d112dd124a2f5596c4b9704ea75d3b3419
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/ContactPhotoUtils.java
23cc50e49f33679b39d260855d2c875f80eab1a7 14-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Undemote contact when starring" into klp-dev
e8e3fb83f3805d0636e5757a4d91db74796518e3 13-Sep-2013 Yorke Lee <yorkelee@google.com> Undemote contact when starring

Bug: 10727765
Change-Id: Icc661cd01f52fbde5ab9354415b5d929165a8bd1
ndroid/contacts/ContactSaveService.java
9883a0837c95f80e679523c8ff63a17c394fcfea 13-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "UI Polish for list section headers in ContactsCommon" into klp-dev
8b7f84a8df4336bbe745716573f3ac1d93652298 12-Sep-2013 Yorke Lee <yorkelee@google.com> Fix search highlighting

Bug: 10713067
Change-Id: I6fd3e6018619d61f7c69bbcaf2ad7475b20499a6
ndroid/contacts/common/format/TextHighlighter.java
ndroid/contacts/common/list/ContactListItemView.java
267e9f03c662a5df794be0b8e6eba825439a4f66 11-Sep-2013 Yorke Lee <yorkelee@google.com> UI Polish for list section headers in ContactsCommon

Bug: 10671447

Change-Id: I72927f64a0bbbef1252e6d065546d6186622c96d
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
9dc14a8bb6df4fb6b3311b02f91869d2276cbed3 12-Sep-2013 Yorke Lee <yorkelee@google.com> UI polish for list section headers in People

Bug: 10671447
Change-Id: I4857282a65474105ba0415bd881c758bddb381a8
ndroid/contacts/list/DefaultContactBrowseListFragment.java
7ece27cfa8871e706ef2ebbeed04e6eaeddab753 12-Sep-2013 Paul Sliwowski <psliwowski@google.com> Merge "Fix stablity issue when PeopleActivity is trying to stop." into klp-dev
dfb566aca5254d28c2f84d6628b4050a8781086b 12-Sep-2013 Alon Albert <aalbert@google.com> Merge "Disable Export For Local Search" into klp-dev
32791d4f8d3d29d17cf35b77c294593cc6d28da1 12-Sep-2013 Paul Sliwowski <psliwowski@google.com> Fix stablity issue when PeopleActivity is trying to stop.

Bug: 9882272
Change-Id: I64a0322e20c20f822d9ae831c01abd8000bd6db9
ndroid/contacts/activities/PeopleActivity.java
fcd4addfe4d7aa2a094f723c5ae6355114d74357 11-Sep-2013 Alon Albert <aalbert@google.com> Disable Export For Local Search

Bug: 10709571
Change-Id: Ia11119e3b92c9bf95c3840e740328a599bc72942
ndroid/contacts/model/ContactLoader.java
56fee75edcddf46bbc9cf386804fd68d7c61e86e 11-Sep-2013 Paul Sliwowski <psliwowski@google.com> Merge "Update ContactCommon to handle new ui changes for People App." into klp-dev
d9b5420eda6f9c0c0fef21ff48e46b156f0cbe16 11-Sep-2013 Yorke Lee <yorkelee@google.com> Fix missing search header in People

Bug: 10688908
Change-Id: Ibfdb0bdd1f706e115f56e56267e2c053308975d9
ndroid/contacts/common/list/ContactEntryListAdapter.java
fe07fcdb242c7be0fcc264127db311883ef81601 11-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update ContactCommon to handle new ui changes for People App.

Change-Id: Icfa18259718c98b51468f93f2031eb2e0ed3629b
ndroid/contacts/common/list/ContactListAdapter.java
fd4df88d03a745728bb1c1df9648e7b5989641b6 11-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update more colors in the People app UI.

Change-Id: I47c50fdc50760bcd05db32069da3d19a4d211f3d
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/JoinContactListFragment.java
d77fb67720ff87926d3f8f96b9cd4108ad2a7d4e 10-Sep-2013 Jay Shrauner <shrauner@google.com> Support loading http images

Support loading http images for reverse lookup and local search.

Bug:10677317
Change-Id: I4cb3bc263dfb1ecb63900ee57dd810c0ff79feec
ndroid/contacts/common/ContactPhotoManager.java
19b692ee645fc5933c52d5a6eb8b975a7da34abb 09-Sep-2013 Alon Albert <aalbert@google.com> Avoid NPE's in Extended Directories

Bug: 10676673
Change-Id: I52346b713fcab5176b6c73a158638708e623ed92
ndroid/contacts/common/list/PhoneNumberListAdapter.java
98b3b9ad3f727147d3ea1ee57008715a83488b79 09-Sep-2013 Alon Albert <aalbert@google.com> Support Photo URL in Encoded Contacts

Encoded contacts may have a photo url as an HTTP link rather than a content://
, file:// or android.resource:// URL. This adds support for such photos URLs

Bug: 10671856
Change-Id: If861bca096454dac043c63eea26731bf487fd824
ndroid/contacts/model/ContactLoader.java
db2adcb4d4da6361301701da08c4f3c72b577fd3 10-Sep-2013 Paul Sliwowski <psliwowski@google.com> Fix bug tab selection on tablet.

Bug: 10674395
Change-Id: I1d3d7e2e72202355049de11ad0010649a27660e6
ndroid/contacts/activities/ActionBarAdapter.java
2e3858324cfca8f1f8f8bf0c6ec533979df0a250 09-Sep-2013 Yorke Lee <yorkelee@google.com> Don't show star icon in QC for uri-encoded contact

Also don't show empty directory name/type in contact details card

Bug: 10600250
Change-Id: Ifa7cdd3f9f943f4beed3b9cb26f5bb3300577eea
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/quickcontact/QuickContactActivity.java
9c85bc3a6b0e41435a5b1d86758289aa54a88975 09-Sep-2013 Yorke Lee <yorkelee@google.com> Add Json-encoded uri methods to utils

Bug: 10600250
Change-Id: I2aeedc8cc7f6336cb496624f953d88baf1a3322d
ndroid/contacts/common/util/UriUtils.java
c228b629bbef4ffe72db98907e1884c8648cc0ec 09-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Make quick contact photo clickable" into klp-dev
6219668d0612f7522bd15a9d34c6232cb15b9a6c 07-Sep-2013 Yorke Lee <yorkelee@google.com> Make quick contact photo clickable

Bug: 10552103
Change-Id: I76af7f46a31b9205f6cd98bf450a171737647be3
ndroid/contacts/quickcontact/QuickContactActivity.java
676c463dd1ed91272fe177f54fc93990b8e362c4 07-Sep-2013 Yorke Lee <yorkelee@google.com> Override isValidFragment for ContactsPreferenceActivity

Bug: 10651470
Change-Id: If123e6859c1d93b6571d88935dbe53152d539d8b
ndroid/contacts/preference/ContactsPreferenceActivity.java
67073f73c12ee38ae15e10b8045296e1dce8d972 07-Sep-2013 Yorke Lee <yorkelee@google.com> Merge "Fix ContactListItemView selection bounds" into klp-dev
ac5e54e07b093fd435d8f5ad039ae966a4877fb5 07-Sep-2013 Alon Albert <aalbert@google.com> Merge "Support QuickContacts For Extended Directories" into klp-dev
14d2c4897c9c1b15188012d0f0d8e4ef4e1c4520 07-Sep-2013 Alon Albert <aalbert@google.com> Merge "Support QuickContacts For Extended Directories" into klp-dev
1c171fa51fa3c547a130fbbaa3e5258713b8b71e 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
ndroid/contacts/common/list/ContactListItemView.java
e09b991d963c8207cb4bc64ff45009dd33523e1b 05-Sep-2013 Alon Albert <aalbert@google.com> Support QuickContacts For Extended Directories

Change-Id: If336b94955dbea9f02e4fabbd797257151fa512a
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/model/ContactLoader.java
6491384c4a5e3e5ce3c710fad8336e6736df25bd 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
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
58e67536f7d3765e9ede5bc9315d5f3ca9f46c06 05-Sep-2013 Paul Sliwowski <psliwowski@google.com> Merge "Update people app colors in ContactsCommon." into klp-dev
20303431518c6af050838b343f2b7cbc3beec913 05-Sep-2013 Alon Albert <aalbert@google.com> Support QuickContacts For Extended Directories

Change-Id: I00128b882be3124e31cd2de6a974ec2d507344b1
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/util/Constants.java
7db7a9c0863e437d9ad959dba652990923be4cc5 05-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update people app colors in ContactsCommon.

Change-Id: I48916187b804f98c906a2cc7b0de0b321b8dc851
ndroid/contacts/common/list/ContactListItemView.java
3b6a6f6ac9dce6028248ed7a695ed2c76890add8 05-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update colors in the people app.

Change-Id: I93194f75e83fd6dba95a7bc8aafa73432dac8353
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
368cae8c938c077452735dd695b354b37dc09769 03-Sep-2013 Alon Albert <aalbert@google.com> Show Address Instead of Number in Nearby Places

Change-Id: Ib1a96240e70628ff76e849ea4f6ca359791deebd
ndroid/contacts/common/GeoUtil.java
ndroid/contacts/common/list/DirectoryPartition.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
8708070e40ac51d9afe3861fc9c6f2fc816f0714 29-Aug-2013 Jay Shrauner <shrauner@google.com> Add cache support

Add hooks for contact cache.

Bug: 10609551
Change-Id: I9a202772313eeab9b18031e20f78aba1e7d18a24
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
e3a4d8676b1e4ec4202bb37db1dc5b375722d96a 03-Sep-2013 Paul Sliwowski <psliwowski@google.com> Remove social widget.

Bug: 10328519
Change-Id: I075db4ca4dcbcf170b71c253d7232c3d3d7d17f4
ndroid/contacts/socialwidget/SocialWidgetConfigureActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/socialwidget/SocialWidgetSettings.java
b36c11f57272edb7eb42296d6e8aab6b883429ab 30-Aug-2013 Yorke Lee <yorkelee@google.com> Allow subclasses of ContactTileView to customize name display

Bug: 10294357
Change-Id: I7706561b585d0e5eb8dd85b083534ae0724aab06
ndroid/contacts/common/list/ContactTileView.java
dd1dcc657dcb062546b870a75f5c4988effb1ccd 28-Aug-2013 Alon Albert <aalbert@google.com> Make Nearby Places Display as "Nearby Places"

Rather than "Directory Nearby Place"

Change-Id: I91cbbed3c6005b91885a5bb2f3067c9c19b97e79
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/DirectoryPartition.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
45f23d4d67438c0561f74ef87b7028f6d74f7503 28-Aug-2013 Paul Sliwowski <psliwowski@google.com> Remove StreamIteams from loader and disable social updates from UI.

Bug: 10328519
Change-Id: I7df4d66ed3297f38b187fa9f3091bcfc3d4466b9
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/model/Contact.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
29884edd74ab03b1dc14a2c212619b63cd8fae01 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
03a533a82c68deff7f58ddf37cd5cd4afde4b8a3 21-Aug-2013 Ben Gilad <gilad@google.com> Add Support For Extended Directories

Change-Id: I5097f9d45ce39aad93ede3a01f43e1c58e36c9f1
ndroid/contacts/common/extensions/ExtendedPhoneDirectoriesManager.java
ndroid/contacts/common/extensions/ExtensionsFactory.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/DirectoryPartition.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
949c7fc1f4ecb36934a4b1f26e513534845d4c33 22-Aug-2013 Jay Shrauner <shrauner@google.com> Fix SMS talkback descriptions

Change SMS content descriptions for talkback from "Text message" for all
phones to the phone type specific resource strings "Text work", "Text home",
"Text <custom_type>", etc.

Bug:9392161
Change-Id: Ie765aad6d7d8f7e19f3c22a716392417aba4f29c
ndroid/contacts/detail/ContactDetailFragment.java
60e304cf254d9722df1a877269b5d0bf40a801d1 21-Aug-2013 Jay Shrauner <shrauner@google.com> NPE fix

Protect menu visibility sets with null checks.

Bug:8489379
Change-Id: I58507525f1a665fe04acb6c59f1d5b11adc8fa87
ndroid/contacts/detail/ContactLoaderFragment.java
8c42b52d926475073e188d06c39c432945db781f 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: Ic355bba6bc6d83560661ef1c673966c636da4dc6
ndroid/contacts/list/DefaultContactBrowseListFragment.java
9afe494fd2622d9dfae8a71ee4ebb9eda8c0baef 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
ndroid/contacts/common/list/ContactEntryListFragment.java
f5d04d29d887fbc19865a7bca81a05a11e573291 14-Aug-2013 Jay Shrauner <shrauner@google.com> Make getCurrentCountryIso null safe

Catch case if CountryDetector isn't available or detectCountry()
returns null; in this case use Locale.getDefault().getCountry()

Bug:9438025
Change-Id: I28fc0278342f6801e64ca07f7255cbd612d26ec1
ndroid/contacts/common/GeoUtil.java
b9b597fea267a2fe9ce647551740ebfb20643499 14-Aug-2013 Jay Shrauner <shrauner@google.com> Remove call to getCurrentCountryIso

Class no longer uses countryIso so remove; call to getCurrentCountryIso
was throwing NPE.

Bug:9438025
Change-Id: I70b75b2d791e61bb4110a8dd711bbd2c6bb43b59
ndroid/contacts/detail/ContactDetailFragment.java
72b3ab1d8a62f228a540b05f4ed6373e494c7d72 13-Aug-2013 Christine Chen <christinech@google.com> Adds redlines for QuickContact card.

- Changes background colors.
- Adds star button in the quick contact card.
- Removes the click listener on the photo.

Change-Id: I9e4f32c30c48cd0fff9d3551a780c26bce36a251
ndroid/contacts/quickcontact/QuickContactActivity.java
e6239ee77370fd0af0305c741c70f9f937d4f6e2 06-Aug-2013 Jay Shrauner <shrauner@google.com> Merge "Add GAL search support to Dialer"
138515acc052594e135e76469004b3e8247af85f 26-Jul-2013 Jay Shrauner <shrauner@google.com> Add GAL search support to Dialer

Enable GAL search in Dialer.

Bug:
Change-Id: If03dcbb570aebd5ba31c5d419e76b33b91be6eee
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
3bb5fc51f1a34ad2eb28542cf0a04b58f8900692 05-Aug-2013 Yorke Lee <yorkelee@google.com> Remove comparable from ContactEntry

Change-Id: Ie4c0b43170f2f39e908ae8cf952663403936f974
ndroid/contacts/common/list/ContactEntry.java
3f3b8933ab6eeb04a2165c5fc190244dd7e307c5 01-Aug-2013 Jay Shrauner <shrauner@google.com> Add GAL support to Dialer

Use new methods implemented for GAL support in Dialer.

Bug:
Change-Id: I4061ca2f84dba383389046004a2af02539ea5fd9
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
276a8f23620c43717205d0eb3f33f78b2021dbf2 02-Aug-2013 Yorke Lee <yorkelee@google.com> Add a blank entry constant to ContactEntry

Change-Id: Ia524020caa019184b272320f3e6e946d3fa37e25
ndroid/contacts/common/list/ContactEntry.java
71b4676e2da328b27f656c8670a99a90a6194d02 01-Aug-2013 Yorke Lee <yorkelee@google.com> Changes to ContactCommon to support drag and drop

Change-Id: I6bbed9527a3f3cf0583a3f9ddf2bb6438f5a5eb1
ndroid/contacts/common/ContactTileLoaderFactory.java
ndroid/contacts/common/list/ContactEntry.java
152ad4974501d5f423ad7988d6812aaa14edf17a 17-Jul-2013 Christine Chen <christinech@google.com> Change ContactTileView listener behavior.

Change-Id: Ie2a3e22bd40c3dbe169dbd0e51faa234a704e6d8
ndroid/contacts/common/list/ContactTileView.java
f8ee4c0d5458e0989e1c86ace0149d2751d8d0d1 16-Jul-2013 Yorke Lee <yorkelee@google.com> Fix build due to missing ContactEntry import

Change-Id: I95edec55edb75fd996fcaf8cbf4655258695f9e2
ndroid/contacts/list/GroupMemberTileAdapter.java
f08f2d45e72cbba09652c088569666fbcff401d4 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
ndroid/contacts/common/list/ContactEntry.java
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/ContactTilePhoneFrequentView.java
ndroid/contacts/common/list/ContactTileView.java
ndroid/contacts/common/list/NewContactTileAdapter.java
ndroid/contacts/common/list/NewContactTilePhoneFrequentView.java
ndroid/contacts/common/list/NewContactTilePhoneStarredView.java
ef430ad1a24d4ad7221d4ec8f0445fff4f3d6133 12-Jul-2013 Christine Chen <christinech@google.com> Merge "Changes ContactListItemView highlighting scheme."
ccba9501355b4888cc0bb07be93d0a50845e6c6a 12-Jul-2013 Christine Chen <christinech@google.com> Changes ContactListItemView highlighting scheme.

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

Change-Id: I42a54948481fead693db5a2db188bcc31202d6ee
ndroid/contacts/common/format/SpannedTestUtils.java
ndroid/contacts/common/format/TextHighlighter.java
ndroid/contacts/common/list/ContactListItemView.java
2e0fdc29107012b4315c145d7c8537ef82fb5a92 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
ndroid/contacts/common/list/ContactTileView.java
ndroid/contacts/common/list/NewContactTileAdapter.java
ndroid/contacts/common/list/NewContactTilePhoneFrequentView.java
ndroid/contacts/common/list/NewContactTilePhoneStarredView.java
ndroid/contacts/common/list/PinnedHeaderListAdapter.java
f7bd441e39232a9953f707cf1e9c7253108b8865 12-Jul-2013 Chiao Cheng <chiaocheng@google.com> Fix monkey bug NullPointerException.

setVerticalScrollbarPosition is causing a null pointer when mListView has not
been created yet.

Bug: 9526257
Change-Id: I469253d9301ea38dc80dace34929986d07b40c75
ndroid/contacts/group/GroupBrowseListFragment.java
3efbe59d5252b691af58bebdc27af7ae36bf72d6 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
ndroid/contacts/common/format/PrefixHighlighter.java
ndroid/contacts/common/format/SpannedTestUtils.java
ndroid/contacts/common/format/TextHighlighter.java
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
08ba9733613a28718cd97aa3e0f9ccd0bf766f3a 18-Jun-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fix scrollbar position for RTL."
e90783822d17ef7696d8ec09ebb3ddd6d1768986 18-Jun-2013 Chiao Cheng <chiaocheng@google.com> Fix scrollbar position for RTL.

Bug: 9338977
Change-Id: I65884152051ccb10a3362afd325b9ce77e400f20
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupBrowseListFragment.java
988c2266116b705b43bbf643ca16773a989ade35 18-Jun-2013 Chiao Cheng <chiaocheng@google.com> Fixing default page for RTL.

Horizontal offset is calculated to determine the page to be displayed.
Fix calculation to take RTL into consideration. Also added RTL to
logic for determining number of pages to display.

Bug: 9302365
Change-Id: I5a6585b2df65ba2801692367219f940e34591cb9
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
e7a1dfaa6cb6212ac9b50d0693df4d7fbe582af3 30-May-2013 Jay Shrauner <shrauner@google.com> Use ContentResolver instead of IContentService

Switch to using public ContentResolver calls (needed for unbundling).

Bug: 6948882
Change-Id: I4affb6aaa14b670861c9b739b6b4bb457699985f
ndroid/contacts/common/model/AccountTypeManager.java
e45874c91d3da7a94a2d11ff0580760ee1c073ae 29-May-2013 Jay Shrauner <shrauner@google.com> Use TelephonyManager instead of ITelephony

Switch to using public TelephonyManager calls (needed for unbundling).

Bug: 6948882
Change-Id: Ib0324e0f015ea5c738d54f0a84689a325aab1a00
ndroid/contacts/detail/ContactDetailFragment.java
f879b9cc53e634caea7837873d8ac4d9ce411448 06-May-2013 Yorke Lee <yorkelee@google.com> Fix flicker when launching contact from widget on tablet

Bug 8163545, 9111439

Change-Id: Ia10e04b83ef33821723129e503cae233d0e77f4b
ndroid/contacts/activities/ContactDetailActivity.java
27e8287a422fe4729035ceb82ef7398b69d9f565 22-May-2013 Jay Shrauner <shrauner@google.com> Null check groupid to prevent crash

Protect against crash if non-numeric values are written to
the group-id column.

Bug:9050606
Change-Id: I3e734ca2a9376968f13c63745ad11e54c6343028
ndroid/contacts/detail/ContactDetailFragment.java
19fc3d946b3db0a66b608a4b2a663b907edbecb1 21-May-2013 Jay Shrauner <shrauner@google.com> Clean up int data conversion calls

Remove a bunch of unused methods using getAsInteger() and getAsLong().
Change DataItem.hasKindTypeColumn() to catch null values.

Bug:9050606
Change-Id: I7207e9fb5fac6d404a92375cff545170a9d5c2ae
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/EmailDataItem.java
ndroid/contacts/model/dataitem/EventDataItem.java
ndroid/contacts/model/dataitem/GroupMembershipDataItem.java
ndroid/contacts/model/dataitem/ImDataItem.java
ndroid/contacts/model/dataitem/NicknameDataItem.java
ndroid/contacts/model/dataitem/OrganizationDataItem.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/model/dataitem/PhotoDataItem.java
ndroid/contacts/model/dataitem/RelationDataItem.java
ndroid/contacts/model/dataitem/SipAddressDataItem.java
ndroid/contacts/model/dataitem/StructuredPostalDataItem.java
ndroid/contacts/model/dataitem/WebsiteDataItem.java
bbf02602faf017830df2dbbf8aa5dfcb40b18db5 16-May-2013 Jay Shrauner <shrauner@google.com> Cap number of items we attempt to collapse

Cap number of items we attempt to collapse at 20. Algorithm used is n^2
and introduces noticeable delays with eg 70 phone numbers for a single contact.

Bug:8888517
Change-Id: Ifaa470a3dd91b783db23d5c694af4529cfbf1293
ndroid/contacts/common/Collapser.java
626a5f313aa19bd80ff5fc994e480cf64ab15626 14-May-2013 Yorke Lee <yorkelee@google.com> am fd61ce26: Merge "Fix UI corruption in landscape mode" into jb-mr2-dev

* commit 'fd61ce26ba0a7df3bc80eb9a93b94bb89d45c57d':
Fix UI corruption in landscape mode
d7901b91e9f319cc633df54343a1d1796af9d4b1 14-May-2013 Yorke Lee <yorkelee@google.com> Fix UI corruption in landscape mode

Add window background to PeopleActivity

Bug 8796000

Change-Id: I3c6e1cb4b411ec720ab60d33e6d1c2238ba5bf90
ndroid/contacts/activities/PeopleActivity.java
dd084b0b99d42835d79ea931fbee3a9a84a5f60e 10-May-2013 Santos Cordon <santoscordon@google.com> Set explicit destination for CALL_PRIVILEGED.

bug: 8871505
Change-Id: Ib92cfe3b3bd6b56bd69ea7744f74e570a1794b5e
ndroid/contacts/common/CallUtil.java
50bd2642b97c086021e956e049bb06ac310b33ac 06-May-2013 Yorke Lee <yorkelee@google.com> am cbfb1128: Force LTR for phone numbers in contact details and editor

* commit 'cbfb11288368bca3a6e350ae880d53ffb4907b78':
Force LTR for phone numbers in contact details and editor
cbfb11288368bca3a6e350ae880d53ffb4907b78 04-May-2013 Yorke Lee <yorkelee@google.com> Force LTR for phone numbers in contact details and editor

Bug 8676101

Change-Id: Ia5117c2e7dbffb5ca17e4147a20bdade500a8c92
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
89e86bdb7deb497ab03ea80aafb6f4aef02b3cfc 03-May-2013 Elliott Hughes <enh@google.com> am e9a4130c: Merge "Reuse some of the regular DatePicker implementation in Contacts."

* commit 'e9a4130c2d49671c5911a46f73e902252dc668e0':
Reuse some of the regular DatePicker implementation in Contacts.
c034ec68d6b0d26cd8ec7453abc6dbb923ce9ecd 01-May-2013 Elliott Hughes <enh@google.com> Reuse some of the regular DatePicker implementation in Contacts.

Unlike the regular DatePicker, Contacts' DatePicker didn't have the
bugs I've been looking at, but it can now share the code DatePicker
uses.

Bug: 7207103
Change-Id: I5c57d349e947943f713453a8a0c32f8ba8c25ec0
ndroid/contacts/datepicker/DatePicker.java
9f0a1c7d7825c4a96278977bc467db46e48fabb7 19-Apr-2013 Chiao Cheng <chiaocheng@google.com> Do not start account setup screen in limited user mode.

Check for modify account ability before sending user to account setup screen.
In limited user mode, you cannot add accounts so there is no point trying
to send users there. In fact, this caused the app to abort.

Bug: 8647306
Change-Id: If20a5f3b9d4e0689a1d884d9106877b1d561294d
ndroid/contacts/activities/PeopleActivity.java
88331e38a48e380af71ba93acf6dab7f936389be 17-Apr-2013 Chiao Cheng <chiaocheng@google.com> Fixing regression in phone number collapse on detail page.

The case of collapsing phone numbers with different formats was broken due to
another bug fix. e.g...

(555) 555-5555
555-555-5555

would not collapse when they should.

The second problem was that an inconsistency was inadvertently introduced when
deciding what numbers are equal.

rule 1)
+14155551212 == 4155551212

rule 2)
14155551212 != 4155551212

implicitly a third rule was in effect....

rule 3)
+14155551212 == 14155551212

By transitive equality, then all version of the number are equal which broke
rule 2. This could be seen in the UI when all 3 version of the number exists
and they are all collapsed into 1.

Bug: 8621998
Bug: 7519057
Change-Id: Iafb36fbdc72f9a76d9313811894b57aafebb4f35
ndroid/contacts/common/MoreContactUtils.java
21686b32bb88c4385a06b89a14f77751c087e95a 12-Apr-2013 Chiao Cheng <chiaocheng@google.com> Merge "Check if cursor is closed." into jb-mr2-dev
7f2cfab08aa48758531ab525ede518190f79d37f 11-Apr-2013 Chiao Cheng <chiaocheng@google.com> Check if cursor is closed.

The rest of the class already checks the state of the cursor so this is
consistent with how the rest of the code behaves.

Bug: 7490630
Change-Id: I17321a651aa28814d0036d468b987ed9cfed9563
ndroid/contacts/group/GroupBrowseListAdapter.java
ce14d38b2ebb20174419f32d2172481976197afe 11-Apr-2013 Chiao Cheng <chiaocheng@google.com> Merge "Fixing accessibility for title and company on detail view." into jb-mr2-dev
e38ac4f95f032e065594109b14c9c196704437bd 11-Apr-2013 Chiao Cheng <chiaocheng@google.com> Fixing accessibility for title and company on detail view.

Bug: 8570664
Change-Id: I8cd561421c0e3212b3afe73ee927c13e4da26fad
ndroid/contacts/activities/ContactDetailActivity.java
a5b52c36b9817a48bcb155862255462ef1bae4ca 09-Apr-2013 Chiao Cheng <chiaocheng@google.com> Stop social update view from stealing focus.

ContactDetailFragmentCarousel was requesting focus to set the initial offset of
the HorizontalScrollView. This was probably a hacky work around to get the
smoothScrollTo() method to work.

Instead of requesting focus, call scrollTo(). Before scrollTo() did not work
in the enableSwipe() method because HorizontalScrollView "clamp"s the offset
to the size of the width. And the size of the width was calculated based on
mEnableSwipe flag in the onMeasure() method. To fix it so scrollTo() works
within enableSwipe(), change the width calculation to also take into account
mCurrentPage which may be initialized to 1 instead of 0.

Old order
+ onMeasure() [mEnabledSwipe = false, width set for a single child]
+ enableSwipe() [mEnabledSwipe = true, width still set for a single child]
+ scrollTo() [page 1, fails because width set for a single child]

New logic
+ onMeasure() [mCurrentPage = 1, width set for 2 childs]
+ enableSwipe()
+ scrollTo() [page 1, suceeds]

Bug: 8157306
Change-Id: I3a693a0b3d43a68d251faea4b5805791f2316aaa
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
a2d6c9bd2c9740f71bcc3cccff84e2084d9fd6d0 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
ndroid/contacts/common/list/IndexerListAdapter.java
ndroid/contacts/common/list/PinnedHeaderListAdapter.java
ndroid/contacts/common/list/PinnedHeaderListView.java
9e4b79788c498afd2e313cb679123b9734933e13 08-Apr-2013 Yorke Lee <yorkelee@google.com> Don't access margin directly in QuickContactActivity indicator

Bug 7536213

Change-Id: I926f12f917ef3a3a01777536fbd3f2d9193d9071
ndroid/contacts/quickcontact/QuickContactActivity.java
6430e6c3e63e36f660708785c66b656186e0cbc0 08-Apr-2013 Yorke Lee <yorkelee@google.com> Fix QuickContacts viewpager indicator in RTL mode

Bug 7536213

Change-Id: I9140e2c39730ca06d1903ac22d0350003a235cb5
ndroid/contacts/quickcontact/QuickContactActivity.java
29a5cf98565cea89f816ff473b94e6ddb043c7a8 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
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
ndroid/contacts/common/list/PinnedHeaderListView.java
7d3b91577f84a4f5092d28ed0f3cfe7e0df32696 05-Apr-2013 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7536213 UI should be mirrored for RTL languages (people, dialer, in-call)

- add start/end properties aside to left/right ones
- update Gravity to START/END
- add mirrored version of Drawables
- use android:textAlignment="viewStart" when needed on TextView
- use android:textDirection="ltr" for when needed for Phone Numbers

Change-Id: I5f5deb69e4af350b632a6592447721196bedb539
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
ndroid/contacts/widget/InterpolatingLayout.java
35ad0c31979fcde809154ab638e76f4d110af3e9 12-Feb-2013 Chiao Cheng <chiaocheng@google.com> Call notifyDataSetChanged after mime type list changes.

Fixes bug where ViewPager is not being told that the dataset has changed which
causes quick contact card action to be missing.

Bug: 8177216
Change-Id: Ide38731304f6623f11e30e0b0e8946ff2ff09779
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
68e3bc37a90673408f2befd5fb985e36c3f37ad7 06-Feb-2013 Jay Shrauner <shrauner@google.com> Merge "Discontinue use of special collator for ja"
72506b751c52f871fb6316977458029d52508935 06-Feb-2013 Yorke Lee <yorkelee@google.com> Fix photo alignment in RTL locales in ContactEntryListAdapter

Bug: 5590280
Change-Id: I17caf1d17b9b5ccac177e66d8b4e5605e0ac6be1
ndroid/contacts/common/list/ContactListItemView.java
e22b8e9836c437e09c51054e29efdfaca0aa57e9 04-Feb-2013 Yorke Lee <yorkelee@google.com> Allow setting silent/none for custom contact ringtone

Bug: 8107903
Change-Id: Ie4ffa5b37d91f43a2f94b65674e05dd9ab348fd9
ndroid/contacts/detail/ContactLoaderFragment.java
06c0ccfdee33d3bcfc9cb5029f2d0457b3f1d878 31-Jan-2013 Chiao Cheng <chiaocheng@google.com> Fix NullPointerException in DetailViewEntry.toString()

NullPointerException can happen in multiple places such as uri.toString().
uri may be null.

Change-Id: I75e18ef40b994cfdafacf0d081aab558aebe744b
ndroid/contacts/detail/ContactDetailFragment.java
aa171f89767dc9f49e517bd48dc408fb4d4c95b2 19-Jan-2013 Yorke Lee <yorkelee@google.com> Merge "Fix monkey crash in RawContactEditorView"
eba2721a826e2edc78e37b2519aa5d5f06857cde 15-Jan-2013 Yorke Lee <yorkelee@google.com> Fix monkey crash in RawContactEditorView

Bug: 8011818
Change-Id: I3c69f253aadfc94ee4bc7364d2943b9068efd394
ndroid/contacts/editor/RawContactEditorView.java
8d5eec3c552c2ac23bc4d3324063627d31582615 18-Jan-2013 Yorke Lee <yorkelee@google.com> Fix broken key-type to search with keyboard

Remember the query text before updating the SearchView,
and restore it again after the update is done to prevent
the loss of the first typed character after going into
search mode.
Bug: 6332454

Change-Id: I2f6eb930cbbeef57c61e830e048a40295e07df30
ndroid/contacts/activities/ActionBarAdapter.java
cab161cfe8819200171ce0936050834d6694730e 17-Jan-2013 Yorke Lee <yorkelee@google.com> Merge "Fix empty name field when adding contact from maps"
688c228b2d7cf0c812fb673451f24e7cb457d63b 17-Jan-2013 Yorke Lee <yorkelee@google.com> Fix empty name field when adding contact from maps

Bug: 8026778
Change-Id: Id8ee1b7a02b2c9845258aca09f68ed9e1e4d3642
ndroid/contacts/editor/ContactEditorFragment.java
13d52b10fd720bb94ffe7a7e7ad1b37c1e06bb50 16-Jan-2013 Yorke Lee <yorkelee@google.com> Fix crash when adding a new contact

Check if mRawContacts is not null before trying to save it into
outState in onSaveInstanceState. If it is not null, save an
empty arraylist instead.

Bug: 8018115
Change-Id: I14db6bad22707b5154ffe016d2fd3b4391c13c85
ndroid/contacts/editor/ContactEditorFragment.java
b27746b6d5ec2ba1c0825581820f8454238755bc 15-Jan-2013 Yorke Lee <yorkelee@google.com> Merge "Fix broken test testImIntentCustom"
726e1ec376e38edbb146010fa7c6b16180a30688 15-Jan-2013 Yorke Lee <yorkelee@google.com> Fix broken test testImIntentCustom

Decouple the logic that generates the custom IM intent
from the logic that determines whether or not to actually
assign the intent to the entry (based on whether or not the
intent is registered), so that we can test if the intent is
correctly generated even if there is no application installed
that can handle that custom IM protocol.
Change-Id: If5ce0cd7639a6c05bc89777684cdac45cd7bb6cd
ndroid/contacts/detail/ContactDetailFragment.java
44cfc56d1701629070384364416c1311b780535d 13-Sep-2012 Chiao Cheng <chiaocheng@google.com> Allow read-only contacts to be editable.

- Automatically create new raw contact when editing a read-only contact.
- Refactored mState to be always initialized.
- Allow RawContactDeltaList to be instantiated with empty constructor.

Bug: 6406182
Change-Id: I7a58625485dae6957b4f9bcc446122f54551afa1
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/RawContactDeltaList.java
d683b541718154aa73ce3a304acd2cd3665a6737 11-Jan-2013 Jay Shrauner <shrauner@google.com> Enhance QuickContact accessibility description

Change QuickContact accessibility descriptions for the icon row from
'Phone' and 'Gmail' to 'Phone Bob Home' or 'Gmail Bob Work' when display
name and labels are present, otherwise 'Phone 123-345-5678' or
'Gmail bob@gmail.com'.

Bug:5057309
Change-Id: Iacbf10a2a6118c037f5f5af96af8e199b5bf5837
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/ResolveCache.java
dcba1d3995a4bd23d7a510ab5ecadd0f805e6f3b 11-Jan-2013 Yorke Lee <yorkelee@google.com> Merge "Don't add intent for entry if there is no registered intent handler"
f5d7714a870d5c83aac4f59b3aec3be84fe8327b 10-Jan-2013 Yorke Lee <yorkelee@google.com> Don't add intent for entry if there is no registered intent handler

Bug: 1779661
Change-Id: I6b0cf5b0d1668c55d55bdf96fc749b15df2190eb
ndroid/contacts/detail/ContactDetailFragment.java
34d42bd10160b31a04eb619588818d0615a005fb 10-Jan-2013 Yorke Lee <yorkelee@google.com> Fix data entries with intent sometimes being grayed out

Explicitly set data entries to either primary or secondary text color
depending on presence of an intent to prevent data entries sometimes
being gray despite a valid intent, due to view reuse.

Bug: 5042713
Change-Id: I8c4fac4ce2465ba53446abd629d9ee9fb20c77c9
ndroid/contacts/detail/ContactDetailFragment.java
7f42b90f870d8df1b12dc90162775ef5f3b31b85 09-Jan-2013 Jay Shrauner <shrauner@google.com> Fix ArrayBounds exception in joinContacts

Fix ArrayBounds exception: detect when there are no RawContacts to join.

Bug:7970480
Change-Id: I2cee8bbb0c712f52bf616a227595d2ec94ec7bdb
ndroid/contacts/ContactSaveService.java
9e8446625394d885a9b617e670d3bc8105ee968d 09-Jan-2013 Jay Shrauner <shrauner@google.com> Merge "Dedup NANPA numbers"
6ae8b19b6c36a6c2dc8c26a2444d68ce2029d932 09-Jan-2013 Jay Shrauner <shrauner@google.com> Fix string overrun exception

Fix SearchUtil::contains() so doesn't overrun string buffer when trying
to match query that partially matches end of the buffer.

Bug:7971792
Change-Id: Ifff09049b0a82af17413a7e56b9e5de938ff009d
ndroid/contacts/common/util/SearchUtil.java
41b8b6442d1158ccef1e928f06ff33bcdf3eebf7 08-Jan-2013 Yorke Lee <yorkelee@google.com> Fix NPE in VCardService

Bug: 7967011
Change-Id: Idf53807959a40f164ef0c163479a75988de71e44
ndroid/contacts/common/vcard/VCardService.java
34ad2aafd1acd63422208b3e66269c42cf8b9cc5 08-Jan-2013 Jay Shrauner <shrauner@google.com> Dedup NANPA numbers

Reverts changes from Bug 5779336 that stopped using libphonenumber for
detecting dups, although keep matching as strict except when one number
begins with +1, in which case collapse. Change Collapser to allow
preferred collapse direction.

Bug:7519057
Change-Id: Ib8ba6da611638d05781ed4363d71bc2628d907b7
ndroid/contacts/common/Collapser.java
ndroid/contacts/common/MoreContactUtils.java
ad29eae127034dbfd4aaf781a09ff08984b72b08 08-Jan-2013 Jay Shrauner <shrauner@google.com> Dedup NANPA numbers

Bug:7519057
Change-Id: Ia1b1e2632771f718b6e89f9d67834a7b646c45fa
ndroid/contacts/ContactsUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/DataAction.java
a18db0c77db9a2379ecb33e1b0f842a52b7b4207 07-Jan-2013 Yorke Lee <yorkelee@google.com> Merge "Add intent to view calendar for event data item"
882cd65b01150e123eef591cef08098a238bf41b 07-Jan-2013 Yorke Lee <yorkelee@google.com> Merge "Gray out data items that don't have an intent"
ec6bfa0ce4a94edbafb97c7ae2b573abf2aa4a85 20-Dec-2012 Yorke Lee <yorkelee@google.com> Add intent to view calendar for event data item

Refactor parseDate and formatDate code in DateUtils to reduce
duplicate code.

Bug: 7876289
Change-Id: I0463c21942ab825e23146a485789795891726c3f
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/util/DateUtils.java
1689cd921a2ada7ce0c9fd663ca07e1cd58aec78 05-Jan-2013 Yorke Lee <yorkelee@google.com> Gray out data items that don't have an intent

Bug: 5042713
Change-Id: Ic9003539eaaee348b0fefe0dd929d88c408c6ef1
ndroid/contacts/detail/ContactDetailFragment.java
62e217c4802b480bc27b4a051fdf6569ab0c700d 17-Dec-2012 Jay Shrauner <shrauner@google.com> Discontinue use of special collator for ja

Switch JA locale to using default ICU collator for sorting contacts and stop
using special Android collator.

Bug:7351596
Change-Id: I5db96f1f7632887a14a5987df5d7cafdf00431bf
ndroid/contacts/util/PhonebookCollatorFactory.java
31ef78aefa0105f4c8cfad9b4a73e66a148e3030 02-Jan-2013 Yorke Lee <yorkelee@google.com> Merge "Add fade in transition when switching tabs"
ecba27e177990674dae1e398a72b9dbfbb56834a 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
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/util/SearchUtil.java
846a4f097daa33ab2244b4fa90a9a7a876705c90 28-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Add animation for expand/collapse actions in editor"
ba48d21f2ab25c8ffb30198a752e5cd215553728 26-Dec-2012 Yorke Lee <yorkelee@google.com> Add animation for expand/collapse actions in editor

Add sliding and fade in animations for the structured names and address
editor fields that have expand/collapse actions.

Bug: 6009430
Change-Id: I005bcf4cbe9c8103fbbece506547551adf49d2ae
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/editor/TextFieldsEditorView.java
d7b32b6f1293362d1ca186a99a2cc80791a291de 27-Dec-2012 Yorke Lee <yorkelee@google.com> Add fade in transition when switching tabs

Bug: 5105403
Change-Id: I3ca53af2abe864e6673516ca9c992fe9007fa5ec
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/widget/TransitionAnimationView.java
a1554efc29ea14208eb19e5811a348cfec6b32f6 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
ndroid/contacts/common/format/FormatUtils.java
ndroid/contacts/common/format/PrefixHighlighter.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListItemView.java
619ac169e45bf547a2cbcd8a9775bb234f45c00f 20-Dec-2012 Chiao Cheng <chiaocheng@google.com> Use single method to handle all popup.dismiss() logic.

Refactor to reduce duplicate code.

Bug: 7902358
Change-Id: I6395635eba435ef6ebe4a34125d9a310c18f7e93
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/PhotoActionPopup.java
ndroid/contacts/util/UiClosables.java
3dfcde367cc1c85e3a2af5b00c84f1ec89c76b15 20-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Close popup window before fragment is destroyed."
86625158bdc52855c37e96bf098ba7a213c810d7 20-Dec-2012 Chiao Cheng <chiaocheng@google.com> Close popup window before fragment is destroyed.

Bug: 5606937
Change-Id: Ibfcc2d0c110f333a6728141f77c21adfeceb7419
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/UiClosables.java
4b294d6c96c4865b64338e5d222ff9dc87bad5b9 19-Dec-2012 Yorke Lee <yorkelee@google.com> Standardize event date formatting in People app

Refactor formatDate in DateUtils to allow it to return long and short
date formats.
Use full localized dates similar to dates in Calendar in
ContactDetailFragment.
Use short localized dates only in EventFieldEditorView to avoid overflow.
Bug: 5042674
Change-Id: Iaff340046c84d7ce474757367454358c47d73a08
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/util/DateUtils.java
901c5e5edceb1cb4f2ba90c475d8c9771775d0e3 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
ndroid/contacts/common/list/ContactListItemView.java
d26351ab4188c70444e5cf56a6189d4a508561e5 14-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Done button closes group editor when name is empty."
b20ff0bdc379307dbc8337240fd35f8193f3100f 14-Dec-2012 Yorke Lee <yorkelee@google.com> Cleanup People settings UI

Bug: 7157015
Change-Id: Idc76de66fbfc2cb02f4b6b1bee2c74bd7d224b00
ndroid/contacts/activities/PeopleActivity.java
88af53029e52c4793ec647339ffcde5799f42d3e 14-Dec-2012 Chiao Cheng <chiaocheng@google.com> Done button closes group editor when name is empty.

Bug: 6571821
Change-Id: Ia17295c99fce37405c1c808c5aa92d5733397f6e
ndroid/contacts/group/GroupEditorFragment.java
c183b901c2d7758972918f58282d413505284212 13-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Use locale-appropriate date format for mTitleNoYearDateFormat"
c7ea6e965339cd7a6936f418d729ac92ac7eaf79 11-Dec-2012 Yorke Lee <yorkelee@google.com> Use locale-appropriate date format for mTitleNoYearDateFormat

Bug: 6383997
Change-Id: I8630123e3c40f4860a0a5039639b6b5a255defec
ndroid/contacts/datepicker/DatePickerDialog.java
ndroid/contacts/util/DateUtils.java
e4ba5d51a6a3e0c2d4d4badeb1161b901fb8617d 13-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Don't show edit option if group membership isn't editable"
6d19a698eba50a89c605852d1b2c5a847a08b011 13-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Fix QuickContact indicator from flickering when scrolling"
ae51e9891e203361e4610bb3341c958f66c36d6a 13-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "De-dupe website strings in contact detail."
421c9387a5748a07a01d9e1134aebf4bf959b55e 13-Dec-2012 Yorke Lee <yorkelee@google.com> Fix QuickContact indicator from flickering when scrolling

Bug: 7206995
Change-Id: Ice3d4d5abb637d8edfe36eefcab11e90c87f5151
ndroid/contacts/quickcontact/QuickContactActivity.java
bf5c1da94f0368954c322d41fbf39cf7eee6d48c 13-Dec-2012 Chiao Cheng <chiaocheng@google.com> De-dupe website strings in contact detail.

Bug: 2245043
Change-Id: I0f08fc98a390dd395b27dc005f8123715c012c2d
ndroid/contacts/detail/ContactDetailFragment.java
127c1ca913353da59cde560275975f4b1457be2d 13-Dec-2012 Yorke Lee <yorkelee@google.com> Don't show edit option if group membership isn't editable

Bug: 5355666
Change-Id: Iaf14d7b730d4a364d908103f9228661e4236c6ce
ndroid/contacts/group/GroupDetailFragment.java
f3c73113f0882d79aece54bc8ad467a5d0660f62 13-Dec-2012 Yorke Lee <yorkelee@google.com> Hide discard menu option if there are no writable raw contacts

Bug: 5174543
Change-Id: I87dd24e160df60cb92522cc91adb4e47de942331
ndroid/contacts/editor/ContactEditorFragment.java
567ca2bd186d45f5b38e60cc200c9f7d4fdd8c80 12-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Destroy mAggregationSuggestionEngine only on destroy"
05fa91fe9777ccb947babc1949c74853c724157c 12-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Making sort order for strequent and starred consistent."
36184f630cdb97d0a642de25f69962ef2abfedb1 12-Dec-2012 Yorke Lee <yorkelee@google.com> Destroy mAggregationSuggestionEngine only on destroy

Bug: 5458280
Change-Id: Ifcb6f120d6e7961703434e8d97183c6a7a70feb5
ndroid/contacts/editor/ContactEditorFragment.java
5df737617966dc1a3e3150443a30eddb3a1ac057 12-Dec-2012 Chiao Cheng <chiaocheng@google.com> Log clean-up.

Bug: 5571947
Change-Id: I958311b44739fe8fedeb5fea0dd8e507837d8e31
ndroid/contacts/common/model/AccountTypeManager.java
f4b9084b07abb49c2f4469003fd0f86075139a74 12-Dec-2012 Chiao Cheng <chiaocheng@google.com> Making sort order for strequent and starred consistent.

Bug: 5783101
Change-Id: Id70313d6bfc0425445c954d90bf9dac9c2b9a764
ndroid/contacts/common/ContactTileLoaderFactory.java
0761c6a148859f70a436c4dbfdb6dfeed88f48cb 11-Dec-2012 Chiao Cheng <chiaocheng@google.com> Fixing potential null assignment to primitive value.

Bug: 7713659
Change-Id: Ief42b4fae52fe057e02446ec76c33c3c5dc45656
ndroid/contacts/group/GroupBrowseListAdapter.java
6d18b18d579f638c1daf3a8408670e1e68e053c0 11-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Add empty list message."
9d81e5bb3a891bee21ed2ce7b31d6d39478bd24c 11-Dec-2012 Chiao Cheng <chiaocheng@google.com> Add empty list message.

Bug: 7403225
Change-Id: Ib57e5bbb17ac7f3a7a08c2c0b015d2bd7a61a459
ndroid/contacts/common/list/ContactEntryListAdapter.java
827b5d6611018497eb28a0776cb51226fb81ae23 07-Dec-2012 Yorke Lee <yorkelee@google.com> Don't hide organization fields on rotation if they are expanded

Keep track of whether or not organization fields are expanded so that
we can restore this property on rotation

Bug: 6009291
Change-Id: I525606c940ffa66458e689cfc6e376d8719de4d8
ndroid/contacts/editor/RawContactEditorView.java
f0881e1088c8da2e04068342eb18152143c3d127 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Fixing bad import.

Bug: 6993891
Change-Id: I350d70a1edacfa3eaa6226e93a71981edacc0f40
ndroid/contacts/common/widget/ProportionalLayout.java
75d1d0298a0a58f25cb262eafc39fc0b62bdaebc 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Moving ProportionalLayout to ContactsCommon."
bec2679ec0888b16d2da00323654b86e78b236b1 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Moving ProportionalLayout to ContactsCommon."
2de2032cd6046676ab157bc3d6ffd84746c335a5 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Refactor editor layout file dependencies out of common."
0d998e53b383fdd6689a77043a3618bbda25d665 07-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Refactor editor layout file dependencies out of common."
ddd4e821226395fd977d87b6692f761c90d59139 06-Dec-2012 Chiao Cheng <chiaocheng@google.com> Refactor editor layout file dependencies out of common.

Editor view layout files are only needed by the Contacts app. But they were
being referenced from within AccountTypeManager and several other classes.
These references are un-necessary and would have caused too many editor
dependencies, such as the EditorView classes, to go into common.

With the refactor, many layout files can be moved back into Contacts.

Bug: 6993891
Change-Id: I146b3038f1b2273a3af2dfac3d2e86bf40bb5bd7
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/editor/EditorUiUtils.java
ndroid/contacts/editor/KindSectionView.java
7677fb674f7528a974a0352d9029eb3462f99da2 06-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving ProportionalLayout to ContactsCommon.

Bug: 6993891
Change-Id: I6a9d7905daa3d412248c83878db747e08982cc42
ndroid/contacts/common/widget/ProportionalLayout.java
888304ce12a85a331883a1ff012dac9c0473b38f 06-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving ProportionalLayout to ContactsCommon.

Bug: 6993891
Change-Id: If47fdd3b3fe29bc8a490f9b5bf3d2bb045e5cd8f
ndroid/contacts/widget/ProportionalLayout.java
cb5b4b2ba1a46b37a64218744130aaa5e3a1a1e7 06-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Remove dead code (GroupBrowserActivity)"
e52aa5b94c7da00d1f875bb0a2d751879f323271 06-Dec-2012 Yorke Lee <yorkelee@google.com> Remove dead code

Bug: 6148388
Change-Id: I5b08d6534a794361e67ba2ad72148fed10a5b148
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/model/dataitem/DataKind.java
013f9b0d1086b0a8ae788ad58661fedfa3db1b0a 06-Dec-2012 Yorke Lee <yorkelee@google.com> Remove dead code (GroupBrowserActivity)

Bug: 6652463
Change-Id: I2b3456a0b4e3b8b157ed5410f1a0c0e978eb1584
ndroid/contacts/activities/GroupBrowserActivity.java
4eff3d80a65d84cafbbb8ed146f40aeb5e4fed9d 06-Dec-2012 Chiao Cheng <chiaocheng@google.com> Refactor editor layout file dependencies out of common.

Editor view layout files are only needed by the Contacts app. But they were
being referenced from within AccountTypeManager and several other classes.
These references are un-necessary and would have caused too many editor
dependencies, such as the EditorView classes, to go into common.

With the refactor, many layout files can move back into Contacts.

Bug: 6993891
Change-Id: Ifb3ce45120ba2181cb02cac9820a30c185108739
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/ExchangeAccountType.java
ndroid/contacts/common/model/account/GoogleAccountType.java
ndroid/contacts/common/model/dataitem/DataKind.java
c21751ddc1a91453a37273ace9e24907bb54cc99 06-Dec-2012 Yorke Lee <yorkelee@google.com> Don't show Take Photo option if device has no camera

Bug: 6470740
Change-Id: I652ce8c9da89901379c876d168ba497bf1aa5836
ndroid/contacts/editor/PhotoActionPopup.java
ndroid/contacts/util/PhoneCapabilityTester.java
6afca8a28c76fa81e26c7e664039cabc35b41044 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: I43524e95efa0948935ccbc29c12c100f336b69fb
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/list/ContactTileFrequentView.java
ndroid/contacts/list/ContactTilePhoneFrequentView.java
ndroid/contacts/list/ContactTilePhoneStarredView.java
ndroid/contacts/list/ContactTileStarredView.java
ndroid/contacts/util/ViewUtil.java
ndroid/contacts/widget/LayoutSuppressingImageView.java
ndroid/contacts/widget/LayoutSuppressingQuickContactBadge.java
0a73660a63b2271ef0ef6ebb64637b6a22944830 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
ndroid/contacts/common/list/ContactTileFrequentView.java
ndroid/contacts/common/list/ContactTilePhoneFrequentView.java
ndroid/contacts/common/list/ContactTilePhoneStarredView.java
ndroid/contacts/common/list/ContactTileStarredView.java
ndroid/contacts/common/util/ViewUtil.java
ndroid/contacts/common/widget/LayoutSuppressingImageView.java
ndroid/contacts/common/widget/LayoutSuppressingQuickContactBadge.java
821a657d618285c04cbb3c440f1777a08381f868 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: Ie159868ab327ee773334fec4312804288f002597
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/EmailAddressPickerFragment.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/LegacyPhoneNumberPickerFragment.java
ndroid/contacts/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressPickerFragment.java
fed477c6bf40e8430336278538ecc50cad9f3c7f 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
ndroid/contacts/common/list/ContactEntryListFragment.java
ndroid/contacts/common/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/common/list/PhoneNumberPickerFragment.java
a953aa785610afcda67a17a1c109d09c4773ca90 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Remove dependencies on "Legacy" classes.

Prefactor to remove dependencies on "Legacy" classes in
PhoneNumberPickerFragment. PhoneNumberPickerFragment needs to be used
by Dialer but the Legacy class do not. This change will allow
PhoneNumberPickerFragment to be moved into common without the other
legacy classes.

Bug: 6993891
Change-Id: I598c985f41188ab6ac65898f31236056be5007bf
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/LegacyPhoneNumberPickerFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
6fe32c044d27215796fa29355f9cd6addbc3d093 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving ImportExportDialogFragment to ContactCommon.

This completes the dependency clean-up of the PhoneFavoriteFragment in the
dialer.

Bug: 6993891
Change-Id: I76200a7b2f6bc3c8d5e229b70c3cdf9998d32ec2
ndroid/contacts/common/interactions/ImportExportDialogFragment.java
051f41d0e2e23fa3acd9258ffc91a60cdbe828ec 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving ImportExportDialogFragment to ContactCommon.

This completes the dependency clean-up of the PhoneFavoriteFragment in the
dialer.

Bug: 6993891
Change-Id: I56c072a04b173ef4f23fcc8a642292c0d7f4edbf
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
c2114fd85c7ebac73abe8796d92ee4f3e507ed18 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Moving SelectAccountDialogFragment to ContactsCommon."
87c71f43c70cd970e54eecbfa4c8d79259922c5d 05-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving SelectAccountDialogFragment to ContactsCommon.

In preparation to move ImportExportDialogFragment to common.

Also moved a few more string resources left out from previous move.

Bug: 6993891
Change-Id: I2ddb6467732c53a70bc94c4cd0c702346ccb54fe
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/util/AccountsListAdapter.java
53d4bf64c0069fb18d9fabba4ee73235d16dc1e8 04-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving SelectAccountDialogFragment to ContactsCommon.

In preparation to move ImportExportDialogFragment to common.

Also moved a few more string resources left out from previous move.

Bug: 6993891
Change-Id: I978e490d256cf783db91b52bca46f4a1c678e415
ndroid/contacts/common/editor/SelectAccountDialogFragment.java
ndroid/contacts/common/util/AccountsListAdapter.java
fcd11a3f7061537a09c34c9dedf0a96ace2f83a0 04-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Show the current date when creating a new event."
dad7f5b1d8c9b38afaccb1ab0abf455570220af1 04-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Moving vcard UI to ContactsCommon."
78253a9e7e8dc5724333fa6a61e537249adac90b 04-Dec-2012 Yorke Lee <yorkelee@google.com> Show the current date when creating a new event.

Bug: 6460956
Change-Id: I48752c6b133cd05c49e9b418724eb905963d5d8a
ndroid/contacts/editor/EventFieldEditorView.java
e98d54ede8201d441125d4bbb2851952c4272d10 04-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving vcard UI to ContactsCommon.

Moving all class in vcard directory in preparation to move
ImportExportDialogFragment.

Bug: 6993891
Change-Id: I5a321892f86f788e874cd6ca0d29f3136645b495
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/vcard/CancelActivity.java
ndroid/contacts/vcard/CancelRequest.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportRequest.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportRequest.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/NotificationImportExportListener.java
ndroid/contacts/vcard/ProcessorBase.java
ndroid/contacts/vcard/SelectAccountActivity.java
ndroid/contacts/vcard/VCardCommonArguments.java
ndroid/contacts/vcard/VCardImportExportListener.java
ndroid/contacts/vcard/VCardService.java
d80c4348dd6db1046fdade375a8d8c616d93e7ac 04-Dec-2012 Chiao Cheng <chiaocheng@google.com> Moving vcard UI to ContactsCommon.

Moving all class in vcard directory in preparation to move
ImportExportDialogFragment.

Bug: 6993891
Change-Id: I4391c6e63d20ebe91e240001885a6ce18388e51f
ndroid/contacts/common/util/AccountSelectionUtil.java
ndroid/contacts/common/vcard/CancelActivity.java
ndroid/contacts/common/vcard/CancelRequest.java
ndroid/contacts/common/vcard/ExportProcessor.java
ndroid/contacts/common/vcard/ExportRequest.java
ndroid/contacts/common/vcard/ExportVCardActivity.java
ndroid/contacts/common/vcard/ImportProcessor.java
ndroid/contacts/common/vcard/ImportRequest.java
ndroid/contacts/common/vcard/ImportVCardActivity.java
ndroid/contacts/common/vcard/NfcImportVCardActivity.java
ndroid/contacts/common/vcard/NotificationImportExportListener.java
ndroid/contacts/common/vcard/ProcessorBase.java
ndroid/contacts/common/vcard/SelectAccountActivity.java
ndroid/contacts/common/vcard/VCardCommonArguments.java
ndroid/contacts/common/vcard/VCardImportExportListener.java
ndroid/contacts/common/vcard/VCardService.java
1aa192d46e978196178f6058321bbf99e0a37007 04-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Fix overdraw in PeopleActivity"
e98d6e1bb4a887f81a430aec220975c1b2121f35 04-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Remove hard coded PeopleActivity.class from VCard UI."
a2a35d2022ec64716c6c4985900b55d1c15fe018 03-Dec-2012 Chiao Cheng <chiaocheng@google.com> Remove hard coded PeopleActivity.class from VCard UI.

The PeopleActivity was hard coded as the target activity when clicking on
a vcard processed notification. Since the vcard export can be triggered
from both the dialtacts UI and the people UI, it's strange to always go
back to the people UI.

Change vcard UI classes to accept the calling activity. This way we can
send the user back to the activity that originally triggered the vcard
export.

Bug: 6993891
Change-Id: I9a1fb67e40d5966370922c9c77fbd6f23947dca0
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/VCardCommonArguments.java
ndroid/contacts/vcard/VCardService.java
dcc80be3877a87ae3e2dab69cdf8728e3eb7e86e 04-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Fix forced portrait mode in ImportVCardActivity"
afb0bd11db79ba07921fa0685fb885861bc907fe 03-Dec-2012 Yorke Lee <yorkelee@google.com> Fix forced portrait mode in ImportVCardActivity

Bug: 6154958

Change-Id: Ie7044861aa3b1aa979a6a6d49b7b18731f7c074f
ndroid/contacts/vcard/ImportVCardActivity.java
8a80ff8561d27aed9998c3076e27d6d5f9fa1ed2 03-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Further clean-up of PhoneFavoriteFragment in Dialer app."
beca85635eeba3ace5f6fe94f3b35d59825005c5 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
ndroid/contacts/common/list/AccountFilterActivity.java
ndroid/contacts/common/list/ContactListFilterView.java
ndroid/contacts/common/list/CustomContactListFilterActivity.java
ndroid/contacts/common/list/ShortcutIntentBuilder.java
ndroid/contacts/common/util/AccountFilterUtil.java
ndroid/contacts/common/util/EmptyService.java
ndroid/contacts/common/util/LocalizedNameResolver.java
ndroid/contacts/common/util/WeakAsyncTask.java
30868d4ef831b6ff7b2e7a00027bb0222d93135d 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: I33e830b9f3f686138d19699ce205d2d9d58ec6ea
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/util/AccountFilterUtil.java
ndroid/contacts/util/EmptyService.java
ndroid/contacts/util/LocalizedNameResolver.java
ndroid/contacts/util/WeakAsyncTask.java
707786f71f4f1c36a63010021e225d0d97aea248 03-Dec-2012 Chiao Cheng <chiaocheng@google.com> Merge "Cherrypick fix for phone number formatting"
b2b435a944947fbf1965c3bb7c202a97f0273259 13-Nov-2012 Yorke Lee <yorkelee@google.com> Cherrypick fix for phone number formatting

Bug: 7230016
Change-Id: Ia4ee2bcd6810bfc73d66ed394978e1c16bc4c50f
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
738ff8623dc77dd91a1b9023861e924ba5e4c27e 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move ValuesDelta to ContactsCommon.

Bug: 6993891
Change-Id: I8b065c55100a152f72cccea5b62f10a8e30161c2
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/RawContactDeltaList.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/model/ValuesDelta.java
429b91180d7312432f0983b0d0833579d14da300 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move ValuesDelta to ContactsCommon.

Bug: 6993891
Change-Id: Iaf94a00abfb64c9b0eb547dd446f743f6cd855ce
ndroid/contacts/common/model/ValuesDelta.java
422d499cd5205c601870db06aedaea411424c274 30-Nov-2012 Jay Shrauner <shrauner@google.com> Merge "Clean up un-used ContactListEmptyView."
50b7bd3fd4105147728680ee895f7cfcf3118ce1 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Clean up un-used ContactListEmptyView.

The code path to ContactListEmptyView is not used. Prefactor to moving
ContactEntryListFragment.

Also removed isSyncActive() from ContactEntryListFragment since that will
help with un-bundling in the future.

Bug: 6993891
Change-Id: I5fa5270067530f672e18886c070d1abbb60a2542
ndroid/contacts/ContactListEmptyView.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
14889db854e452ba477cfc4240d0f6b208fb42c0 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Prefactor RawContactDelta.ValuesDelta into top level class."
aa690d4949b8105e5bcf10569b7cf4fae36741de 29-Nov-2012 Chiao Cheng <chiaocheng@google.com> Prefactor RawContactDelta.ValuesDelta into top level class.

Making ValuesDelta into top level class so we do not have to move
RawContactDelta into ContactsCommon. ValuesDelta is used by
CustomContactListFilterActivity which needs to be moved.

Bug: 6993891
Change-Id: If7371cf08ac0e14218fb790c96856e971fa613ec
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/RawContactDeltaList.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/model/ValuesDelta.java
d6000a8e69b30b913501ab92914f5f8edf068977 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Prefactor to remove un-used ContextMenuAdapter."
0ef9a729bbd66c49471453a8c6ee339219d19697 30-Nov-2012 Chiao Cheng <chiaocheng@google.com> Prefactor to remove un-used ContextMenuAdapter.

Removing un-necessary dependency in preparation to move
ContactEntryListFragment.

Bug: 6993891
Change-Id: I869f816c31f4957b67e6a2f70cd125e530d4ed0e
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
4e9a6e6e3a4fe317c8f51956c92670e7d0aac88e 29-Nov-2012 Chiao Cheng <chiaocheng@google.com> am 88afb441: am 228ae43d: am 7a6eb7f1: Merge "Prevent going into single contact mode un-necessarily." into jb-mr1.1-dev

* commit '88afb4413be728c1a454d5556d734c1634c908e7':
Prevent going into single contact mode un-necessarily.
79f0da08b0c7819317fa72878f1efd949dbac437 29-Nov-2012 Jay Shrauner <shrauner@google.com> am f9b3f03f: am f0293069: am 0fdbff20: Don\'t show "set default" for directory contacts

* commit 'f9b3f03ff783c6bccb9c52326a3e11999380bb19':
Don't show "set default" for directory contacts
88afb4413be728c1a454d5556d734c1634c908e7 29-Nov-2012 Chiao Cheng <chiaocheng@google.com> am 228ae43d: am 7a6eb7f1: Merge "Prevent going into single contact mode un-necessarily." into jb-mr1.1-dev

* commit '228ae43d6aaf6e3e1053557b56d392ab0ce9e1ce':
Prevent going into single contact mode un-necessarily.
f9b3f03ff783c6bccb9c52326a3e11999380bb19 29-Nov-2012 Jay Shrauner <shrauner@google.com> am f0293069: am 0fdbff20: Don\'t show "set default" for directory contacts

* commit 'f029306996e49068a57443c3410c1d2f2ca28d2d':
Don't show "set default" for directory contacts
6428cb03fa07a7bdfb020e18384214fe3df56664 29-Nov-2012 Makoto Onuki <omakoto@google.com> am 4e7d3d55: am 3a4f4664: am b7a1da62: Let talkback read People app name on launch

* commit '4e7d3d5552e6d344c10c1d8dd1890e7d580c8390':
Let talkback read People app name on launch
4e7d3d5552e6d344c10c1d8dd1890e7d580c8390 29-Nov-2012 Makoto Onuki <omakoto@google.com> am 3a4f4664: am b7a1da62: Let talkback read People app name on launch

* commit '3a4f4664f6e7490aa7bbb10986f6f66b48e19cea':
Let talkback read People app name on launch
7a6eb7f1e62546a5b785ba6492498bebb3adf1dd 29-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Prevent going into single contact mode un-necessarily." into jb-mr1.1-dev
0fdbff20fd398e58127b30b634ca959787815d8f 29-Nov-2012 Jay Shrauner <shrauner@google.com> Don't show "set default" for directory contacts

Directory contacts don't allow setting (or clearing) of defaults
so don't populate those actions on the context menu.

Bug: 6563335
Change-Id: Ib96af2dd875c5fefe771360b05df39c01bec7c38
ndroid/contacts/detail/ContactDetailFragment.java
3af2d48a0c8467629be4ed255338064cc450237d 29-Nov-2012 Chiao Cheng <chiaocheng@google.com> Prevent going into single contact mode un-necessarily.

On a tablet, after creating a new contact, the contact list would enter
"single contact mode". This mode is intended for the case where you may
have an account filte set and you want to see a contact in a different
account. Combined with a stale contact list, this caused the app to
go into single mode when it was not necessary.

This will fix the most common case where all accounts are shown and a
new contact is added. The new contact will be displayed in the normal list.

This will not fix the case where an account filter is active and a new
contact is created. In this case, the new contact is still displayed in
single contact mode.

Also tested was the test cases in:
I233162572e25acb737c9eae787dfc146879a0dc2

Bug: 7621855
Change-Id: I6f323c4003677cec9db63cae347f4532071037b9
ndroid/contacts/list/ContactBrowseListFragment.java
382454157446b35580ea2440359cd5cad37b4980 28-Nov-2012 Yorke Lee <yorkelee@google.com> Fix overdraw in PeopleActivity

Remove window background in onCreate. Add and remove various view
backgrounds to reduce overdraw.

Bug: 7267295
Change-Id: I868f194f2e91be1011268faa454dfd1278510b8b
ndroid/contacts/activities/PeopleActivity.java
b7a1da621e7ba54a4e9c97a14f35b2650b8e7471 28-Nov-2012 Makoto Onuki <omakoto@google.com> Let talkback read People app name on launch

The root cause was that we were effectively doing setTitle(null) in onCreate.

We were replacing the people activity title with an intent extra, even if it's
not set. Let's just remove this logic entirely because there's no point of
doing this, as the People activity doesn't show the app title.

This intent extra is not public API in ContactsContract, but it was in the
legacy API, so let's still keep ContactsRequest.set/getActivityTitle for now.
It still works for picker activities.

Bug 5508368

Change-Id: Id0ef790f9a7a721682de19d2c26d25e3622cee2d
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
0d5588da244d0992c3ff8f25d0875fdf95a8c644 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: I9526ac7cda758290caecabfcaebe620238d8dd6b
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupDetailDisplayUtils.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/AccountFilterUtil.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
6c712f45c80cef426a86fa14668a935c488d0ee4 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
ndroid/contacts/common/list/ContactListFilterController.java
ndroid/contacts/common/model/AccountTypeManager.java
b0d77c038c5390488c44076b961785ee58aa4229 26-Nov-2012 Makoto Onuki <omakoto@google.com> am 9ccad706: am 2ddfdb05: Merge "Change content description for phone right tab from..." into jb-mr1.1-dev

* commit '9ccad7066d92fedd524d5b5b7bdb022ff2a9acf5':
Change content description for phone right tab from...
2ddfdb05baad9d4082681f5a2f8afcee19bf4710 26-Nov-2012 Makoto Onuki <omakoto@google.com> Merge "Change content description for phone right tab from..." into jb-mr1.1-dev
8b4da23c2cbf34ae392cb861362e1dc34fdd15eb 20-Nov-2012 Makoto Onuki <omakoto@google.com> Change content description for phone right tab from...

"favorites" to "favorites and all contacts".

Bug 7589043

Change-Id: I3daececb58c7eae64738ed1ed017f85b6bcd15a5
ndroid/contacts/activities/DialtactsActivity.java
702fcbb6646bc2606b2077c8993f1c480b2a3016 20-Nov-2012 Yorke Lee <yorkelee@google.com> am ee3aa9e3: am c75ff8e4: Allow vanity numbers via paste/DIAL intent

* commit 'ee3aa9e32802ff8cac0e619912e64474e2ce2f27':
Allow vanity numbers via paste/DIAL intent
c75ff8e4690a9794a7fcce732e5161cf696f647f 20-Nov-2012 Yorke Lee <yorkelee@google.com> Allow vanity numbers via paste/DIAL intent

Converts vanity numbers such as 1-800-FLOWERS to the numeric
equivalents when the number string is populated via a DIAL intent
or pasted from the clipboard. Does not remove valid formatting such
as dashes, periods, spaces, etc.

Bug: 7553166
Change-Id: I553c91628b8fd86ff38a8eeec7823ebdc96bfe6b
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/dialpad/UnicodeDialerKeyListener.java
ce14263686cb4298108024a42ac07b39534336f5 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Final move of AccountTypeManager dependencies.

After this change, AccountTypeManager can be moved into ContactsCommon.

Bug: 6993891
Change-Id: I73974557274379fd307ed2b5e787f448fb1fc3c5
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/util/Constants.java
d9eab4da8b9946b76a2091e5cce6c858663ef1bb 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Final move of AccountTypeManager dependencies.

After this change, AccountTypeManager can be moved into ContactsCommon.

Bug: 6993891
Change-Id: I26d6a9916bc20a0865d2bd1c765350928b7987ef
ndroid/contacts/ContactsApplication.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/Constants.java
858fcbefa60be2167daffda19adf7a7d2e44fae0 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Use Objects from guava library."
fd29e26dc31ac6c3b03b4bc20b3d266bb26e85d1 15-Nov-2012 Yorke Lee <yorkelee@google.com> am edce79af: am f52b453b: Merge "Added ability to paste Arabic/Farsi digits into dialer" into jb-mr1.1-dev

* commit 'edce79affb145614ebdba7931637229abeac129e':
Added ability to paste Arabic/Farsi digits into dialer
f52b453bf380ad4a955543a70cf9011f1b060242 15-Nov-2012 Yorke Lee <yorkelee@google.com> Merge "Added ability to paste Arabic/Farsi digits into dialer" into jb-mr1.1-dev
c571c497967145358d4d1026561ab4aa6cdd31a4 15-Nov-2012 Yorke Lee <yorkelee@google.com> am f62f9bf8: am 34b1d213: Merge "Format phone number in QuickContactsActivity" into jb-mr1.1-dev

* commit 'f62f9bf863032fdcb384e2e0394a92dc4c148c5f':
Format phone number in QuickContactsActivity
34b1d213ae906b84570ae33bdf0f3b6b245bb646 15-Nov-2012 Yorke Lee <yorkelee@google.com> Merge "Format phone number in QuickContactsActivity" into jb-mr1.1-dev
f4fa3d8f4a8609139f05dd96dde3a6a47eb92eb1 12-Nov-2012 Yorke Lee <yorkelee@google.com> Added ability to paste Arabic/Farsi digits into dialer

Bug: 6656969
Change-Id: I9a2c3a8ea5f5df0456c89d3af8b68f96d539dee9
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/dialpad/UnicodeDialerKeyListener.java
538c4387cc68e2a0ce785361d462e5017e1b33dd 15-Nov-2012 Yorke Lee <yorkelee@google.com> am de697635: am 18f2a5fd: am 5159ac55: Merge "Keyboard nav fix for list in GroupDetailFragment" into jb-mr1.1-dev

* commit 'de69763577cc1d93ac22f23dde6f8a40feb4efd2':
Keyboard nav fix for list in GroupDetailFragment
df237ecf94a05a5cdc5d21a4ba6fabb5bbfbbee4 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> am f1689e3e: am 1cd2c24a: am f5d37174: Merge "Minor changes to validateAction()." into jb-mr1.1-dev

* commit 'f1689e3e99a95c61c0874f3f5057dd35040f1d7e':
Minor changes to validateAction().
de69763577cc1d93ac22f23dde6f8a40feb4efd2 15-Nov-2012 Yorke Lee <yorkelee@google.com> am 18f2a5fd: am 5159ac55: Merge "Keyboard nav fix for list in GroupDetailFragment" into jb-mr1.1-dev

* commit '18f2a5fdfaa41cdc2945b27faf4781d0a80cc19a':
Keyboard nav fix for list in GroupDetailFragment
20a68af305a2d2ffaa4d6fcd8c2e3f8ebbd7b580 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> am 9598e1ec: am e078e325: am 3603b6cf: Merge "Fix incorrect tab highlight in QuickContactActivity." into jb-mr1.1-dev

* commit '9598e1ece6a8c61fb8d7001a660f920ff34b4a37':
Fix incorrect tab highlight in QuickContactActivity.
f1689e3e99a95c61c0874f3f5057dd35040f1d7e 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> am 1cd2c24a: am f5d37174: Merge "Minor changes to validateAction()." into jb-mr1.1-dev

* commit '1cd2c24a772cc5ac1fc4ef5c3e7c173996cf3217':
Minor changes to validateAction().
9598e1ece6a8c61fb8d7001a660f920ff34b4a37 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> am e078e325: am 3603b6cf: Merge "Fix incorrect tab highlight in QuickContactActivity." into jb-mr1.1-dev

* commit 'e078e325fb49e93b4e896a7e84dd3d28da1a489e':
Fix incorrect tab highlight in QuickContactActivity.
5159ac55e301cf75b0a0c3f9cf81be567d3e2ce0 15-Nov-2012 Yorke Lee <yorkelee@google.com> Merge "Keyboard nav fix for list in GroupDetailFragment" into jb-mr1.1-dev
f5d3717422cee76dd3674a2b25329d9df78098dd 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Minor changes to validateAction()." into jb-mr1.1-dev
3603b6cf6e09d211a9c52cd1a56f4f028ca873ca 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Fix incorrect tab highlight in QuickContactActivity." into jb-mr1.1-dev
41ba9e52de4f7ef962e6105095030f44fb9d6fef 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Use Objects from guava library.

Switch com.android.internal.util.Objects to com.google.common.base.Objects.

Bug: 6948882
Change-Id: I3756c3db7fc95728c052529e69735c6ee8e28665
ndroid/contacts/common/model/account/AccountWithDataSet.java
ba09d4cc21d55181c1760e7994f0225939f4999d 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Use Objects from guava library.

Switch com.android.internal.util.Objects to com.google.common.base.Objects.

Bug: 6948882
Change-Id: I0adcff2e02e2dfbdfaa323ac72e0d42c1cbc979c
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/model/AccountTypeManager.java
0578ec4045b048281ae629b1a832f4499a43ff31 15-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move dependencies of AccountTypeManager into ContactsCommon."
f63bfe6ff43827b22674a7131929db382c71c00b 14-Nov-2012 Yorke Lee <yorkelee@google.com> Keyboard nav fix for list in GroupDetailFragment

Bug: 7495057
Change-Id: I8847a6fc33f719e9ce828d26ba73367c13426483
ndroid/contacts/group/GroupDetailFragment.java
428f008513d1591cc08fcfe2cf0c9237fb313241 14-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move dependencies of AccountTypeManager into ContactsCommon.

Moving dependencies in preparation to move AccountTypeManager.

Bug: 6993891
Change-Id: I804cdbe64b9b8111ed286037943d593e11dc4044
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupDetailDisplayUtils.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/Contact.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/model/account/AccountType.java
ndroid/contacts/model/account/AccountTypeWithDataSet.java
ndroid/contacts/model/account/AccountWithDataSet.java
ndroid/contacts/model/account/BaseAccountType.java
ndroid/contacts/model/account/ExchangeAccountType.java
ndroid/contacts/model/account/ExternalAccountType.java
ndroid/contacts/model/account/FallbackAccountType.java
ndroid/contacts/model/account/GoogleAccountType.java
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/DataKind.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/test/NeededForTesting.java
ndroid/contacts/util/AccountPromptUtils.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/util/DateUtils.java
ndroid/contacts/util/StreamItemEntry.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
ndroid/contacts/widget/CompositeListAdapter.java
e88fcd3e82377aa3579ddf98389b6e20bae34c07 14-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move dependencies of AccountTypeManager into ContactsCommon.

Moving dependencies in preparation to move AccountTypeManager.

Bug: 6993891
Change-Id: I10893209986efd288315dc6b51c7971838ac3923
ndroid/contacts/common/model/account/AccountType.java
ndroid/contacts/common/model/account/AccountTypeWithDataSet.java
ndroid/contacts/common/model/account/AccountWithDataSet.java
ndroid/contacts/common/model/account/BaseAccountType.java
ndroid/contacts/common/model/account/ExchangeAccountType.java
ndroid/contacts/common/model/account/ExternalAccountType.java
ndroid/contacts/common/model/account/FallbackAccountType.java
ndroid/contacts/common/model/account/GoogleAccountType.java
ndroid/contacts/common/model/dataitem/DataKind.java
ndroid/contacts/common/test/NeededForTesting.java
ndroid/contacts/common/util/CommonDateUtils.java
ae87a56c512410464116a16e519558d68e66acab 13-Nov-2012 Yorke Lee <yorkelee@google.com> Format phone number in QuickContactsActivity

Bug: 7230016

Change-Id: I0b28e131ee35d8948a574cab9b2a1c849edfc162
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ad16a8e18e5d4622227b7cd6668434d541707a8c 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
ndroid/contacts/common/list/ContactTileAdapter.java
e776d0366d5bf2f93a0cd0f14e48804e564bccf2 06-Nov-2012 Chiao Cheng <chiaocheng@google.com> Further clean-up of PhoneFavoriteFragment.

Moving common dependencies from Contacts to ContactsCommon.

Bug: 6993891
Change-Id: I06ee1f1fab339f4960b57cae324b9d64b0221072
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileFrequentFragment.java
ndroid/contacts/list/ContactTileFrequentView.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/ContactTilePhoneFrequentView.java
ndroid/contacts/list/ContactTilePhoneStarredView.java
ndroid/contacts/list/ContactTileStarredView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/GroupMemberTileAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
e8e94423b463688951f806419dbd73e10e7bf7b4 13-Nov-2012 Chiao Cheng <chiaocheng@google.com> Minor changes to validateAction().

- Make error message more accurate.
- Change action validation to be inline instead of relying on for loop.

Bug: 7122054
Change-Id: I4d9e3e2a18659bbe5ccc0e355d1e7d97f5d38e0f
ndroid/contacts/editor/ContactEditorFragment.java
5a831eb2945fcfb7538df8ea95573ec1fd3999c9 13-Nov-2012 Chiao Cheng <chiaocheng@google.com> am 42bd0371: am de54ee85: Merge "Fix blank edit view after orientation change." into jb-mr1.1-dev

* commit '42bd03712b4e194767d94ec31fd73bc9914166a5':
Fix blank edit view after orientation change.
4c2909075a8271b9478506358c15e55fd458e0cc 13-Nov-2012 Chiao Cheng <chiaocheng@google.com> Fix incorrect tab highlight in QuickContactActivity.

Selected highlight is on wrong tab after rotation. Inherently, view pager
remembers the last selected tab. But the highlight is done outside the
view pager and logic was missing to highlight properly when re-creating
from rotation.

Bug: 7206995
Change-Id: Ic016ddb743c323beba71ca95a0a1ae08566a7b1d
ndroid/contacts/quickcontact/QuickContactActivity.java
87a36dcb7ffa4b2c62ddbf6ce760e7e30320d434 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
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/list/ContactTileAdapter.java
ndroid/contacts/common/list/ContactTileView.java
ndroid/contacts/common/list/PhoneNumberListAdapter.java
6e3791130ed770bbaea6bcc663e94ea8a3631eb2 09-Nov-2012 Yorke Lee <yorkelee@google.com> am 483affc0: am f455a204: am b6ae7361: Merge "Changed Quick Contacts details Button to ImageView" into jb-mr1.1-dev

* commit '483affc0a8ed6dadc2154c0a4fa6f365ce3e286f':
Changed Quick Contacts details Button to ImageView
8477f7ab95ec2e70f98277f79f48495c13382321 08-Sep-2012 Chiao Cheng <chiaocheng@google.com> Fix blank edit view after orientation change.

If an orientation change occurs before the contact data loads from the
database, the code fails to reload the data because it is checking
against saved state (which is always present on an orientation change).
This fix changes the check to look for the actual data to be present
in the saved state.

Bug: 7122054
Change-Id: I4373eca14ba447abc57493cf4c5af6b978d8b7a2
ndroid/contacts/editor/ContactEditorFragment.java
483affc0a8ed6dadc2154c0a4fa6f365ce3e286f 09-Nov-2012 Yorke Lee <yorkelee@google.com> am f455a204: am b6ae7361: Merge "Changed Quick Contacts details Button to ImageView" into jb-mr1.1-dev

* commit 'f455a204fe3924e01c38649cce76c8d700ba8504':
Changed Quick Contacts details Button to ImageView
103b9c3614c7ed20acd4ad755a227eae84f8b6bc 09-Nov-2012 Chiao Cheng <chiaocheng@google.com> am 076b5876: am bafdfcb8: Merge "Change dial pad to show chooser onStart instead of onCreate." into jb-mr1.1-dev

* commit '076b58764b84319dceae4bf6bd01489e8363d008':
Change dial pad to show chooser onStart instead of onCreate.
52755bc6068747d8a7116b12a75a318c92fb6f27 09-Nov-2012 Chiao Cheng <chiaocheng@google.com> am 341b120c: am f80fec33: Merge "Prune selected call log filter options from overflow menu." into jb-mr1.1-dev

* commit '341b120c4d8cf4417e22c56f10db371cd99af10c':
Prune selected call log filter options from overflow menu.
b6ae7361ef341439b694cc4201af7c18d0bf3d62 09-Nov-2012 Yorke Lee <yorkelee@google.com> Merge "Changed Quick Contacts details Button to ImageView" into jb-mr1.1-dev
d7f399162b43017e8d1964a71a87d3c4d4fcf8e4 08-Nov-2012 alanv <alanv@google.com> am 9d8b4297: am a641a310: am ffa7e173: am 3c0e293e: Don\'t override sendAccessibilityEvent() in ContactTileRow.

* commit '9d8b429702e59fae39a46f552e1a722432eff8de':
Don't override sendAccessibilityEvent() in ContactTileRow.
9d8b429702e59fae39a46f552e1a722432eff8de 08-Nov-2012 alanv <alanv@google.com> am a641a310: am ffa7e173: am 3c0e293e: Don\'t override sendAccessibilityEvent() in ContactTileRow.

* commit 'a641a3107a043f7824fdac472ff7d3293d23bd79':
Don't override sendAccessibilityEvent() in ContactTileRow.
9d85a2a39a4b9a0bacee8d25b2830784caf8551c 08-Nov-2012 Yorke Lee <yorkelee@google.com> Changed Quick Contacts details Button to ImageView

Removed unnecessary button to eliminate accessibility
confusion

Bug: 7434869
Change-Id: Ib503cde9a04566d8e086bb3671868f4a8059d0be
ndroid/contacts/quickcontact/QuickContactActivity.java
bafdfcb81e808f7f7a83d29602700863c7778ab6 08-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Change dial pad to show chooser onStart instead of onCreate." into jb-mr1.1-dev
f80fec33066a2b95cddf791f6240cb057713169c 08-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Prune selected call log filter options from overflow menu." into jb-mr1.1-dev
e7f458d7af9e05745436a199fcee0c0976c448ed 06-Nov-2012 Chiao Cheng <chiaocheng@google.com> Change dial pad to show chooser onStart instead of onCreate.

This fixes the problem where the chooser is not shown when the dialpad is
started and pushed to recents before a call comes in. When the call comes
and dial pad is selected from recents, the dialpad is shown. Instead, we
should be showing the chooser so the user has the option of getting back
into the call.

Bug: 5761141
Change-Id: I315117c6607dbb71e5359cf98785591d20c21881
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
781c4e10c6501d49b52a3d04ccec2e50627e9195 07-Nov-2012 Chiao Cheng <chiaocheng@google.com> Prune selected call log filter options from overflow menu.

Bug: 7205096
Change-Id: Ib81e81195475e74f06ed7eda600b3f777a28ad70
ndroid/contacts/calllog/CallLogFragment.java
3c0e293e8fbcf2636f45e729f6102cc752c59119 06-Nov-2012 alanv <alanv@google.com> Don't override sendAccessibilityEvent() in ContactTileRow.

Hides the row (but not its children) from node traversal by setting it as
not important for accessibility.

Bug: 7486402
Change-Id: Ib223d3703fb24b7d3639d9b8b8934f6333df293c
ndroid/contacts/list/ContactTileAdapter.java
50a7deaf3b45211807ef2319810edaa2b5d85db3 06-Nov-2012 Chiao Cheng <chiaocheng@google.com> Removing GroupMember dependencies from ContactTileAdapter.

Prefactor group member dependencies out of ContactTileAdapter so that the
adapter can be moved to common without group functionality.

Bug: 6993891
Change-Id: I94ae51224e7fdf3b054f84c2de31f62aedfe53a4
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/GroupMemberTileAdapter.java
565ef6aba615df3fc3f324744d060ffe2d90470f 06-Nov-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move AccountTypeManager singleton out of app context."
89437e8b56b3af2d2b70f56ad76dc442a0898050 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
ndroid/contacts/common/list/AutoScrollListView.java
ndroid/contacts/common/list/ContactEntryListAdapter.java
ndroid/contacts/common/list/ContactListAdapter.java
ndroid/contacts/common/list/ContactListFilter.java
ndroid/contacts/common/list/ContactListItemView.java
ndroid/contacts/common/list/ContactListPinnedHeaderView.java
ndroid/contacts/common/list/ContactsSectionIndexer.java
ndroid/contacts/common/list/DefaultContactListAdapter.java
ndroid/contacts/common/list/DirectoryListLoader.java
ndroid/contacts/common/list/DirectoryPartition.java
ndroid/contacts/common/list/IndexerListAdapter.java
ndroid/contacts/common/list/PinnedHeaderListAdapter.java
ndroid/contacts/common/list/PinnedHeaderListView.java
ndroid/contacts/common/list/ProfileAndContactsLoader.java
ndroid/contacts/common/preference/ContactsPreferences.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
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/list/ContactNameHighlightingAnimation.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/ContactsSectionIndexer.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/DirectoryListLoader.java
ndroid/contacts/list/DirectoryPartition.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/EmailAddressPickerFragment.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressPickerFragment.java
ndroid/contacts/list/ProfileAndContactsLoader.java
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/preference/DisplayOrderPreference.java
ndroid/contacts/preference/SortOrderPreference.java
ndroid/contacts/util/AccountFilterUtil.java
ndroid/contacts/widget/AutoScrollListView.java
ndroid/contacts/widget/IndexerListAdapter.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListDemoActivity.java
ndroid/contacts/widget/PinnedHeaderListView.java
dabac3f99c85bd6af90681a774796748c2775beb 02-Nov-2012 Chiao Cheng <chiaocheng@google.com> Move AccountTypeManager singleton out of app context.

Put singleton directly into AccountTypeManager class instead of pulling it
from the custom context ContactsApplication class.

Bug: 6993891
Change-Id: Icc1b9736dff8916407c923ceaebb7844fca3e097
ndroid/contacts/ContactsApplication.java
ndroid/contacts/model/AccountTypeManager.java
c8dd78c595cfaf9766e59a2df012b16d6c05b213 31-Oct-2012 Chiao Cheng <chiaocheng@google.com> Moving dependencies of PhoneFavoriteFragment.

Move common classes from Contacts to Contacts Common.

Bug: 6993891
Change-Id: Icff2a57875c47a5141842ca3ab980cfc76931cb6
ndroid/contacts/ContactPresenceIconUtil.java
ndroid/contacts/ContactStatusUtil.java
ndroid/contacts/ContactTileLoaderFactory.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/dialog/ClearFrequentsDialog.java
ndroid/contacts/dialog/IndeterminateProgressDialog.java
ndroid/contacts/format/FormatUtils.java
ndroid/contacts/format/PrefixHighlighter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
ndroid/contacts/widget/TextHighlightingAnimation.java
a6b4c791665c452b818cf545155565f379f74651 31-Oct-2012 Chiao Cheng <chiaocheng@google.com> Moving dependencies of PhoneFavoriteFragment.

Move common classes from Contacts to Contacts Common.

Bug: 6993891
Change-Id: Idd0b3115df810090340d1b10b04eb698d5facfb6
ndroid/contacts/common/ContactPresenceIconUtil.java
ndroid/contacts/common/ContactStatusUtil.java
ndroid/contacts/common/ContactTileLoaderFactory.java
ndroid/contacts/common/dialog/ClearFrequentsDialog.java
ndroid/contacts/common/dialog/IndeterminateProgressDialog.java
ndroid/contacts/common/format/FormatUtils.java
ndroid/contacts/common/format/PrefixHighlighter.java
ndroid/contacts/common/format/SpannedTestUtils.java
34793c436c1f95a1c57b1227466fd929e5d64e17 31-Oct-2012 Chiao Cheng <chiaocheng@google.com> Moving PhoneNumberInteraction to Dialer.

And moving dependent related resources and test classes.

Bug: 6993891
Change-Id: I4962098d6b1e05d16a6721bbf889f9e3f26194a8
ndroid/contacts/interactions/PhoneNumberInteraction.java
59e8423f9cefab6a5fdb093ca27a06143c9d44e5 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move PhoneNumberFormatter to common."
d38ff59235fd210b4b3a7f850da4b0c483201e55 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move PhoneNumberFormatter to common."
b41973e1b2336d28282787058aa96472af8b4226 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move label fetch logic into common utility class."
2bb22492788ba387cb8beb988810adfd92d79b24 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move label fetch logic into common utility class."
e53644a9fff2d82e1cf0b80d944ec2cc5ccd64b4 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move StopWatch class into common."
8ea3bcaf64ba30cc677b29e67e7c626be66362e2 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Removing un-necessary import.

Bug: 6993891
Change-Id: Ie3b85d0d08890a0bcddd3a61681757d636ed527d
ndroid/contacts/ContactTileLoaderFactory.java
720ac2f99fc6cb4b92852a1a54ccd8c7c796c7d2 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move PhoneNumberFormatter to common.

Bug: 6993891
Change-Id: I2b617a5c57e8f51ecba193613447ec834cfcf6fe
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/util/PhoneNumberFormatter.java
1f4214d36bfb2b939e6b4ceaa17694882488d293 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move PhoneNumberFormatter to common.

Bug: 6993891
Change-Id: I7d55c473272e944d9dfc1d67a5b010edb9dbb1a9
ndroid/contacts/common/util/PhoneNumberFormatter.java
9e2aa3074079e1b5934d40c99e5a47f6a68d89da 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move StopWatch class into common.

Bug: 6993891
Change-Id: I60e9a1f63ea09dc0eb3c5ede64e9d5a15272526d
ndroid/contacts/common/util/StopWatch.java
9f2a5e78c9604d9c407f1464c7cb72ec5f2bb04d 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move StopWatch class into common.

Bug: 6993891
Change-Id: I32caf9d877741a8388ead78f169a3a2c1d934e52
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/StopWatch.java
0b24d7929797867b8b3b84dbbc625c3b8487c8f0 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move label fetch logic into common utility class.

- Move logic from PhoneActionInflater and PhoneActionAltInflater into common
utility method so it can be shared by PhoneNumberInteraction without going
through account manager.
- Added unit tests.

Bug: 6993891
Change-Id: I53e74df02bea031886ee512360b9f1abc083d66c
ndroid/contacts/common/util/ContactDisplayUtils.java
9ea0015daa1558138ccea42b7d3a15963f082743 30-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move label fetch logic into common utility class.

- Move logic from PhoneActionInflater and PhoneActionAltInflater into common
utility method so it can be shared by PhoneNumberInteraction without going
through account manager.
- Refactored InteractionType to be constant int instead of enum class.

Bug: 6993891
Change-Id: I91793fccc2ff193426d276dbc776c241cb930694
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/model/account/BaseAccountType.java
a41404c0729e9940b8a1c50f1904b1f58d3122bb 29-Oct-2012 Chiao Cheng <chiaocheng@google.com> Removing un-used CallContactActivity.

Bug: 7406961
Change-Id: Icadd9ab0a452855d6e5b7aae03e245044848ff2d
ndroid/contacts/CallContactActivity.java
e6fc55176a9432897127ee203ad91aa0829132a6 29-Oct-2012 Chiao Cheng <chiaocheng@google.com> Merge "Move dependencies in prep for PhoneNumberInteraction move."
2c1cbe55b40483f7639643d81f59663d821341a6 27-Oct-2012 Chiao Cheng <chiaocheng@google.com> Remove un-used dependencies on PhoneNumberInteraction.

Preparing to move PhoneNumberInteraction out of Contacts and into Dialer.

Bug: 6993891
Change-Id: Ic42e7d36a5c2534469f78218eefa5ceead9dcda6
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/OnContactBrowserActionListener.java
32984645acb6521d4309ee448abf1a6511e7c7db 25-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move dependencies in prep for PhoneNumberInteraction move.

Committing this change first which is a pre-factor to moving
PhoneNumberInteraction into Dialer completely.

Bug: 6993891
Change-Id: Iceca505f6cd0dcbc1ebb39b98ab63a13bb263eda
ndroid/contacts/common/Collapser.java
ndroid/contacts/common/MoreContactUtils.java
ndroid/contacts/common/activity/TransactionSafeActivity.java
ndroid/contacts/common/database/ContactUpdateUtils.java
d7ca03e23948c3b2d5f97ec5598d8b50e3fc0b25 25-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move dependencies in prep for PhoneNumberInteraction move.

Committing this change first which is a pre-factor to moving
PhoneNumberInteraction into Dialer completely.

Bug: 6993891
Change-Id: I8a8f2d2d54b1aa8268e8ac9bd7d97d165a3e55c2
ndroid/contacts/Collapser.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/TransactionSafeActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
3483b810714749b4eb1a34f71c0446b6d2f2602b 24-Oct-2012 Chiao Cheng <chiaocheng@google.com> Move activity and service back to Contacts.

ViewNotificationService and NonPhoneActivity make more sense in contacts since
they perform contact related operations.

Bug: 6993891
Change-Id: Ib9e32693c4b5bac9c30ffc2a81bc24f031404bd1
ndroid/contacts/NonPhoneActivity.java
ndroid/contacts/ViewNotificationService.java
8661800611a3339b86e470b284144e597da0ee6a 16-Oct-2012 Chiao Cheng <chiaocheng@google.com> Adding ContactPhotoManager and dependent classes.

Moved from People package so it can be shared by dialer.

Bug: 6993891
Change-Id: I85268c040498621a324c459ce237a51b30e7d3a4
ndroid/contacts/common/ContactPhotoManager.java
ndroid/contacts/common/GeoUtil.java
ndroid/contacts/common/util/BitmapUtil.java
ndroid/contacts/common/util/MemoryUtils.java
ndroid/contacts/common/util/UriUtils.java
79a6b5d3a885bc508b4b98c92a946fe12643c444 16-Oct-2012 Chiao Cheng <chiaocheng@google.com> Sharing ContactPhotoManager between dialer and people.

Move ContactPhotoManager and dependent classes to ContactsCommon so it can be
shared by dialer and people.

Bug: 6993891
Change-Id: Ib37af58718850d6d5515bbf3e46aca9fb95f9ee8
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/format/FormatUtils.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/util/BitmapUtil.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/util/MemoryUtils.java
ndroid/contacts/util/PhoneNumberFormatter.java
ndroid/contacts/util/UriUtils.java
710d63573c40659abef0119456588a7256ce1cb4 10-Oct-2012 Santos Cordon <santoscordon@google.com> Do not change voicemail call to voicemail: uri automatically

Manual merge of Change-Id: I41ba17e419e3189a73f8032399deaa78febd525c

Change-Id: I66a20804d22bdf6c602f8fb27054f4894aed247e
ndroid/contacts/common/CallUtil.java
0bd5ede431ecd5c15c85709025693414413b0418 06-Oct-2012 Makoto Onuki <omakoto@google.com> am c6e2507b: am 3455f8ab: am 2c227837: Merge "Make locale safe paths"

* commit 'c6e2507be9f92618e5e6000f3218289c5b0ea4cb':
Make locale safe paths
c6e2507be9f92618e5e6000f3218289c5b0ea4cb 06-Oct-2012 Makoto Onuki <omakoto@google.com> am 3455f8ab: am 2c227837: Merge "Make locale safe paths"

* commit '3455f8ab45bf33f1cd0152040cdc283d83d01c74':
Make locale safe paths
3455f8ab45bf33f1cd0152040cdc283d83d01c74 06-Oct-2012 Makoto Onuki <omakoto@google.com> am 2c227837: Merge "Make locale safe paths"

* commit '2c227837d4cf75cef272401f36c9446a492a7e10':
Make locale safe paths
9bcfc325333797ad968fbb42583a2006effdef4a 05-Oct-2012 Johan Redestig <johan.redestig@sonymobile.com> Make locale safe paths

generateTempPhotoFileName was using SimpleDateFormat
with the default locale to create paths. In some locales
this resulted in characters that are not safe to use
on all file systems. Explicitly use Locale.US to
be locale safe.

Change-Id: I23fdc90042fcf2c323ef58e25fd34220e21648ca
ndroid/contacts/util/ContactPhotoUtils.java
1d3d6a44e4c27f2f3752be44ab6092ab83c0d6cd 04-Oct-2012 Svetoslav Ganov <svetoslavganov@google.com> Merge "Implement lift-to-type for phone dialer accessibility." into jb-mr1-dev
a0d0552348b6b0269fdc92e5638ef6bba1bb74be 02-Oct-2012 alanv <alanv@google.com> Implement lift-to-type for phone dialer accessibility.

When explore by touch is turned on, lifting a finger inside of a dialer
key will perform that key's action. This code also ensures that calling
performClick() on a key performs the key's action (req'd for Braille).

During touch exploration, keys are set to be non-clickable so that lift-
to-type doesn't conflict with normal double-tap interaction.

Bug: 7263951
Change-Id: I7d4a292ebc306b51666d9aa840ddcb2a7e5770fb
ndroid/contacts/dialpad/DialpadImageButton.java
ff1d2e7284a5cf100cb2d0baff023299cd18090a 01-Oct-2012 Raph Levien <raph@google.com> am 5f8cbbe4: am fafa242a: am b7fe953a: Merge "Fix bug 7250807 Ellipsizing is broken" into jb-mr1-dev

* commit '5f8cbbe4dec785101591804744c9f3408b407a6e':
Fix bug 7250807 Ellipsizing is broken
9d578a8bb083c0aae6c0b0210a608a106cfdbbd3 28-Sep-2012 Raph Levien <raph@google.com> Fix bug 7250807 Ellipsizing is broken

The ellipsis wasn't showing in names in the Contacts app. It turns out
that the problem was simply a discrepancy between onMeasure and onLayout
for the TextView displaying the name: the former wasn't taking into
account the mTextIndent. Thus, the actual TextView was short 8 dip,
resulting in truncation on the right (which usually resulted in loss of
the ellipsis).

This change simply takes mTextIndent into account when doing the
measurement of the child TextView for mNameTextView.

Change-Id: I750d32c6444937d87a7dfc25850ba7e486b3c6ae
ndroid/contacts/list/ContactListItemView.java
269d2847466334f3e39b7b54461152d9c768be78 24-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> am fca532d6: am 46bdf7bc: Merge "Fix bug #7206086 NumberPicker widget should use locale digits" into jb-mr1-dev

* commit 'fca532d693469d0ed9b258ceaf7360aed4240f32':
Fix bug #7206086 NumberPicker widget should use locale digits
46bdf7bc4386e9e5d78fa11619dc3a044aabb12e 23-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Merge "Fix bug #7206086 NumberPicker widget should use locale digits" into jb-mr1-dev
4857fb475c9b1cd8b5f4d6a60fe57587f248bc47 23-Sep-2012 Fabrice Di Meglio <fdimeglio@google.com> Fix bug #7206086 NumberPicker widget should use locale digits

- fix for having the TwoDigitFormatter being able to be recreated if the locale is changed
- accept now also the Arabic and Persian digits

Change-Id: I498a020e6ca4709ba76a2cbfa9a067e570b90e92
ndroid/contacts/datepicker/DatePicker.java
e55ef9e6d1b78bd216d6b87c6a39805191a01897 21-Sep-2012 Makoto Onuki <omakoto@google.com> Fix potential issue in I3d791ce1f536680a9ca0db2c387f3aad36eda17f

Bug 7164046

Change-Id: I5948d40c1da68c985cc4b7539c24b883b75d216d
ndroid/contacts/calllog/CallLogFragment.java
0da25efcd8dd39e6b4743aa52059d99e18924ea8 20-Sep-2012 Chiao Cheng <chiaocheng@google.com> Merge "Reset call filter when a call is placed or received." into jb-mr1-dev
971339731e3b4e1cd602ca505529faf334401f65 19-Sep-2012 Chiao Cheng <chiaocheng@google.com> Reset call filter when a call is placed or received.

Created a receiver which will reset the call filter. Remove
the receiver when filter is not used.

Bug: 7164046
Change-Id: I3d791ce1f536680a9ca0db2c387f3aad36eda17f
ndroid/contacts/calllog/CallLogFragment.java
762659e838360f6ddb98669774189eb85ae41e51 20-Sep-2012 Daniel Lehmann <lehmannd@google.com> am 24242d66: Prefer upsizing a down-sampled picture if size is close enough

* commit '24242d6677cb13ba6e1889de05f3d424ca66f755':
Prefer upsizing a down-sampled picture if size is close enough
24242d6677cb13ba6e1889de05f3d424ca66f755 19-Sep-2012 Daniel Lehmann <lehmannd@google.com> Prefer upsizing a down-sampled picture if size is close enough

Bug:7185973
Change-Id: Ia3809df23085207f179861a0b4a73f2612dff4a0
ndroid/contacts/util/BitmapUtil.java
cb3bc0de9414f5660dd4db959ac4b7ff80a3dfc8 19-Sep-2012 Daniel Lehmann <lehmannd@google.com> Merge "Prefer upsizing a down-sampled picture if size is close enough" into jb-mr1-dev
6b22e42bf9ed682a10d89d28afecc083d0215020 19-Sep-2012 Daniel Lehmann <lehmannd@google.com> Prefer upsizing a down-sampled picture if size is close enough

Bug:7185973
Change-Id: Ia3809df23085207f179861a0b4a73f2612dff4a0
ndroid/contacts/util/BitmapUtil.java
bf04c8a9fa947867f26cfc570eca7b52e49ee22b 19-Sep-2012 Chiao Cheng <chiaocheng@google.com> Merge "Remove call log filter option from being persisted." into jb-mr1-dev
fd4d9c0f3bace336e455cde0b4704b20472a1011 19-Sep-2012 Chiao Cheng <chiaocheng@google.com> Remove call log filter option from being persisted.

Bug: 7164046
Change-Id: I4e8788fd4940ca1c6d8407c0edebfd4ab4d8f994
ndroid/contacts/calllog/CallLogFragment.java
6dc1d72d38c893a8b938da351c6c954f8ecb8db6 19-Sep-2012 Yorke Lee <yorkelee@google.com> am 83e32f7e: am 80ad6b43: Merge "Fix BadTokenException crash by ImportVCardActivity" into jb-mr1-dev

* commit '83e32f7e91199b41c61a9f287ebbaa50c89f7c2f':
Fix BadTokenException crash by ImportVCardActivity
cdc279de45da459b359254777a09ab630ce60fa9 19-Sep-2012 Yorke Lee <yorkelee@google.com> am f0aa3c9d: am 288532cd: Fix BadTokenException in ContactEditorFragment

* commit 'f0aa3c9d1fc09f25a3dbd250493d8119ce360aab':
Fix BadTokenException in ContactEditorFragment
80ad6b43cd265972e1bc0bcc19ceba9c81ff7a77 19-Sep-2012 Yorke Lee <yorkelee@google.com> Merge "Fix BadTokenException crash by ImportVCardActivity" into jb-mr1-dev
288532cddfccdc3793dd748d1c75750e2f46cb53 19-Sep-2012 Yorke Lee <yorkelee@google.com> Fix BadTokenException in ContactEditorFragment

Bug: 7162486
Change-Id: I3b8fcf6cf2fd3f11368b5af643a9b69ce0890e84
ndroid/contacts/editor/ContactEditorFragment.java
9dabdc8161d1658de80065b865eab3b279bba8c6 15-Sep-2012 Yorke Lee <yorkelee@google.com> Fix BadTokenException crash by ImportVCardActivity

Make sure ImportVCardActivity isn't currently in the process
of finishing so that a dialog isn't spawned when it is not running.

Bug: 6899053
Change-Id: I0b5dc797c5ce37518b239b18cfea266401981820
ndroid/contacts/vcard/ImportVCardActivity.java
edf7ab9290197c0e47247425a0374534b8588b67 14-Sep-2012 Chiao Cheng <chiaocheng@google.com> Adding custom AsyncQueryHandler to prevent null cursors.

In safe mode, a cursor can come back as null even though our providers never
allow for that. NoNullCursorAsyncQueryHandler should be used instead of
AsyncQueryHandler from now on. It will return EmptyCursor in place of a null.

Bug: 7012260
Change-Id: I5b8ba6fb85ae0f984ee8b0ff2f2f068232a03848
ndroid/contacts/common/database/EmptyCursor.java
ndroid/contacts/common/database/NoNullCursorAsyncQueryHandler.java
99d3803a9f2ab8ba595c2289d1b38408918c6c30 14-Sep-2012 Marc Blank <mblank@google.com> am 77cfb2ac: am 03eaa114: Merge "Allow both AOSP and Google account types for Exchange" into jb-mr1-dev

* commit '77cfb2ac0f9cebee277ad890390ffe01b117d3cf':
Allow both AOSP and Google account types for Exchange
03eaa114b992767a6a7bf4c0be88d1360f85db88 14-Sep-2012 Marc Blank <mblank@google.com> Merge "Allow both AOSP and Google account types for Exchange" into jb-mr1-dev
de8a66404acd36544e3559404f6542473224aa4a 14-Sep-2012 Marc Blank <mblank@google.com> Allow both AOSP and Google account types for Exchange

* Contacts app had hard-coded the single account type; why do we
have to hard-code these names?

Bug: 7162923
Change-Id: I7ea201fc961e7abc4e44aa138b8cc002fbb6ed33
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/account/ExchangeAccountType.java
3215711c896875ed4d6ce053cab2561cde3ad63a 13-Sep-2012 Santos Cordon <santoscordon@google.com> Do not change voicemail calls to voicemail: uri automatically

Previous change (Change-Id: Iaca971a195144a16f7853e3555375922ad54b81b)
performed some code cleanup/restructuring which caused all calls from
Dialtacts to any voicemail number to be sent as a "voicemail:" CALL
Intent instead of a "tel:" CALL Intent. That change lost post-dial
digits in the process.

This change undoes the portion of that change which translated all
"tel:" calls to voicemail numbers into "voicemail:" calls.

Confirmed that this change does not alter the functionality of a voicemail
call and continues to display the i18n'ed "Voice Mail" string in the
incall screen/dialpad.

bug: 6969236
Change-Id: I41ba17e419e3189a73f8032399deaa78febd525c
ndroid/contacts/ContactsUtils.java
0ee2a955038a52596c070bc395e65ee18e258fce 13-Sep-2012 Chiao Cheng <chiaocheng@google.com> Merge "Refactor RawContact to be parcelable."
47b6f70eadb118d815b4aaf5426c070bd75a38fb 08-Sep-2012 Chiao Cheng <chiaocheng@google.com> Refactor RawContact to be parcelable.

- Re-work of RawContact to be a real data container and removed un-necessary
dependencies.
- Removed un-necessary circular dependency between RawContact and DataItem.
- Cleaned up and made DataItem more compartmentalized by removing un-related
account methods.
- Implemented Parcelable for RawContact and NamedDataItem.

Bug: 6406182
Change-Id: Icd84f34d85e1349a86e473708cc7f8fece12349f
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/Contact.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/account/AccountType.java
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/DataKind.java
ndroid/contacts/model/dataitem/EmailDataItem.java
ndroid/contacts/model/dataitem/EventDataItem.java
ndroid/contacts/model/dataitem/GroupMembershipDataItem.java
ndroid/contacts/model/dataitem/IdentityDataItem.java
ndroid/contacts/model/dataitem/ImDataItem.java
ndroid/contacts/model/dataitem/NicknameDataItem.java
ndroid/contacts/model/dataitem/NoteDataItem.java
ndroid/contacts/model/dataitem/OrganizationDataItem.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/model/dataitem/PhotoDataItem.java
ndroid/contacts/model/dataitem/RelationDataItem.java
ndroid/contacts/model/dataitem/SipAddressDataItem.java
ndroid/contacts/model/dataitem/StructuredNameDataItem.java
ndroid/contacts/model/dataitem/StructuredPostalDataItem.java
ndroid/contacts/model/dataitem/WebsiteDataItem.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
1a8e797f969148e4d0a0383735177572a8e27267 12-Sep-2012 Chiao Cheng <chiaocheng@google.com> Merge "Additional clean-up of dialer split."
098f630c3dd0d993a423425e138f95dba0d7612c 08-Sep-2012 Chiao Cheng <chiaocheng@google.com> Fix blank edit view after orientation change.

If an orientation change occurs before the contact data loads from the
database, the code fails to reload the data because it is checking
against saved state (which is always present on an orientation change).
This fix changes the check to look for the actual data to be present
in the saved state.

Bug: 7122054
Change-Id: I4373eca14ba447abc57493cf4c5af6b978d8b7a2
ndroid/contacts/editor/ContactEditorFragment.java
cb5b270471f8cd27ba666268d11c60ffd9819b95 06-Sep-2012 Chiao Cheng <chiaocheng@google.com> Adding build file and shared utils for ContactsCommon.

- Shared components for Contacts and Dialer app.

Bug: 6993891
Change-Id: I15ee8ccdc5119ee744db19726ce6d42e89fa509b
ndroid/contacts/common/CallUtil.java
ndroid/contacts/common/ClipboardUtils.java
3a8df86541c91ac5023bc46efae4ed23502512fa 05-Sep-2012 Chiao Cheng <chiaocheng@google.com> Additional clean-up of dialer split.

- Moving resource only used by dialer.
- Moving out common utilities.

Bug: 6993891
Change-Id: Ieb851adb1d6a3492290b84a56aa2cd00cae2f260
ndroid/contacts/CallContactActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/util/ClipboardUtils.java
ndroid/contacts/util/Constants.java
ndroid/contacts/util/PhoneCapabilityTester.java
a02371dd513ccad0119f09ae30fb4e40c3e947aa 25-Aug-2012 Chiao Cheng <chiaocheng@google.com> Moving classes used only by dialer into dialer package.

Bug: 6993891
Change-Id: If45ddc47c668301936595dfd0a9a7fd08569322e
ndroid/contacts/BackScrollManager.java
ndroid/contacts/ProximitySensorAware.java
ndroid/contacts/ProximitySensorManager.java
ndroid/contacts/SpecialCharSequenceMgr.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
ndroid/contacts/util/AsyncTaskExecutor.java
ndroid/contacts/util/AsyncTaskExecutors.java
ndroid/contacts/util/EmptyLoader.java
ndroid/contacts/vcard/ThreadStarter.java
068d0607eaa99b80e3bed4494cfe091ff54256ee 24-Aug-2012 Daniel Lehmann <lehmannd@google.com> am d9b7163c: am 74a052de: Merge "Guard JOIN in case the state machine gets into an erroneous state" into jb-mr1-dev

* commit 'd9b7163c51eb5bb0624e94854975b524c26abc37':
Guard JOIN in case the state machine gets into an erroneous state
5fb5bed35dd93a6895e5acb0560cf690312742a7 24-Aug-2012 Chiao Cheng <chiaocheng@google.com> Merge "Initial removal of dialer features."
a2180f32d3c5d6842c421adb5aa2f85c69caccfb 18-Aug-2012 Chiao Cheng <chiaocheng@google.com> Initial removal of dialer features.

- Moved main activities and classes out including all necessary dependencies
for a first working version.
- There are still dialer dependencies in contacts after this check-in. Further
separation coming.

Bug: 6993891
Change-Id: I1761b554fe5daf29acddbb43532f571191db2eaf
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/CallDetailActivityQueryHandler.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
ndroid/contacts/ViewNotificationService.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/NonPhoneActivity.java
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogGroupBuilder.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemView.java
ndroid/contacts/calllog/CallLogListItemViews.java
ndroid/contacts/calllog/CallLogNotificationsService.java
ndroid/contacts/calllog/CallLogQuery.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/CallLogReceiver.java
ndroid/contacts/calllog/CallTypeHelper.java
ndroid/contacts/calllog/CallTypeIconsView.java
ndroid/contacts/calllog/ClearCallLogDialog.java
ndroid/contacts/calllog/ContactInfo.java
ndroid/contacts/calllog/ContactInfoHelper.java
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
ndroid/contacts/calllog/ExtendedCursor.java
ndroid/contacts/calllog/IntentProvider.java
ndroid/contacts/calllog/PhoneNumberHelper.java
ndroid/contacts/calllog/PhoneQuery.java
ndroid/contacts/calllog/VoicemailNotifier.java
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/dialpad/DialpadImageButton.java
ndroid/contacts/dialpad/DigitsEditText.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/test/FragmentTestActivity.java
ndroid/contacts/util/ExpirableCache.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
ndroid/contacts/voicemail/VoicemailStatusHelper.java
ndroid/contacts/voicemail/VoicemailStatusHelperImpl.java
e813f5e56ddc6395c5e08e9245e2c5ad41e91724 23-Aug-2012 Daniel Lehmann <lehmannd@google.com> Guard JOIN in case the state machine gets into an erroneous state

Bug:7013287
Change-Id: Id4da1f02b00efcc02fe3ad6c277189ad96fcb67f
ndroid/contacts/editor/ContactEditorFragment.java
3d4bed1ed0ebf8df211bb03cc89d1327dd492aef 23-Aug-2012 Daniel Lehmann <lehmannd@google.com> Merge "Guarded the getActivity() call" into jb-mr1-dev
15102c1177c9cec0fce0f2d220b514fe72dcac4e 23-Aug-2012 Daniel Lehmann <lehmannd@google.com> Guarded the getActivity() call

Bug:7026011
Change-Id: Ib4f4fe97023b90472586379679e0e6ab4876fd07
ndroid/contacts/detail/ContactLoaderFragment.java
b131bf009b4a6db106d0ee51a89f5e9d241511fd 22-Aug-2012 Chiao Cheng <chiaocheng@google.com> Merge "Dedupe birthdays from raw contacts." into jb-mr1-dev
b5a4a1317f40cfdf84942064952a2eadfdc117bd 22-Aug-2012 Daniel Lehmann <lehmannd@google.com> Calculate the formatted number when upgrading to a full contact

Bug:7003015

Change-Id: Ic117ee803041c8883a3d91a93d9da0e17764921c
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/model/ContactLoader.java
f2cba50b052f4f6ea748d9c90753ef7ed3ec55c8 22-Aug-2012 Chiao Cheng <chiaocheng@google.com> Dedupe birthdays from raw contacts.

Bug: 6434433
Change-Id: Ia7f0a8720cb2b9be883248517c9c61c25cc7be26
ndroid/contacts/detail/ContactDetailFragment.java
a9b09d5c29f7061567cc942da0c105252c89673f 21-Aug-2012 Maurice Chu <mochu@google.com> Fix NPE due to uncomputed formatted phone numbers

Compute the formatted phone number in the case that it
was not computed from the ContactLoader. This can happen
because contacts loaded via the QuickContacts activity are
passed into the ContactDetailFragment, but the formatted
phone numbers are not computed in QuickContacts.

Bug: 7003015
Change-Id: I999b6ba8e3e3292b055a8fa1fe667a5c8304c983
ndroid/contacts/detail/ContactDetailFragment.java
f4bb763f02da417044882a4121b5188a426f3700 16-Aug-2012 Maurice Chu <mochu@google.com> Merge "Fix binding editors when state is null" into jb-mr1-dev
20578b8f7595cc3fbf8a0c9bd5b62fca5f4b4556 16-Aug-2012 Daniel Lehmann <lehmannd@google.com> Merge "Use correct external storage directory" into jb-mr1-dev
62152c3097758e7084eed393556b86bd2fd795b7 16-Aug-2012 Daniel Lehmann <lehmannd@google.com> Use correct external storage directory

Bug:6987701

Change-Id: I6cf56e2067c55955a02019b1262ee943deca61b9
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
710f8d96a2f8a29ab994425c350a1c66a235e70e 15-Aug-2012 Maurice Chu <mochu@google.com> Merge "Enable parsing phone number in ContactLoader" into jb-mr1-dev
10bf684e0c9022d80b04d9cc69665c6341677bea 15-Aug-2012 Maurice Chu <mochu@google.com> Enable parsing phone number in ContactLoader

A new flag has been added to the ContactLoader to compute
a formatted number based on the original phone number,
phone number in E164 format, and the default country code
iso. Only the ContactLoader for the contact detail card has
been enabled to compute this formatted number.

Bug: 6521929
Change-Id: I0a8eaaa49b7768e9ce2a177d64881562e6bec1d7
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
5671c7e7718c3285dc0391807401083986fcfd51 14-Aug-2012 Maurice Chu <mochu@google.com> Fix binding editors when state is null

The bindEditors() can only bind views when there is
data, so this checks for a null state and returns
immediately if null.

Bug: 6601692
Change-Id: I1abfd75ce3bffb5c96a7b5cb609c6d1686581649
ndroid/contacts/editor/ContactEditorFragment.java
77182d9270220eac71344a5b4fa7ee3b9cb3bdc2 14-Aug-2012 Chiao Cheng <chiaocheng@google.com> Merge "Adding 1000 entry limit to number of call logs shown." into jb-mr1-dev
5c55a91e804f67981c893ee1c40c4db56f1efbce 10-Aug-2012 Geobio Boo <geobio@google.com> Merge "Add landscape dialer for Contacts (Phone) app when in car dock." into jb-mr1-dev
bc365a6107c2feec99d4fbb18e60baeea145c374 08-Aug-2012 Daniel Lehmann <lehmannd@google.com> Stop double-animating when removing the last editor. Fixes jump cuts

Bug:6009430
Change-Id: I8e0a24334a5d92bc300f4d0ff15da99f4786852c
ndroid/contacts/editor/KindSectionView.java
db92b75087ee9d44b026dd1e220955f5d808dcc7 07-Aug-2012 Chiao Cheng <chiaocheng@google.com> Merge "Fixing mis-sorted modifiers." into jb-mr1-dev
4356dacabe800b704bfcd58b2a57430f2b28c63a 07-Aug-2012 Geobio Boo <geobio@google.com> Add landscape dialer for Contacts (Phone) app when in car dock.

Bug: 5566469
Change-Id: I080bd22b3983409e6432e1d78cb693135af9503c
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
b9045989cd2211faf888576f82992a9bf727a5d7 07-Aug-2012 Chiao Cheng <chiaocheng@google.com> Merge "Fixed null pointer exception when mime entries are null." into jb-mr1-dev
9629ad2fa0de7c9cc4f6e8fc0131db09809073a2 06-Aug-2012 Chiao Cheng <chiaocheng@google.com> Fixed null pointer exception when mime entries are null.

Bug: 6929467
Change-Id: Id8aeeb94bb73b2c1290ba326c1c4e57253215fdc
ndroid/contacts/model/RawContactModifier.java
edd70c9596106e8cb36416f8b1a90737a80ad760 06-Aug-2012 Chiao Cheng <chiaocheng@google.com> Fixing mis-sorted modifiers.

Change-Id: I639ccefc8d111e3cf5bcc27d1567bdeeef9d0033
ndroid/contacts/model/ContactLoader.java
c8af761f8db89f803931d1da8a7b74af933e4009 06-Aug-2012 Chiao Cheng <chiaocheng@google.com> Merge "Adjusting call log filter look and feel." into jb-mr1-dev
9e0aa86f7e158c1059cc308fd2eef640e6113d58 03-Aug-2012 Chiao Cheng <chiaocheng@google.com> Adjusting call log filter look and feel.

- Moved filter buttons into overflow menu.
- Added filter header to show users which results are displayed.

Change-Id: I496ecdde8bd235a2065198dffc4179db7012889c
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
5a7a26962cc781d675280c790789e2dea28a7b34 04-Aug-2012 Daniel Lehmann <lehmannd@google.com> Fix support for birthday on February 29th with year omitted

Bug:6260151
Change-Id: Ib78e8bfc30dd5d9554c1f82f9617f7abacb5ce78
ndroid/contacts/datepicker/DatePicker.java
ndroid/contacts/datepicker/DatePickerDialog.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/util/DateUtils.java
918b73ab19109f3f3de3921bdf4acf3ac79b9c24 02-Aug-2012 Chiao Cheng <chiaocheng@google.com> Adding 1000 entry limit to number of call logs shown.

Reduces the time to show call logs since every entry must be looked
at for aggregation. For people with a large amount of calls, this
improves load time by ~30% for 5k entries and ~50% for 10k entries.

Bug: 6849968

Change-Id: I84dd70b3705811f381f677596f1c19345cf218db
ndroid/contacts/calllog/CallLogQueryHandler.java
91e44c641fde1dcfa1e8837da6344ba360b20575 02-Aug-2012 Chiao Cheng <chiaocheng@google.com> Merge "Adding more call log filter buttons." into jb-mr1-dev
8f66599edb41726f620cffa25c68ba1f98955ccf 01-Aug-2012 Chiao Cheng <chiaocheng@google.com> Adding more call log filter buttons.

Adding missed, outgoing, incoming buttons to complement existing
voicemail button.

Change-Id: I43c2a5675783b8a32e4db45b39c64b5496f09e53
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
3982a90600fbe76c770acc63da1afd77820b254a 01-Aug-2012 Makoto Onuki <omakoto@google.com> resolved conflicts for merge of 67d3ba11 to jb-mr1-dev

Change-Id: I34d8bb04438dad2bfb453e5822fe5cec09dca461
67d3ba117d6305f826be33f1d8861e06289fc457 01-Aug-2012 Makoto Onuki <omakoto@google.com> am 2dd99177: Removing code to handle "call" action from QSB suggestion

* commit '2dd99177b9904ff88b5daee8d7a7895d6bdc13ee':
Removing code to handle "call" action from QSB suggestion
2dd99177b9904ff88b5daee8d7a7895d6bdc13ee 31-Jul-2012 Makoto Onuki <omakoto@google.com> Removing code to handle "call" action from QSB suggestion

- Contacts provider no longer generates suggestions with
SEARCH_SUGGESTION_DIAL_NUMBER_CLICKED or
SEARCH_SUGGESTION_CREATE_CONTACT_CLICKED.
(Removed in I0c56f638e347d101468e22d8fb2417552891eaa9)

- Also removed "ACTION_SEARCH" with "call".
Apparently it hasn't been working.

Bug 6889515

Change-Id: I58e95dc6fd84bc14f1dc2b66e72885ced7fe9081
ndroid/contacts/list/ContactsIntentResolver.java
e58bbc474eb60c403904b19259439fbf181a790e 23-Jul-2012 Chiao Cheng <chiaocheng@google.com> Dedup consecutive call log entries.

- Aggregate missed calls along with incoming and outgoing calls.
- Added SmallTest annotation to unit test.

Change-Id: Icbcf0a113f49f099b6cb2ab5c3da2ab82aa9db4c
ndroid/contacts/calllog/CallLogGroupBuilder.java
e86da0a2e9aa28b92f208fb0786bef6c3e669b2d 20-Jul-2012 Santos Cordon <santoscordon@google.com> Merge "2+ voicemail notification sends user to call log."
9ae60417f9e189ecb1f86da9107ba02baae0659b 20-Jul-2012 Makoto Onuki <omakoto@google.com> Add hidden menu option to invoke contacts dump activity

Search for "debug debug!" on the poeple app will enable the debug menu option
which invokes the dump activity.

Bug 6813842

Change-Id: Id09ba988f54ab6a6ce1bf8c480980009da419d19
ndroid/contacts/activities/PeopleActivity.java
81f86ce48ee118d160293536293f37453f354bfd 11-Jul-2012 Santos Cordon <santoscordon@google.com> 2+ voicemail notification sends user to call log.

When the user performs the action on the voicemail notification with 2+
voicemails, they were previously sent to the most recent tab in the
Contacts app. This change makes it so that the user is always sent to
the call log tab within the Contacts App.

Bug: 6675764
Change-Id: I1e111802e498f5010991d0c15b6d14dc25707195
ndroid/contacts/activities/DialtactsActivity.java
d50636542410db761e2fa862e0a660d8cdd0085a 13-Jun-2012 Wink Saville <wink@google.com> Use telephony-common - DO NOT MERGE

Change-Id: I4a42ae6986f97be562e496b28c4a54e3f1a6d59b
ndroid/contacts/SpecialCharSequenceMgr.java
9c38fddc7187742e19147093982754c13a502680 12-Jul-2012 Wink Saville <wink@google.com> Merge commit '49e63562' into mit

* commit '49e63562':
Use telephony-common

Change-Id: Id4ebefc29019327cb9574b66250d6182c0e575b5
9b801a8ba6c56b7d4a0352450cd846bd2646d842 11-Jul-2012 Chiao Cheng <chiaocheng@google.com> Merge "Show screen during unit test even if locked."
d500f6332376f0dfcb9a3ef04389a44b7134278b 11-Jul-2012 Chiao Cheng <chiaocheng@google.com> Show screen during unit test even if locked.

onStart() of ContactDeletionInteration is not called when screen is locked.
This causes NullPointerException's during unit tests.

Bug: 6794863
Change-Id: I2fbb09bebb314521b4a6ab9d23d209d2ad063516
ndroid/contacts/test/FragmentTestActivity.java
63cefb6cc08c66ec990b28c7df81c1cc8ebc5b5e 11-Jul-2012 Geobio Boo <geobio@google.com> Merge "Fix bug where IllegalArgumentException was thrown incorrectly in RawContact"
59b83fa3647dd104df899953321a4c37945448a4 10-Jul-2012 Geobio Boo <geobio@google.com> Fix bug where IllegalArgumentException was thrown incorrectly in RawContact

Bug:6800450
Change-Id: I4383eb0f90f90260c680e66a0ec9b959e6f95db4
ndroid/contacts/model/RawContact.java
49e63562777f6089d1b63c0f78c14a0566a7bc91 13-Jun-2012 Wink Saville <wink@google.com> Use telephony-common

Change-Id: I4a42ae6986f97be562e496b28c4a54e3f1a6d59b
ndroid/contacts/SpecialCharSequenceMgr.java
8233f822689176937c09f630d10e305e9e843116 04-Jul-2012 Chiao Cheng <chiaocheng@google.com> Merge "Switch libcore.util.Objects to equivalent guava Objects."
5e0ad83653469b0195b1c11b8fe77250d30c9899 04-Jul-2012 Chiao Cheng <chiaocheng@google.com> Merge "Removed dependency on private Bundle methods."
b700cfdd4b17e4b8da5cc5482f802c59ddc35c23 04-Jul-2012 Chiao Cheng <chiaocheng@google.com> Switch libcore.util.Objects to equivalent guava Objects.

Progress towards unbundling.

Change-Id: I941014481d9cd63963e55b268642f68145cdf66b
ndroid/contacts/calllog/CallLogAdapter.java
43111ef1fa21fa99e11165ad5501bc28d4b6029f 03-Jul-2012 Chiao Cheng <chiaocheng@google.com> Removed dependency on private Bundle methods.

Progress towards unbundling.

Change-Id: I4ee2380d2e9cf5e8ad75a6b0eca15a9dd566bd27
ndroid/contacts/activities/NonPhoneActivity.java
078d08f5e497231cbe7fb520b5a4e42a398201a6 03-Jul-2012 Chiao Cheng <chiaocheng@google.com> Removed call to private AccessibilityManager.getInstance().

Moving towards unbundling.

Change-Id: I3e0e56d71abf7bb9a5f43286a8dc4a6a31230c44
ndroid/contacts/activities/ContactDetailActivity.java
5982547b722b985d23cc8eedd892ffd6d009998d 03-Jul-2012 Chiao Cheng <chiaocheng@google.com> Merge "Replace com.android.internal.R references with android.R."
e890483e04f45bd47ba66be9ca6ea0e029ce896b 03-Jul-2012 Chiao Cheng <chiaocheng@google.com> Merge "Replaced private com.android.internal.R references."
8c5dfdadcad391647226fa1615d1d7ef679d2493 03-Jul-2012 Chiao Cheng <chiaocheng@google.com> Replace com.android.internal.R references with android.R.

Replaced private references with android.R.id.empty and android.R.id.list.

Change-Id: I9d3f6e9bb633a65bc0d2d038f364fb4432f53e60
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
88689ce1e968be111adc3eb73e19cf61ef638168 03-Jul-2012 Chiao Cheng <chiaocheng@google.com> Replaced private com.android.internal.R references.

Changed references to internal quick contacts badge styles and replaced with
existing default photo size. Internal style is only used for height and width.

Change-Id: I9e9c65a3acfa3650a600c1cd5ec7ba7a502874c1
ndroid/contacts/list/ContactListItemView.java
17ed939b9398e635082344116ba32d3c69c59864 02-Jul-2012 Makoto Onuki <omakoto@google.com> am 31a7869d: am 96464512: Follow-up to Ie62a4486

* commit '31a7869dca3484477507254e3708b5beedec251c':
Follow-up to Ie62a4486
96464512080cb8ee87063ab8da52b31c603ad861 02-Jul-2012 Makoto Onuki <omakoto@google.com> Follow-up to Ie62a4486

Clear the flag only when all digits are removed.

TESTED:
- Manually type "123#"
-> DOES trigger special-char-sequence handling

- Have Intent with "tel:555", remove all digits with back press, type 123#
-> DOES trigger the handling

- Have Intent with "tel:555", remove all digits with back long-press, type 123#
-> DOES trigger the handling

- Have Intent with "tel:555", dial this, hang up, and type 123#
-> DOES trigger the handling

- Have Intent with "tel:123%23"
-> Does NOT trigger the handling

- Have Intent with "tel:123", type #
-> Does NOT trigger the handling

- Have Intent with "tel:123%23%23", remove the last #
-> Does NOT trigger the handling

- Have Intent with "tel:123%23", remove the last # and type #
-> Does NOT trigger the handling

- Have Intent with "tel:123%23", change locale, relaunch the dialer
-> Does NOT trigger the handling

Also did the same with hardware keyboard.

Bug: 6726923
Change-Id: Idea7ae599e3a217ad656a304fbae26746d9f3284
ndroid/contacts/dialpad/DialpadFragment.java
49e611be4aee499fa446a2ea60e9f31985f9daae 29-Jun-2012 Daisuke Miyakawa <dmiyakawa@google.com> am 7d146437: am 1fc1e42b: Remember the flag suppressing special char handling

* commit '7d14643704510b92061b8711e01b8804db5f99bb':
Remember the flag suppressing special char handling
1fc1e42b92904472aecc8b99379b1e8c670e5a88 29-Jun-2012 Daisuke Miyakawa <dmiyakawa@google.com> Remember the flag suppressing special char handling

TESTED:
- Manually type "123#"
-> Should cause special-char-sequence handling

- Have Intent with "tel:123%23"
-> Should *not* cause the handling

- Try other USSD sequences
-> Should behave similarly as above

- Force config change after having the Intent
-> Should *not* cause the handling

- Remove and add '#' after having the Intent
-> Should cause the handling assuming the user explicitly requested
to do so.

- Try other USSD sequences
-> Should behave similarly as shown above

Bug: 6726923
Change-Id: Ie62a448675ac558ecdeea43da01082712edee35a
ndroid/contacts/dialpad/DialpadFragment.java
2b194c0659916aeacfab1084097e7d19aa89efb4 27-Jun-2012 Daisuke Miyakawa <dmiyakawa@google.com> am ed9de615: am 39948dc7: Prevent Intent from initiating special-char handling

* commit 'ed9de615c172a61b3820c389d759cbd8aa62c718':
Prevent Intent from initiating special-char handling
39948dc7e34dc2041b801058dada28fedb80c388 27-Jun-2012 Daisuke Miyakawa <dmiyakawa@google.com> Prevent Intent from initiating special-char handling

TESTED:
- Manually type "123#"
-> Should cause special-char-sequence handling

- Have Intent with "tel:123%23"
-> Should *not* cause the handling

- Try other USSD sequences
-> Should behave similarly as shown above

Bug: 6726923
Change-Id: Ic5b042f620b10931fedcaf12bb58be2405bf7390
ndroid/contacts/dialpad/DialpadFragment.java
851222a96b5d68602fb361ea3527101e893f67e3 21-Jun-2012 Maurice Chu <mochu@google.com> Added thin object layer around contact data

This refactoring abstracts out the need to directly
refer to Contacts database columns throughout the code. Instead,
all of this information is retained in getter/setter methods
within the Contact, RawContact, and DataItem classes and
sub-classes.

ContactLoader.Result class has been pulled to the top level as
the Contact class.

The Entity class has been removed and replaced with a RawContact
class, with getters/setters to raw contact information.
Renamed EntityDelta to RawContactDelta for better understandability
as well as adding getters/setters for specific fields in the
ValuesDelta nested class within EntityDelta. EntityDeltaList
and EntityModifier have been renamed to RawContactDeltaList and
RawContactModifier with the methods using the RawContact class
directly rather than the Entity class.

Data items for a raw contact are represented by a DataItem object
with specialized getters/setters for subclasses of DataItem.
(e.g., EmailDataItem, PhoneDataItem. etc.). DataItem is a wrapper
around ContentValues. This abstracts away the ContactsContract
column fields into getters/setters.

The above refactoring is accompanied with changes throughout the
codebase to use the new Contact, RawContact, and DataItem classes.

Change-Id: I31c1dccd724e9652f9d0af78ca81feb6c5acd71d
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/ViewNotificationService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupDetailDisplayUtils.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/AccountTypeWithDataSet.java
ndroid/contacts/model/AccountWithDataSet.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/Contact.java
ndroid/contacts/model/ContactLoader.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/model/RawContact.java
ndroid/contacts/model/RawContactDelta.java
ndroid/contacts/model/RawContactDeltaList.java
ndroid/contacts/model/RawContactModifier.java
ndroid/contacts/model/account/AccountType.java
ndroid/contacts/model/account/AccountTypeWithDataSet.java
ndroid/contacts/model/account/AccountWithDataSet.java
ndroid/contacts/model/account/BaseAccountType.java
ndroid/contacts/model/account/ExchangeAccountType.java
ndroid/contacts/model/account/ExternalAccountType.java
ndroid/contacts/model/account/FallbackAccountType.java
ndroid/contacts/model/account/GoogleAccountType.java
ndroid/contacts/model/dataitem/DataItem.java
ndroid/contacts/model/dataitem/DataKind.java
ndroid/contacts/model/dataitem/EmailDataItem.java
ndroid/contacts/model/dataitem/EventDataItem.java
ndroid/contacts/model/dataitem/GroupMembershipDataItem.java
ndroid/contacts/model/dataitem/IdentityDataItem.java
ndroid/contacts/model/dataitem/ImDataItem.java
ndroid/contacts/model/dataitem/NicknameDataItem.java
ndroid/contacts/model/dataitem/NoteDataItem.java
ndroid/contacts/model/dataitem/OrganizationDataItem.java
ndroid/contacts/model/dataitem/PhoneDataItem.java
ndroid/contacts/model/dataitem/PhotoDataItem.java
ndroid/contacts/model/dataitem/RelationDataItem.java
ndroid/contacts/model/dataitem/SipAddressDataItem.java
ndroid/contacts/model/dataitem/StructuredNameDataItem.java
ndroid/contacts/model/dataitem/StructuredPostalDataItem.java
ndroid/contacts/model/dataitem/WebsiteDataItem.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/AccountPromptUtils.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
0a8ad19ec756cf479572632e0e1ae5a53db85a77 21-Jun-2012 Chiao Cheng <chiaocheng@google.com> am 1edc792b: am 61414c2c: Fixed bug where contact photo did not scale up when cropped.

* commit '1edc792b6b1cbee8b3cd42480cb79ec4f984398c':
Fixed bug where contact photo did not scale up when cropped.
61414c2c4627ab588cc0f54eae5e0c5591f7d8d9 19-Jun-2012 Chiao Cheng <chiaocheng@google.com> Fixed bug where contact photo did not scale up when cropped.

- Added scaleUpIfNeeded extra to gallery intents.
- Consolidated gallery "extras" code into common utility method.

Bug: 6678247
Change-Id: I4c2b9fb2a88d203fe06303b470f0eb35a5cc6766
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/util/ContactPhotoUtils.java
cbf7ea8870c4730a486d9901cc01f1f9b44244d7 13-Jun-2012 Chiao Cheng <chiaocheng@google.com> Merge "Global import order fix."
e0b2f1e2d01d1ac52ba207dc7ce76971d853298e 12-Jun-2012 Chiao Cheng <chiaocheng@google.com> Global import order fix.

Changed import order to be in accordance with style guide:
http://source.android.com/source/code-style.html#order-import-statements

Static imports will be placed at the top since most existing files used that
convention. It is also a style that can be handled by both eclipse and intellij.

Change-Id: Ia7013c7a2d88e5fefb8f4975d121f7fcd3fcc462
ndroid/contacts/CallContactActivity.java
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/CallDetailActivityQueryHandler.java
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactTileLoaderFactory.java
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/ContactsSearchManager.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/NfcHandler.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
ndroid/contacts/SpecialCharSequenceMgr.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/ViewNotificationService.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/GroupBrowserActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/activities/NonPhoneActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogGroupBuilder.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/CallTypeHelper.java
ndroid/contacts/calllog/CallTypeIconsView.java
ndroid/contacts/calllog/ClearCallLogDialog.java
ndroid/contacts/calllog/ContactInfo.java
ndroid/contacts/calllog/ContactInfoHelper.java
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
ndroid/contacts/calllog/ExtendedCursor.java
ndroid/contacts/calllog/IntentProvider.java
ndroid/contacts/calllog/PhoneNumberHelper.java
ndroid/contacts/datepicker/DatePicker.java
ndroid/contacts/datepicker/DatePickerDialog.java
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/dialog/ClearFrequentsDialog.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/PhotoActionPopup.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/format/FormatUtils.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailDisplayUtils.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/interactions/TestLoaderManager.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/list/ContactNameHighlightingAnimation.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileFrequentFragment.java
ndroid/contacts/list/ContactTileFrequentView.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/ContactTilePhoneFrequentView.java
ndroid/contacts/list/ContactTilePhoneStarredView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/DirectoryListLoader.java
ndroid/contacts/list/DirectoryPartition.java
ndroid/contacts/list/EmailAddressPickerFragment.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressPickerFragment.java
ndroid/contacts/list/ProfileAndContactsLoader.java
ndroid/contacts/list/ProviderStatusWatcher.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/AccountTypeWithDataSet.java
ndroid/contacts/model/AccountWithDataSet.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/preference/DisplayOrderPreference.java
ndroid/contacts/preference/SortOrderPreference.java
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
ndroid/contacts/quickcontact/ResolveCache.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/test/FragmentTestActivity.java
ndroid/contacts/test/InjectedServices.java
ndroid/contacts/util/AccountFilterUtil.java
ndroid/contacts/util/AccountPromptUtils.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/util/AsyncTaskExecutors.java
ndroid/contacts/util/ClipboardUtils.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/util/DialogManager.java
ndroid/contacts/util/ExpirableCache.java
ndroid/contacts/util/HtmlUtils.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/util/LocalizedNameResolver.java
ndroid/contacts/util/PhoneCapabilityTester.java
ndroid/contacts/util/PhoneNumberFormatter.java
ndroid/contacts/util/SchedulingUtils.java
ndroid/contacts/util/StopWatch.java
ndroid/contacts/util/StreamItemEntry.java
ndroid/contacts/vcard/CancelActivity.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/NotificationImportExportListener.java
ndroid/contacts/vcard/SelectAccountActivity.java
ndroid/contacts/vcard/VCardImportExportListener.java
ndroid/contacts/vcard/VCardService.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
ndroid/contacts/voicemail/VoicemailStatusHelperImpl.java
ndroid/contacts/widget/AlphaTouchInterceptorOverlay.java
ndroid/contacts/widget/CompositeListAdapter.java
ndroid/contacts/widget/InterpolatingLayout.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListDemoActivity.java
ndroid/contacts/widget/ProportionalLayout.java
ndroid/contacts/widget/TextHighlightingAnimation.java
ef71e82f9c5bb84990364879156293fdbf13b276 12-Jun-2012 Daniel Lehmann <lehmannd@google.com> Merge "Removed some dead code and a dead asset"
7a7b4a8ad8b1c79e6babee547e6c73a59a1192dc 12-Jun-2012 Daniel Lehmann <lehmannd@google.com> Removed some dead code and a dead asset

Bug:6646933
Change-Id: I1e5dd3e475e4586e25b28c5eec72e87a23a17846
ndroid/contacts/list/ContactListItemView.java
3e435f0e724cb3e88efce15f760e59b9bc08f0d3 12-Jun-2012 Chiao Cheng <chiaocheng@google.com> Change usages of com.google.android to com.google.common.

The people app contains usages of both com.google.android and com.google.common.
Changing code to use the later guava library since it will be needed to unbundle
the app in the future.

Change-Id: I2700126e020166ea1bbbd87c40e77428efde41f3
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/ProfileAndContactsLoader.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/quickcontact/ResolveCache.java
ndroid/contacts/test/InjectedServices.java
ndroid/contacts/util/StopWatch.java
4bff8fb686f2ac5500109a32cca9270965c620d6 06-Jun-2012 Makoto Onuki <omakoto@google.com> Fix handling rotation while camera/gallery/crop is active

on contact editor.

mCurrentPhotoHandler needs to be restored after orientation change.

Bug 6610108
Change-Id: I2a2877856b8c682cce01195bbf9d80978f9ec175
ndroid/contacts/editor/ContactEditorFragment.java
70f77ea66f8c842902401d0960dd432d66d38d9e 31-May-2012 Chiao Cheng <chiaocheng@google.com> Make portrait action bar icons consistent with landscape.

Added "New contact" and "Edit" icons for sw580dp portrait mode. Also made
account selection dialog consistent for add groups in landscape mode. Added
package-protected constructors to inner classes as work around to possible
compiler bug.

Bug: 6547865
Change-Id: Ieb485bd30db30c023f57f718fa1b018ff2f118b9
ndroid/contacts/activities/PeopleActivity.java
79967cb6849efc9b7885651ad870d49761702ae2 31-May-2012 Chiao Cheng <chiaocheng@google.com> Merge "Revert "Make portrait action bar icons consistent with landscape."" into jb-dev
4e6ab81a987cb8c0cccb2d3ffee9ff09be44d567 31-May-2012 Chiao Cheng <chiaocheng@google.com> Revert "Make portrait action bar icons consistent with landscape."

This reverts commit a7a659f2f0facf51ea1c862213450e5789ed387a
ndroid/contacts/activities/PeopleActivity.java
d78a89450f4ab775912f6e4bbadd25742e2a1bdc 31-May-2012 Chiao Cheng <chiaocheng@google.com> Merge "Make portrait action bar icons consistent with landscape." into jb-dev
a7a659f2f0facf51ea1c862213450e5789ed387a 30-May-2012 Chiao Cheng <chiaocheng@google.com> Make portrait action bar icons consistent with landscape.

Added "New contact" and "Edit" icons for sw580dp portrait mode. Also made
account selection dialog consistent for add groups in landscape mode.

Bug: 6547865
Change-Id: I882fc9ff93bf9517b19295b9ab0667e328a883ff
ndroid/contacts/activities/PeopleActivity.java
c51b1d0e22e63fe3298cf79327096478aec49ace 30-May-2012 Maurice Chu <mochu@google.com> Merge "Disallow creating shortcut for directory contacts" into jb-dev
36923016e40df2d252c600ad13a2b35ec14f29af 30-May-2012 Maurice Chu <mochu@google.com> Merge "Fix regression when editing contacts" into jb-dev
c4af651a470b0f92f593b77b28a828ce287c4b4a 29-May-2012 Maurice Chu <mochu@google.com> Disallow creating shortcut for directory contacts

Bug: 6574684
Change-Id: I0b31da1191fdd589376edfac65ff0d4025313df0
ndroid/contacts/detail/ContactLoaderFragment.java
a2f9090cef25dfe4e13117db8c91a056a7d5f114 29-May-2012 Maurice Chu <mochu@google.com> Fix regression when editing contacts

Put a null pointer check when determining whether
a photo already exists.

Bug: 6574706
Change-Id: I21bdbc162910715d5792308a7cb8abdd18bf2eda
ndroid/contacts/editor/ContactEditorFragment.java
2e9ee9f15a1d928619a49ad259cdccbc8c7414dc 25-May-2012 Chiao Cheng <chiaocheng@google.com> Fix NPE when a view is traversed without a parent.

getViewsBelowOf() could be called on a view that has already been
removed from the view hieracrchy.

Bug: 6543741
Change-Id: Id986133598b986ea9ae66595e6adf07dc07ecfb0
ndroid/contacts/editor/EditorAnimator.java
a1fa4d5db33dc4431b2bb325f3a8b7f06ab5d072 23-May-2012 Maurice Chu <mochu@google.com> Merge "Fix pop-up menus for photos in contact editor" into jb-dev
91004b37683c15650eccde68ff04defcf94a1c84 22-May-2012 Maurice Chu <mochu@google.com> Fix pop-up menus for photos in contact editor

The hasMoreThanOnePhoto() has been re-implemented to
look directly at the entity deltas to determine whether
there are more than one photo in the set of raw contacts
rather than relying on whether a photo was set in a raw
contact editor view.

Also, calls to refresh the raw contact views are made if
any changes to raw contact photos are made.

Finally, fixed a regression where the photo handler is not
set correctly so that the wrong photo handler would handle
the callback onPhotoSelected which caused a newly taken
image or chosen image from the gallery would get set to the
wrong raw contact.

Bug: 6408705
Bug: 5850397
Change-Id: I94e3872ed3e0191f1ca845de0d01525aee3a5f5f
ndroid/contacts/editor/ContactEditorFragment.java
45ee872fe7be69c6b3f0c59167eecd11af467812 22-May-2012 Makoto Onuki <omakoto@google.com> Don't send view notification before showing quick contact

Instead, do this in the second load. This directly affects the quick contact
startup time.

Bug 6529921

Change-Id: Ief7bda9bd32cb4be0c86c4b79efb35da812721dc
ndroid/contacts/ContactLoader.java
ndroid/contacts/ViewNotificationService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ef4458a01aafa96aface0d2bce156f6554237191 19-May-2012 Flavio Lerda <flerda@google.com> Merge "Add action to the voicemail notification." into jb-dev
dfe8cc82e8aa31929bb85eb68b7de3492b875d57 18-May-2012 Makoto Onuki <omakoto@google.com> Tweak quick contact startup

Start the loader before inflating the layout.

Layout inflation is a CPU bound operation + file system
access if the layout isn't on the filesystem cache.

This CL increases the chance (unfortunately it's not 100%) for
the layout inflation and the data load to overlap.

Also added "null stopwatch" to easily disable stopwatch.

Bug 6434853

Change-Id: I8be2d68bec3997c967633abe7726be7ff4a61c89
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/StopWatch.java
66f14602b0d5461a10d56ff51738c09499a34347 13-May-2012 Flavio Lerda <flerda@google.com> Add action to the voicemail notification.

If there is only one voicemail, add an action to directly play the
voicemail.

Bug: 6288434
Change-Id: I654864d32f7f5fb64c946d23ad95b692aa950246
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
2d3519b9d7a720705fce0fb18cdbed4fd6a2962c 18-May-2012 Daniel Lehmann <lehmannd@google.com> Merge "De-jank quick contact animation" into jb-dev
3a53c73f04eef94b311bb0469c1d0ca7059c0411 18-May-2012 Daniel Lehmann <lehmannd@google.com> De-jank quick contact animation

Bug:6508325
Bug:6501917

This change ensures the layer allocation does not happen during the animation.
This change also modifies the way the background fade is implemented to
make it faster (halves the required fillrate, which is necessary given we
are falling back to GPU composition in this particular case.)

Change-Id: I27023ad1a5af06d2d2036baed24c2f47deb85184
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/test/NeededForReflection.java
411ce6350af78ac645c99dc748bd97b8db627256 17-May-2012 Makoto Onuki <omakoto@google.com> Merge "Log how long it took in DialpadFragment.onResult..." into jb-dev
7ca259a8252ef640bb38b3ac0293f737c13cefb8 17-May-2012 Makoto Onuki <omakoto@google.com> Log how long it took in DialpadFragment.onResult...

if it took more than 50 milliseconds.

I started to suspect that creating the tone generator may be to blame
for dialpad launch slowness, at least in the bug 6476832 case.

Let's add a log to verify the theory.

Change-Id: Ib9f46a78313199d495238a27a9996af081b2f2af
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/util/StopWatch.java
d8fa716e5428791f79f54437087df3005cc907bf 16-May-2012 Makoto Onuki <omakoto@google.com> Improve provider status query wait

Follow-up to I9bc34e7d.

Don't wait for the provider status to be loaded more than once in a single
call tree.

Before, in order to update ContactsUnavailableFragment from
PeopleActivity.updateViewConfiguration(),
ProviderStatusWatcher.getProviderStatus() may have been called multiple times
in a single call tree, and each call could block the UI thread at most 1 second,
so in total the UI thread may have been blocked >= 2 seconds.

Now we only call ProviderStatusWatcher.getProviderStatus() once per the
updateViewConfiguration() call and pass around the result, so the UI
thread is blocked at most 1 second per call.

Bug 6503283

Change-Id: Ife55d3c6f9e052d82387629c082e41aaad737543
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/ProviderStatusWatcher.java
e8893b91156ee4933c403e59b085a79cc36d3159 16-May-2012 Maurice Chu <mochu@google.com> Merge "Fragment carousel always starts on About page" into jb-dev
0b398b3d178d1fe8fd3ebfb9396e36d1228b53c6 16-May-2012 Maurice Chu <mochu@google.com> Fragment carousel always starts on About page

Bug: 6485489
Change-Id: I6ad819578d79e332594fc3deb4ec0995220d0697
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
b4a0b320c9e3e617ee1dea8f210af8ac027f6795 16-May-2012 Makoto Onuki <omakoto@google.com> Merge "Make quickcontact launchable with am" into jb-dev
1dec2e59e620434a01b27a52cdcf4d50e4524769 16-May-2012 Maurice Chu <mochu@google.com> Merge "Fixed contact detail animated transitions" into jb-dev
6e607d54ce08ebcc78d94963646a42605697f132 16-May-2012 Maurice Chu <mochu@google.com> Fixed contact detail animated transitions

When selecting different contacts on a tablet, the
animation is to set the contact details pane to white
and fade in the new contact details.

From quick contacts view (from Group or Favorites tab
and launcher screen shortcut), if quickcontact is opened
up and user touches the image, then when transitioning
back to the contact details, the contact details shows all
white and then transitions in the new contact details without
showing the previously selected contact details.

Bug: 6194409
Bug: 6324730
Change-Id: I5f56d46aef338b5d7a22e548548c42054656f381
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/widget/TransitionAnimationView.java
802fa62aac8edc92be136b8227ccafa53cd774fb 16-May-2012 Makoto Onuki <omakoto@google.com> Make quickcontact launchable with am

Now it's launchable with:

adb shell am start \
-a com.android.contacts.action.QUICK_CONTACT \
-d content://com.android.contacts/contacts/lookup/...

Bug 6434853

Change-Id: I41868dcb61a602b02c4de9b6587ed265c975552d
ndroid/contacts/quickcontact/QuickContactActivity.java
29a43dd6cc87b1d5871f3fdb3e5247059076fba1 15-May-2012 Makoto Onuki <omakoto@google.com> Merge "Speed up shortcut launch performance" into jb-dev
fc0a89fdb1e0bfe5c47e733f867ca520e117316b 15-May-2012 Makoto Onuki <omakoto@google.com> Speed up shortcut launch performance

Apparently the framework first needs to starts the contacts provider just to
resolve the content-type for a shortcut, which is a heavy process involving
a lot of disk I/O.

Remove this by pre-setting the content type to shortcuts.

This will improve the shortcut launch performance from roughly 3.45 seconds to
2.35 seconds on a prime with a test contact in extreme cases, i.e. after:
adb shell kill `pid acore` `pid contacts` ; \
adb shell "sync; echo 3 > /proc/sys/vm/drop_caches"

Also pre-start the provider in Application.onCreate() in order to maximize
the overlap between the app initialization and the provider initialization.
This may or may not help the regular app launch performance too.

Bug 6434853
Bug 6476832

Change-Id: Ia8dcd877dcda2cac562bec18442d7fc019a08ad2
ndroid/contacts/ContactsApplication.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/quickcontact/QuickContactActivity.java
23f6049c362294386399e4cc10ca8d66c93050be 15-May-2012 Daniel Lehmann <lehmannd@google.com> Merge "Disable "Create new contact" when setting photo from gallery." into jb-dev
c8106e0229462c9e189edd933e22ac7a6492bde5 14-May-2012 Maurice Chu <mochu@google.com> Merge "Changed tablet tabs to be a drop down spinner" into jb-dev
69934738b0262e3202f901b5c980a40b30da134c 14-May-2012 Makoto Onuki <omakoto@google.com> Merge "Fix bug 6479405 On tablet, sometimes, QC -> full contact..." into jb-dev
e1cc78a9827d95afa41fb159bc93aa18fdd2c1d5 14-May-2012 Makoto Onuki <omakoto@google.com> Fix bug 6479405 On tablet, sometimes, QC -> full contact...

card yields in an empty details screen.

In the old code, we even copied the requested URI, which caused the issue
if the URIs for the first request and the second request are different
but still point at the same contact. If we do this, the second result
will have a different requested URI than the actual requeseted URI,
which makes ContactLoaderFragment ignore the result.

This really happens because the lookup URI has variations.

Also make sure not to cache error results.

Bug 6479405

Change-Id: I71254578f0513b391804ee27a21a810bdb6881ac
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactLoaderFragment.java
7f5220e23b37b76cf484b28c182a0c98749b59e2 14-May-2012 Maurice Chu <mochu@google.com> Changed tablet tabs to be a drop down spinner

The tabs in the action bar have been removed for the
tablet form factors and replaced with the action bar
drop down navigation list.

Also, this changes the list item padding in the browse
list on the 7" tablet to extend a little further on the
border to the contact detail panel in portrait mode, so
that more text of longer names can be seen.

Bug: 6426927
Change-Id: Ieced44f5241c3f4f71bdbd7818846e24076fb355
ndroid/contacts/activities/ActionBarAdapter.java
0a660fe03a68777958858738cf4ffdad11a2b7fd 12-May-2012 Josh Gargus <jjosh@google.com> Merge "Fix SocialWidgetConfigureActivity contact-picker double-launch." into jb-dev
b7cf3f0f1c8a843dad3258466b6a182fa74fba43 12-May-2012 Josh Gargus <jjosh@google.com> Fix SocialWidgetConfigureActivity contact-picker double-launch.

No longer does SocialWidgetConfigureActivity launch a second
contact-picker when the picker result is returns in a different
device orientation.

Bug: 6478425
Change-Id: I51c6e91afb269f07bf45fb29aa017a0044baa237
ndroid/contacts/socialwidget/SocialWidgetConfigureActivity.java
4a964d983b65871bcc08fe16baea8cf2e0994061 11-May-2012 Josh Gargus <jjosh@google.com> Disable "Create new contact" when setting photo from gallery.

Bug: 5288751
Change-Id: I8c2c56ca44b5bdca56b7b20a1dfe510ec08a76c3
ndroid/contacts/activities/AttachPhotoActivity.java
eff9b9475baaaa8bc7137cac7d35a8322486cbfb 11-May-2012 Maurice Chu <mochu@google.com> Merge "Show a progress dialog when clearing frequents" into jb-dev
254bbae71abe3912a4d29e18bafbc68422130ac7 11-May-2012 Daniel Lehmann <lehmannd@google.com> Merge "Fix some QC issues" into jb-dev
2426cb015ba4cb679a525bd1ffe223527375468c 11-May-2012 Daniel Lehmann <lehmannd@google.com> Fix some QC issues

Bug:6449630

Change-Id: I5aec3ffdd3032bd3d037a053f5cb86fc9f0f16e0
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/quickcontact/QuickContactActivity.java
2bf6ba7c1ab0e29732c926ebe91b10f5df62fdd1 11-May-2012 Josh Gargus <jjosh@google.com> Merge "Gallery "Set Picture as" contact photo can create new contact." into jb-dev
ca6b8e410d2b7012144ebf07c11c983579f4f3f0 11-May-2012 Josh Gargus <jjosh@google.com> Merge "Fix appearance of Dialtacts search headers." into jb-dev
0521c9764730a2d9b61d37750679c83fde5358b5 11-May-2012 Maurice Chu <mochu@google.com> Show a progress dialog when clearing frequents

Created a new DialogFragment that shows a ProgressDialog
which will appropriate re-create itself after device
orientation changes. This dialog fragment also has a
parameter to ensure that the dialog is showing for at
least the minimum specified display time.

Bug: 5838580
Change-Id: Ida735c3bea22d1e95f4f4243e98e66c21119871e
ndroid/contacts/dialog/ClearFrequentsDialog.java
ndroid/contacts/dialog/IndeterminateProgressDialog.java
1db10c1180b5a881cd5f28c6e28e807a7698babb 10-May-2012 Maurice Chu <mochu@google.com> Merge "Adjust scrollbars in contact details" into jb-dev
712bdc3e2c1283dcabc18458cae2324cb3a41ad3 10-May-2012 Maurice Chu <mochu@google.com> Adjust scrollbars in contact details

Scrollbars in contact details no longer overlay
the contact detail content.

Bug: 6379258
Change-Id: I0f074d9cc74e09a0565b7f2cff2f35359b541a2a
ndroid/contacts/detail/ContactDetailFragment.java
b0b3db758b518b6b4156f78a0581adb1881a779f 09-May-2012 Josh Gargus <jjosh@google.com> Fix appearance of Dialtacts search headers.

Bug: 6117164
Change-Id: I2ccae66a77031bd1a36a5997ad849af984379471
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
64cdc91cae0e08b7d225cd60a91cfc4db85c915d 10-May-2012 Josh Gargus <jjosh@google.com> Gallery "Set Picture as" contact photo can create new contact.

Bug: 5288751
Change-Id: Ic587ae67501fe43e3c0fbb1abe5be34bb32df076
ndroid/contacts/activities/ContactSelectionActivity.java
2d4632c2eb7d2dc3bb94bf64c14c471aafa67b0f 10-May-2012 Maurice Chu <mochu@google.com> Fine-tuned enlarging of contact photos

When tapping a contact detail photo on any device, the
detail photo will attempt to expand as large as indicated
while still remaining fully on the screen and leaving some
space underneath to show the popup menu options.

If there is no photo, then there will be no expansion
although writable contacts will show a popup menu.

Bug: 6462711
Change-Id: I8f69a1c18dfa10ff0d02b9dbd3ba78043cc7eb4e
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/editor/PhotoActionPopup.java
78eefb8773920d56a3fbe99164460c4dd2c73d14 09-May-2012 Maurice Chu <mochu@google.com> Merge "Change contact detail on 7" to fragment carousel" into jb-dev
13f6f26cb8b2f78f0b92dfc1d102222c13217300 09-May-2012 Maurice Chu <mochu@google.com> Change contact detail on 7" to fragment carousel

Contact details in 7" landscape uses the fragment
carousel to show details with updates. The layout
of the contact details fragment follows the 10"
landscape contact details fragment layout. Dimming
of the detail or updates panel in the fragment
carousel has been disabled, and to be consistent,
this dimming is also disabled on the phone landscape
layout.

Also, this changes fixes the bug with the overscroll
indicators in the contact details pane.

Bug: 6398940
Bug: 6378743
Change-Id: Ie93ab73a9ebad8b66f5bc7d75222f5550ed1b005
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
0bdc4546eaf6c881c3996d653e10a25d4bb40120 08-May-2012 Daniel Lehmann <lehmannd@google.com> Merge "Fix for "Next" instead of Search showing up the first time" into jb-dev
b0d82d2703d66b3bd4fe8dc4208cdf6a09f2f4af 08-May-2012 Daniel Lehmann <lehmannd@google.com> Fix for "Next" instead of Search showing up the first time

Bug: 6399620
Change-Id: I8d6d7f4e75a18745d7127edde9ae3326220d4fcb
ndroid/contacts/activities/ActionBarAdapter.java
dc232d85208b9f285a03b0643677801dc312f44c 08-May-2012 Makoto Onuki <omakoto@google.com> Merge "Clarify AccountType.resPackageName/summaryResPackageName" into jb-dev
82a4f4408b74e193b43a12dc8e16c946a93bae4a 08-May-2012 Makoto Onuki <omakoto@google.com> Clarify AccountType.resPackageName/summaryResPackageName

Gave them clearer names and added javadoc.

And added a workaround for the fact that the view notification
service for the google account type is implemented in the sync
adapter, not in the authenticator.

This really needs further clean up.

Change-Id: I567656393fab30293c831fac802884dc84daf861
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
4f135ab1f92bdae7dbaa0ba6561e27b30628fc99 08-May-2012 Maurice Chu <mochu@google.com> Merge "Disable network connection title" into jb-dev
f6476048c6c95f379816a517a0de0820a7b21bf5 08-May-2012 Josh Gargus <jjosh@google.com> Merge "Don't stash cropped photos in /sdcard/DCIM." into jb-dev
f0eb46a5d26a9b65a2d2cc3021a451a735ff1080 08-May-2012 Josh Gargus <jjosh@google.com> Merge "Prevent action-bar icons from changing while QuickContacts active." into jb-dev
ebc17929007ecf12f25b8e90023766e8a083d11e 05-May-2012 Josh Gargus <jjosh@google.com> Don't stash cropped photos in /sdcard/DCIM.

Every time we choose a new contact photo (either an existing one from
the gallery or a new one from the camera), we write the cropped image
/sdcard/DCIM. As a result, the cropped image (eventually) appears in
the gallery, is uploaded to G+, etc.

The new behavior is to write the cropped photo to a temp directory,
and to clear it when we're done with it.

Revert some of the changes from Ib7037a66; we still need to persist
properties in onSaveInstanceState() in case ContactEditorFragment is
killed while the user interacts with the camera/gallery.

Bug: 6423139
Change-Id: Icf8cb5b4824e3d8757ff483ef128527ac9132e72
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/ContactPhotoUtils.java
60c6cbab97c7ad8306ec6ff23e0b75f041c616b9 08-May-2012 Maurice Chu <mochu@google.com> Disable network connection title

In contact details, the name of a particular network
connection has been made to show in secondary text
color and unselectable.

Bug: 6000520
Change-Id: I89d84ad64ad827ce820c854715ca34175e3c7813
ndroid/contacts/detail/ContactDetailFragment.java
ae4f61b9a2c52e3e8731c7578a222f67ca3a99fa 07-May-2012 Daniel Lehmann <lehmannd@google.com> Turn on the animation for toggling the year

Bug:6009385
Change-Id: If31cdfd50e9b7295bf8d5ae9c19c9f46172e2f6f
ndroid/contacts/datepicker/DatePicker.java
d0414e5bd478444a9360c95258c267373f02554b 07-May-2012 Daniel Lehmann <lehmannd@google.com> Task jumping in contact details

When viewing contact details from a quick contact card, the contact
details appear in a two-pane UI, forming a sort of implicit Up
navigation. As a result, viewing contact details from another task is
in effect a task jump since the user may choose to navigate to other
contacts using the other pane of the UI.

Use the new shouldUpRecreateTask API in JB to determine whether the
trampoline from ContactDetailActivity to the two-pane People activity
should also include a task jump.

Bug:6449430

Change-Id: I90b86873a3a21022d52bb387d9adc5391c8d23ac
ndroid/contacts/activities/ContactDetailActivity.java
d1e501105d1ce2fb3e286635d0b2195e77e000af 07-May-2012 Daniel Lehmann <lehmannd@google.com> Tell the Launcher not to animate QuickContact

Bug:6408369
Change-Id: I68c1330f81dbfd2d3eb60be8431f2460e185f2f5
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactBroadcastReceiver.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
697ab26ed2e5173f5c2a20d09e6a064f93b760a9 04-May-2012 Josh Gargus <jjosh@google.com> Prevent action-bar icons from changing while QuickContacts active.

We were setting a flag in onPause() to ensure that we re-initialize the UI
properly in onResume(). However, this was causing a side-effect when the
background PeopleActivity received loader-notifications that were triggered
by the foreground QuickContactsActivity, because the code triggered by the
loader-notification was looking at the flag set in onPause().

To fix this, showContactsUnavailableFragmentIfNecessary(), gains a boolean
"forceUpdate" argument, which more directly reflects the intended usage.

Also, rename sCUFIN() to updateViewConfiguration(). It's cleaner. And more
accurate.

Bug: 6117162
Change-Id: I35b9f06c0deeffe94d5cf80d4df58a9866387792
ndroid/contacts/activities/PeopleActivity.java
85d720220cb69226f7d809df849eb1e9604b2c0f 04-May-2012 Maurice Chu <mochu@google.com> Merge "Fixed group editing popup from contact editor" into jb-dev
b03e6a266e3a4181d22e6be4f3fa0c5dd158d7e1 04-May-2012 Maurice Chu <mochu@google.com> Fixed group editing popup from contact editor

Removed checkbox next to the last "Create new group" option
in popup and removed square brackets in string.

After creating a new group, the view shows the popup again
with the newly create group visible and checked. This is
accomplished via a listener interface to the
GroupCreationDialogFragment. The tricky part to this is if
the user changes device orientation while the
GroupCreationDialogFragment is open. The ContactEditorFragment
will save the resource id of the RawContactEditorView (since
there can be many via joins) and the view id of the
GroupMembershipView which is the listener.

Bug: 6013015
Change-Id: Ia50a68fb6f4631995ae913182765efb24ef227ec
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
8702ceb605dbad8e795f74e82535ef6a1a40105c 04-May-2012 Josh Gargus <jjosh@google.com> Merge "Improved section headers." into jb-dev
8d9ca013dbd0725dd04e6f3a0d9d138d19411832 04-May-2012 Daniel Lehmann <lehmannd@google.com> Fix monkey crash when tab==1 is requested in search mode

Bug:6138459
Change-Id: I7c76e70d20bd483d3599d9e28f81e5ef7477477d
ndroid/contacts/activities/PeopleActivity.java
0fc98e079aa578db5a1998c65762932f914eb896 04-May-2012 Josh Gargus <jjosh@google.com> Improved section headers.

Remove unnecessary padding view, and adjust the section-header heights
directly. Now the height is what UX has wanted for a while.

Bug: 6427081
Change-Id: I83180ccd4ae7f27bcd504d93321a38523d8280c5
ndroid/contacts/list/DefaultContactBrowseListFragment.java
cae88c80de75d24359125051b60b0c3f00fcfdb1 03-May-2012 Makoto Onuki <omakoto@google.com> Merge "Close photo selection activity on config change" into jb-dev
873e048b14647e72fa095e1337ab63377649f44c 03-May-2012 Josh Gargus <jjosh@google.com> Merge "Avoid crash when re-saving new contact with photo." into jb-dev
87270e1b58e669354bb1571ced686421c56deb7a 03-May-2012 Josh Gargus <jjosh@google.com> Avoid crash when re-saving new contact with photo.

This bug was encountered when creating a new contact from Maps,
but could happen any time you:
- create a new contact
- set a contact photo, either from the gallery or a new photo
- save contact but don't leave ContactEditorFragment
(eg: "Join" cause the contact to be saved)
- edit another field
- save

The fix is to clear the list of photos-to-save after each save.

Bug: 6432438
Change-Id: I63e86bd82fd16b8177bdca741ecc7a1a90d22d18
ndroid/contacts/editor/ContactEditorFragment.java
cc5b1294abc5633de65084d0da3711ad1bc71938 03-May-2012 Maurice Chu <mochu@google.com> Shows chevron for quick contacts in Favorites

Fixes a regression where the contact tiles on the
7" tablet in Favorites portrait mode no longer showed
the chevron marks on the bottom right corner.

Bug: 6434237
Change-Id: Ided397b4ce5f9b2e866c7dcde6e6e0b74a93c42b
ndroid/contacts/activities/PeopleActivity.java
272122caf9adb8414451bb37f56db659dace1db5 03-May-2012 Makoto Onuki <omakoto@google.com> Close photo selection activity on config change

This activity doesn't handle orientation changes right. Let's just close it
on any configuration changes. This activity is kinda like a popup, so it
should be okay.

Now this activity handles all config changes by itself, so we can remove a lot
of things, such as onSaveInstanceState and PendingPhotoResult.

Bug 6236774

Change-Id: Ib7037a66d092c8d9a285224ea4cf70e7da8ff1b5
ndroid/contacts/activities/PhotoSelectionActivity.java
552aa6f56cd3b561407a9b854b28daea06dc9c03 02-May-2012 Maurice Chu <mochu@google.com> Merge "Hide scrollbar in search mode when no contacts in Phone" into jb-dev
747cfd0a947ae1ab5fe23445d65f17555e43981e 01-May-2012 Maurice Chu <mochu@google.com> Hide scrollbar in search mode when no contacts in Phone

This hides the scrollbar when there are no contacts in search mode.

Some refactoring has been done to make it easier to tell what menus
are made visible for each of the Phone tabs and when in search mode.
Intents and onClick listeners have been moved to the
onCreateOptionsMenu since these do not change. Also, corrected the
test for isEmpty() in PhoneFavoriteMergedAdapter which allows the
message "No contacts" to show up when there are no contacts to list
under the Phone favorites tab.

Bug: 6036160
Change-Id: I43bbd1bd56b009736cc2a966a3ffb0ad6630792c
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
420b03be46ae3e9cb18a24a88bad3c75681a5448 01-May-2012 Maurice Chu <mochu@google.com> Merge "Made Favorites view in portrait orientation in 7" look like phone" into jb-dev
2871d61514f014926d991e8b037828c67438e522 01-May-2012 Maurice Chu <mochu@google.com> Made Favorites view in portrait orientation in 7" look like phone

Added two new configuration parameters in resources:
- (integer) contact_tile_column_count_in_favorites - which specifies the
number of columns for the image thumbnails in the favorites tab
- (bool) config_use_two_panes_in_favorites - indicates whether favorites
should be shown in two-pane mode

Bug: 6379260
Change-Id: I41100b2aee507e0b9a2a37e9149b944a4831a3e9
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/util/PhoneCapabilityTester.java
c983bdef6062c143b2460c788a1704f0e3203c8a 01-May-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Turn off DEBUG flag on Phone" into jb-dev
e919fba55afc9887160a7522b00e885e7964e5d6 01-May-2012 Makoto Onuki <omakoto@google.com> Merge "Don't load provider status on the ui thread" into jb-dev
8801e3585f8f440067679be31a32a38a5f1faa43 30-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Turn off DEBUG flag on Phone

.. and start using correct asset for split-action bar

Bug: 6201805
Change-Id: Ic7d40a050aeec1f55a40b82c1868505115038cac
ndroid/contacts/activities/DialtactsActivity.java
c2bd6138e19fdcf734843eb55c83d6ffe00e91da 28-Apr-2012 Makoto Onuki <omakoto@google.com> Don't load provider status on the ui thread

The provider status query isn't backed by the filesystem, so is usually pretty
fast, but still, we occasionally get ANRs.

We can't just use a loder to load it in the background, because as long as it's
fast, we *do* want to wait on the UI thread, as the status is needed to decide
whether we should show the "contacts unavailable" fragment.

Added a singleton watcher class that keeps track of the last known provider
status.

start() starts wathcing the status, and stop() stops it.

Once we get a provider status, getProviderStatus()/getProviderStatusData()
will return the last known status, unblocked. Until we get the first status,
they will block at most 1 second. If we can't get the status within this
timeout, it'll just return STATUS_UPGRADING, and the people app shows
"Contacts list is being updated."

Bug 6337646

Change-Id: I9bc34e7d43e8e4bd5e1a11898137e8422b689582
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/ProviderStatusLoader.java
ndroid/contacts/list/ProviderStatusWatcher.java
3607687e99b2938a639936a1c60907b3b20a6f9f 30-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Improve progress feedback for long-running directory searches." into jb-dev
311882ab2fc1e9c8264f5892a6d50722b834e348 28-Apr-2012 Daniel Lehmann <lehmannd@google.com> Make search button focus the search field while in search mode

- Also removed a totally unused class
- Also turned an enum into an abstract class

Bug:5188996
Change-Id: I0dde1e49b360459f71196b151160a25d24d21343
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/widget/SearchEditText.java
f4aaa475a8e005a93f7e2dfae8c09e68f129a48b 27-Apr-2012 Josh Gargus <jjosh@google.com> Improve progress feedback for long-running directory searches.

The previous progress-spinner was tiny and meek. Now it is bold
and assertive.

Bug: 5983528
Change-Id: I3918ae3f4d8cbce1aa3b5acf1b0728b860fa9bff
ndroid/contacts/list/DefaultContactBrowseListFragment.java
4858f5fde65caaa5c47f84aa9a208e48923e14fc 28-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Don't request a layout during layout." into jb-dev
2828c48cc4537fe981918f80297d5408bedc87b5 28-Apr-2012 Makoto Onuki <omakoto@google.com> Prevent passing null context to AggregationSuggestionEngine

The monkey crash suggests we're creating this object when getActivity()
returns null, meaning after the fragment is destroyed.

I couldn't really find any path that could cause it, but let's make
sure we'll never pass null.

Bug 6340106

Change-Id: I38091b46a99821065e248c811ed2f974f2f47152
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/ContactEditorFragment.java
73042e8faf542ba482da9c8a3b97ba4edccc52e8 27-Apr-2012 Josh Gargus <jjosh@google.com> Don't request a layout during layout.

ContactDetailTabCarousel.onLayout() was setting the background-color
alpha, which resulted in another layout being requested somewhere down
in the drawable-setting code. Instead, defer this update until layout
has finished.

Bug: 6407954
Change-Id: I44a1a636f4d34e77a4bb32ee8902920ae9558685
ndroid/contacts/detail/ContactDetailTabCarousel.java
740552201d103b80bc49ea8a39a30536222672ea 27-Apr-2012 Daniel Lehmann <lehmannd@google.com> Don't show triangle and on-press state if there is no action

Bug:5265514
Change-Id: Ifc1d3b765f909f0ec7cc7565b9d89de50c4a5549
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
e6c9fc8e80d456885ab0df2c1dc8c8732617da2a 27-Apr-2012 Maurice Chu <mochu@google.com> Merge "Made layout fixes to support 7" tablets" into jb-dev
28ad47475a4aca7067ee0e20c219cfd471ac46df 27-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "Make sure to close popup before orientation changes.." into jb-dev
76c10116a8f3efae4cb3940e233c8ecd6239e746 27-Apr-2012 Maurice Chu <mochu@google.com> Made layout fixes to support 7" tablets

Renamed resource directory suffixes for 7" tablets in landscape
orientation from sw580dp-w1000dp to sw580dp-w940dp.

In Group and All panes, the ratio of the left list pane to right detail
pane is 1:2. Set up a threshold of the minimum width to show images in
the browse list under the All tab and show/hide images appropriately.

Show 3 columns of images in the Group detail pane when the 7" tablet is
in landscape orientation.

Width in left scrollbar for left pane browse list reduced for 7" tablet.

Bug: 6398940
Bug: 6378492
Change-Id: I7730830470e794a59cf7b2b910ae7aadf82b36c6
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
1adc29d847af0e217b13ce707bb806cfc86e3ae2 27-Apr-2012 Makoto Onuki <omakoto@google.com> Make sure to close popup before orientation changes..

to avoid window leak.

Even with this CL there'll be an error message shown on orientaion changes,
but it's a framework issue that even the framework Spinner has.
(bug filed)

Bug 5209304

Change-Id: I0b8335e9b875a23c48b19bf65462d037c0dba6c1
ndroid/contacts/detail/ContactDetailFragment.java
9584a27c19d2ce971ab2360fb66e60b6eac0c865 27-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Set correct forecolor when searching" into jb-dev
1a6aae19fc8cc5a6be0b21c26780355788daab14 27-Apr-2012 Daniel Lehmann <lehmannd@google.com> Set correct forecolor when searching

Also removed some dead code

Bug:6378835

Change-Id: I3ed4b6bea1a88777312af0e6c40fac93a9102f1f
ndroid/contacts/list/ContactListItemView.java
55967b408f722a3e1d6c61f09618ddd310fb7693 27-Apr-2012 Josh Gargus <jjosh@google.com> Make popup non-modal for contact aggregation suggestion.

When editing a contact's name, the aggregation-engine provides
potential contacts that the user may wish to aggregate the current
contact with. However, this popup was modal, which is bad UX.

Bug: 5438601
Change-Id: Ic8519c235af75d44cfa060f16107cd64aeef61b9
ndroid/contacts/editor/ContactEditorFragment.java
38611246144b73f6bd51fdb159998b45e15564a2 26-Apr-2012 Daniel Lehmann <lehmannd@google.com> Removed obsolete tabs

Change-Id: I9991b9ee077186d777182d2adb8c5eff66d05f02
ndroid/contacts/TabStripView.java
eb7b050a77011ed26f4645ee0d6dcc088eac905a 26-Apr-2012 Makoto Onuki <omakoto@google.com> Fix NPE in ContactLoader

Bug 6402781

Change-Id: I9e18400731cf23cfc00344e90003879642405fe9
ndroid/contacts/ContactLoader.java
afe795a28af8fb9d9977ff8d8b9216b871e76fdd 26-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Add press-states to ContactDetailFragment." into jb-dev
5e50b6dc10b3fb9310cc4e84cc5af28c8c995bfa 26-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "Properly manage lifecycle of suggestion cursor" into jb-dev
8d32448240e9c4d51d64676e66d2fb819aed46a4 26-Apr-2012 Daniel Lehmann <lehmannd@google.com> Fix wrong measure-spec

Bug:5515812

Change-Id: I455b3fdd1a528f05a85dae54261c7039e0f55b19
ndroid/contacts/list/ContactListItemView.java
fc81892e4081f46a54a68498e96d89864c77348e 26-Apr-2012 Josh Gargus <jjosh@google.com> Add press-states to ContactDetailFragment.

Add press states to contact-photo (if it is settable),
and also to carousel touch-interceptor.

Bug: 6324779
Change-Id: I1d35fa60b93af36da49f45b975597d4c7459e477
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/widget/AlphaTouchInterceptorOverlay.java
ndroid/contacts/widget/FrameLayoutWithOverlay.java
6d172800844a3f23a918a099c90c10701159bf77 26-Apr-2012 Daniel Lehmann <lehmannd@google.com> Added one flag, fixed two bugs

Bug:6009417
Bug:6009184
Change-Id: I40e495b26cda43deaddd7794a1d09bb69cc77581
ndroid/contacts/editor/GroupMembershipView.java
6a5397feebc42984e83221c2b8f6ea78dafa6ad8 26-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Updated package names of the icon resolve cache" into jb-dev
98103e115089f7339d103276dccb4984ea89fc84 26-Apr-2012 Daniel Lehmann <lehmannd@google.com> Updated package names of the icon resolve cache

Bug:5422736
Change-Id: Ib5b53a65b280c8013cf930d6a6e937bec0f2f8c1
ndroid/contacts/quickcontact/ResolveCache.java
14ca86206ce0a54c316e1062c5ed9ee4dee44674 26-Apr-2012 Makoto Onuki <omakoto@google.com> Properly manage lifecycle of suggestion cursor

JoinContactLoader loads two cursor in a single load, which is doable,
but not in the way the old code did.

We need to tie the second cursor to the primary cursor in order to
have the framework manage its lifecycle properly.

Bug 6216651

Change-Id: Ia25431832a5b8b94bfd1b319e3d2d4533a4d3840
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/JoinContactLoader.java
b7b9508fa2b3b4543d9c41fd986cecb3cd9a5c36 25-Apr-2012 Maurice Chu <mochu@google.com> Merge "Added help menu options to People app" into jb-dev
692d46364f2f0e32fd481b977c9e16832e70de5c 25-Apr-2012 Maurice Chu <mochu@google.com> Added help menu options to People app

This has been implemented with the idea to enable the creation of help
menu options in a standard way throughout the Android platform. One
particularly important feature is to hide the exact URL that is being
used to invoke the help pages via the browser via using vendor-specific
overlays of string resources.

Also, other standard context for the help like the preferred language and
app version code are incorporated automatically via the HelpUtils function.

Bug:6206323
Change-Id: I5a1fff4d99ac93d3a6aa05da91f465fad072cb8a
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/HelpUtils.java
ac71b5305d49614f5560519509fa41ce9276a3f7 24-Apr-2012 Makoto Onuki <omakoto@google.com> Support adding phone/email to readonly contacts

If the selected contact has no editable raw_contacts, create one on the
first editable account found, and add the data to it.

We'll reuse the "contact is readonly" mode if there's no editable accounts
on the system. We could improve the message, but if there's no editable
accounts we shouldn't show the contact picker in the first place, so I
didn't change the message. Let's fix the picker instead.

Tested:
(Previously supported casses)
- Add a phone number to an existing editable contact.
- Add a phone number to an existing local-only contact.

(Newly supported cases)
- Add a phone number to an existing read-only contact.
- Try to add a phone number to an existing read-only contact, but no
editable accounts are set up.

Bug 5462347

Change-Id: I55db01610cebb60d3830e8ec4ac6bf1a3dfdad88
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/model/EntityDelta.java
411cc218324f0a234e810f81631ee95898192c52 25-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Prevent IME on digits field

Bug: 6154760
Change-Id: I72c0d42c2e39290c9d62506c262b9fc0e23a3760
ndroid/contacts/dialpad/DigitsEditText.java
dd3dc56d035914f80147fd8fa100a849f9215a3d 25-Apr-2012 Daniel Lehmann <lehmannd@google.com> Remove Listener from ContactLoader as it is never used

Change-Id: Iee791ccd6ce1ebb8a81375e1d60f31fbb91bbb16
ndroid/contacts/ContactLoader.java
ndroid/contacts/activities/AttachPhotoActivity.java
62b51bb5d87a0bca9c721e98a0a558b7458edb5f 25-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Fix broken touch-interception in ContactDetailFragmentCarousel."
7edad9dd95a411cc5ed69815e5f0be8a5d1e8b19 20-Apr-2012 Josh Gargus <jjosh@google.com> Fix broken touch-interception in ContactDetailFragmentCarousel.

Tear out a confusion of code that wires XML specs up to alpha-
and touch-interceptor layers. Encapsulate in a new class,
FrameLayoutWithOverlay.

Bug: 6324499
Change-Id: Ic531327d67db8b5069abbd93e31fa10d99d4c4cd
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ViewOverlay.java
ndroid/contacts/widget/AlphaTouchInterceptorOverlay.java
ndroid/contacts/widget/FrameLayoutWithOverlay.java
e19458e83f455ca1e3446305ec91fbd36089b3c8 25-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Guard against a Monkey NPE"
097b10bbd1a2bc110556ec928db4568493a5d21e 25-Apr-2012 Daniel Lehmann <lehmannd@google.com> Guard against a Monkey NPE

Bug:5628769
Change-Id: I68f32088ce7cecf30e0f68e888f9af2e71b2eec4
ndroid/contacts/list/JoinContactListFragment.java
e55e891d972836ae4494fcc4f69f6b5e8fd25c55 25-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "Tiny clean up for ConfirmAddDetailActivity"
d9662a844162bb99df65e7976dfa335e64ca5440 25-Apr-2012 Daniel Lehmann <lehmannd@google.com> Fix crash in QC during orientation change

- Also made the ContactLoader a little more robust. The cached result
is now a new instance so that it is recognized by the LoaderManager
as new data

Bug:6356584

Change-Id: I4e2eca92501308a8724b00771038555fa59b3260
ndroid/contacts/ContactLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
a84cf9274905479f09eb01dd3e7c6fbc2c5c6145 24-Apr-2012 Makoto Onuki <omakoto@google.com> Tiny clean up for ConfirmAddDetailActivity

Also improved EntityDelta/EntityDeltaList.toString() and added a log
to buildDiff().

Change-Id: I1585467a0396cc6b1b6d5746ee8c02e217cc420a
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityDeltaList.java
cfc00cbcefd2cdeb6637267c2f910749ad2b57e1 24-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Fix an NPE in PhotoSelectionHandler. mListener was always null"
9a409d474b2b4f2e4261657f864eeb866fcb8816 24-Apr-2012 Daniel Lehmann <lehmannd@google.com> Fix an NPE in PhotoSelectionHandler. mListener was always null

- Also fixed an independent crash when replacing a photo from Details
- Also renamed mListener in ContactEditorFragment to avoid name shadowing

Bug:6387900

Change-Id: I000009c6c8d4ea4a07168f99530e4ef1f648a333
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/ContactEditorFragment.java
7e596e946f09ae50e32cd47f68c65136134a7ed4 24-Apr-2012 Maurice Chu <mochu@google.com> Fixed bug when shortcut to contact has no display name

This happens when there is no displayed name for a contact (e.g., when the
contact only has a physical address but no phone number or email). This
caused a null pointer exception to be thrown when Launcher2 receives the
broadcasted intent to create a shortcut with a null display name.

If the display name is found to be empty (i.e., null or zero-length),
the string "(No name)" (from R.string.missing_name) is considered to be
the display name, which is consistent with what the People app shows as
the display name.

Bug:6346747
Change-Id: I82c9782cf88d630bd232be323b961809214da8d2
ndroid/contacts/list/ShortcutIntentBuilder.java
f471a82d9a77c4766d762c567b20667d48f0b9fc 24-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Introduce a "loading" view for phove favorite"
8ca93ed0938e00ee94b03e6d609895593cfdbdbd 23-Apr-2012 Adam Powell <adamp@google.com> Navigation adjustment for updated design guidelines and QuickContact cards

Bug 6362611

Change QuickContactActivity to task affinity "" to keep it from starting
orphaned/confused tasks.

Launch ContactDetailActivity in the same task from QuickContactActivity.

Launch app-supplied intents from QuickContactActivity in the same task.

Clear the QuickContactActivity task when launching it from a launcher
shortcut or widget. This prevents activities launched from the
finished QuickContactActivity from hanging around as the root and
failing to be reset.

Remove app-specific Up navigation code from ContactDetailActivity and
let the JB framework handle it automatically.

Change-Id: I4abebcb135b2d3269039b3307a49115c13528295
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
cda48e8c16fb638ebeea1627f5ef6c62c64677d6 24-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Fix regression; once again we can apply Gallery photo to contact."
e5d3f897689c8ba0f275c7679c72eacb190ae9b8 11-Apr-2012 Josh Gargus <jjosh@google.com> Fix regression; once again we can apply Gallery photo to contact.

The changes to support hi-res photos in Ic0cabaa5 were not applied to
AttachPhotoActivity. This CL makes the analogous changes, and many other
cleanups besides.

In addition, applying the Gallery photo works even if the AttachPhotoActivity
is killed (eg: when selecting a contact, or when cropping the photo); this
didn't work even before the regression.

The save-contact Intent which invokes the ContactSaveService no longer
needs to specify a callback Activity (it is OK to pass null if you don't
care about getting a callback).

The subclasses of PhotoSelectionHandler have been significantly simplified,
partly by pushing common behavior to the superclass, and also by directly
accessing state in their outer class instead making their own copies.

ContactLoader.Result.getEntityDeltaList() is a new instance method that
replaces more verbose incantations.

New utility class, ContactPhotoUtils. Helps with compressing Bitmaps, and
generating temp-file names used when saving hi-res photos to a contact.

Bug: 6298601
Change-Id: I2fe90c33c9fa81716f263d82ed80c0d6f63c6a7e
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/util/ContactPhotoUtils.java
b1503df1acb03a43460b986f4b64153ccca46df1 24-Apr-2012 Maurice Chu <mochu@google.com> Merge "Added menu option to clear frequents in favorites tab of Phone and People"
2fc4de31fe2d6a261d3eeaff69ea944a5383003e 24-Apr-2012 Maurice Chu <mochu@google.com> Added menu option to clear frequents in favorites tab of Phone and People

The clear frequents menu option is only visible when there are items in
the frequently contacted list. When the user selects the menu option, a
confirmation dialog is shown to verify whether to actually clear frequents.

New ClearFrequentsDialog class created in a new com.android.contacts.dialog
package that is shared by both Phone and People apps to show the
confirmation dialog of whether to clear frequents.

Bug:5475575
Change-Id: I876d3fe15f16635570f3ecb7cd8ed2a19227e316
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/dialog/ClearFrequentsDialog.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
90f40d0162e4cee5b94bf3203c059e27f6472fab 23-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Introduce a "loading" view for phove favorite

Bug: 5604799
Change-Id: I8e70ca14047f4ad3d1f976cfde21c18872e45bbf
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/util/AccountFilterUtil.java
ddb7f3025c3422f6b718dba501add97123143961 21-Apr-2012 Daniel Lehmann <lehmannd@google.com> Fix the reappearing fake action bar when returning to the Activity

Bug:6318623
Change-Id: Ifaaa29305764be93af5d34ee33cd08edfb15b3a0
ndroid/contacts/activities/DialtactsActivity.java
5c2a9cec30105f45abfc93ec9320285216175933 20-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "Fix crash in StreamItemEntry.checkDecoded()"
c6c2c43a7f7dbc1ab16901044e44ed2c983bf59f 20-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Introduce service to let phone app send the view notification"
93597c39c14073a772cf3d91362c014dfd27c9b2 20-Apr-2012 Daniel Lehmann <lehmannd@google.com> Introduce service to let phone app send the view notification

Bug: 5815920
Change-Id: Ibf2d0b9ec8bb94fd7f6f45a6f97f9a3e744add53
ndroid/contacts/ViewNotificationService.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
026914dc9d507a481a0ed1cc0f4dc92e1dff5044 20-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Call stopTone() when 0 is long-pressed"
ae48e81b8927e9fc2e7fe90670480284ee62f375 20-Apr-2012 Makoto Onuki <omakoto@google.com> Fix crash in StreamItemEntry.checkDecoded()

This method is meant to check if decodeHtml() was called prior to
getDecodedText() / getDecodedComments() calls.

The logic was flawed because HtmlUtils.fromHtml will return null
for empty strings, so even when decodeHtml() was called and mComments
wasn't null, mDecodedComments may still be null.

Let's just not try to be smart and introduce a new flag for this purpose.

Also changed the test-only constructor to a static method to make sure
it won't get called from the main apk.

Bug 6367860

Change-Id: I9a774e010666bd5a83ef916e817b50052afd325f
ndroid/contacts/util/StreamItemEntry.java
c2bda56d3f36dccf805f879aa50f871dd38d638d 20-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "Make phone number copyable on call detail"
5ff2dfcc4aa050d7a062725b562e22c2727167b8 20-Apr-2012 Makoto Onuki <omakoto@google.com> Make phone number copyable on call detail

Now the phone number is long-pressable, which starts the CAB
for copying phone number.

Tapping the phone number again while will unselect it. (Or press back or UP.)

Also tweak the highlight area for the phone number view, per UX suggestion.
Now when you press the phone number view, the entire row will be highlighted,
including the SMS action view.

Tested:
- Regular phone number.
- SIP address.
- No-caller ID, or "private number" -> The "Call XXX" view is gone, so
nothing to long-press.
- "Voicemail". The text "Voicemail" will by copied, which is iffy, but I
don't think "fixing" it is worth introducing more complication to the code.

Bug 6354066

Change-Id: I54ee67589a2e5aaba8e4a5dd9589e8c9e46c18b8
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/util/ClipboardUtils.java
a521f47799a86ff0e96c8a126dd41b1f76889f22 20-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Call stopTone() when 0 is long-pressed

At that moment '+' will be used instead of '0', and keeping the
tone seems awkward.

Change-Id: I64479c3c60fe57e8b5613b50dff1000df2355f90
ndroid/contacts/dialpad/DialpadFragment.java
c019a80dbfcd8a105225ec0196cc77f2daa7abef 19-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Introduce long-click for dial button"
38822193d64630899f742bb52069291180046d1a 19-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Introduce long-click for dial button

Bug: 6336544
Change-Id: I7bd5365e71fd476bb0d8f96e1d30f77024e7f790
ndroid/contacts/dialpad/DialpadFragment.java
68c2fff727d3f58807e3719adf4f6a4cec66cad0 19-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop reloading calllog when there's no update."
8f8870db9cbf80ea077c16639c26562ce55bd34f 18-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Stop reloading calllog when there's no update.

refreshData() is called everytime when the fragment gets
setMenuVisibility(), which requires unnecessary reload done
in main thread. Instead we should do the work when we're sure
the calllog or contacts data are updated.

TESTED (manual tests):
- make/receive a phone call
- miss a phone call and see "new" section on top, which should be
dismissed at the second look.
- go to contact detail from calllog's quick contact and edit the info.
Updated info should be available once the user comes back to calllog
- make a phone call from calllog and see update
- swipe horizontally and check animation smoothness

Bug: 6005454
Change-Id: I33128a3a4290d9c40ca7e114e7173807077f6bf1
ndroid/contacts/calllog/CallLogFragment.java
07c21e725164f1ceff030cb69f1894c89b3b9450 18-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Dragging CarouselTab now moves ViewPager at correct speed."
9492fabadbae0b06a889b3604b4249e4cf9c7a45 18-Apr-2012 Josh Gargus <jjosh@google.com> Dragging CarouselTab now moves ViewPager at correct speed.

Workaround for framework bug which calls onScrollChanged() twice,
causing the ViewPager to move twice as fast as it should.

Bug: 6354327
Change-Id: I4cb1df9523373628609fadcd98c279cbe6a47c0f
ndroid/contacts/detail/ContactDetailTabCarousel.java
03b1fe5f05dc16877a0c9bcf563824d04ca12187 18-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "Relax phone number collapser"
1e521b25a46010c20fbc040094b3af708f961e5c 18-Apr-2012 Makoto Onuki <omakoto@google.com> Merge "Fix stream item layout and failing tests"
0da88d6359b1b8c7f4998d7f58a467ad65d40f84 17-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Improve Phone UI's horizontal swipe behavior

- fix an obvious bug in PhoneFavoriteFragment, with which sort-order and
display-order preserved by the "all" adapter are just ignored. Because
of that the whole "all-contacts" section has been loaded every time
when its View is recreated.
- stop creating two Adapters on PhoneFavoriteFragment#onCreateView(),
which will cause unnecessary reload of those adapters.
- use ViewPager#setOffsreenPageLimit(2) to keep all the three fragments
during user's interaction.

Bug: 6005454
Change-Id: I8769eeba7e5568afedea097b2d388c6ed93fcf40
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ac1bc8c58ba9d03ff5a24d1094f663042b7164d9 13-Apr-2012 Makoto Onuki <omakoto@google.com> Relax phone number collapser

The current collapser basically compares two phone numbers for equality
using their normalzied numbers, but this can cause an issue when you have a
readonly contact from a different country who has a local version of their
phone numer in their profile. Even if you have an international version
of their phone number, it may be overwritten on the contacts by the local
vesion.

So let's relax it.

The new collapser merges two numbers only if the "unformatted"
(i.e. ignoring all formatting characters) version of two phone numbers
are the same.

The following numbers will no longer be merged. (All assume the user
is in the US.)
- +81-45-381-0000 and 011-81-45-381-0000
- 1-555-123-4567 and 555-123-4567
- +1-555-123-4567 and 1-555-123-4567

But the following will.
- 555-123-4567 and 5551234567

This affects:
- Contact card
- Phone number disambiguation on the phone app
- Quick contact

The list view on the phone app won't be affected, as it's done in SQL, group-by.

Bug 5779336

Change-Id: I2d1f2fcf8a8d85207383cb05a86f66c17af8acfe
ndroid/contacts/ContactsUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
205a3b6e8a0c3d1ea4843300c722a612b4a572d0 18-Apr-2012 Makoto Onuki <omakoto@google.com> Fix stream item layout and failing tests

Bug 6220226
- Fixed the stream item layout. Put +1/like in the same line as the timestamp.

Bug 6352201
- Fix failing tests

Change-Id: I771a208ba1037c361625a610d25030eb05b4b0a1
ndroid/contacts/util/StreamItemEntry.java
49ea2d297269d80ca3a02fc05480a1276ccf294e 17-Apr-2012 Daniel Lehmann <lehmannd@google.com> Make sure that invitable account types is set to an empty list

Bug:6349078
Change-Id: I8258e58fa5f5666c9d37bb51da2f282d92c3108b
ndroid/contacts/ContactLoader.java
ecb8d2943aa420346f95d681949901247c14f57c 17-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Cache the result of the ContactLoader across instances."
9815d7f98baf80ce51b0cf1f01f48a3dbb9a9db9 17-Apr-2012 Daniel Lehmann <lehmannd@google.com> Cache the result of the ContactLoader across instances.

Change-Id: I2c7d1c07720118418fbefb751beeaa812e568325
ndroid/contacts/ContactLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
afd3fbeb44f7bb9936295cc3984bcff09ca20151 17-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Restore Focus after rotation if we are searching"
2f67950eba29340173eb70ae5b9b71d706d0fe5c 16-Apr-2012 Josh Gargus <jjosh@google.com> Fix crash when entering ContactDetailFragment.

Apparently due to framework changes, an unguarded division that had been
working fine started to throw divide-by-zero errors (and then stopped again).
Guard against this, as should have been done originally.

Bug: 6339058
Change-Id: Ic7aed53e74d6c333c9f251c7aec336e03bd93d10
ndroid/contacts/detail/ContactDetailTabCarousel.java
a04dc9c9ed2812af8f4466c2a5225a37d38d250e 15-Apr-2012 Daniel Lehmann <lehmannd@google.com> Tweaked the input dialogs for the group name and the type

- Tweaked padding in type editor
- Made it so that OK is disabled in group editor
- Automatically show the keyboard
- Made the implementations a little more similar to each other

Change-Id: I2c1a131a7eb7ea3e306fdaa430be8945accf915b
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
d91320306dc1054e063e705e08416be0d5b98edb 15-Apr-2012 Daniel Lehmann <lehmannd@google.com> Use the Context of the Builder instead of the Activity's

Also I don't like fluent interfaces

Bug:6007797
Change-Id: Ia5888025ad6c89f7cd20f57f058567432c820f7a
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
e9a78643a9ded6239446e314968b9e9a195420c7 14-Apr-2012 Daniel Lehmann <lehmannd@google.com> Shortened the animation duration

Bug:5982894
Change-Id: Iae36b379d08a0e7a140953b77711b822f66d4965
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
09d66a382d1f94618b52fec11ba54d9243a95a18 14-Apr-2012 Daniel Lehmann <lehmannd@google.com> Restore Focus after rotation if we are searching

Bug:6027055
Change-Id: I3b9e23ab115c303ac2a68d8ddba55a35e2c4ed01
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
92985dbd0940c056a62b07d43f6d638be6492f5a 14-Apr-2012 Daniel Lehmann <lehmannd@google.com> Remove fake ActionBar while in search mode

Bug:6318623
Change-Id: I2392fafce400d7399cb578eb4ec549012d467b8b
ndroid/contacts/activities/DialtactsActivity.java
dfe3b7877edd0645254cb822a29ad5bee2858f83 13-Apr-2012 Daniel Lehmann <lehmannd@google.com> Merge "Made default items show first in contact details/quick contact lists"
8a0dd0f08ab11e9c6dad386e4411aeeb4c0cd73f 13-Apr-2012 Maurice Chu <mochu@google.com> Made default items show first in contact details/quick contact lists

Bug:5779998
Change-Id: If4c3ff5b8b332dccb0f07fe1662832b875233c44
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/ActionMultiMap.java
ndroid/contacts/quickcontact/QuickContactActivity.java
6b6df4774a62ecdd85cc4bc5bb00fe1422a863a0 13-Apr-2012 Makoto Onuki <omakoto@google.com> Fix crash when a dead key is pressed

Bug 6328709

Change-Id: Ie2a2ddab60a53dcfbe446bb92e7987918d311f67
ndroid/contacts/activities/PeopleActivity.java
771a72f3c60283d164d584259711bd8bff399618 12-Apr-2012 Maurice Chu <mochu@google.com> Merge "Added the ability to create a contact widget from the contact details view"
056a8464f820acb0cdd3a7670efee3474826a06b 12-Apr-2012 Maurice Chu <mochu@google.com> Added the ability to create a contact widget from the contact details view

If the contact details view is on the user profile (i.e., me), then the
menu option to create a contact widget does not show up in the menu.

Bug:5346555
Change-Id: I392ca60a53168139a30ad70d72013da28fbecf24
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/list/ContactPickerFragment.java
57babfdeba7528232f611573438176aeee644a10 11-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Stop error log during touch-up

Horizontal swipe will cause touch-up event without touch-down, so
error log for the negative touch count is just inappropriate.

Change-Id: I83c8e548d633d5df2f989711a6baac26dbdc5693
ndroid/contacts/dialpad/DialpadFragment.java
c79d01c67b316b0fd73872424a944d159d45da2f 11-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Prevent possible NPE caused by null telephony manager

Bug: 6321222
Change-Id: I8ee3e0d51c0c44c29104a2d0644cefeb9defa968
ndroid/contacts/SpecialCharSequenceMgr.java
7b2e04eb1efe9fb482b3e7e54b5a4b0d76ddb62e 10-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Reduce jank in QuickContactActivity dismissal."
ee287e9a7617fc38119a026f7e802f6d7d47113c 07-Apr-2012 Josh Gargus <jjosh@google.com> Reduce jank in QuickContactActivity dismissal.

Wait for final frame of dismissal animation to be drawn before
calling Activity.finish(). Also, handle the background transition
ourselves instead of using the "backgroundDimEnabled" property;
this saves us one extra overdraw on the entire screen.

Bug: 6209669
Change-Id: Ie1e295755185f15b5d5326050cbd990563860a6f
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/SchedulingUtils.java
5faaac89354019000ff7debfa47b932ef88ee9ca 10-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Allow setting photo on otherwise-empty local contacts."
764637aba745612a9fdc07adb99c615263916fa8 04-Apr-2012 Josh Gargus <jjosh@google.com> Allow setting photo on otherwise-empty local contacts.

Fix bug in ContactEditorFragment where, after tapping "Done",
the contact's photo is still unset. This regression is due to
the changes to support high-res photos... now that we use a
side-channel to save the photo, the EntityDeltaList doesn't
know about the change. The fix is to also create a thumbnail
and add it to the delta-list. This allows us to avoid ugly
special-case code in the editor and save-service. The high-res
photo is still saved via the same side-channel.

Bug: 6109553
Change-Id: I59bb9885eeb0260861ee167d3b5f1c7319896488
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhotoEditorView.java
e7696de1dd8d587b652c500ef4a03f20f0afefba 06-Apr-2012 Daniel Lehmann <lehmannd@google.com> Only cache small images so that they are not kicked out by big images

Bug:6202229
Change-Id: I593a575a2f65cebd3cc126d5b734887e02dacc50
ndroid/contacts/ContactPhotoManager.java
84edfd9a76657a653491faac53b5976adf9fd2cb 16-Mar-2012 Josh Gargus <jjosh@google.com> Miscellaneous contact-detail fixes.

View-pager containing contact details and social updates are now
scrolled by the appropriate amount when ContactDetailTabCarousel is
swiped. Also, fix "bounce-back" where the carousel improperly
selected the wrong tab (i.e. the one you just swiped away from).
Finally, make it possible to start a swipe back to the "about" tab
from the "updates" tab (previously, you had to initiate the swipe
on the partially-revealed "about" tab).

In ContactDetailFragment, only make photos tappable when either:
- the photo is settable (i.e. the contact is not read-only), or
- the photo should expand when tapped.

Bug: 6009463

Change-Id: I291e0c42b1d77a11babc7a9cb282a19cdb305025
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ViewOverlay.java
fc80b91835a5008b8e79638d678c817a432218e4 04-Apr-2012 Flavio Lerda <flerda@google.com> Merge "Fix cursor leak."
9c6c9e766754396c201e40bb92a34328db87fd80 04-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Let users change ringer volume in dialer."
2c27322f876ef63f18f93d25c844266bda650d05 03-Apr-2012 Flavio Lerda <flerda@google.com> Fix cursor leak.

A request for the list of calls requires two queries and hence two
cursor to be created, one for new calls and one for old calls, and then
merged.

When a new request is dispatched, the old cursor are closed. However, it
is possible that one of the queries completed after the new request has
started. This means that we might merge two cursors that do not
correspond to the same request. Moreover, this may lead to a resource
leak if the same query completes and we override the cursor without
closing it first.

To make sure we only join two cursors from the same request, add a
request id and make sure we only process requests with the correct id.
Since we close and null the partial cursors when issueing a new request,
and we ignore results from previous requests, we are guaranteed we
always merge two cursors from the same request.

Bug: 6153390
Change-Id: Ib21cd7ec938583d6d9615e43d5394173870599ed
ndroid/contacts/calllog/CallLogQueryHandler.java
a9e2317b4f2ac5a18f8d9020605ea3b166d550b6 03-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Let users change ringer volume in dialer.

.. and use STREAM_DTMF for stream type used with dialer.

For bug 6213100 : When volume is changed in phone dialer application,
the media volume is changed.

Bug: 6213100
Change-Id: I7ae8bde5f86c7ea70c8b075f2047b76a5ebb7c0a
ndroid/contacts/dialpad/DialpadFragment.java
9bd8c3ab3fcb27a6dfc0e4897427e271a414df75 03-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Use reference count for touch down/up

ToneGenerator#stopTone() shouldn't be called until the last touch up
event occurs.

Bug: 6259150
Change-Id: Ief8d4183e5396dbeed40b71d7b5dde1c567d59d7
ndroid/contacts/dialpad/DialpadFragment.java
f8494db8cffbb27ef6dbf147d5f1d44ec96f64c1 02-Apr-2012 Daniel Lehmann <lehmannd@google.com> Decode JPEG on background thread

Bug:6202229

Change-Id: I5cb52943ed8db6b22cd5fe784f692ab00ab323ae
ndroid/contacts/ContactPhotoManager.java
f1abde874100cafd59e558b5b49cbf4db2fa47e4 31-Mar-2012 Daniel Lehmann <lehmannd@google.com> Merge "Various refactorings to prepare proper big picture loading"
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
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/TransformableImageView.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileFrequentFragment.java
ndroid/contacts/list/ContactTileFrequentView.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/ContactTilePhoneFrequentView.java
ndroid/contacts/list/ContactTilePhoneStarredView.java
ndroid/contacts/list/ContactTileSecondaryTargetView.java
ndroid/contacts/list/ContactTileStarredView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/util/BitmapUtil.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/util/ViewUtil.java
ff27a34a82f1c4ab79dca567ba2f9923789cb006 30-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Skip ADN section when the phone doesn't support it."
11812c59ee140d62eaf3a8d826d2018767d490c5 30-Mar-2012 Daniel Lehmann <lehmannd@google.com> Don't move "Provide a year" around on screen anymore, center instead

- Also fixes the title when no year is used. Doesn't show year "1' anymore

Bug:6009385
Change-Id: If0a23d852112970456dc3f5c4061d5c578fff48a
ndroid/contacts/datepicker/DatePicker.java
ndroid/contacts/datepicker/DatePickerDialog.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/util/DateUtils.java
ndroid/contacts/util/MoreMath.java
e382df0483f7e490bdb52b8044a206fb7310aec3 29-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Skip ADN section when the phone doesn't support it.

Must be after I52e570ef5d175ed8ae971c5f9889496e30f2c528

Bug: 5487135
Change-Id: Id3b2bcc1cbab591fa25781e5afbd39b020fdefd1
ndroid/contacts/SpecialCharSequenceMgr.java
2f21c44104f4c1376ef2147c472555f43990af26 23-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Send Intent when CallerInfoCache should be updated

The cache should be updated when:
- custom ringtone is set,
- send-to-voicemail is set,
- a contact is edited and the change is submitted
(discard shouldn't cause cache update)
- contacts are joined, or separated

Bug: 1735194
Change-Id: Icd4fea5fd09cc3adcffc5364705ab40e92f4e6e4
ndroid/contacts/ContactSaveService.java
ndroid/contacts/util/CallerInfoCacheUtils.java
6f5557e3dc3cd12182026bdfea17b15d4d9b7dfc 21-Mar-2012 Josh Gargus <jjosh@google.com> Improve frame-rate of quick-contact opening animation.

Fix consists of putting the quick-contact into a hardware layer for
the duration of the animation.

Rename AnimationUtils to SchedulingUtils to avoid conflict with
framework class of the same name.

Bug: 6000249
Change-Id: Ie627ddb947582b7860f5bd0de30484c1d1d4f428
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/AnimationUtils.java
ndroid/contacts/util/SchedulingUtils.java
51f9c0f2f2923d14cced5096b40f017dd87b68d3 20-Mar-2012 Josh Gargus <jjosh@google.com> Fix jank when expanding photo in ContactDetailActivity.

The bug is caused as follows. Tapping the photo invokes a
PhotoSelectionActivity. When it initially sets the photo, a relayout
request is made, which causes a jank if the animation is already
underway.

Instead, we now wait for the layout before starting the animation.

Add new utility class with static doAfterLayout() method, since this
code was duplicated in a couple of places.

Bug: 6000382
Change-Id: Ic32a3db1f8c0be99fe0c160debede71f882c73e7
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/util/AnimationUtils.java
187c8167d77687fbc04237c9ac1e87564b2d5f33 14-Mar-2012 Josh Gargus <jjosh@google.com> Miscellaneous contact-detail fixes.

Fix bug in carousel "Updates" tab, which would turn black when swiping
it all the way to the left. This was caused by a small negative alpha
being computed, and some incautious integer arithmetic to transform it
for use in setBackgroundColor(). Fix clamps the alpha value between 0
and 1 (using newly-introduced MoreMath class).

Fix visual glitch where the "Updates" label displays the "pushed" glow
when tapped.

Bug: 6009463
Change-Id: Iee041ee7793f198f1d51ea5e7c5bbcb07b9a41df
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailPhotoSetter.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailViewPagerAdapter.java
ndroid/contacts/util/ImageViewDrawableSetter.java
ndroid/contacts/util/MoreMath.java
498ecd41e7ed1436378dc337205006454858c398 15-Mar-2012 Josh Gargus <jjosh@google.com> Merge "Fade photos in contact-details and quick-contacts."
9758a92fac3e9f64892d893c992f6020d7fe3bfd 09-Mar-2012 Josh Gargus <jjosh@google.com> Fade photos in contact-details and quick-contacts.

Introduces new helper class, ImageViewDrawableSetter, which remembers
the previously-set drawable, so it can transition from that to a new
one.

Change-Id: Ie6ee6d5ccc376cc9d5b7aa945f2622b173bf09e8
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/ImageViewDrawableSetter.java
547c91765f432ce34da0044e55f1cc0a5da2398e 09-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Move fake menu buttons to DialtactsActivity

Currenty fake menu buttons are in DialpadFragment, which requires the app
to render split ActionBars during users drag events. Because of that
we have a rendering problem around horizontal swipes (bug 6126934: Lots
of stutter in animations between Dialer tabs).

This change moves those buttons to DialtactsActivity and delay menu
creation until really necessary.

This change also introduces some verbose logs, to detect possible new
problems or bug 6041917.

Bug: 6041917
Bug: 6126934
Change-Id: Ic2d8d82461e6d1916f2309b775f47c47d310ad1a
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
228eb5eede0a33efe6c546757c3504875cbe33c3 09-Mar-2012 Daniel Lehmann <lehmannd@google.com> Merge "Replace enum by int"
52aa32db432085ab2cd4864bd1edd1ef843da867 09-Mar-2012 Daniel Lehmann <lehmannd@google.com> Replace enum by int

Change-Id: I0d7aafa509f6d2747e78493b67dc65de52c9bb68
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
3b9902ae34a62987d06b96d7e319de39de059976 09-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use SparseArray instead of HashMap in vCard code"
7764901f2fa985fe7f4b1c9663aa916b145c093b 09-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Prevent ProgressDialog from causing crash."
353934b49072b0deaec61481f810a2222b9e875d 08-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Prevent ProgressDialog from causing crash.

This is a minimal fix (or a workaround) for the bug 3129933:
SpecialCharSequenceMgr can crash Contacts app with a bad
Dialog.dismiss() call

Ideally we should merge two implementations into one and introduce
better cleanup mechanism for the whole class. Maybe we want to
instanciate the whole SpecialCharSequenceMgr, while it will cause
a lot of work. Note that this crash won't happen on Phone side,
so this kind of cleanup won't be needed there.

To keep the two implementations basically same, this change just has
*static* cleanup() method in Contacts part of the class.

Bug: 3129933
Change-Id: I99e4e1494f91f58f10f6ebbf814d2c8695e021f6
ndroid/contacts/SpecialCharSequenceMgr.java
ndroid/contacts/dialpad/DialpadFragment.java
208f0be85dbc00b30e300f22556c30af2580e699 08-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Use SparseArray instead of HashMap in vCard code

TESTED:
- prepare three vCard files: large.vcf, middle.vcf, and small.vcf
- import them orderly
- cancel middle.vcf during importing large.vcf
- after finishing everything, check
-- the service finishes
-- only large.vcf and small.vcf are imported

Bug: 6013599
Change-Id: I00c3fc1ee804001ccc937ea13a5755daca938f89
ndroid/contacts/vcard/VCardService.java
808111fa7f9df0b6465966430df6f4754782a481 08-Mar-2012 Daniel Lehmann <lehmannd@google.com> Merge "Fixed various issues around cross-fades"
8ae7c897a7b833280c1fb79167e8ca49400968e5 08-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop using private resources"
cf3d9f04955a8ec3cb405b8a4ddcaddcece2a245 08-Mar-2012 Daniel Lehmann <lehmannd@google.com> Fixed various issues around cross-fades

* Fixes the layout in portrait tablet
* Introduces the same cross-fade when going from group to group
* Reduces memory consumption by creating the transition-bitmap on demand
(takes 40ms on Xoom)
* Simplifies the layout files by removing some configuration options
that we aren't using anyway
* Split the detail views for contact and groups, so that the animation
of one doesn't affect the other

Bug:6117161

Change-Id: I2509c9387de6b1ac60dbc9b694564291910bde72
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/widget/TransitionAnimationView.java
3a042e58720c92f3065564bb686f35d69a8e70da 08-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Launch contact detail screen as a new task

This will have the detail screen appear as a separate task in
"recent task" screen.

Bug: 5039625
Change-Id: Id686650e0d6dafa5afaab53312739fe8fee326de
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/list/ContactTileSecondaryTargetView.java
962e733a3a3df31a38b610a451a143a51330f1ac 07-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Stop using private resources

- call_background.xml points to one of private resource, but the method
relying on the xml isn't used any more. Let's remove the entire
method.
- use local version of action_menu_overflow_description

Bug: 6063210
Change-Id: I9ea6788ca4232492a8c62a8aa8460159314abee4
ndroid/contacts/list/ContactListItemView.java
3860e8dd03ac610fadc27baee30f836597eca387 07-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make remove-previous-digit logic aware of cursor position"
674b91de87b4f7d3aeafea2370705cecfdff63d7 06-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Make remove-previous-digit logic aware of cursor position

If we long-press '0' at the middle of digits intending to insert
'+', we cannot it easily because current logic doesn't consider the
current cursor position. This change will fix the behavior.

Bug: 6041729
Change-Id: Iaaea5addf17f332710c3522e27279a7d2448286b
ndroid/contacts/dialpad/DialpadFragment.java
f4cab58d2d5338ede995e9e7a59de6f8759f93d0 06-Mar-2012 Daniel Lehmann <lehmannd@google.com> Merge "Added some smoother transitions to the editor"
ca87e9c598929b5b6a62da9b80d2114168e24274 06-Mar-2012 Daniel Lehmann <lehmannd@google.com> Added some smoother transitions to the editor

- Transition when removing a field
- Transition when pushing the "Add organization" button
- Transition for visibility of "Add xxx" when entering text
- Added pushed state on "Add organization" button
- Increased the height of "Add xxx" to match the expanded size for simple
Editors from 40dip to 48dip

Bug:6009430
Change-Id: Ia4524006b528f49d587c6277ecc98b11f77ddc0d
ndroid/contacts/editor/EditorAnimator.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
bc4cacd7e31a4acedaaf651f6f16edd2015f43d6 06-Mar-2012 Josh Gargus <jjosh@google.com> Merge "Avoid spawning extraneous threads in CallLogAdapter."
64ecf8e059629f611c36b45aa857f46ac7c90f9d 01-Mar-2012 Josh Gargus <jjosh@google.com> Avoid spawning extraneous threads in CallLogAdapter.

The call-log was leaking one or two threads every time you swiped
to it in the view-pager. This is addressed by:
- strong synchronization of thread creation/destruction
- idempotence: reuse existing thread instead of creating one

Bug: 6086303
Change-Id: Id3de706f0961f353fe3588bac2e11e335167786a
ndroid/contacts/calllog/CallLogAdapter.java
54445e8015abb485c5be3c1665254a3a9aee63d6 02-Mar-2012 Makoto Onuki <omakoto@google.com> Merge "Optimize photo cache invalidation a bit"
1f0239e78efd358e2babd59610843d8eee86efb7 28-Feb-2012 Makoto Onuki <omakoto@google.com> Optimize photo cache invalidation a bit

Bug 5623200

Change-Id: I098429b192c6ec25043fa92170ce5f5b53563cff
ndroid/contacts/ContactPhotoManager.java
2eb481ad8e4b87ce3f5b30ecfd3bd0f9969ba67c 29-Feb-2012 Daniel Lehmann <lehmannd@google.com> Merge "Refactoring: Changed ContactLoader to be an AsyncTaskLoader"
3693a9b92cf868fab3e0e0c7f2492e2213c634fc 29-Feb-2012 Josh Gargus <jjosh@google.com> Merge "Fix call-log auto-scroll-to-top behavior."
b641aa67f13044afef3dc1e9effbd23f7457fad6 24-Feb-2012 Josh Gargus <jjosh@google.com> Fix call-log auto-scroll-to-top behavior.

The auto-scroll-to-top behavior should only occur when displaying the
call-log immediately after a call finishes. It was happening too
often, but is now fixed.
Bug: 5421613
Bug: 4088575

Workaround for bug whereby the smooth-scroll to top is broken when
invoked immediately after setting the list position (as is done to set
the position to "5" so that the smooth-scroll doesn't traverse the
entire list).
Bug: 6086980

Change-Id: I8dcc6f2cf84935875697b2454ba602bed03b66c4
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
72ff4dfacf2389d3fcd05a4f008f78a396bd58ae 29-Feb-2012 Daniel Lehmann <lehmannd@google.com> Refactoring: Changed ContactLoader to be an AsyncTaskLoader

Change-Id: Iaa587907b2933aa084974e181f24121bc57b4cfb
ndroid/contacts/ContactLoader.java
30950a0db60baa57ef7b5244e95b3add0d2ed825 29-Feb-2012 Daniel Lehmann <lehmannd@google.com> Remove async photo loader (it was never used anyway)

Change-Id: Ief3dfdf50a617724e3f4ce086305cc4240e9b25d
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
3d0b3b4a36dd2ee2e04970bc371c4c87d853eca8 29-Feb-2012 Daniel Lehmann <lehmannd@google.com> Merge "Replaced HashMaps with LongSparseArray"
18958a29b3eddb6fc42cf651ec0eed27103f534d 29-Feb-2012 Daniel Lehmann <lehmannd@google.com> Replaced HashMaps with LongSparseArray

- Also fixed a compiler warning in SuggestedMemberListAdapter
- Fixed two hints in ContactSaveService

Change-Id: Ia1d8ad7efba5f54f94c762a779f7b228e79ca978
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
db3bb2b14dfcce4baf353e20ec3db6eafdcc22eb 29-Feb-2012 Makoto Onuki <omakoto@google.com> Merge "Updates fragment dejunk"
da9cdc10fca76c960b43923d7da3abc627655fef 28-Feb-2012 Makoto Onuki <omakoto@google.com> Updates fragment dejunk

- Reuse stream item views. Simplified the view layout for this.
(In this CL we still inflate views, rather than creating them in code.
Even without doing that performance now seems good enough.)

- Decode HTML into CharSequence in ContactLoader
- Removed ContactTileImageContainer and created
LayoutSuppressingImageView and LayoutSuppressingQuickContactBadge

Bug 5982899

Change-Id: I5cbd816a290a50fca9a964b921d934061915aee1
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/list/ContactTileImageContainer.java
ndroid/contacts/util/StreamItemEntry.java
ndroid/contacts/widget/LayoutSuppressingImageView.java
ndroid/contacts/widget/LayoutSuppressingQuickContactBadge.java
b867f357aed9c4727c297c3796b55787259122c8 29-Feb-2012 Daniel Lehmann <lehmannd@google.com> Merge "Reintroduce cross-fade on tablet when going from one contact to the next"
2f41fe6bcc8d055bf53ad070425552fad57dff21 29-Feb-2012 Daniel Lehmann <lehmannd@google.com> Reintroduce cross-fade on tablet when going from one contact to the next

Bug:6009407
Change-Id: I6044963d1b4737ebdd2d3b5fded71281841f0d81
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/widget/TransitionAnimationView.java
5783bfee0d34903fd25f507e521830771f2bb108 28-Feb-2012 Josh Gargus <jjosh@google.com> Merge "Reduce call-log jankiness while scrolling."
912fb78115280ddaa484696ddf853e12c865921f 28-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use setPressed() for better touch-down behavior"
6f1a062281c27b569060295d84cda0cadf5335f6 17-Feb-2012 Josh Gargus <jjosh@google.com> Reduce call-log jankiness while scrolling.

Before this fix, we were triggering many extraneous relayouts.
The cause was that we populated the ContactInfo cache with empty
entries; when we compared against these to see if they had changed,
the answer was always "yes". This happened even in bindView() when
scrolling new rows onscreen, with predictably janky results.

Bug: 6077964
Change-Id: I46b7795b38030b0d90f9d65c05c02dbad5776b37
ndroid/contacts/calllog/CallLogAdapter.java
21ed0017276842626eae6cf40be4c32bc311e724 25-Feb-2012 Josh Gargus <jjosh@google.com> Merge "Contact-editor now immediately shows proper editor for new fields."
be5650190106f2147f5782e6c7b3295b5668a5ee 24-Feb-2012 Daniel Lehmann <lehmannd@google.com> Guard against an NPE. Fixes a monkey bug

Bug:6058383
Change-Id: Ia8141d373929a8b1ad7e848db6c404cbd3eadcf1
ndroid/contacts/interactions/PhoneNumberInteraction.java
e23a16e17a01859f249f25c119017879cd88dcb0 24-Feb-2012 Daniel Lehmann <lehmannd@google.com> Fixed some Lint warnings (and fixed some formattings).

This doesn't change functionality (didn't find anything broken here)

Bug:5964592

Change-Id: I7109c632096caafbf99434762dd1a690424058df
ndroid/contacts/activities/TransactionSafeActivity.java
f733e90e613170bd0f1ebf67119e6d794a5d2fab 24-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix ActionBar showup problems with drag event."
e983608aa6141b960f705c01742112c56303398c 24-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Fix ActionBar showup problems with drag event.

This happened partly because of the bad combination of I95f25c8a36d099
and Ia6f377a720dac9, which is probably not relevant to bug 6041917 nor
bug 5965438, but *may* be related.

Change-Id: Ie462d1af22da13a2e3ead47bfe5fed9c2a277a71
ndroid/contacts/activities/DialtactsActivity.java
ffa55367d2eb076145cb042b3c0a5d751236fee4 24-Feb-2012 Daniel Lehmann <lehmannd@google.com> Merge "Fix empty contact"
69827088e19e7e02930ca9e017d9933761a46728 14-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Use setPressed() for better touch-down behavior

After I59f472a9d864f4abcc4f692fef0a13f004348432, we are able to rely
on setPressed(true) for "touch-down" behavior.

- Rely on setPressed()
- stop overriding shouldDelayChildPressedState() for having system-wide
delay behavior.
- start sound on setPressed(true)

Bug: 5965380
Bug: 6007908
Bug: 5749440
Change-Id: I5dd440eee1d70992d0db7835c215053904ac3e20
ndroid/contacts/activities/DialtactsViewPager.java
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/dialpad/DialpadImageButton.java
e09037ea7447a512065e2407670a7753de57a20e 23-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> resolved conflicts for merge of f8bb328e to master

Change-Id: I95f25c8a36d0992d40f6927a3e059eff67bff4a6
ba69014263332f2056263cddc41cc6d7cfd7b7ca 23-Feb-2012 Daniel Lehmann <lehmannd@google.com> Fix empty contact

Bug:6023712

Change-Id: I0437eb5a010b392b840795d16d5b03411394b3ef
ndroid/contacts/editor/ContactEditorFragment.java
f30723782e801deaf159aea2443e9507596ef11d 23-Feb-2012 Daniel Lehmann <lehmannd@google.com> Don't re-use the SaveMode in the group editor anymore.

As we only ever use SaveMode.CLOSE, I decided to remove this entirely.
We don't support re-loading at the moment, so it seems wrong to have
code in there that pretends to be able to do it.

Also I cleaned up some Eclipse warnings, so that the side-bar has fewer
yellow lines

Change-Id: I263b716c2edc98682bd5f5d1bc2b18ede15d7ced
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupEditorFragment.java
2ef051483642ddc7bdfbe2adbf7b843844c69c93 23-Feb-2012 Daniel Lehmann <lehmannd@google.com> Merge "Turn off Spinner's state management. It kicks in after our own management"
5f0cd2cfb2b4b2fcb51ac2e85f035559e83614bb 23-Feb-2012 Makoto Onuki <omakoto@google.com> Merge "Fix alternate intent flags on quick contact"
13860f3f243a536646b607eda2e3dfa882228964 22-Feb-2012 Makoto Onuki <omakoto@google.com> Fix alternate intent flags on quick contact

Bug 5571269

Change-Id: I53292e4e3c438c76a0bc07dc6e0864efedd69572
ndroid/contacts/quickcontact/DataAction.java
357ef4265d9a9b4b2d497fd2974d6c46669b796d 22-Feb-2012 Josh Gargus <jjosh@google.com> Merge "Improve appearance of "Contacts to Display"."
67713b3e6e3af70020350e2650738389f19c073e 22-Feb-2012 Daniel Lehmann <lehmannd@google.com> Turn off Spinner's state management. It kicks in after our own management

Bug:6047012
Change-Id: I8019f25b194e7edf7d2cd61c679c9622d93418ff
ndroid/contacts/editor/LabeledEditorView.java
b55b4b29ddac106c55021c59b6eddc9eb91ae3be 22-Feb-2012 Daniel Lehmann <lehmannd@google.com> Merge "Fixed a typo"
2d73de04f64eb37e8812e19e2a9484e9b58c9ed4 22-Feb-2012 Daniel Lehmann <lehmannd@google.com> Fixed a typo

Change-Id: I4a0e4e52f08582db3cc619b39c913f288e5cc52c
ndroid/contacts/ContactPhotoManager.java
3044ba4b87b515f24e5c51a5ae88550e134eaf14 17-Feb-2012 Josh Gargus <jjosh@google.com> Improve appearance of "Contacts to Display".

Use a radio button to indicate the selected item, rather than showing
black text on a blue background. Also, use a lighter color for the
secondary text, and move it up a notch.

Bug: 5972362
Change-Id: I72a800a6ba41e07e378b8f15d2a86251eade37ff
ndroid/contacts/list/ContactListFilterView.java
28eadab78531e22a0d9fa22fbbcd61c451005890 22-Feb-2012 Josh Gargus <jjosh@google.com> Fix bugs in hi-res contact support.

Serialize updated photos and restore them upon device rotation; this
addresses bug 5999990.

Also, be sure to clear updated-photo entry when the user chooses
to remove the photo; otherwise it will still be saved when the user
exits the ContactEditorFragment via Back/"Done". This wasn't yet
reported as a bug.

Bug: 5999990
Change-Id: I9a01d4b9e40fec0e764156271a292588ed1b7154
ndroid/contacts/editor/ContactEditorFragment.java
902170690532fceb9a3e13ad00f6aff00f95b10f 16-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Dialpad redesign.

TESTED:
- Launch Phone UI (previous tab: dialer)
-- Fake menu items should be available
-- Bottom half of the dial button should be clickable
- Launch Phone UI (previous tab: calllog, phone favorite)
-- Real ActionBar should be visible
- Swipe around three tabs.
-- ActionBar (and real menu buttons at the bottom) should be
visible except when dialer screen is settled down in the
screen. During horizontal swipes, ActionBar should look
persistent.
- Click three tabs at the top of screen
-- exactly same as "swipe around three tabs" case above.
- Go to search, and go back from the search (from three tabs)
-- ActionBar should appear/disappear appropriately.

AND, try the sequence above during a phone call, which will
expose DialpadChooser.

- With DialpadChooser, fake buttons should not appear; they should
appear when the user explicitly choose "add call" item.

KNOWN ISSUE:
- Do horizontal swipe from CallLog to Dialpad. Before the screen
settling down itself, start swipe from Dialpad to CallLog again.
-- Bottom ActionBar disappears during the migration (which is
unexpected), because there's no way for the app to determine
if the user is dragging the screen. The app wrongly detects
the case as ViewPager.SCROLL_STATE_IDLE. We won't get the second
ViewPager.SCROLL_STATE_DRAGGING event during the second swipe.

Bug: 6021918
Change-Id: Iaca971a195144a16f7853e3555375922ad54b81b
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
26918da1650c1ff7b6f92deb978ab976525c811a 03-Feb-2012 Josh Gargus <jjosh@google.com> Contact-editor now immediately shows proper editor for new fields.

Previously, when adding a new field via "Add new" or "Add another
field", an empty field appeared, but the user couldn't edit its
contents without first tapping on it. Now the approperiate editor
UI pops up immediately (eg: when you add a new "event", a date-picker
pops up).

Bug: 5070818
Change-Id: I882a8202a6a76f73f3efd24734b0e0acdbcecac0
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
c42ea4eca298419484444a57bfc2da2c83e7adb7 17-Feb-2012 Daniel Lehmann <lehmannd@google.com> Use pushed-state on "star"

On phone layouts, it is now a proper actionbar button (not custom anymore)
On tablet layouts, it is now an ImageView, so that we can center the icon

Bug:6008899

Change-Id: Ida56f959d129480e799fa8a4c477272e4de70eac
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
7b1255eab0729fd43a8aae9933bd79afa50a53a9 15-Feb-2012 Daniel Lehmann <lehmannd@google.com> Replace HashMap by SparseArray

Bug:6013599

Change-Id: Ia3592bf4a4e348bdee822e4f34180b4f64807d11
ndroid/contacts/model/EntityModifier.java
2a45e35ab3273c8901d9df3671e51614dc0250c6 14-Feb-2012 Daniel Lehmann <lehmannd@google.com> Animate show/hide updates

Also fixes the vertical text position which was wrong due to the shadow

Bug:5268733
Bug:5204655

Change-Id: I011a482500e13b1b189c7e27dbcd40e2e1f42318
ndroid/contacts/ContactLoader.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactLoaderFragment.java
499ea32aa25a6b209a7745ab47755b9c86fefaa0 24-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Use Constants class appropriately for sip/tel Uris.

Change-Id: I822634c6e0dc4ae6bd407639730763b658170f3b
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/NonPhoneActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
7b55ad99da9b90e312665bf2604582d664a3b217 02-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Delay clearing digits until onStop()

It is a bit astonishing when users see digits being cleared
just after pressing "call" button on dialer screen, while
we're sure we should clear the previous digits entered when
a phone call is made.

Because onDestroy() may not be called even after the Activity's
being done, check the flag on onResume() too.

TESTED:
- make a phone call
- access voicemail service
- enter phone number and exit dialer without calling
- play with swipe (which may destroy the fragment)

Bug: 1745781
Change-Id: Ie0bc0ee8d5b1bb55bfea3b394b86cd31799c8238
ndroid/contacts/dialpad/DialpadFragment.java
3063bbd0299fc0208eb6ff3e2d0b2f0679d404c3 03-Feb-2012 Daniel Lehmann <lehmannd@google.com> Tweak QuickContacts appearing animation. By using scale 50%, the
appear animation should look a bit smoother

Change-Id: I3eefce81bb23ec7e0bdbf224378b1cccfcf1c078
ndroid/contacts/quickcontact/FloatingChildLayout.java
50a40ddbe06c814329646fa7bb810b332fdd395a 03-Feb-2012 Daniel Lehmann <lehmannd@google.com> Merge "Fade avatar images in instead of making them pop"
7a46cde8e9aa225e0da7b066f4a418d088ea1ffc 02-Feb-2012 Daniel Lehmann <lehmannd@google.com> Fade avatar images in instead of making them pop

Bug:5921986

Change-Id: If5e003dafc4e13f85c885d440e9e8d3fa73f89f9
ndroid/contacts/ContactPhotoManager.java
a7cd8e67723c2973e698117332379afee53d127f 02-Feb-2012 Josh Gargus <jjosh@google.com> Highlight search prefix in Phone app.

The People app highlights the matched search prefix, but the Phone
app did not. Until now.

Bug: 5788053
Change-Id: I05f42acdad02d7d80d8a68b5a79fb11f04737e0d
ndroid/contacts/list/PhoneNumberListAdapter.java
60f9b2be12df79759203a9933c7b1711c74d6345 01-Feb-2012 Josh Gargus <jjosh@google.com> Merge "Fix failure to save a new contact with a photo."
816f682c396282f2107dd4fad77dbacd157381da 01-Feb-2012 Makoto Onuki <omakoto@google.com> Merge "Fix proguard flags"
ef15c8e4a1093ac9d6bb0e9aed10a130e8e79be5 31-Jan-2012 Josh Gargus <jjosh@google.com> Fix failure to save a new contact with a photo.

When saving a new contact, we don't know the raw-contact id and
therefore use a "random" negative number. If the new contact has a
photo, we attempt to save it at a bogus path generated from this id.

This manifests as a NullPointerException due to a bug in our
exception-handling code. However, fixing this bug isn't enough
because we still need the photo to save properly.

To achieve this, we check for a negative raw-contact id before saving
the photo. If we detect one, we replace it with the newly-generated
id that we just obtained when we first saved the raw-contact.

Bug: 5937734
Change-Id: Icba2be0e21885fcb418ea9c8c12ebc9820f33bfd
ndroid/contacts/ContactSaveService.java
0ca11a3198ad51f2afb8d83c45f5222fb19b6a7c 30-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Restrict voicemail access in Airplane mode.

In Airplane mode we may not rely on
TelephonyManager#getVoiceMailNumber().

Use setMessage instead of setTitle for dialogs with short error
messages.

Bug: 5892521
Change-Id: I4862d6de4e34c20815c8cddf4ae8c8b67c7b3782
ndroid/contacts/dialpad/DialpadFragment.java
a0290a4baab4297303cab3664c7abfd548f2e301 27-Jan-2012 Makoto Onuki <omakoto@google.com> Fix proguard flags

Removed problematic *ForTest and use NeededForTesting instead.

Change-Id: I61517b6ea30da2461f541ceca19f04f24f8624da
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/widget/CompositeListAdapter.java
e286c04b300feb9e4bdd13281a764103c1548323 27-Jan-2012 Josh Gargus <jjosh@google.com> Merge "Support for high-resolution contact photos."
e692e010ca02200087997280e7c239ebf94aa8f9 18-Jan-2012 Josh Gargus <jjosh@google.com> Support for high-resolution contact photos.

Rather than getting a bitmap directly from the gallery app, with
this change we create a temporary file and request that the photo
be stored there. This avoids running into bundle size limits when
passing large, uncompressed bitmaps back from the gallery.

After reading the photo out into the Contacts app, we use the
openAssetFile API to stream the large photo data into the
Contacts Provider. Note that we do this rather than having Gallery
write directly to the provider because we have no guarantee that
the Gallery (or substitute) app has WRITE_CONTACTS permission.

In the Contact Editor, the image is not permanently stored until
the contact is saved. This avoids needing special logic to handle
the case where the contact is newly-created.

Fix bug 5907233 en passant... the vestiges of some partially-
expunged code were causing the ContentEditorFragment to not
apply a selected photo.

Bug: 5786849
Bug: 5907233
Change-Id: Ic0cabaa50c08d6a9a0b730698c92f4092192438a
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhotoEditorView.java
cd564c953280182b64b2391c49e36a8c858f1e0d 09-Jan-2012 Nick Pelly <npelly@google.com> Update Contacts for improved NDEF APIs

o Can always assume one NDEF message with one NDEF record is present.
o intent.getType() will always be lowercase.

Change-Id: I59541ba55d378a9f2bb6ed0c24b2f8cc0f4474dd
ndroid/contacts/NfcHandler.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
986387f614628a83e8d690eedf9d0383c0c53da7 24-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop using call origin when a dial intent is used"
e82a24dd8201973fe79b9414d1583359a4847dcf 24-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Stop using call origin when a dial intent is used

"Call origin" was introduced in I7b88b245e82e, to have
the app remember which tab is chosen when user's making
a phone call.

When a dial intent is used by 3rd party app, the tab
selection is done automatically and thus we should not
use the mechanism because the user didn't make a choice.

TESTED:
incoming calls
-> go back to calllog

outgoing calls
- make a phone call from dialpad -> go back to dialpad
- make a phone call from favorite -> go back to favorite
- make a phone call from calllog -> go to calllog
- make a phone call from call detail -> go to calllog
- make a phone call from People UI -> go to calllog
- make a phone call from dialpad and launch Phone UI
again during the phone call
-> go to calllog (strictly, "undetermined")
- make a phone call from contact card (reached via
phone favorite) -> go to calllog
- make a phone call from favorite and add another
person to the phone call via in-call ui
-> go back to "favorite" (strictly, "undetermined")
- make a phone call from dialpad or favorite, bail out the
in-call UI. Have the recipient hang up the call.
Then have an incoming call again. Hang up the second phone
call.
-> go to calllog

new test for this fix:
- make a phone call per 3rd party's request
-> go to calllog

Bug: 5728105
Change-Id: I48f03de752917c13046da629d9871155bcde2b10
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
ced983d7a816256d93fdea1f81e63e4598c18875 10-Jan-2012 Josh Gargus <jjosh@google.com> Better wording when choosing photo from PhotoSelectionActivity.

When there is already a photo for a contact, "Take photo" and
"Select photo from Gallery" don't sound as good as "Take new photo"
and "Select new photo from Gallery".

Bug: 5738108

Change-Id: I43e13774079695b0ecebc5d67576e2ea831706a0
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhotoActionPopup.java
80dec847e1950cb78899877f66a6d56c1a8b9672 19-Jan-2012 Makoto Onuki <omakoto@google.com> Merge "Cherry-picking I25bf497e for MR1" into ics-mr1
69579e2b74e4e03855890be9d57fa02bea3b6932 14-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Make call detail history items unclickable

They never become selectable.

Bug: 5542478
Change-Id: I6fd2c2bdd458b3fe81f6d32343dc47ed9a2fd820
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
105639dcdbc38e14bb4a356c78d2423498e8e545 14-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Revert "Disable shouldDelayChildPressedState()"

This reverts commit 60919fb24a60093898900ce0ab46f1542cca9f64.
ndroid/contacts/activities/DialtactsViewPager.java
231a31c020482f1f7e1ad994fb13ebb582782274 13-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> am 91d8ff36: am 60919fb2: Disable shouldDelayChildPressedState()

* commit '91d8ff36ee778a816db02fdeeebfa7dfb0e40ada':
Disable shouldDelayChildPressedState()
60919fb24a60093898900ce0ab46f1542cca9f64 12-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Disable shouldDelayChildPressedState()

Bug: 5749722
Change-Id: I69f64372763a24599ed654fe99a760aaebc8ca18
ndroid/contacts/activities/DialtactsViewPager.java
b80088eef9974ebd77734cc377933a3d2c40887f 13-Jan-2012 Makoto Onuki <omakoto@google.com> Merge "Use query parameters for account filter..."
574ad60004ce67e10982d2ead083c7fd95ca911e 12-Jan-2012 Makoto Onuki <omakoto@google.com> Cherry-picking I25bf497e for MR1

Fix for crash in contact card with null group name

Also supress showing "null" on the group editor.

Bug 5698683
Bug 5847463

Change-Id: I25bf497e719e2beed4fac32a2913a65022fe8fc7
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/GroupMembershipView.java
9abfa16911d5f088d81166c5e8dc832f22ffafc2 12-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Let numeric buttons rely more on touch-down on dialpad"
fd0aa36fcabe822f71105d7d0d0125ce01994a5d 12-Jan-2012 Makoto Onuki <omakoto@google.com> Merge "Fix for crash in contact card with null group name"
193fc1c37de959a31469a2b7e1eb3b29c4f87377 10-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Let numeric buttons rely more on touch-down on dialpad

This change lets the dialpad shows tentative digit during touch-down.
Because of some other problems we're still using touch-up for
emitting DTMF sound.

TESTED:
- Call usual phone numbers
- Try basic swipe and see a tentative number is erased
-- (e.g. Press '5' and start swiping, seeing '5' being erased during
the horizontal swipe). User should not hear DTMF sound.
- Try Voicemail by long-pressing '1'.
- Try entering '+' by long-pressing '0'. It should remove tentative
'0'.

Bug: 5749440
Change-Id: Id5332e643a6476efceb044f7d372118ffdc77377
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/dialpad/DialpadImageButton.java
93a0025b87079e0d36431a2c096f96e145053a28 12-Jan-2012 Makoto Onuki <omakoto@google.com> Fix for crash in contact card with null group name

Also supress showing "null" on the group editor.

Bug 5698683
Bug 5847463

Change-Id: I25bf497e719e2beed4fac32a2913a65022fe8fc7
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/GroupMembershipView.java
89f0071ff9878d75561f1132d6dd03b07fa860c8 11-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Small code cleanup aronud DialpadFragment

- use @Override to interface methods
- use private/final when possible

Change-Id: Icbcb66a3e72de16e9369fdfeac62b87d0b5d186d
ndroid/contacts/dialpad/DialpadFragment.java
49d1b7e346022950b97414fa5dd49d9955645d53 11-Jan-2012 Makoto Onuki <omakoto@google.com> Use query parameters for account filter...

for the phone list and the contacts list.

The use of account query parameters with the "/contacts" URI requires
the provider side change I12e11168.

Note: "contacts to display" doesn't benefit from account_ID yet. We need
to add a new URI for this.

Change-Id: I7ed72d65125d2aa8b691af0196b04a5f611de5cf
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
5d07104275dceacf219838229bbd583147986f08 06-Jan-2012 Josh Gargus <jjosh@google.com> Fix gap above overscroll indicator in quick-contacts.

There is a 1-pixel gap between the list and the quick-contact
"track". It looks a bit like a shadow and adds a bit of depth
to the track, but the resulting gap is an eyesore. The simple
fix is to remove the gap.

Bug: 5748071
Change-Id: Id29c7d359364d28dac8ff17d732b4c80d3388e2d
ndroid/contacts/quickcontact/QuickContactListFragment.java
23effa9798361d38dcdca668309cbb4c5b09b037 05-Jan-2012 Josh Gargus <jjosh@google.com> Remove cancel button from display- and sort-order dialogs.

Bug: 5791742
Change-Id: I4072075622fde0f243e0570e7d7eaf93774a0c61
ndroid/contacts/preference/DisplayOrderPreference.java
ndroid/contacts/preference/SortOrderPreference.java
aabc1e81c2d43827fe2ad0bdde6851bdfb431924 05-Jan-2012 Josh Gargus <jjosh@google.com> Merge "Show currently-selected account filter."
b6553457d0c3e84eefa0a853090b680090a7b2f9 04-Jan-2012 Josh Gargus <jjosh@google.com> Show currently-selected account filter.

When presented with the list of possible filter options,
the currently active option was not highlighted. Now it is.

Bug: 5222482
Change-Id: Ia9d1ba40f589e89c4390199f9d77ae8b2af2c90c
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/util/AccountFilterUtil.java
ae3a0458edf09207c9434e6fcd0ed2acbe70c7eb 05-Jan-2012 Josh Gargus <jjosh@google.com> Merge "Call correct number of frequently-called contact."
2304875270ddb4b64687a5ba2001a9fa92296203 05-Jan-2012 Makoto Onuki <omakoto@google.com> Merge "Preparing for account refactoring"
4e05a29c9b05c8cb74972aa5b9fe55fe35d7f45d 04-Jan-2012 Josh Gargus <jjosh@google.com> Call correct number of frequently-called contact.

When you tap on a frequent-called contact in Dialtacts, it either
calls the default number for that contact (if one is set), or pops
up a disambiguation dialog. The desired behavior is to dial the
the number that is explicitly displayed in the list-item.

Bug: 5790357
Change-Id: I2ea14abab9d0aa79d4517e7221796c1886a8f947
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileDarkFrequentView.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/ContactTilePhoneFrequentView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/PhoneFavoriteFragment.java
8d5923ac95a0f9af89f5aea7c830f0a9ded75eae 04-Jan-2012 Katherine Kuan <katherinekuan@google.com> Merge "Make "mobile" be the default phone type for new Exchange contacts"
5503f84f8285b404202e8dbd7ff66b364763a554 04-Jan-2012 Makoto Onuki <omakoto@google.com> Preparing for account refactoring

The account columns will be gone from raw_contacts. We really shouldn't use
the private api, but for now let's just swicth to view_raw_contacts, which
will continue to have the columns.

Change-Id: Ie9a6de49226e265196ece42546baf7ba9e42404d
ndroid/contacts/list/DefaultContactListAdapter.java
3c877e33cb7fecc7a63af1cf3c25061d53811bf6 04-Jan-2012 Katherine Kuan <katherinekuan@google.com> Show search query in SearchView for incoming search intents

From the ContactsRequest, we extract the search query and set
it on the SearchView. However, when we update the action bar
to expand the search view, the query string gets cleared out.
Hence, set the query on the SearchView AFTER it has been
expanded.

Bug: 5790409
Change-Id: I4264cb75b8b4b23d4e97c2777a816cd49c2cb328
ndroid/contacts/activities/ActionBarAdapter.java
bda3e6c2d73a220910917b4dde6eefbee22a0d1d 21-Dec-2011 Katherine Kuan <katherinekuan@google.com> Make "mobile" be the default phone type for new Exchange contacts

Bug: 5377393
Change-Id: I3f64a24730687c784693eb0514813adb8b005128
ndroid/contacts/model/ExchangeAccountType.java
03b7562d473a8d78fb6f8839804252de5f315998 03-Jan-2012 Katherine Kuan <katherinekuan@google.com> Merge "Prevent auto scroll of contact list after contact editing"
023f6806a9655d0c3cc754567e7bfbeeb069cf92 03-Jan-2012 Katherine Kuan <katherinekuan@google.com> Merge "Add shadow under contact photo in phone/tablet portrait views"
3630c70cbe49122c46c3aa8716c0b9a63d2ea6e6 29-Dec-2011 Josh Gargus <jjosh@google.com> Merge "When choosing contacts-to-show filter, each choice gets two lines."
0b3af925788b4fa885b7cd9ad6811dbfca6736ff 28-Dec-2011 Katherine Kuan <katherinekuan@google.com> Prevent auto scroll of contact list after contact editing

Turn off smooth scroll to requested contact, but leave
the code in still.

After editing a contact on the tablet (and returning
a result to the PeopleActivity), don't reload the data
because that restarts the loader (which destroys
the existing loader and causes the scroll position in the
ListView to be lost).

Bug: 5739863
Change-Id: I32051494b9c6155ac05b0ab3e6b962d34e95bea5
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
0d65df6c68cc978ec7b581d4c5d0e001ceb4061f 02-Sep-2011 Katherine Kuan <katherinekuan@google.com> Add shadow under contact photo in phone/tablet portrait views

Add a shadow if the photo or tab carousel takes the entire
width of the detail fragment.

Bug: 5204655
Change-Id: Ifb6c191d0cd4b41703c817946cb3af82d5106eb7
ndroid/contacts/detail/ContactDetailTabCarousel.java
68c161e0a5b1722aaef62fa251015042e2193aa7 22-Dec-2011 Josh Gargus <jjosh@google.com> When choosing contacts-to-show filter, each choice gets two lines.

Instead of displaying only the email address associcated with an
account, show two lines. The first is the name of the account
type (eg: Google, Twitter), and the second is the user's email
address. The latter uses a less emphatic font.

Bug: 5254683
Change-Id: If087e63f200d2e9b40cbd969aac7e8f633c44412
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListFilterView.java
1ce53ffde8023fc1a8531c63b459d294912bccc7 20-Dec-2011 Katherine Kuan <katherinekuan@google.com> Search email and search phone test intents

Bring back support for ACTION_SEARCH_EMAIL and ACTION_SEARCH_PHONE
in the AllIntentsActivity test. It was removed in
Iad3c19262b22fb2345bbff42707e1a4d186c0a62.

Since the code has changed a lot, we no longer have a search activity to
allow search over just emails or just phone numbers. Hence, just
have the People app handle the intent and redirect to a search
with the provided query.

This works aside from this separate bug of the query not
showing up (bug 5790409).

Bug: 5224058
Change-Id: I2cfedbf74a1d59ee3c56d98aec2090302d420c9a
ndroid/contacts/list/ContactsIntentResolver.java
f6ff42dcb4d25c9e1a6bf80b229c8cbfbcede2bc 20-Dec-2011 Katherine Kuan <katherinekuan@google.com> Merge "Use initLoader instead of restartLoader for ContactTileListFragment"
4055d0c4d9e0c6f81aa359617e45874b400c336c 20-Dec-2011 Daniel Lehmann <lehmannd@google.com> Merge "Show presence in QuickContacts and remove "CHAT USING" for consistency"
9daca14706f3699c9e9d46dfb522132fc566e57e 20-Dec-2011 Daniel Lehmann <lehmannd@google.com> Show presence in QuickContacts and remove "CHAT USING" for consistency

- Also cleaned up some unused variables
- Unified QuickContacts and contact card a bit more

Bug:5779951

Change-Id: I64a846f03250e6a94f7ab063b8fedc509afeef19
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
2f64def9cf4a0a08f547ca7b3daed3ff195208f7 20-Dec-2011 Daniel Lehmann <lehmannd@google.com> Merge "Show avatars in directory search"
dc2da94037d7cf0d69c79357808697566d26f826 19-Dec-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix suggestions box being 1 character behind"
69fea1dfedc9681b1a42db41c7930dbb10e0d0d8 19-Dec-2011 Katherine Kuan <katherinekuan@google.com> Merge "Handle null display name in ConfirmAddDetailActivity"
cb8d73fc8ea538d0b63dd77210c05c5b8de32f03 16-Dec-2011 Daniel Lehmann <lehmannd@google.com> Use ContactLoader in QuickContacts

Bug:5683257 Make QuickContact work with directory contacts
Bug:5276725 QuickContact needs to launch a view notification intent

Change-Id: Ia66200a0367c29617ba6ac06d82354ebe316ea9c
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
c84130ac45b7eb4ca8b2c725f8b1af2b55636078 15-Dec-2011 Daniel Lehmann <lehmannd@google.com> Show avatars in directory search

Bug:5455229
Change-Id: I59e0c0c1d1be20adb4a79a5492f4ba55360387da
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
49b007b65c661daf67cacc1d6bb413f195d3231e 15-Dec-2011 Katherine Kuan <katherinekuan@google.com> Use initLoader instead of restartLoader for ContactTileListFragment

Since we want the same DisplayType for the fragment on orientation
change, it is okay to initLoader and re-use the same cursor.

Bug: 5572297
Change-Id: I68bf0d004c936bee226bf11dcd24220b81643540
ndroid/contacts/list/ContactTileListFragment.java
1d5fdfb2cec7d082c007b5f7ede20be44c24dc1a 23-Nov-2011 Katherine Kuan <katherinekuan@google.com> Handle null display name in ConfirmAddDetailActivity

Previously we had Contacts.DISPLAY_NAME_PRIMARY + " = ? "
but sometimes the display name is null, so use "IS NULL"
in that case.

Bug: 5659658
Change-Id: I40221245003fc1748c41a465c617f849baa6508b
ndroid/contacts/activities/ConfirmAddDetailActivity.java
e55faef88185628c842e0aa778d883f209323630 07-Dec-2011 Katherine Kuan <katherinekuan@google.com> Fix suggestions box being 1 character behind

In contact editor, the aggregation suggestions is
1 character behind because the ValuesDelta sent to
the AggergationSuggestionEngine contains a structured
name that is not fully synced with the display name.

The solution is to wait for the structured +
unstructured names to be synced before sending it
to the suggestion engine.

Bug: 5507256
Change-Id: I5f9b6da40ef7843a3b67dc9deaa2af3cbb68c477
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
bebae59055d3eaa6c9501762ce515d0cbb65c89d 12-Dec-2011 Daniel Lehmann <lehmannd@google.com> Merge "Store shortcut action on rotation"
30c130305cb8871e99767981270557c4b62474cb 07-Dec-2011 Josh Gargus <jjosh@google.com> Centralize number of lines to display in DataKind.

The number of lines to display for different types of data is
currently specified in the view code. Instead, change this to
specify the values in DataKind, so that they can be used
elsewhere.

Bug: 5274415

Change-Id: If10cb680877f9b247620929f5cdf64ad8d9ffd85
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
251f9aa8320964d8d9c9df4e9cdddde903765449 07-Dec-2011 Katherine Kuan <katherinekuan@google.com> am 5b39b5c3: Merge "Fix phonetic names not being saved for Exchange contacts" into ics-mr1

* commit '5b39b5c38445e0b806e5dc63a2a2a5365bf339f6':
Fix phonetic names not being saved for Exchange contacts
bf012bc4b5b1975ef6dde89be4982afb7d171dc8 07-Dec-2011 Dave Santoro <dsantoro@google.com> Merge "Fix issues with photo selection on Prime."
abe272e29bd164a4c3b50d7bb6ce8dd9ff5f02be 06-Dec-2011 Josh Gargus <jjosh@google.com> Merge "Avoid "Add New" button following the empty date field in new contact."
c3dbf89001d3672021d0ec616dc2e7797938253f 06-Dec-2011 Daniel Lehmann <lehmannd@google.com> Store shortcut action on rotation

Bug:5699211

Change-Id: I5011b11d7ea5993c3765af04f7a3b27eae5cff8d
ndroid/contacts/list/PhoneNumberPickerFragment.java
223dea3e59ebd7ec41db5583a9c911d2298e8dc4 06-Dec-2011 Katherine Kuan <katherinekuan@google.com> Fix phonetic names not being saved for Exchange contacts

If the phonetic name does not have a short/long form
(i.e. an expansion button), then we need to call into the
superclass onFieldChanged() method as we did previous to
this CL: https://android-git.corp.google.com/g/#/c/150242/

Bug: 5703655
Change-Id: Ibb0545ab96a104457e09ee227f05aa34290a343c
ndroid/contacts/editor/PhoneticNameEditorView.java
260934d4a79c5749bd71a1d9e3191c44fc20c3c6 06-Dec-2011 Katherine Kuan <katherinekuan@google.com> am 0af02581: Fix keyboard navigation between editable text fields

* commit '0af02581eecabbe234e54364bdbbd65090518d7c':
Fix keyboard navigation between editable text fields
0af02581eecabbe234e54364bdbbd65090518d7c 06-Dec-2011 Katherine Kuan <katherinekuan@google.com> Fix keyboard navigation between editable text fields

In the contact editor, currently keyboard navigation
between editable text fields is broken. By setting
the IME options flag, the "next" button will be
offered in the IME when the user is in an editable
text field.

Bug: 5599728
Change-Id: I5eb74455148c1f58f9fba8ece2c5089d9fdc6bf3
ndroid/contacts/editor/TextFieldsEditorView.java
14d2083c4c4c52b0d8b600a93c294af32cd6a826 03-Dec-2011 Dave Santoro <dsantoro@google.com> Fix issues with photo selection on Prime.

1. Per Marco's request, we no longer expand the photo in landscape
on phone.
2. Passing the full bitmap through the intent appears to be a no-no,
which was exposed in the "black-screen" behavior when clicking on
a default avatar photo on Prime. To handle that, we now retrieve
the photo from the default avatar resource if no URI is specified,
and we retrieve the bitmap for real photos through the photo
manager cache. To ensure performance, I've added a method to the
cache to force caching a given bitmap/byte[] for a photo URI.

Bug 5703659
Bug 5703700

Change-Id: I316f27c7ded575dd1bb00c0bb2e2c75917df1e19
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
296cca5522815fc51829203d326c335f9824f118 02-Dec-2011 Josh Gargus <jjosh@google.com> Avoid "Add New" button following the empty date field in new contact.

EventFieldEditorView.isEmpty() has two issues. First, it doesn't deal
properly with the placeholder text in the empty date field. Second,
it queries the text from the text field instead of from the edit-field
(i.e. from the view rather than from the model). The latter leads to a
problem when isEmpty() is called before the text-field's value has been
set. Both of these are now fixed.

Bug: 5265651
Change-Id: I8cf1a66ddfbeaca04211e227a20640556fb095b9
ndroid/contacts/editor/EventFieldEditorView.java
92d2a0d256a46450228937c3dd21006d389be143 02-Dec-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use NEW_TASK flag for launching in-call UI"
fadd5e1f1845b8d98e247bbd30535928dc5e0f81 02-Dec-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use NEW_TASK flag for launching in-call UI

To make Intent creation consistent, prepare relevant methods in
ContactsUtils and use them everywhere.

Bug: 5691827
Change-Id: I41509bfc7d914ba87ab614450b53fc93ce0eba4b
ndroid/contacts/CallContactActivity.java
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/IntentProvider.java
ndroid/contacts/calllog/PhoneNumberHelper.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/quickcontact/DataAction.java
091034c2d4c3ea69fc63c2e9d0956a109a13e08e 02-Dec-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove visibility change listener in DialtactsActivity

Fragment already has that functionality.

Bug: 5684683
Change-Id: I3cc929704b1077fba872bf0dd2357164f72a2ffb
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
f03732dfc70d1022c3180dcdc0e0cb64d72bc505 30-Nov-2011 Josh Gargus <jjosh@google.com> Merge "Don't provide export actions when there are no contacts."
28891e3a93c15022a24559999fe5280651f49ff4 30-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> am 60f19645: Check null for preventing NPE

* commit '60f19645a2177693f7f93ac824fdcd04cb299bad':
Check null for preventing NPE
e05f8efc11a383b8299e3a16b79a5d27531251d4 23-Nov-2011 Josh Gargus <jjosh@google.com> Don't provide export actions when there are no contacts.

When there aren't contacts, change the button text from
"Import/Export Contacts" to "Import Contacts". Also,
when the button is pressed, don't show export-related
entries in the resulting dialog.

Bug: 5643801
Change-Id: I7273eece58b0c4678f7189f9cad24cf25cd21472
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
cdba96c52b6da4a3d7b6e97f619c1281490912e7 30-Nov-2011 Josh Gargus <jjosh@google.com> Merge "Hide "add field" button when it's unnecessary."
60f19645a2177693f7f93ac824fdcd04cb299bad 29-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Check null for preventing NPE

Bug: 5682933
Change-Id: I6f54634665d16f22971a9b8c72abc821763bb0b8
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
a8c327b2669103cc4d62059b17e09d743dbaeb47 29-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Make sure the "Add to Contact" flow shows up"
98306105c4f0e6e393d0d3a23a1a067940bde7ae 29-Nov-2011 Makoto Onuki <omakoto@google.com> Fix ContactLoaderTest failures

Bug 5678502

Change-Id: Id42de7d1e3ce46feb65f538fde6fe9077a55a957
ndroid/contacts/ContactLoader.java
20928d63d0b1a0a31fe285fdf225b5b51e9e2dc0 28-Nov-2011 Dave Santoro <dsantoro@google.com> Merge "Allow adding/replacing a photo from contact card."
acd8e8ba4e8e3595a5d12b47b5972aff4a63e131 21-Oct-2011 Katherine Kuan <katherinekuan@google.com> Make sure the "Add to Contact" flow shows up

- For apps like Email and Messaging, make sure the
"Add to existing contact" dialog appears by tweaking
the intent keys.

- If those apps pass a name, only use it if the user
wants to create a new contact. Otherwise if we are going
to launch the "Add to existing contact" dialog,
don't use the name passed in because the existing
contact probably already has a name.

Bug: 5462733
Change-Id: I7d4453c0aa56f21474d3a6bd1d88fd2ff101e5cd
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
726405324cd6806b185629db394fddf07a2b3b28 28-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Don't use deprecated PagerAdapter methods"
f56bf55711fbb29551a14c3ae667c718af5253ee 28-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "SearchView on Join"
6fa7384a1a5576ace18159de61af91c8b7c34dc6 28-Sep-2011 Dave Santoro <dsantoro@google.com> Allow adding/replacing a photo from contact card.

This involves a large refactoring of the photo handling code that
previously lived in ContactEditorFragment. The bulk of that logic
has been extracted out into PhotoSelectionHandler and
PhotoSelectionActivity classes.

As part of this change, also removed the selection highlighting when
tapping on the current tab header in multi-tab views.

Bug 5294297
Bug 5379389

Change-Id: Ic929e4b4a730d91f768a34367bb76967228ded17
ndroid/contacts/ContactLoader.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PhotoSelectionActivity.java
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/PhotoSelectionHandler.java
ndroid/contacts/detail/TransformableImageView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhotoActionPopup.java
ndroid/contacts/model/EntityModifier.java
970454497bcc42e4d9dc5395b2c8ca2f95667893 28-Nov-2011 Katherine Kuan <katherinekuan@google.com> Don't use deprecated PagerAdapter methods

Bug: 5658993
Change-Id: I20b8fee09c5ea72de8e01d0ac4c66dfbef733951
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailViewPagerAdapter.java
4e1d78577124aac18735990694d976ee9d115b78 23-Nov-2011 Flavio Lerda <flerda@google.com> Correctly format numbers in RTL languages.

When phone numbers are formatted together with text in an RTL language,
the numbers will themselves formatted RTL by default: if they have any
formatting (e.g., +, -, (, ), or spaces), then these will not be
formatted correctly, as they should be shown LTR as a whole. This works
by itself if the number is the only thing shown in a text field (since
phone numbers are always made of characters that are entirely LTR), but
fails if the number is formatted within some translated text.

This commit forces the phone number to always be shown LTR.

Also, make it more explicit that the strict is meant to be used with a
number, since the description and xliff tag contradicted the name of the
string.

Bug: 5429886
Change-Id: Ifd1835ecfa89725ea596d02d9945712c4f351ddf
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/format/FormatUtils.java
9149eceff4b0f27d24a31ee52393bb8d4939dc60 24-Nov-2011 Flavio Lerda <flerda@google.com> Merge "Handle the case of a null cursor being returned."
6b85204bfc97dc851a3dccd9d6d5054a8765edf3 24-Nov-2011 Flavio Lerda <flerda@google.com> Merge "Fixes for long phone numbers and labels."
5683be31b5de1ca028871e33d4cb007031152534 24-Nov-2011 Flavio Lerda <flerda@google.com> Merge "Remove verbose logging."
30fe0f63a412563cf785668910bfe7712afe282e 24-Nov-2011 Flavio Lerda <flerda@google.com> resolved conflicts for merge of 76ced03e to master

Change-Id: Id760193aa2dd645587c76e4fce99ca38ada6b48b
88be53d18fc3ac194eabda8d811eaab68c3e40c8 17-Nov-2011 Flavio Lerda <flerda@google.com> Fixes for long phone numbers and labels.

Move the label after the numbe for consistency with other views.

Split the number and label so that RTL support works, instead of
composing two strings programmatically.

Do not split phone numbers and labels on multiple lines in the details
view.

Bug: 5465709
Bug: 5429886
Bug: 5631828
Change-Id: I169f99ae45a674f79c7bb3dc59f79801a8b38567
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
7ff56b875068a95c45b287089cf7b779faec5d9c 23-Nov-2011 Flavio Lerda <flerda@google.com> Remove verbose logging.

This condition used to be an error, but it actually now possible, in
fact quite frequent. Remove it from the log.

We used to trigger the update only when a new voicemail is received.
In that case, there should always be at least a voicemail to notify
about.

However, we currently do this also if we request do dismiss the the
notifications, e.g., when opening the call log. This log is a bit too
common now (basically every time the user opens the call log), so
downgrade it to a comment, since it is no longer an error condition.

Bug: 5657809
Change-Id: Ic35cc306ceca3fbe1d3fe83076e5120d810c354b
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
76ced03e35e37d717a8c0bc0cca3b3f28609d85e 23-Nov-2011 Flavio Lerda <flerda@google.com> Follow-up on previous fix.

Correctly handle the case of a null country iso when working with an
upgraded call log.

The syntax for nulls requires the value to be passes as "IS NULL"
instead of using "= ?" and passing a null value.

Bug: 5638376
Change-Id: Icdc0278570495d4abff453e8505649c2b7425c99
ndroid/contacts/calllog/CallLogAdapter.java
ecd392b81d65a5dd5511b2f96bbedfb5b8157ae7 12-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> SearchView on Join

We can have the small feature with some tweaks.

Right now ContctEntryListFragment is assuming that the first
directory in the fragment is the default directory, while on Join
screen the first one is "suggested contacts" directory. This change
modifies the implementation so that the fragment remove all directories
after the "default" directory intsead.

Also remove the code using MatrixCursor since we don't rely on it
anymore. This improves the performance of Join screen.

Change-Id: Ic232e09fb65bf72d19b069ce047e5a32dcb9f4ad
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/JoinContactLoader.java
6ad4c72b65e752777ca9288b006f82eefa715b57 22-Nov-2011 Josh Gargus <jjosh@google.com> Hide "add field" button when it's unnecessary.

Modify RawContactEditorView to remove the "add field" button
when no more fields-types can be added, and replaces it if all
fields of a type are deleted. Adjust layout so that there is
still a margin even after the button is hidden.

Bug: 5104493

Change-Id: I50fb61ba9c5d212a1ceb67938d3d833aace987f1
ndroid/contacts/editor/RawContactEditorView.java
2240ac03b18a42bcf4ecb95def4c515f5985c1b5 23-Nov-2011 Josh Gargus <jjosh@google.com> Merge "Fix visual glitch when no contacts/groups"
53d0a5779a3ea92093389d7fca5e612bbdbcd0c3 23-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add "import/export" and "account" option to Phone UI"
7c30236364c71618da4b266a61a77e9711aa23f1 22-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add "import/export" and "account" option to Phone UI

Bug: 5650226
Change-Id: I35f2fab7cf46f54b71dbc0f0ff8f1e6d32b2b272
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/PhoneFavoriteFragment.java
19d8f4a836a835eb62e7e597cbeff19114016107 23-Nov-2011 Adam Powell <adamp@google.com> am eb765ac7: Fix bug 5494702 - Text editing options not visible in custom label dialog

* commit 'eb765ac75178eccf5a44a3410e21a7f88419fd84':
Fix bug 5494702 - Text editing options not visible in custom label dialog
8c95e233e1aea0ab2805a63736863839e2cffc1c 22-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove extra top padding for group (phone only)

Bug: 5526116
Change-Id: I20f9b99b1d7e86c53222d1a4eda64b7099671a18
ndroid/contacts/list/ContactEntryListAdapter.java
73bf0d21c5584f67d066a29b0812da60772c646a 22-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Expose "new contact" to split action bar"
eb765ac75178eccf5a44a3410e21a7f88419fd84 22-Nov-2011 Adam Powell <adamp@google.com> Fix bug 5494702 - Text editing options not visible in custom label dialog

Use the correct context for creating the EditText field for use in the
custom label dialog.

Change-Id: I8c82fe53f0813aeed118c834eb208cb338fcbabb
ndroid/contacts/editor/LabeledEditorView.java
b8f11b9213502040b4a9723e216f34e431c49e53 18-Nov-2011 Josh Gargus <jjosh@google.com> Fix visual glitch when no contacts/groups

Some text and buttons are briefly visible at the edges of the screen
as they animate under a foreground view. The fix is to hide them while
the foreground ("no contacts"/"no groups") view is visible.

Bug: 5388255
Change-Id: I0a47af8acfbe48b92bc801ce3c9b7499f7e31c96
ndroid/contacts/activities/PeopleActivity.java
76b4deef35c7d00a75798323f92460ea54e4993e 21-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Expose "new contact" to split action bar

Because CallLog does something costly on onVisibilityChanged(),
the call should be done after the animation, while
onVisibilityChanged() for phone all tab should be called immediately
so that users can see the icon just after their swipe (same behavior
as People UI)

Also remove "new contact" menu from phone search. Now that we have
the 3rd tab containing all the contacts, we don't need the menu
on "search" screen (same behavior as Phone UI)

Remove invalidateOptionsMenu() call inside
CallLog#onVisibilityChanged() since the method should be called
by its parent Activity when needed.

Bug: 5650137
Change-Id: Ia6f377a720dac9aa4e3ae9e54394b9b2606bb2cf
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
3fb00005eb58db5b7ea5a89228318caa0b2f5f19 22-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Remove titles in simple confirmation dialogs"
8a873d246b3c66cee7db81c269ecdebf23982639 22-Nov-2011 Flavio Lerda <flerda@google.com> Construct contact string without StringBuilder.

The where clause is build using a set of constants, so it can actually
be build statically by the compiler instead of using a StringBuilder.

Change-Id: Ia3259c2a734152992e424835d70da07af918c67d
ndroid/contacts/calllog/CallLogAdapter.java
951751aefecb95245f01066f2b97244545a4272f 22-Nov-2011 Flavio Lerda <flerda@google.com> Handle the case of a null cursor being returned.

While unlikely, it is possible for the content resolver to return a null
cursor. Instead of crashing with a NullPointerException, handle this
case gracefully.

Bug: 5642539
Change-Id: I69423c32a124e3e7c8d6734e5561c316919eb1b4
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
daadd2e527d0fc31093245d7e0b9c04fde88b5c2 22-Nov-2011 Flavio Lerda <flerda@google.com> am a2386c18: Merge "Store contact info using country iso as well." into ics-mr1

* commit 'a2386c18926146d99b635db8019429af6aed806e':
Store contact info using country iso as well.
a2386c18926146d99b635db8019429af6aed806e 22-Nov-2011 Flavio Lerda <flerda@google.com> Merge "Store contact info using country iso as well." into ics-mr1
7cdbe5c0b11acb6128974f593b4ede86b01f95b2 22-Nov-2011 Katherine Kuan <katherinekuan@google.com> Remove titles in simple confirmation dialogs

Bug: 5476234
Change-Id: I7970c3378860e3521b55d248968a4710d8161c04
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/vcard/CancelActivity.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportVCardActivity.java
68f056b2fc685b48828ad0906f2ebab9fbd89336 21-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use consistent name for menu xml"
18e0cabec8df2e20ab4b33320804cc3472f195c2 21-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use consistent name for menu xml

Other xmls for options menu are using xx_options.xml while
People's xml is using an older name as is. Let's rename it.

Change-Id: I4ee76dc36dcba4d6ce1029884695598d12861863
ndroid/contacts/activities/PeopleActivity.java
01991a71e2c11fdcd125fb85490191a89b07e55d 21-Nov-2011 Katherine Kuan <katherinekuan@google.com> am 477366ac: Allow import from SIM when there are no contacts

* commit '477366ac89828fcf85a94d63b76cda754a85d2ce':
Allow import from SIM when there are no contacts
eb41918466ae6281cacff57075138bf2414b954a 19-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Shrink the size of hint text on dialpad screen"
c89565e1beec2ef986967a6330f1e7b0231a3c53 19-Nov-2011 Flavio Lerda <flerda@google.com> Store contact info using country iso as well.

Currently we are using just the number to store contact information that
we look-up. However, the look-up result depends also on the country in
which the call was placed or received.

This can lead to issues if the result is not the same depending on the
contact. This is particularly problematic in case of upgrades: the call
log will contain a number of entries without a country iso value since
the field was introduced after the Gingerbread release.

Use the country iso both when storing the contact in the in-memory
cache, as well as when updating the cache stored in the call log itself.

Bug: 5638376
Change-Id: I4c77556395147f05c2524d93cc1c800943395b6c
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
1fb2187425b32e1eea9c26fd46746ba87c057723 19-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Shrink the size of hint text on dialpad screen

Some locale provides too long texts for the hint.
This change shrinks the text to 80% and also add CHAR LIMIT
just in case.

Fundementally we can adjust the size depending on the actual
text size, but it would be too much for this minor problem.

Bug: 5601781
Change-Id: I618587b779baa8b14713358bcda3a2a318dd1a81
ndroid/contacts/dialpad/DialpadFragment.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
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/EmailAddressPickerFragment.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressPickerFragment.java
477366ac89828fcf85a94d63b76cda754a85d2ce 18-Nov-2011 Katherine Kuan <katherinekuan@google.com> Allow import from SIM when there are no contacts

Bug: 5639533

Change-Id: I96903021d6ff04b9bb007204284475bb37960f9e
ndroid/contacts/activities/PeopleActivity.java
e1c007eeb40a40b21e60bb4c8a42e0affd9fcdd1 23-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make Phone UI show Sip addresse

Must be after I4729c87ecd11296599ed0313e8ad1f5aeabbd32b and
Ifbbfe9df3b9a560666d35ca78aeb07d513963195.

Bug: 5039627
Change-Id: If43911d5b828da6360b38bf386ab7ba52d7ca00a
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
643edd29b2234dfa22132b55284c1863f3b1ec5d 17-Nov-2011 David Brown <dab@google.com> Fix a crash caused by SIP addresses containing "%40" instead of "@"

ContactInfoHelper.lookupNumber() was assuming that SIP addresses would
always contain the character '@', but that's not always true since the
username/domainname delimiter can actually be "%40" (the URI-escaped
equivalent.)

This would cause Dialtacts to crash upon launch if you somehow managed to
get a SIP address like "123%40foo" in your call log.

TESTED:
(1) Make an outgoing call to the (malformed) SIP address "123%40foo"
(2) Launch Dialtacts ("Phone")
==> No longer crashes

This change should be submitted after change I62d15a in frameworks/base,
which adds the PhoneNumberUtils.getUsernameFromUriNumber() method.

Bug: 5637074
Change-Id: I06f333cf993ca5e33b88c0c8b9006116b6fd5cf7
ndroid/contacts/calllog/ContactInfoHelper.java
1a7f42494dbde3c268bc0763ebd62d55d43027ae 16-Nov-2011 Katherine Kuan <katherinekuan@google.com> Fix preservation of phonetic name on device rotation in contact editor

This fix is similar to the fix for preserving structured names
on device rotation. I644bfea2af4e759e1d7d94aa09840ed15efd079d

We basically detect whether fields are visible or not before
trying to update the underlying name.

Bug: 5600858
Change-Id: Ic455cc87fa2872441b5d2a0e7da67ffc1798ec3d
ndroid/contacts/editor/PhoneticNameEditorView.java
662f45e83ea2d7c9849f140b50b8e268f39a5dae 16-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Let ContactTileRow ignore accessibility event

When "explore by touch" is turned on and a user clicks empty area
in contact tile section, tts speaks a contact name next to the
empty area. This happens because ContactTileRow tries to obtain
some meaningful information from the invalid tile next to the
empty space. This change forces the row to ignore accesibility
event.

Bug: 5559634
Change-Id: I7a994c38411c9d551400cd79eb9edb80abb324b3
ndroid/contacts/list/ContactTileAdapter.java
24ac46b49ce513875d012ba95a9bfd111017fc30 15-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Don't use saved list state if the app hasn't been killed" into ics-mr1
a2244692c79d1342494d4e650b462db11d3774c3 14-Nov-2011 Katherine Kuan <katherinekuan@google.com> Don't use saved list state if the app hasn't been killed

On the tablet, clicking on a contact from the groups tab
will show the contact list + details page for that contact.
However, if a sync happens afterwards then the list will
wrongly scroll to some previous scroll position.

The fix is to not update the local variable mListState
when we saveInstanceState() on the contact list fragment.
This is because mListState is used in onLoadFinished() and
will scroll the list to an old scroll position even after
the correct contact has been selected in the list (from
an incoming intent request). We should only update mListState
when we are restoring state and reading from the save
instance state bundle.

Tested with rotation and killing the app on phone and tablet.

Bug: 5525474
Change-Id: Ic217f1151d2d7850946625192d6c8f3f03437bf1
ndroid/contacts/list/ContactEntryListFragment.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
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
a797409ad2bac1c467f662bbe102cf158e9c681c 14-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Use contact ID instead of photo ID for group member list" into ics-mr1
24ef97235f6945b40f36231c5efe6bad76a4ccbe 14-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Selecting "Add to my contacts" on tablet can show wrong contact" into ics-mr1
3f8c0394460167cfbc1a45ef89180ccd0cabc913 14-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Intercept single contact mode and reset to last saved preference" into ics-mr1
8102959341bce26f99a8a15c5348db1f4f4d18f2 14-Nov-2011 Katherine Kuan <katherinekuan@google.com> Use contact ID instead of photo ID for group member list

We will be able to avoid doing an extra query of finding
the contact using the lookup key instead of using the
correct ID.

Bug: 5608876
Change-Id: Ica6db5dd01688bb789c732009f5116811b4ebd26
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/list/ContactTileAdapter.java
caa3cae21985965d038a96402349597a49040bf7 14-Nov-2011 Makoto Onuki <omakoto@google.com> Merge "Make photo loader low-memory device friendly" into ics-mr1
e1cabcd0956f24a3d3cbe0777b430030f681a739 12-Nov-2011 Katherine Kuan <katherinekuan@google.com> Selecting "Add to my contacts" on tablet can show wrong contact

- The ALL_CONTACTS URI doesn't support sending a contact URI
in the intent as well. Hence, change intent action to
ACTION_VIEW.

- If you view a contact (selectedContactUri contains
that contact), if you modify the group it is in (i.e.
click the "Add to My Contacts" button OR edit contact
and remove them from the group you are currently
filtering your view with), then it's possible
it won't be in the list anymore.

In order to force a reload of the list, we need to have
mSelectionRequired = true, but it is never set to true
if the selected contact URI is the same as before. Thus,
we add a setSelectionRequired() method to force it to
require a selection if this is an incoming request on the
tablet. We don't want to modify the ContactBrowseListFragment
setSelectedContactUri code to set selection required = true
for all cases where the contact URI is equal because that
could lead to extra computation when the list reloads
and the selected contact is still the same.

- Don't compute selected position in adapter two times
(this is a linear search in the cursor). Just reuse the value
that was computed the first time.

Bug: 5478636
Change-Id: Ic5425d084df5492118a0e29cdc48a1c168e558e7
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/list/ContactBrowseListFragment.java
be79b8f05f45c4cddeea9106399521529ec27cae 10-Nov-2011 Katherine Kuan <katherinekuan@google.com> Intercept single contact mode and reset to last saved preference

Single contact mode is hard to get out of unless the user
changes the "contacts to display" filter setting.

Thus, whenever the PeopleActivity onStop() is called and the user
and reenters through onStart() - we reset the contact filter back
to the last saved filter according to SharedPreferences.

Since ContactListFilterController is a singleton, we have to
be careful in making sure the filter state is consistent with
the all fragment filter state because there can be multiple
PeopleActivity instances (i.e. another app launched People).

Bug: 5526485
Change-Id: I748ffc158a2de778dd9ecce4ab7f132af196b9a3
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/model/AccountTypeManager.java
a91e74a30f447c59af386ba639e70d5186f117fb 11-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix for contact deletion on tablet" into ics-mr1
8f63a1b96dc9e71d4c01c87a46b4e7134d8960c6 11-Nov-2011 Flavio Lerda <flerda@google.com> Merge "Fix StrictMode violation in voicemail playback." into ics-mr1
db90ba16b3d99819e2be961ee6ecf0d532237408 11-Nov-2011 Katherine Kuan <katherinekuan@google.com> Fix for contact deletion on tablet

After deleting a contact, we incorrectly still show the
detail page and don't select a default contact in the contact
list.

If a contact is deleted, the ContactLookupTask will not be
able to find a lookup URI for the contact, but we should
still handle this null URI by setting it to the list
and trying to find a default contact to select instead.

Also remove the extra assignment of mSelectedContactUri.
We actually do that assignment in onContactUriQueryFinished().
This is the same way it was done in the original code before
this section was refactored in ICS MR1:
I85c748389921bdff2639fff5f7713e00ba7f9f8c

Bug: 5599721
Change-Id: Ib9b9221779a6828948553fe25fbeff982961c5ed
ndroid/contacts/list/ContactBrowseListFragment.java
b3f36321c6b3c760e5e29cb6ac82be2723bad1b2 11-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Reduce a column for People contacts query" into ics-mr1
6da2a2d472d562443a70f3d6a84ff6546dfcbc01 09-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Reduce a column for People contacts query

This will possibly reduce memory usage for a cursor.

See also Ie69b74bbabcc7211cf2b107c93980172da2d744e, which
removed the same column in the Phone query.

Bug: 5550672
Change-Id: I9f707ec1b645e90e3cf7ab7fe35c3af986f472a0
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
d198486abc2a45b5acc9b08ff6315dba01982f50 10-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Check if google authenticator is on device for no account prompt" into ics-mr1
f07f7e9e04f8f6e79dd2e008be7fbc3fc7c9c646 10-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop using "group" filter." into ics-mr1
ff434b2fb9cb30e8dc67062f52eba624af4f830e 10-Nov-2011 Attila <attila@google.com> am 54eccc51: b/5594154 Fix NPE in SocialWidgetProvider

* commit '54eccc51dba9938bf12b233749518e710a131bb1':
b/5594154 Fix NPE in SocialWidgetProvider
976aa0edd4d54f8a4f709e299715c5f4d601876a 27-Oct-2011 Flavio Lerda <flerda@google.com> Fix StrictMode violation in voicemail playback.

Currently we are preparing the media playing on the UI thread. But, this
may involve disk access, therefore we should do this asynchronously
instead.

Bug: 5113695
Change-Id: I70bd02f1e59d26ba87eae4a3a379ae8f257b0f88
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
42f85dd9e72438a3fe8af98929bbc1f8e2f26510 10-Nov-2011 Flavio Lerda <flerda@google.com> Mark method as needed for testing.

There are tests for this method, but it is not actually used in the
application.

For now, I will mark it as needed for testing, so that ProGuard does not
remove it, but the long term solution is to clean up this bits of the
code.

Bug: 5594198
Change-Id: I67b5abdc0c9d3c729fb50d5981e3791508593148
ndroid/contacts/format/FormatUtils.java
87309946d854d4e52447f892401bd6c3803f940d 09-Nov-2011 Katherine Kuan <katherinekuan@google.com> Check if google authenticator is on device for no account prompt

Bug: 5570306

Change-Id: I32efcbc178f41df113d9ebe855bd7494f3cbd9cd
ndroid/contacts/util/AccountPromptUtils.java
54eccc51dba9938bf12b233749518e710a131bb1 10-Nov-2011 Attila <attila@google.com> b/5594154 Fix NPE in SocialWidgetProvider

Change-Id: Ibc6c3c26f7bdd0f5a4eb3adf0bf5597a35a0fa05
ndroid/contacts/socialwidget/SocialWidgetProvider.java
252159e0bb3ded376d34f67afd41da68356767e1 10-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE in PeopleActivity with returning a null intent from editor" into ics-mr1
b2bc716bd811f1e76c299e83500820e54830b454 10-Nov-2011 Makoto Onuki <omakoto@google.com> Merge "Phone: Delay-create search fragment" into ics-mr1
8f8bd6dd334155c4fb953ca2735328d5a5b0c737 08-Nov-2011 Makoto Onuki <omakoto@google.com> Make photo loader low-memory device friendly

- Now the L2 bitmap cache counts the actual bitmap size in bytes,
instead if just the number of bitmaps. We started to deal with
various different dimensions of bitmaps, so it's more appropriate.

- Half the cache on low-memory devices.

- Clear the caches on onTrimMemory() with TRIM_MEMORY_MODERATE.

- Moved cache size values from resources to contacts.

- Added a bunch of debug logs.

Bug 5587258

Change-Id: Ib86512293be3af06b5dac58aae13f9596f56334a
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/util/MemoryUtils.java
0647bdb63b41a968f6c07d1a1e600f5a0208d043 08-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop using "group" filter.

The filter had been used in HC but now just causes app crash on
People. This change removes relevant codes and just redirects
users to ALL filter.

Bug: 5581081
Change-Id: Ib4c9b6c2c89149070ec08008cb15c89c3ef5aaf8
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
d0cf37c2c9c5a1ff888bc3e853f6115467dae5b9 08-Nov-2011 Makoto Onuki <omakoto@google.com> Phone: Delay-create search fragment

In order to take full advantage of the new "fragment deferred start" feature.
Now we create the search fragment in the first onLayout call, which is after
all other fragments are created.

Bug 5550646

Change-Id: I2e3710fb4ea6ff4301309538dd58bdef5811bc8b
ndroid/contacts/activities/DialtactsActivity.java
e21b1670fc902f27a5580ac4bedd0d68a53a6c2f 09-Nov-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in PeopleActivity with returning a null intent from editor

Bug: 5592500
Change-Id: Iabbdc4c0422a58cfc557cbcd84a92d33c1b01ff6
ndroid/contacts/activities/ContactEditorActivity.java
82ddd2600f8c695f0f13349a4905d083b3a3b57f 09-Nov-2011 Daniel Lehmann <lehmannd@google.com> Merge "Disable search in legacy pickers for phone and contact" into ics-mr1
6b02c2628b795b44d8e0cbc06e0bc7ee3186dc86 09-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix wrong contact being selected after editing (after a search)" into ics-mr1
5c3a0a1440625fab859aab420cb08bc0276358a0 08-Nov-2011 Katherine Kuan <katherinekuan@google.com> Fix wrong contact being selected after editing (after a search)

- The problem is that after finding a contact via search
and editing that contact, we launch a VIEW intent to view
the contact. Then sometimes, that contact is not in the
current contact filter, so we may have to enter single contact
mode.

To avoid that, go back to the HC functionality of preserving
search mode. Now after editing, we return to the PeopleActivity
and preserve search mode if that's where we came from.
This was the relevant change from early ICS that is being
partially reverted:
Ibbaaccb03ac7961784dfa7b15c246b8d6f6489a4

The reason it was changed was to support viewing the contact
after editing a contact when the edit request came from a 3rd
party app. This still works with this change by adding
an intent extra in ContactEditorActivity.

- After the editing is done, only launch the VIEW intent
for the contact if we didn't come from the detail page for
that contact (on phone and tablet). We can just finish
the editor activity. This saves some time with setup / configuring
fragments because we don't have to resolve the VIEW intent
(i.e. On tablet, previously the VIEW intent launched the
ContactDetailActivity --> redirected to PeopleActivity -->
resolved intent to show the right contact.
Now we can just receive the onActivityResult and refresh
the page).

- Renamed ContactDetailActivity intent key to be consistent

Bug: 5542197
Change-Id: Ieaa9c147beeaa7c40f34fc1689858642b47fdbf9
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
d1af8adb1acc56f6c1709d38efe69be9497356a9 09-Nov-2011 Daniel Lehmann <lehmannd@google.com> Disable search in legacy pickers for phone and contact

- Also fixes the scrollbar in the phone legacy picker

Bug:5570791

Change-Id: I983fe441f455906cf2f610c8209d72c90a720f1b
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
f8ce15cc8a76ff536e1b5b19163589176adde58f 03-Nov-2011 Makoto Onuki <omakoto@google.com> Fix bug 5563362: failed to initialize external account type

The contacts.xml parser has had a bug that it processes each ContactsDataKind
tag twice,for START_TAG and for END_TAG.

When processing for END_TAG, because an end tag doesn't have attributes
it created an empty DataKind, with null mimetype. (This bug existed even
before the EditSchema change, meaning MR0 still has this issue.)

Before MR1 this null mimetype was just not used anywhere, so it was okay.
But in MR1 we have the duplicate mimetype check, and it will complain
if a contacts.xml has more than one ContactsDataKind therefore has multiple
"null" mimetype definitions.

Made sure to only process for START_TAG. Also cleaned up existing code
with a similar check.

Also included the package name in the error message for duplicated mimetypes.

Bug 5563362

Change-Id: Ib68fb0dca03784c4d7976ac8bf68b1dce5305b03
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExternalAccountType.java
183c6fec548e2a5c59a91c66e40f1da3e45c9dd3 08-Nov-2011 Makoto Onuki <omakoto@google.com> Merge "EditSchema: add mandatory check for "name" and "photo"." into ics-mr1
c641e62225a253373c08cdd9e3144df090162b60 08-Nov-2011 Makoto Onuki <omakoto@google.com> EditSchema: add mandatory check for "name" and "photo".

- The editor works fine without other fields.
- Also added test for missing supports* attributes for the name kind.
(for now, all the support* attributes must be true. Otherwise the
editor may not work properly.)
- Also fixed the default value for the support* attributes, which was
mistakenly set to true.

Bug 5578679

Change-Id: Iec5412feb3aa671b64f74d850ccf67daaa87c88e
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExternalAccountType.java
97f4d04fa102429260be8340bf6a01d1696867e0 07-Nov-2011 Adam Powell <adamp@google.com> Merge "Follow framework API changes." into ics-mr1
9bd59f27cc5ad318b4bb78fc0576604e57f0b7a6 07-Nov-2011 Adam Powell <adamp@google.com> Follow framework API changes.

The Fragment#setStartDeferred method has been removed in favor of the
new setUserVisibleHint method. Update Contacts code that was using the
previous API in progress.

Change-Id: I9800a2c01f5343e4e732fb4649004f492c28ee97
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
7f58d908a773fb3a4b58b76a6c6761d830ce027c 07-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop showing soft IME in picker screens" into ics-mr1
004a30319057436182d98e530fb424f185cd2ade 05-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing soft IME in picker screens

Bug: 5525571
Change-Id: Ie63ceb298a0a28be487444a8f3405f6e34ad110d
ndroid/contacts/activities/ContactSelectionActivity.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
ndroid/contacts/format/DisplayNameFormatter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
663d614c80bd8ab8ac6f02cb3679ddcd6598a38f 04-Nov-2011 Flavio Lerda <flerda@google.com> Merge "Use ContactsContract.PhoneLookup to look up SIP addresses." into ics-mr1
c18a58ef7432c3faa1318029372cd6cbeba1e437 03-Nov-2011 Katherine Kuan <katherinekuan@google.com> Fix flicker on group detail page on tablet

- Occassionally, after doing a sync, sometimes the group
detail page will flicker on the tablet.

- Remove destroyLoader() call right before restartLoader().
According to the documentation in LoaderManagerImpl,
destroying a loader destroys any data associated with it,
which seems like it could potentially cause all the photos
to disappear in the group member ListView.
(Otherwise it's not clear why the photos would all
disappear instead of showing the ListView empty state.
The group title / group membership size are always
on screen, and never blank out.)

- Haven't seen group detail page photos flicker anymore.
Selecting different groups in the group list still works
properly. Tested on phones and tablet.

Bug: 5513239
Change-Id: I39684b884b850715ded91449072cb8ff15e6d928
ndroid/contacts/group/GroupDetailFragment.java
944a02085995701ea025070b8c0a06a065750926 03-Nov-2011 Makoto Onuki <omakoto@google.com> Merge "Add a dummy loader to calllog to defer other fragments." into ics-mr1
a37ab6cf5b5982a405a33c3c837df63f1c282b37 03-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Reset views when changing contacts on tablet" into ics-mr1
d70e5ad6e99bb7ef9ac58f95d2522de0aa6fa531 02-Nov-2011 Flavio Lerda <flerda@google.com> Use ContactsContract.PhoneLookup to look up SIP addresses.

We recently added support for looking up contacts with a given SIP
address using ContactContracts.PhoneLookup instead of a generic,
expensive ContactsContract.Data query.

Use this new look-up mechanism in the call log and call details.

Bug: 5529690
Change-Id: I6a10cfa5038ceca96669cf07ed20d7d47bd25427
ndroid/contacts/calllog/ContactInfoHelper.java
7c91de1e983b35d9c5aef7386ea62c1daa2bf967 02-Nov-2011 Makoto Onuki <omakoto@google.com> Add a dummy loader to calllog to defer other fragments.

- Also introduced debug flags to control Loder/Fragment debug logs, and removed
constants that used to controll them.

Bug 5547725

Change-Id: I5b523e6824edc4848ab82cbf13420d3db822c562
ndroid/contacts/ContactsApplication.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/util/Constants.java
ndroid/contacts/util/EmptyLoader.java
f745c69c14eca19d9bb641ddf5f5af6209f05716 02-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix possible NPE on People" into ics-mr1
47f0263b114f333a35491dc9eaf2b4bc68a1231a 02-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Reduce the number of columns for group queries" into ics-mr1
b2a23189be94c824eadae9d0f7c5d58a7ee12fd0 02-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix possible NPE on People

mContactListFilterController may become null if People app just
redirects Intents to somewhere else (like contacts detail page).

Bug: 5557277
Change-Id: I3b1859ec3cd8f85a9ced0c926f7335772b03f70c
ndroid/contacts/activities/PeopleActivity.java
ab5387bb8728c34bafcb554830961341f1f9daea 01-Nov-2011 Katherine Kuan <katherinekuan@google.com> Reset views when changing contacts on tablet

- On tablet, we re-use the same fragments for
different contacts because we have a 2-pane view.
We need to reset the state to prevent showing
the wrong tab or old scroll state information from
a previous contact.

- Resetting the list adapter is getting rid of the
scroll state information and resetting the tab
carousel / view pager gets us back to the "about"
tab.

- Store the contact URI in the saved instance
state bundle so that on rotation, we still
recognize that it could be the same contact
and restore scroll position.

Bug: 5529595
Change-Id: Ibd874799f926b70430e47518a4b995394fbfe547
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
a939372643a86688ae196cce03cf4f6f70864d93 31-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Reduce the number of columns for group queries

1~5% performance improvement. Also will improve memory usage.

Bug: 5550672
Change-Id: I5ad0876ce469fbf86334e3f77b15cd240d9f761b
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/list/ContactTileAdapter.java
18e2b6f48045eebd802ff560420e1ad19b2e2da8 01-Nov-2011 Katherine Kuan <katherinekuan@google.com> Check activity state before showing phone disambig dialog

- This is a monkey bug on Crespo that happens often. The
monkey is likely tapping on a favorite contact in the Phone
app, which is trying to either dial the contact or
show a disambiguation dialog if the contact has multiple
phone numbers. There's an IllegalStateException with trying
to commit the dialog fragment transaction because the
saved state has already been called.

- After a PhoneNumberInteraction is started, a CursorLoader
is started, and when that returns, potentially we try to
commit a FragmentTransaction (showing the DialogFragment).

At this point, the activity may be long gone, so we need to
know if the activity has saved state or not. Hence,
we add a new base activity class (TransactionSafeActivity)
that keeps track of this information for us.

- The PhoneNumberInteractionTests still rely on passing in
a context to PhoneNumberInteraction (in order to check
that the queries and subsequent activities are correct),
but we typecast the static methods the app uses to
create these PhoneNumberInteraction objects.

Bug: 5132436
Change-Id: Id9d887bd55235b07133568a38d4922dc7fce24a7
ndroid/contacts/ContactsActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/TransactionSafeActivity.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
38eb4748ac87d897b880294f29bea462d5c8d141 01-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add missing "static"" into ics-mr1
f321386bd77e0bfdf659275540b2edd0442090c9 01-Nov-2011 Makoto Onuki <omakoto@google.com> Merge "Use new "deferred fragments" feature on People" into ics-mr1
fffd0feda20da3a58ebc5cf7f617c6f513e4564e 01-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Launch quick contacts after selecting frequent contact on tablet" into ics-mr1
5a8faeb4f17dab62557adc8cdc99284a9221ea35 01-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add missing "static"

Change-Id: Ieeb52b7cf87b7294b56d3d73d7d39421fd03124a
ndroid/contacts/GroupMemberLoader.java
746316a47c9ab982ebcc03edbc636019e9e34f40 31-Oct-2011 Makoto Onuki <omakoto@google.com> Use new "deferred fragments" feature on People

Apply the same technique which was recently introduced in
FragmentPagerAdapter in Ied454a6f.

Bug 5543639

Change-Id: If059589e0b1bfe2292c04eebb709800c1a41071a
ndroid/contacts/activities/PeopleActivity.java
785f6d9471a64f61d431f922a9f3a498b31b87b1 30-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove unused columns from all contacts query

- remove ContactBrowseListContextMenuAdapter, which isn't used
- remove columns used only by the class
- remove SORT_KEY_PRIMARY which isn't used right now
- remove phonetic name

Bug: 5535731
Bug: 5265330
Change-Id: I60f28369395a95fbbc4b5048ff5a3227b323bd3f
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
557984daeba92a4e36d6cd0eedf2fba0abfb24a1 29-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Defer phone search fragment" into ics-mr1
f03d074b31e33c48025e636862c9ea9d7c7da09c 29-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Delay SearchView preparation" into ics-mr1
6dc26da5b181e95f7cd051309795234da53510f0 29-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix tablet picker layout." into ics-mr1
8ace4520d54846123d2aac4d9acdaf6edce38451 29-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> am e8ad0868: Enable the app to hide SIM import

* commit 'e8ad0868a66b3946a53c5a366642078688d122a8':
Enable the app to hide SIM import
36da3e799e4612edeaf6bf1bfea0800621c9b253 29-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Defer phone search fragment

Bug: 5534082
Change-Id: I2f604c63af8221c363a0ea8425d57f41e3a99c75
ndroid/contacts/activities/DialtactsActivity.java
e8ad0868a66b3946a53c5a366642078688d122a8 28-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Enable the app to hide SIM import

Bug: 5501118
Change-Id: Icec89a4526d655ab61e958326d9347ce4ccdb49a
ndroid/contacts/interactions/ImportExportDialogFragment.java
7a700cf798a19a8452b8671f643a05336f63f611 28-Oct-2011 Katherine Kuan <katherinekuan@google.com> Launch quick contacts after selecting frequent contact on tablet

- Previously clicking on a frequently contacted person
would request the contact detail fragment to load that contact,
but the app wouldn't switch tabs or update the selected contact
in the contact list.

- Pass the Rect of the target view to the listener to launch quick
contacts

Bug: 5236515
Change-Id: Ic2d888ed02f8fd2b5a47d49f99cc96755bf55d37
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
5a30a6d9aec74bf28b389b787ca5809bcb89822d 28-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Delay SearchView preparation

Bug: 5530471
Change-Id: I1fe143c3a32b75f0e1e313f403db7564be76ac14
ndroid/contacts/activities/DialtactsActivity.java
594dc44c34396fc4a3acbe9bed836648b0ad6b09 27-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix tablet picker layout.

Less risky fixes only. Bigger topics should be covered later.

- Make "Create New Contact" button look like bottom action bar
- Use blue color for join section header
- Fix misc padding

Bug: 5454797
Change-Id: I18069f5a4077a6625a64c8f9812d25092904a0e6
ndroid/contacts/activities/ContactSelectionActivity.java
df96f1a0287f3915b8f84c82acd43d5334b69653 28-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use AT_MOST for label when photo is on right" into ics-mr1
d29f81158007ddb809e3d47b42b549102a2026f2 28-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove top padding for usual account headers" into ics-mr1
434d05a97dc3e4efbfb0dcf7fdcf91a89960f952 28-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Show "no contacts" in frequent list on tablet" into ics-mr1
ae9917f957e431f43140720c24000df30518d020 27-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use AT_MOST for label when photo is on right

In I269175d9dea97baa86bcb1badc9e6294dcb7883b we introduced EXACTLY,
since AT_MOST requires more calculation and thus made the contacts
listing slower.

In picker screens, however, we need that for email/phone types because
of its layout requirement. This change introduces AT_MOST only in that
exact case, so that it won't cause any performance regression in our
major cases.

Bug: 5527030
Change-Id: I105e8c052e53d9f108c7ca01c6aef2cc5c378462
ndroid/contacts/list/ContactListItemView.java
b5c0b93e37e2b471ea46a1889e2eb194292284b7 27-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove top padding for usual account headers

- We don't want the top padding on phone.
- We want it on tablet.
- We want it in the phone "all" screen.

Bug: 5526116
Change-Id: Id73ee863cd191d5f3c218957453359293b85d258
ndroid/contacts/list/PhoneFavoriteFragment.java
4885a0250ad6720450c9809814b851b7039f5e17 26-Oct-2011 Flavio Lerda <flerda@google.com> Use a plain String instead of CharArrayBuffer.

The code used to use CharArrayBuffer to store the numbers as they are
being processed. However, AbstractCursor.copyToCharArrayBuffer()
actually calls AbstractCursor.getString() and we actually instantiate a
new String when comparing the phone numbers: we might as well call
Cursor.getString() directly and avoid creating two new String objects
each time we need to compare numbers.

Empirically, this seems to reduce the run time of the addGroups()
method.

Bug: 5290401

Change-Id: I397a9e6a14657ce261f8b8c11e607b13083bdef1
ndroid/contacts/calllog/CallLogGroupBuilder.java
5c357cdc621aa2b59c4c9b9969540af88fe15277 27-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Correctly match SIP addresses." into ics-mr1
ce61ffedd3c8ebc6325ca5e3832f02cfbed5053f 27-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix "<N> contacts" label in tablet contact list" into ics-mr1
f7689c377caba183daa41856d01a8c1a2f7ba811 24-Oct-2011 Katherine Kuan <katherinekuan@google.com> Show "no contacts" in frequent list on tablet

- This was already merged in master
https://android-git.corp.google.com/g/#/c/144789/
but needs to be cherry-picked to ics-mr1.
We can't mark it as "do not merge" because
it still needs to be merged to ics-mr1-plus-asop.
When submitting, I'll stand by to manually
say skip if the automerger detects a conflict
when merging to master.

- We need to show "no contacts" under the
"frequently contacted" header in the frequent
fragment in the People app on the tablet.

Since that header was originally the 0th item
in the ListView, to show an empty view we would
either have to:

1) Add a second fake item in the ListView that shows
"No contacts". This requires either returning
view type "empty view" or view type "frequent"
for position = 1 based on the cursor count.
Checking the cursor in getItemViewType()
would make this more than a UI change.

2) Move the "Frequently contacted" header
outside the ListView and make the ContactTileAdapter
show the empty view state when there are 0
frequently contacted people (instead of the
existing implementation which fakes it by returning
1 when the cursor count is 0).

- This CL uses the second option so that we don't
need to add a cursor dependency in getItemViewType()
of ContactTileAdapter.

- Added a TODO because UI changes like this highlight
the fact that we should do some refactoring to
ContactTileAdapter and ContactTileListFragment
so that it's easier to add specific functionality to
the favorites, frequent, or group list.

Bug: 5485640
Change-Id: Ib365543892f452cc9c87406ed2d04c1b5aad4b2c
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileFrequentFragment.java
ndroid/contacts/list/ContactTileListFragment.java
6feb0d3fcae55524e66edc1bad4e97ac936ec197 27-Oct-2011 Katherine Kuan <katherinekuan@google.com> Fix contact details not responding to touch events

- Hide updates page when contact has no social updates by
having the view pager adapter return POSITION_NONE for the
updates page view, and implement destroyItem() to set
the view's visibility to gone.

Bug: 5512400
Change-Id: I20aa7d3fe2c31152fa42cb348531bf63ca9f7764
ndroid/contacts/detail/ContactDetailViewPagerAdapter.java
76df4577358b36dae9c0fdd9afb1b16cc428a265 26-Oct-2011 Katherine Kuan <katherinekuan@google.com> Fix "<N> contacts" label in tablet contact list

- When scrolling the contact list, the "<N contacts>"
label jumps by about 20dip because the mPaddingRight
value is accounted for twice in the layout.

Bug: 5429921

Change-Id: I375fe1ffe4ab82a4003f9d30f7bb2327e7aeac58
ndroid/contacts/list/ContactListPinnedHeaderView.java
ffa8963f6d5d0fd672c11dea2c2d16048da36577 21-Oct-2011 Flavio Lerda <flerda@google.com> Correctly match SIP addresses.

When grouping items in the call log, we were using the function to
compare phone numbers. However, this strips all non-numeric characters,
which means that all SIP addresses without a number in them will match.

Instead, SIP addresses are defined to match only if they are identical.

Bug: 5483719
Bug: 5390325
Change-Id: Ic6f1d55ccbd433cc6062ca803fcfd88ae4f68a8a
ndroid/contacts/calllog/CallLogGroupBuilder.java
ndroid/contacts/calllog/ContactInfoHelper.java
ndroid/contacts/format/FormatUtils.java
91cefcd7c35d6f22d2555192506f27a294339131 26-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> One more EXACTLY

I269175d9dea97baa86bcb1badc9e6294dcb7883b has missing part

Note: we have another AT_MOST below the line, but it has very
different history so we shouldn't change that right now.

Bug: 5506837
Change-Id: I238ecd0d1e9fb265e3f3d0c282a15613192355af
ndroid/contacts/list/ContactListItemView.java
4642a18c3a5d944d65e9fd042357a4ef33e6b25a 26-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use EXACTLY instead of AT_MOST for width calculation

EXACTLY is much faster than AT_MOST and will make contacts listing
smoother

Bug: 5506837
Change-Id: I269175d9dea97baa86bcb1badc9e6294dcb7883b
ndroid/contacts/list/ContactListItemView.java
c439427d6c080967a84a8aecc2c6d7838f9516fe 14-Oct-2011 Flavio Lerda <flerda@google.com> Normalize the phone number before contact look up. DO NOT MERGE

The contact look-up request does not include a way to specify a
country which the number may correspond to. In the call log, we might
have calls that were placed or received while in one country and their
numbers will not match the contacts when the user is in a different
country.

To fix this issue, normalize the phone number using the country stored
in the call log together with the number itself and use that to look
up the contact.

Bug: 5252190
Change-Id: I55ca1c22bbfc2b59e279c7654ffa24a9c62367e6
ndroid/contacts/calllog/ContactInfoHelper.java
f36cb574ce36173d340304fa1164d530001db466 23-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Remove CallLogActivity."
1b26ca1bc13cba25da77b24bcd685cebd0027321 22-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Remove "recent_updates" string from values-w470dp folder"
0a0460c1e5b662e2fa96e44817981a82d9abae39 22-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Add overscroll effect to all lists"
34b901ca7781cf7fdd4f6275ef98ae73c95749c2 18-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Filter and header refactoring.

- have AccountFilterUtil to unify account filter implementations.
- modify account header on top of search screens
Now it is bigger than before (40dip > 32dip), and uses people's
blue text color instead of gray (issue 5451033)
- introduce ContactListSeparatorTextViewStyle and use it everywhere

Bug: 5269692
Bug: 5451033
Bug: 5429203
Change-Id: Ibe810ff9adaafc74d53b0dcf171a3853f4be039a
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/EmailAddressPickerFragment.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressPickerFragment.java
ndroid/contacts/util/AccountFilterUtil.java
532db253b803d98bfbbc457c5b559834cdb3b326 21-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Hide vertical scrollbar in starred/frequent section

Bug: 5443509
Change-Id: I30d85be2694fd01303f371b58854212cfdb1f398
ndroid/contacts/list/PhoneFavoriteFragment.java
1c6f3817e9e889664d143ed5ea5147aca595dd21 18-Oct-2011 Flavio Lerda <flerda@google.com> Remove CallLogActivity.

CallLogActivity was only used by tests. Instead, extend
FragmentTestActivity to handle loading of an arbitrary fragment into it,
so that we can test the CallLogFragment within it.

So far, FragmentTestActivity was only used with a UI-less fragment,
which therefore did not need a placeholder for the fragment.

Bug: 5286366
Change-Id: I939d6fb212621345b8a1ba4ec1a3b1c56909ce50
ndroid/contacts/activities/CallLogActivity.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/test/EmptyFragment.java
ndroid/contacts/test/FragmentTestActivity.java
c1313a5fafa7df42dd3712ac003730ea164a073b 20-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "Follow up to EditSchema parser"
86ccb6ce2ff6078b06add93aab489951ef83bc72 19-Oct-2011 Makoto Onuki <omakoto@google.com> Follow up to EditSchema parser

- Now AccountType.addKind() throws DefinitionException instead of just logging.

- Now the test contacts.xml (= test_basic_contacts.xml) defines "event" and
"relationship" DataKinds too. BUA should be able to copy this file.

- Added another xml, contacts_fallback.xml, to the test apk.
This defines what's equivalent to the fallback type. Unittests load this file
directly and compares the result to the fallback account type.

- Cleaned up existing account definitions in order to make sure
contacts_fallback.xml is really identical to the fallback type. This includes:

** Now structured name, display name, phonetic name, and phone DataKinds
all have 'kind.typeOverallMax = 1'.

** The "assistant" phone type is no longer a custom column. It's only used for
the fallback type and I don't think it's too critical.

- Also, NameKindBuilder no longer re-order phonetic fields, because no
other account types do this. In the previous CL I did it because I thought
that'd be more "correct", but on the second thought it's probably not a good
idea to make too many non-critical changes at this point.

Bug 5381810

Change-Id: Ie6a4eb3b876ab22a3dcdb6a9c278e387f8166125
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
d85b98628ad7434d51b4bbf7c92b41917fd234e7 26-Sep-2011 Katherine Kuan <katherinekuan@google.com> Add overscroll effect to all lists

- Add list view style with overscroll = always to
all activity themes

Bug: 5279577
Change-Id: I091c9d316f2d78a41836a95a06fd56705be7150b
ndroid/contacts/editor/GroupMembershipView.java
58d1c07153181420697b608c245f1b16f89e3308 20-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Add empty state to group detail page"
966cc74cb9cff62cf19d7870dd1e2e849de44424 20-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "Fix the double query issue on phone"
f680c9d368165cc80461539830b177c4b823a54a 20-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Use text (instead of icons) for action bar tabs on tablet"
2ca5a25a91b584b4a74ebe4a54b9c2095bce9132 20-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> am c6779501: Fix wrong index calculation around enabled

* commit 'c6779501ce47f95f6271c3a468071cc401368f60':
Fix wrong index calculation around enabled
fc788f7037ac7e1112cca3226a7d356268bd1027 20-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Do not mark as read if it already is."
1db00f68b34f6cf7e9d19fedb559cf12f8c05e9c 19-Oct-2011 Makoto Onuki <omakoto@google.com> Fix the double query issue on phone

The issue was that fragments had separate methods for search: setSearchMode()
and setQueryString(). But now that fragments will never be in search mode
when query is empty, there's no need to expose both methods.

Changed setSearchMode() to non-public, and let setQueryString() call it
when necessary, so now we don't have to issue unnecessary queries.

Note this CL doesn't modify adapters, so they still have setSearchMode()
and setQueryString() as separate, public methods.

Also did a bit of cleaning up on how PeopleActivity handles search mode.
(When I worked on it first time I wasn't too familiar with the code, so was
afraid to change existing code too much, which left the code unnecessarily
complicated.)

Also removed all fragment.setSearchMode()/setQueryString() calls in
ContactSelectionActivity.configureListFragment(). As far as I checked
there's no way to invoke this activity with reqeust.isSearchMode/getQueryText
set.

Also removed ContactEntryListFragment.get/setContactRequest, which weren't used
anywhere.

Bug 5274171

Change-Id: I794db7ed54cb6b8f45d69430ec2f77e7fa83fb8c
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
aaadf9393e98b04a40d249cd97ec758047268ed9 20-Oct-2011 Katherine Kuan <katherinekuan@google.com> Use text (instead of icons) for action bar tabs on tablet

Bug: 5345494
Change-Id: Id83008d868be9fba1d1bfe8c8d60adf0bff0cdcf
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
c81b1e298b86fa65d338caddf94fb4f4df8b2f49 20-Oct-2011 Katherine Kuan <katherinekuan@google.com> Remove "recent_updates" string from values-w470dp folder

Bug: 5480033
Change-Id: Ifb52ba6a9eb6f82b35242c1a81cfc4fe7e95bcd2
ndroid/contacts/detail/StreamItemAdapter.java
f9e225e9d57da2796ef2c95240b9553d983eabc7 20-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use default Notification builder during vCard import"
4270aa76bb02cd76f77170f93fcd6ed3db897bd4 19-Oct-2011 Katherine Kuan <katherinekuan@google.com> Add empty state to group detail page

Bug: 5160342
Change-Id: I1061fae0366285f601cfb7964f74da2eb4e5855b
ndroid/contacts/group/GroupDetailFragment.java
5d7068ab57397b61c81395e6bcd80b8dea93ee0f 20-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix swipe transition on tablet contact card"
d31b934448727adc3f15c18aec4b64a0bbb9127b 20-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix viewing legacy and raw contact URI on tablet"
c6779501ce47f95f6271c3a468071cc401368f60 20-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix wrong index calculation around enabled

All the other "localPosition" in the file are fine.

Bug: 5485088
Change-Id: Ib8f10964e7a52b35117d2c386e7af2c57367802e
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
253b3366bbb1b6c935ccaf7610511f97569ad956 20-Oct-2011 Katherine Kuan <katherinekuan@google.com> Fix swipe transition on tablet contact card

This happens on tablet portrait view when switching between
contacts with and without social updates.

Bug: 5283623
Change-Id: Idfb6be0d381fe4d72e79e210f2aebf9c6cbde1fe
ndroid/contacts/detail/ContactDetailLayoutController.java
629843cbe75b928d861db477c8cb2241ef891ddb 19-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use default Notification builder during vCard import

Bug: 5389192
Bug: 5143034
Change-Id: Iecb1d09b6c1dfa03513f197811a64064c23b2dc9
ndroid/contacts/vcard/NotificationImportExportListener.java
d25f31898f887bedceabd0ccac45fa61c64485af 19-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "EditSchema parser for ExternalAccountType"
6cd5b0ab721bcc97d465c768a13e292e59259274 16-Sep-2011 Katherine Kuan <katherinekuan@google.com> Fix viewing legacy and raw contact URI on tablet

Bug: 5220640
Change-Id: I85c748389921bdff2639fff5f7713e00ba7f9f8c
ndroid/contacts/ContactLoader.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/util/ContactLoaderUtils.java
7b9db07d333f35c6a737fe0f217b52c252310a4a 05-Sep-2011 Flavio Lerda <flerda@google.com> Do not mark as read if it already is.

This prevents notifications to be sent to voicemail sources when nothing
has actually changed, which may trigger a full sync every time one opens
a voicemail which was already read, which is unnecessary.

Bug: 5475195
Change-Id: Icc99eb1250dc8e650ef6b129fdc2d870f4e0dabb
ndroid/contacts/CallDetailActivity.java
2624136fddb5054d3b1b2824ce6cfeaadba83305 19-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Normalize the phone number before contact look up."
dcf751d75ad5d31620a4216d8c53fd59525e8bd8 18-Oct-2011 Makoto Onuki <omakoto@google.com> EditSchema parser for ExternalAccountType

This also includes:
- Removed getHeaderColor/getSideBarColor from AccountType

- Implemented a test authenticator/sync adapter in the test apk.
This defines a test account type "com.android.contacts.tests.authtest.basic".
We could potentially add more account types to the test apk to test different
edit schema variations, but at this point this is impossible, as
ExternalAccountType doesn't have a way to tell which contacts.xml belongs
to which account type. The current contacts.xml defined here builds
the fallback account type equivalent.

The sync adapter is pretty rudimentary; it doesn't clear the isDirty flag
on modified raw contacts or delete raw contacts with isDeleted set. At
this point this doesn't seem to be necessary to test EditSchema.

Note:
For now it's still not meant to be public API. Right now it's only manually
tested with the edit schema defition in the test apk described above.

Bug 5381810

Change-Id: Ifefdb969b4e08775125924b1366d24effc4db2f2
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/util/DateUtils.java
fa9b1587b8233bc8bd420c1c1abca0bdde58c2aa 19-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "Make LIST_GROUP really open the group tab."
a012aec6f22dd6a37c518c895db45b173e186ef4 16-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make a Singleton for ContactListFilterController

Better fix for issue 5165507 "Contacts to Display filter loses its
setting when going from People to Phone app". Now the whole app
has one instance and People and Phone UIs share it. All notification
will be delivered to both Activities, and thus no hack on onStart()
will be needed.

Also fixes issue 5299160 "Account filter header not updated when account
is removed from device". We need to update filter after
AccountTypeManager finishes its reload operation.

Now filter settings should be saved only from the controller, so this
change removes the code saving filter settings to SharedPreferences from
Activity/Fragment.

Bug: 5165507
Bug: 5299160
Change-Id: I4118271f1a78976af6cb3d432b1dd7b30c18eb7a
ndroid/contacts/ContactsApplication.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/model/AccountTypeManager.java
56b10f65d5f3dfd2ab80510f27371b57821c7f6d 19-Oct-2011 Makoto Onuki <omakoto@google.com> Make LIST_GROUP really open the group tab.

Let's just drop the support for the GROUP_NAME_EXTRA_KEY parameter defned in
the legacy Contacts.java.

Bug 5222596

Change-Id: Id91280df170a34378b5c7d41fb857c1df3b6cf78
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
7f8d6a5e022285a2cd629f54d4eb9f4cfd394f33 19-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Introduce ActionBar in picker screens"
04ffa93cebaf37ae572f0667420cf6f2a41e01d8 19-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE with quick fix in ContactDetailFragment"
3fd4d5ca9cc366425e9b1bed91565e0315810d07 18-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Set correct marquee effect."
a8729cdf778f9ca927b06afde685f7ac6b8c917f 12-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Introduce ActionBar in picker screens

This change focuses on phone screens. Tablet UI fix will be
done later.

- show SearchView on the action bar
- show "create new contact" as a menu on the split action bar
- keep "create new contact" button for tablet support.
- a few visual tweaks for phone

Also this removes "show all contacts" item in JoinContactActivity.
Now all contacts are shown by default.

Bug: 5394377
Change-Id: I82e59b374888d522c81cd4957cb3fde286b419f6
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/JoinContactLoader.java
073f1f9e0ba3b1195d1d56590decf62645f20b6a 18-Oct-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE with quick fix in ContactDetailFragment

Bug: 5422672
Change-Id: I4b088cf230a5dea4868b0887cab909ef1af876d2
ndroid/contacts/detail/ContactDetailFragment.java
efed8dc92f6dcc652599f93884576cf61a1103a8 18-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Also look up number as an "Internet call" address."
0296cb0a12b8b24b960172ceb594f8c92fbfba21 18-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Use framework API to match voicemail number."
78d081dce1a32c8697f7a371ba3025b96bf94e31 17-Oct-2011 Flavio Lerda <flerda@google.com> Only show options menu items when loaded.

Previously, we were showing the "Trash" option in the action bar before
the data was loaded, because we already knew this was a voicemail from
looking at the call log content, but we waited until the contact
information was loaded before showing the other options.

This lead to the set of options to change when the data is loaded, which
was confusing for the user which might already be interacting with the
action bar by that time.

Instead, this commit disables all options by default and enables the
needed ones only when the data has been fully loaded.

Bug: 5461913
Change-Id: I93c21c4afbfed62d0cb1b3649ff24278bfabf289
ndroid/contacts/CallDetailActivity.java
4b92b45ec43f74e450b192d5adbf8d092df32a08 18-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Do not look up contact for calls to voicemail."
252fabfd63452535d5c63694d7c5a6d7c24dd256 14-Oct-2011 Flavio Lerda <flerda@google.com> Normalize the phone number before contact look up.

The contact look-up request does not include a way to specify a
country which the number may correspond to. In the call log, we might
have calls that were placed or received while in one country and their
numbers will not match the contacts when the user is in a different
country.

To fix this issue, normalize the phone number using the country stored
in the call log together with the number itself and use that to look
up the contact.

Bug: 5252190
Change-Id: I46471fa2acffd541a2192f6948a613c13484c2d1
ndroid/contacts/calllog/ContactInfoHelper.java
1cb48ff3650021fee26aed17f09a486f48158610 18-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Set correct marquee effect.

We need to specify Spanned with MARQUEE to let TextView
enable MARQUEE_FADE_SWITCH_SHOW_ELLIPSIS for marquee fade mode.

Bug: 5265348
Change-Id: I46a86239d76db1c330379b9097babdfbe734ce7d
ndroid/contacts/list/ContactListItemView.java
0a65b8bbf7f00edb0cb0d17934f53bd4206b3ce7 17-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Ellipsize texts in contacts list correctly"
8c0397a1ed98ea253f8024428ecbb061605bb8dc 17-Oct-2011 Daniel Lehmann <lehmannd@google.com> Merge "Don't declare package-listener in Manifest but instead in code."
5d5aea3e2d3e677be9ee75238ea88708278b57b0 17-Oct-2011 Daniel Lehmann <lehmannd@google.com> Merge "Remove live folders"
2eb1be625832f77ba9c6a3e9dc13b2ecf3f25214 15-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Ellipsize texts in contacts list correctly

Measure correct width during onMeasure() so that each TextView
can decide if text should be ellipsized.

Also use View's padding mechanism instead of managing our own
padding values.

Bug: 5265348
Change-Id: I2696a6099ab176dd27117a802997d0cceb2ed153
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
1d18da7d48d31aa5f5ee94e188e80400eac03595 17-Oct-2011 Flavio Lerda <flerda@google.com> Also look up number as an "Internet call" address.

If a number in the call log is not found as the number of a contact,
also check whether the number was added as part of an "Internet call"
address for one of the contacts.

Normally, one should put a full SIP address in the "Internet call"
address, but it is possible to put just a plain phone number and that
still correcly works to dial that number using the internet calling
feature.

However, the call log does not correctly match the number in that case,
because a plain phone number is never looked up as an "Internet call"
address.

This commit adds that look-up, if the regular look-up of a phone number
fails.

Bug: 5390273
Change-Id: Ibb722083ea1e0166bdd630a6f12f678a90de41eb
ndroid/contacts/calllog/ContactInfoHelper.java
12ea652c197935cb4960cc5643a9d81872c49175 17-Oct-2011 Flavio Lerda <flerda@google.com> Do not look up contact for calls to voicemail.

Bug: 5469343
Change-Id: Icb972f9e4d2beb83cd81b0e70897a2cc16dab2b8
ndroid/contacts/CallDetailActivity.java
0646f2712e8b4a5ada51bd586d5f179d38a304c5 17-Oct-2011 Flavio Lerda <flerda@google.com> Use framework API to match voicemail number.

We were tracking the voicemail number within the application. This has
two shortcomings: it would not be updated automatically when its value
changes and the matching against it was only based on it being
identical, without taking into account other possible formatting
differences.

Switch to use PhoneNumberUtils.isVoiceMailNumber() instead, which is
what the Phone app is also using.

Bug: 5435925
Bug: 5416495
Change-Id: Ie56363c578cf5f6102fd6880ffce14f608ddaf0b
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
ndroid/contacts/calllog/PhoneNumberHelper.java
74d17dd2ee232a013bde74980aa0d7a6d1112a3d 17-Oct-2011 Daniel Lehmann <lehmannd@google.com> Remove live folders

Bug:5254892
Change-Id: I19fbb28e99e60b4e70f73208664603aeed92f992
ndroid/contacts/ContactsLiveFolders.java
90921b3bfd9b3492a19a5fbbf6e0309b97a32425 17-Oct-2011 Daniel Lehmann <lehmannd@google.com> Don't declare package-listener in Manifest but instead in code.

Bug:5149613
Change-Id: Iea0e40af98dfe9bd70ce5fcaac35a4b5361d5756
ndroid/contacts/quickcontact/PackageIntentReceiver.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/ResolveCache.java
b189b320867b70e96ea0351f6fd74385552d4115 14-Oct-2011 Flavio Lerda <flerda@google.com> Update styling of voicemail status.

Bug: 5226169
Change-Id: I12ca10429710d35e98fb4135a034c2b97fe6c32d
ndroid/contacts/calllog/CallLogFragment.java
b07f4abc04d390b1f9e1c617af17317a57591281 14-Oct-2011 Dave Santoro <dsantoro@google.com> Merge "Pre-authorize VCard URI when sharing profile." into ics-mr0
0e52f40b8469382613eb666fe7d5f39b4dbb4e90 13-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix possible NPE in ContactPhotoManager." into ics-mr0
410d0dcd2d4119cf1c627adc68bb58775dac461a 11-Oct-2011 Dave Santoro <dsantoro@google.com> Pre-authorize VCard URI when sharing profile.

Bug 5437453

Change-Id: Id91016d4b8bb174c2c29eb7e607ba72d4bc60588
ndroid/contacts/detail/ContactLoaderFragment.java
bf9b213e047da2f39d2b7fd237aad1e08e46e813 12-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix possible NPE in ContactPhotoManager.

It may put null to LRUCache when input has some problem.

Reported via public issue tracker (issue 18369)

Bug: 5447001
Change-Id: Icee410d2a999af3aae828b5a0eb61fb9b5c7db99
ndroid/contacts/ContactPhotoManager.java
832dc19a65868b65f1e2d390a0c3cea413f61d2c 13-Oct-2011 Daniel Lehmann <lehmannd@google.com> Merge "Check for cursor closed." into ics-mr0
142c471d39fe4e566c7051428b01cc3ded74d749 13-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "Only show "add connection" button if relevant" into ics-mr0
bb0adc9e3d515c584268d86bd1bb94c04c92a377 13-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use "all contacts" icon for favorite tab" into ics-mr0
ecc3c2a547b48a9178b8a0ab3120e15ed5cb78e8 13-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show a cursor on long press" into ics-mr0
9679e44ab946e3c822b7a733f1a998a5cbbfc2b5 13-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use "all contacts" icon for favorite tab

Bug: 5443416
Change-Id: Ibbad768ae88341ea1d0ef5d26285a2130bbc25d2
ndroid/contacts/activities/DialtactsActivity.java
08bcf715d5ea7f07ce18a282d9850ac70552ca9d 09-Oct-2011 Katherine Kuan <katherinekuan@google.com> Only show "add connection" button if relevant

- We don't want to present the user with the "add connection"
button if the user doesn't use the account that provides the
service

- Check if app contributing the account type is disabled or not

- Check if there is an activity to handle the "add connection"
intent

- Check if there are raw contacts in the database with that
account type

- Store this in a cache, and refresh it after a certain
period of time (i.e. 1 second) using an AsyncTask.
This is to prevent computing the list each time the contact
is loaded (which can happen many times especially when looking
at a detail page during a sync).

- Make sure public AccountTypeManager methods
first check ensureAccountsLoaded()

Bug: 5398529
Change-Id: I004f9562a587035a3168aaddb6eb43710fd201e6
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/AccountTypeWithDataSet.java
5bb0be1ae7f8148800602568a6f4ad0528a698e9 13-Oct-2011 Daniel Lehmann <lehmannd@google.com> Check for cursor closed.

The framework became stricter in MR0, so even though this is a rare
issue it could still crash our app. This CL should take care of that

Bug:5449584
Change-Id: I7f5bb5042e49bd713967ef9e01947cd6d4fdb487
ndroid/contacts/list/ContactTileAdapter.java
76fc6a287f602528ef13962fc8d1d5a8a75fd90b 12-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show a cursor on long press

Digits field doesn't allow "paste" option when there's no
text there, since EditText doesn't allow that when the cursor
is invisible while we intentionally hide the cursor.

One side effect of this change is that users will see the cursor
regardless of "paste" status if they long-click the field.

Also hide the cursor when it is at the end of the text.

Bug: 5394377
Change-Id: I046db65ac869ab8de860448d4dfe05199f48406b
ndroid/contacts/dialpad/DialpadFragment.java
ca5108d0a25020bf12a324ef2d1ce13d73a9b828 12-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Only show recent items in the new section." into ics-mr0
68fd09dd63e1aeed92fb1519a00121ea3eae5c92 12-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Cherry pick "Use number in the call log and call details." DO NOT MERGE" into ics-mr0
7e8372e5fe33ff7252c79b7de7d55b4885074c8c 12-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show previous tab after phone call in phone search

Previously we've shown calllog when users called from
phone search screen. Now this change navigates users to
each tab (phone, calllog, favorite) when phone is made
from phone search.

TESTED:
incoming calls
-> go back to calllog

outgoing calls
- make a phone call from dialpad -> go back to dialpad
- make a phone call from favorite -> go back to favorite
- make a phone call from calllog -> go to calllog
- make a phone call from call detail -> go to calllog
- make a phone call from People UI -> go to calllog
- make a phone call from dialpad and launch Phone UI
again during the phone call -> go to dialpad
(previous commit log says "go to calllog", but it looks
wrong)
- make a phone call from contact card (reached via
phone favorite) -> go to calllog
- make a phone call from dialpad or favorite, bail out the
in-call UI. Have the recipient hang up the call.
Then have an incoming call again. Hang up the second phone
call.
-> go to calllog

(new)
- make a phone call from search UI launched from dialpad
-> go to dialpad
- make a phone call from search UI launched from favorite
-> go to favorite

Bug: 5360106
Change-Id: I58f0e7160896bed5eae7d2bd8c7739712d6c681c
ndroid/contacts/activities/DialtactsActivity.java
76821d02351701b3829aa5754dd9a86e417f635f 10-Oct-2011 Flavio Lerda <flerda@google.com> Only show recent items in the new section.

This commit limits the set of items in the new section to items that
have been receiving within the last 7 days.

In order to make the unread items more visible even when they are not in
the new section, use highlighting on them, both in the text and the play
icon.

Bug: 5403047
Change-Id: I577c58bfcb9ef2031839092d50f41c357c7decba
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogQuery.java
ndroid/contacts/calllog/CallLogQueryHandler.java
79318fc2faaddaa0411523c2480d128f2fa16bb2 10-Oct-2011 Flavio Lerda <flerda@google.com> Cherry pick "Use number in the call log and call details." DO NOT MERGE

Since we are using that number when dialing, we should also use it when
displaying the number.

Bug: 5331961
Change-Id: I70d3fe724461cf15c1749af627d07369294eecc6
ndroid/contacts/calllog/ContactInfoHelper.java
6493e0e49a88f41391a42823f60d5009f48fb437 10-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show label more appropriately.

- align bottom of data and label
- refrain overlap between data and label
- make label's ellipsys effective

Bug: 5438757
Change-Id: I94de518e53688a7bdf889c3ec0f8e3efa57670d5
ndroid/contacts/list/ContactListItemView.java
1dff6b60c28fa34e477b84c95c4bbe6c9b482416 11-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> [Phone] Conditionally show fast scroller on favorite

Bug: 5438604
Change-Id: If04d438a4b2d3d3218e422f06ec3008ccb6caf7f
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
5db4f136163675105813900b1f3f7da48bde97b6 10-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> [Phone] Fix layout for phone favorite screen

- Have additional padding between headers
- Use blue color for filter header in phone favorite
- Have bigger texts for A-Z section header
- Have photos on left in "phone search" screen
- Add "New Contacts" menu in favorite screen

Because LayoutFilter isn't ready on Fragment#onAttach(),
we need to have initAdapters() on onCreateView(), which looks
strange. However it will need much work to move every layout
logic to PhoneFavoriteMergedAdapter, let's just have a TODO
for that.

Bug: 5432231
Change-Id: I19b0849a6ec1fd38bec259859753dab13b88cc12
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
05cca02b77521db4a0c9e84f9cd5e0b6e8ccf09c 09-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Share contact look up between call log and call details."
1f8f63e309f19acbafd20d33d70bce3a1b2ac0d4 08-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "Clean up account definition"
8b0466281b70c59ec5dc71e12db92f4d56c64f6e 08-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "[Phone] New phone favorite tab."
9b9104874ec0680ac60cb0527d127fc1c34bdb7e 30-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> [Phone] New phone favorite tab.

This change introduces yet another fragment for a special
"phone favorite + phone all" screen and uses it as Phone UI's
"Favorite" tab instead of using ContactTileListFragment.

The new fragment merges two adapters into one adapter called
PhoneFavoriteMergedAdapter. To keep layout consistency between
two adapters, the new adapter tweaks original Views on demand,
especially paddings for those Views.

Now that "favorite" screen contains "all phone" section, we should
treat previous "all phone" screen (PhoneNumberPickerFragment) as
"phone search" screen instead. To do that, this change also replaces
"ALL CONTACTS" strings/icons with "search" magnifying glass icons.
IME is now shown up upon the search button click again.

Bug: 5359840
Change-Id: I04cb2433882d74f1e826c02991a5a54c3be993ab
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/PhoneFavoriteFragment.java
ndroid/contacts/list/PhoneFavoriteMergedAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
50a27b70581b0191995969c63edd1f6a3db3d1b7 07-Oct-2011 Makoto Onuki <omakoto@google.com> Clean up account definition

Removed:
- DataKind.isList. Use typeOverallMax = 1 instead
- DataKind.textAppearanceResourceId. Always use medium
- EditField.isFullName. Wasn't used.

Bug 5381810

Change-Id: I5ff109c075a5edb80ff97737432c78589570a1ea
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ee05dcdd4b066ad909322c10919fb1812214673b 06-Oct-2011 Katherine Kuan <katherinekuan@google.com> Cleanup of chat capability icon and primary icon in DataKind

- Add content description to chat capability icon for
accessibility

- Remove primary icon from DataKind because we don't display
it anymore in the UI (it's an unused field since we only
display secondary action icons now)

Bug: 5416674
Change-Id: I6587dd9186af68b0e794d3e73cbc3dad9fdac332
ndroid/contacts/ContactPresenceIconUtil.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
22c3d41492fb24dbb61e7fdeeaa06a0d9229d3a1 08-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "Fix duplicated DataKinds for external account types"
c064de7e78860474db30c3497c51587c75138859 08-Oct-2011 Katherine Kuan <katherinekuan@google.com> Merge "Ensure not to use "local" account when there are accounts"
e099fbf70e6b3908388a1d87a1209f05932eb673 07-Oct-2011 Makoto Onuki <omakoto@google.com> Fix duplicated DataKinds for external account types

Bug 5430460

Change-Id: I99228b7dcfaa7bc7af0c2eaac2210398ebaa2e1e
ndroid/contacts/model/ExternalAccountType.java
aa833a38116211302ff8cb902879e3b3d1c477c1 07-Oct-2011 Daniel Lehmann <lehmannd@google.com> Merge "Set type to filter to prevent spell-checker"
131e6ac666868645b48ae6932575d85751ff57c0 05-Oct-2011 Makoto Onuki <omakoto@google.com> Ensure not to use "local" account when there are accounts

Bug 5409438

Change-Id: I30e72bb686ed0ccbd9c7c42d4331c4ce418efdc4
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/model/AccountWithDataSet.java
731f861593f3de69e8b3070b46e589cab42341f9 07-Oct-2011 Flavio Lerda <flerda@google.com> Share contact look up between call log and call details.

Currently, it is possible to get a contact be correctly identified in
the call log, but not in the details, because the logic to do the
look-up are completely separate.

For example, SIP contacts are correctly looked up by the call log, but
not by the details. Moreover, we recently fixed a few bugs in the logic
for looking up contacts in the call log, that have not been propagated
to the call details because the code is independent.

This commit moves the whole logic of looking up a contact given a number
(which may be a SIP number) from the CallLogAdapter into its own class.
Then, CallDetailActivity can use that to look up the contact in a way
that is guaranteed to yield the same result.

Bug: 5415134
Change-Id: I73acc39ba5dc65ecce6861f210224304fd91822d
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/ContactInfo.java
ndroid/contacts/calllog/ContactInfoHelper.java
ndroid/contacts/calllog/PhoneQuery.java
e810bdb46c76804ef714848c0cd9ca4439005e61 07-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Remove strict mode violation with number formatting."
33d64bae650e8e0ec45f1ad1f31c759c8a8704be 07-Oct-2011 Daniel Lehmann <lehmannd@google.com> Set type to filter to prevent spell-checker

Bug:5404735
Change-Id: I700a7f4ee7ba6a76d0b016e0a0fb9824c357c1af
ndroid/contacts/activities/PeopleActivity.java
24b2907cc07d5d29c5705103cd85d109dd2e7ba4 07-Oct-2011 Daniel Lehmann <lehmannd@google.com> Merge "Remove the STOPSHIP. This is tracked in a bug"
50478544084c8c34c588166d5b15850b8fadc8af 07-Oct-2011 Daniel Lehmann <lehmannd@google.com> Remove the STOPSHIP. This is tracked in a bug

Bug:5425616
Change-Id: I32e92be287e28ee80d02ab63042b5e131403a196
ndroid/contacts/list/DefaultContactListAdapter.java
7c8ae387998e62218693980982d7e70d1c6d8b92 07-Oct-2011 Mindy Pereira <mindyp@google.com> Merge "Additional ui changes for quick contact."
85af84634b8c3f2c07bdc85d47e72423a03e5ec1 07-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Finish exporter Activity after launching VCardService"
485b5af512ea100875d06554384216e52b653d07 06-Oct-2011 Mindy Pereira <mindyp@google.com> Additional ui changes for quick contact.

More fixes to bug:5233213 Quick contacts still needs some UI fixes
These changes:
1) shorten the max height of a list of contact pts
2) add borders to the top of the image and bottom of the list
3) move the content of the quick contact down
4) make the dividers narrower.
5) make the first line of text for everything except a postal address
1 line max and ellipsized at the end.
Change-Id: I7fce4db1a18d1b68814e55805fe4fe7c51cbd648
ndroid/contacts/quickcontact/QuickContactListFragment.java
df4336c1af254945971c991c93dc1a4860a2f904 06-Oct-2011 Mindy Pereira <mindyp@google.com> More adjustments to quick contacts to fixup layout.

1) make website 1 line and ellipsize
2) give 12dip margin on top and bottom of all text

More fixes for bug:5233213 Quick contacts still needs some UI fixes
Change-Id: Ibba14d51bee44ca4e551ca411693035a5a45d57c
ndroid/contacts/quickcontact/QuickContactListFragment.java
6684914bfe0aa3d81ca64e4109b5d170a75f9a28 06-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Finish exporter Activity after launching VCardService

Bug: 5394627
Change-Id: I1e4998d0e5ab28eb4bce49ea9462b0767cd6d3b3
ndroid/contacts/vcard/ExportVCardActivity.java
74628686391735dac1b13409e7f61e9f1514ea20 06-Oct-2011 Flavio Lerda <flerda@google.com> Remove strict mode violation with number formatting.

The call log is currently performing formatting on phone numbers in the
main thread (during bind view).

At the same time, however, we are always doing a background request to
look-up the contacts. Move the formatting call to the background thread.

In order for the right information to be shown as soon as the call log
is opened, we also need to store this information in our cached values
in the database. This means that the number will show unformatted the
very first time, and then updated once the background require is
completed.

Bug: 5316982
Change-Id: I20d1971948afa33c7825f0bd38a9520021f75378
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogQuery.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/ContactInfo.java
1a817f04a3fff3d578f5290ea8d82faba7d44b02 06-Oct-2011 Andy Huang <ath@google.com> update contact shortcut appearance

* single-letter labels are now full (ellipsized) label text
* use default avatar for direct dial/SMS shortcuts
* surround photo with darkened outer border

Bug: 5333888
Change-Id: I743a2bdee6697af6253cf52a9b7351d36eaa05ec
ndroid/contacts/list/ShortcutIntentBuilder.java
e128f1e6790c6efd219aca11bcfe4f5fadd594bc 06-Oct-2011 Mindy Pereira <mindyp@google.com> Make fixes to the quick contact layout.

Fixes bug:5233213 Quick contacts still needs some UI fixes

Change-Id: I096a3305b063bf52bda828da298f33c79fa719bc
ndroid/contacts/quickcontact/QuickContactListFragment.java
56e5d9f9f11bd188bbb577d9cb7e1919708410d9 05-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "SelectAccountDialogFragment: Handle orientation changes"
f6668539e2016871948eb9e532fdfed09b904dde 05-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Revert "Remove strict mode violation with number formatting.""
55e30c7a0feb8fe533b489c6c053454bfb2eb155 05-Oct-2011 Flavio Lerda <flerda@google.com> Revert "Remove strict mode violation with number formatting."

This reverts commit bbe62216b5163ec53eb990218bdbe608631dd8e7

Broke the build.
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogQuery.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/ContactInfo.java
d2debeaa2780b95f7feb51ec466290596ffe5a4c 05-Oct-2011 Daniel Lehmann <lehmannd@google.com> Merge "Remove strict mode violation with number formatting."
bbe62216b5163ec53eb990218bdbe608631dd8e7 28-Sep-2011 Flavio Lerda <flerda@google.com> Remove strict mode violation with number formatting.

The call log is currently performing formatting on phone numbers in the
main thread (during bind view).

At the same time, however, we are always doing a background request to
look-up the contacts. Move the formatting call to the background thread.

In order for the right information to be shown as soon as the call log
is opened, we also need to store this information in our cached values
in the database. This means that the number will show unformatted the
very first time, and then updated once the background require is
completed.

Bug: 5316982
Change-Id: If1e4990243e73af6c9519fbf5e76a5d234e99e15
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogQuery.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/ContactInfo.java
a887353da23abcbfe522bd04421ae19cafb11baf 04-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Check voicemail capability when "1" is longpressed"
e2a24572b9f3b58c78450bc18c27bf5f9f93298c 03-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Check voicemail capability when "1" is longpressed

TESTED:
- longpress "1", accessing voicemail
- call a prohibited number
- It was hard to reproduce the original issue, so I tried
replacing "isVoicemailAvailable()" with "false" in the code and
saw if it worked.

Bug: 5393977
Change-Id: I46eb3bcf425b34290fdebd8bea1c16bb37d10b8b
ndroid/contacts/dialpad/DialpadFragment.java
19e1af14a48ee946e25b6e75e1dbc6a1dd0f3dcf 03-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "ContactLoader: set requested URI to error/not found result"
746cc53c5df0a2e4fd9855323d81b7321c950ad9 03-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "QuickContact: Use "geo:" URI to open postal addresses"
2621c5bb7049401c8bce740005fa60bf1b304b86 03-Oct-2011 Makoto Onuki <omakoto@google.com> ContactLoader: set requested URI to error/not found result

- Now both the "error" and "not found" results have the requested URI.
- NOT_FOUND is no longer a singleton; there's now "isNotFound()" method
in accordance with isError().

Bug 5350017
Bug 5201346

Change-Id: Icb9080d3885ea2217e73a59db3825984746c3eb3
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
b5e87d6fe46c799d272473809aa39318e0e875e7 03-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Remove some verbose logging that is not needed."
bfb59d8edce8c5604915a6e2ec288ad0becc7c7d 01-Oct-2011 Makoto Onuki <omakoto@google.com> QuickContact: Use "geo:" URI to open postal addresses

Use VIEW + "geo:0,0?q=ADDRESS" intent when opening postal addresses.
Which is what we do on contact card.

Bug 5388769

Change-Id: I2b960b7378ae4bedee27a72022d9fa41c9e8dfad
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/util/StructuredPostalUtils.java
ecdccbaea900d94a397e8bce89cd1f3fb565bc0e 03-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Do not show black header if there is no action."
126a4203a99145c32cf6b0a188a845b12b9c2a98 03-Oct-2011 Flavio Lerda <flerda@google.com> Do not show black header if there is no action.

In the call details activity we show a black overlay on top of the
picture for adding a contact or accessing the contact. For some numbers,
no action is possible, e.g., SIP number without a contact, voicemail
number, private numbers.

In those cases, do not show the black header at all, since there is no
action this header would be describing.

This requires a bit of changes to the scrolling: if the header is not
present, we should scroll out the entire picture and the separator line
out of it.

Bug: 5400504
Change-Id: I2effa6664df6eec6051b5c685cea527f56e049f1
ndroid/contacts/CallDetailActivity.java
2271ad6158a0199f7f9da26d9c9f755075805507 03-Oct-2011 Flavio Lerda <flerda@google.com> Fix updating of seek bar position while seeking.

We stop updating the seek bar position in the background while seeking.
However, if the background task was running at the time we stop it, it
will still update the position once more, with the default value of
zero, which made the seek bar jump to zero at what seemed like random
times.

Instead, if the updater has been stopped, simply return immediately.

Bug: 5094799
Change-Id: I3f9f52ffcce442bb19f1f1a6731161d7fc2e94cd
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
fc5f828e1612ed4fcfacf6edfbc155058fdc0c9b 01-Oct-2011 Flavio Lerda <flerda@google.com> Remove some verbose logging that is not needed.

Change-Id: I63972ba0e1d7314aaa7f9acd3168c72a4cbe77c5
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
6858dd385827345713f36372cadcefaa7194c91f 01-Oct-2011 Flavio Lerda <flerda@google.com> Fix looking up of contacts for SIP calls.

Currently, for a SIP call we only look up whether there is a matching
SIP address on one of the contacts.

However, it is also possible to receive calls from regular phone numbers
on a SIP account, e.g., if there is a incoming calls number associated
with the account.

In those cases, the SIP address of the caller is of the form
<number>@<domain>.

This commit changes the look-up code for SIP calls in the call log to
fall back to looking up the <number> part of a SIP address if there is
not a match within the SIP addresses of contacts.

This is in line with what is already done for incoming and outgoing
calls placed via SIP to regular phone number.

Bug: 5390366
Change-Id: I98b359eee08a943f9cef719390bb8dcb4da09b67
ndroid/contacts/calllog/CallLogAdapter.java
cd79d0367d8c17035b6a0153b25d31548d139e6a 01-Oct-2011 Flavio Lerda <flerda@google.com> Merge "More fixes for push-states."
fbb876392608a36ec1d23704f29d8b46d5d23991 01-Oct-2011 Daniel Lehmann <lehmannd@google.com> Add missing copyright headers

Bug:5399509
Change-Id: Iba658e35cd0bf71a9320037ddb80257003f780c7
ndroid/contacts/model/DataKind.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/util/HtmlUtils.java
ndroid/contacts/util/ThemeUtils.java
c0b3fa6bae64fb42e3565cbc41d6de899dbed448 30-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Fix as-you-type formatter for new contacts"
151d6bd83b2bdad993f9fe943f0d2608d99de94c 30-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Updates disable states for voicemail."
ede69077adc84449a29af3e8869a125baecf5856 29-Sep-2011 Makoto Onuki <omakoto@google.com> Fix as-you-type formatter for new contacts

It looks like for new contacts onPostExecute() gets executed
before the target view is attacheed.

Removed the "is view attached?" check, as addTextChangedListener()
is actually safe to call even if the target view is not attached.

Bug 5362018
Bug 5385441

Change-Id: I178063c4e061fdcab27e25b9dfdc7fe25fd97153
ndroid/contacts/util/PhoneNumberFormatter.java
8e683e8ef2f27140a94f6c41ea83d8889097522f 29-Sep-2011 Flavio Lerda <flerda@google.com> More fixes for push-states.

This commit addresses the issues with:
- add connections;
- frequently called and contacted.

Bug: 5341956
Change-Id: Ie956b26c7fddccf2fdb91bc0d655d3479a85593b
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/list/ContactTileAdapter.java
5b32cd5d397675fff2189f6b1662695cc33a1348 30-Sep-2011 Flavio Lerda <flerda@google.com> Updates disable states for voicemail.

Use updated disabled assets for voicemail.
Use the correct disable state for the play icon.
Do not show a thumb or already played bar when seek bar is disabled.

Bug: 5282585
Change-Id: I522793b55b36b03e7af6b0195f4005432446e8f8
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
241a19c57b9d9693695f8339315a35d99c7eba2a 30-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Improve accessibility of call log's call button."
7ecd4db75649634acddc42b64f6bf933d2f37a44 28-Sep-2011 Flavio Lerda <flerda@google.com> Improve accessibility of call log's call button.

Use the contact name or phone number is the content description for the
call button, so that it is clear which person or number will be dialed.

Bug: 5276039
Change-Id: Icb63d4a26a978b008af470dde12e5e7e93a242b6
ndroid/contacts/calllog/CallLogListItemHelper.java
52d5545e61a2410df979eff4fc8f9f566b263799 29-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "Avoid showing error if contact removed on save."
2e13dae8f2b52441b3eef947e1207fcc67e26975 29-Sep-2011 Daniel Lehmann <lehmannd@google.com> Merge "Allow sync adapter to rename the "View Updates" button"
d7dfdee089842b5c8cf65f9d4251fb428ad79aa2 29-Sep-2011 Daniel Lehmann <lehmannd@google.com> Allow sync adapter to rename the "View Updates" button

Bug:5382678
Change-Id: Id848c018788d31927b27863ea86d45159aa31040
ndroid/contacts/group/GroupDetailDisplayUtils.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/ExternalAccountType.java
e62c2dcfd8fe9b0e0266552eb6dd8b919ef03ec3 29-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use CALL_ORIGIN flag"
17c62974608af9b34908c4a14194d53fd89cca6f 27-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use CALL_ORIGIN flag

CALL_ORIGIN flag allows Phone app know where the phone call
request comes from.

TESTED:
incoming calls
-> go back to calllog

outgoing calls
- make a phone call from dialpad -> go back to dialpad
- make a phone call from favorite -> go back to favorite
- make a phone call from calllog -> go to calllog
- make a phone call from call detail -> go to calllog
- make a phone call from People UI -> go to calllog
- make a phone call from dialpad and launch Phone UI
again during the phone call -> go to calllog
- make a phone call from contact card (reached via
phone favorite) -> go to calllog
- make a phone call from favorite and add another
person to the phone call via in-call ui
-> go back to "favorite" (undetermined behavior actually)
- make a phone call from dialpad or favorite, bail out the
in-call UI. Have the recipient hang up the call.
Then have an incoming call again. Hang up the second phone
call.
-> go to calllog

Must be after I4d5f825f7d5109c6ff8c27b6e53a31ca9e6b832f

Bug: 5360106
Change-Id: I7b88b245e82e96e150937ee53029d397a28a9b2d
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
36d24d7ede42a252c82c4aa783b2231c5e2eea79 26-Sep-2011 Dave Santoro <dsantoro@google.com> Avoid showing error if contact removed on save.

Because removing all data from a local contact can actually cause
the raw contact and contact to be deleted, we need to track that
case so that the caller does not consider the lack of a lookup
URI to be an error.

Also made "Me" header all-caps for no-profile case.

Bug 5346614
Bug 5354364

Change-Id: If1e1d67da9c14eb8782be05b2e39ece19b5ac026
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
c5b1675be47a9e3b9fe3cc4402e000fdee8a85c3 28-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Remove extra line in status updates"
77c20e8355e5bcd3f1106b87abc2b6d582f9b0bf 28-Sep-2011 Makoto Onuki <omakoto@google.com> SelectAccountDialogFragment: Handle orientation changes

- Put all parameters to the argument Bundle, so they won't be lost
on orientation changes.

- Removed the subdialog in ImportExportDialogFragment, which used
the argument Bundle for a different purpose. Now we put the
information needed to ImportExportDialogFragment as a sub Bundle
in the argument Bundle.

Tested all 3 uses:
- "Add new group"
- "Copy to my contacts" (Couldn't configure my device to show this dialog,
so I had to apply a local patch to test this part.)
- "Import from SD" "Import from SIM".
Also made sure other features on "Export/Import" still work, except for
pre-existing bug 5387545.

Bug 5382646
Bug 5369853

Change-Id: If7f75ee8192889dbe484874c52e1a355d6b35c6c
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
323c5906ddf262f1b836f75d61743296cbab54b7 28-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Invalidate the options menu on visibility changes."
c3adaa5c0219ca8e77392b143bc6a6cfd136a0c3 28-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> am 38d7ab4c: Merge "Have a logic to disable "prohibited phone number" rule" into ics-factoryrom

* commit '38d7ab4c5c1eeca78c5871f3c4e7e0319dd9175c':
Have a logic to disable "prohibited phone number" rule
3ab9a63014a2d5e097d221b424d6d4809295abd0 27-Sep-2011 Makoto Onuki <omakoto@google.com> Remove extra line in status updates

- Remove trailing newlines in status updates
(i.e. reshared posts have HTML block quote
tags which get turned into 2 new lines)

Couldn't find a trim() utility method in
Spanned, SpannableStringBuilder, TextUtils, or
CharSequence - it only exists in String, but converting
to a String would cause loss of span info. Instead,
we iterate to look for new line characters manually.

- Hide stream item text views if there is no text
(i.e. prevent an extra new line when there is only an
image and attribution)

- Padding fix in contact editor

Bug: 5279541
Change-Id: Ia1b77da74b18371b022d49720ab42a7b234ba331
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/util/HtmlUtils.java
91758d0483042d2e007f075703a3342346285c14 27-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Have a logic to disable "prohibited phone number" rule

TESTED:
- call prohibited number without setting "persist.radio.otaspdial"
- call prohibited number after setting the property to 1
- call prohibited number after setting the property to 0

Bug: 5350613
Change-Id: I2f3da31bf79f7f916eca6ab2c5c66d893b77b479
ndroid/contacts/dialpad/DialpadFragment.java
6d26ec9f1391ef3c166a2c1fbb61eb1398067e84 27-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Fix account list for group editing (for master)"
d957e0f584409d90fa4d3b9e53e633bcde55f873 27-Sep-2011 Svetoslav Ganov <svetoslavganov@google.com> Merge "Added accessibility code to read back typed or deleted digits."
6f74c0f3313cbb08ee8a8fbb79bfefc5b03fe215 27-Sep-2011 Makoto Onuki <omakoto@google.com> Fix account list for group editing (for master)

- Don't use contact writable account list to populate the
account picker when creating new groups, instead check for
isGroupMembershipEditable() on the account type

- Repeat the same for determining whether the "new group"
button should appear in the PeopleActivity or not

Bug: 5360120
Change-Id: Ifd2fd1cf4ea7bf02d4dcba3e9c023bd7041fab83
Original-Id: Ia1ec62eff3fe4fd5b495548218c58f238ff49788
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/util/AccountsListAdapter.java
5679bed516bd78b2db2f0030256d8ae5c2dc07ef 27-Sep-2011 Alan Viverette <alanv@google.com> Added accessibility code to read back typed or deleted digits.

Bug: 5337550
Change-Id: I5e8cd8d2fb5466827dc47f38e746a415142fb22d
ndroid/contacts/dialpad/DigitsEditText.java
0afe4203bd3d2b85fc272a34700e5cdefebe3d2d 27-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "New editor flow (for master)"
403b725aa5bc7b5a9c8651f30ff323e64af63c8e 27-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "[phone] Don't start search loader before it's ready"
07084691ebb28655fe2ab5cae6b692295c8a2c6d 19-Sep-2011 Flavio Lerda <flerda@google.com> Invalidate the options menu on visibility changes.

Currently, we set the mShowOptionsMenu when the visibility of the
fragment changes. However, it may be possible to update this after the
options menu has been created but before the menu is prepared, which
would lead the menu to be in an inconsistent state.

By invalidating the options menu, we are guaranteed it will be
re-created.

Bug: 5335885
Change-Id: I1183d898d6e4867845aa04e054273bf271695d02
ndroid/contacts/calllog/CallLogFragment.java
ff7b2aa429073d4da6b28e6a4397c2116bd08a1d 27-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> am f4bd01a7: Merge "Enable Dialpad screen to prohibit some certain numbers" into ics-factoryrom

* commit 'f4bd01a76ca87db507d2e969de1b2181ef76ec39':
Enable Dialpad screen to prohibit some certain numbers
1289d903e860073da571636969e9b26a08649437 27-Sep-2011 Makoto Onuki <omakoto@google.com> am 7805b032: Merge "Prevent activity leak which was introduced in Ifb86c931" into ics-factoryrom

* commit '7805b03239813a4a3627ba9d66774c40c627fba8':
Prevent activity leak which was introduced in Ifb86c931
16bad29c54ae19018d30f4f07f6b487510969f32 27-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "DO NOT MERGE Fix account list for group editing" into ics-factoryrom
0353a24d97cc0266eb9bf0ee6c7d6821aeb1896e 23-Sep-2011 Katherine Kuan <katherinekuan@google.com> New editor flow (for master)

- Added dialog-themed activity that pops up on new contact creation
in 3 cases with a variation of message when there are:
* 0 writable accounts on the device
* 1 writable account
* 2+ writable accounts

- The dialog is displayed whenever a new account is added
to the device or the default account has been removed

- Once an account selection has been made by the user,
we store it in SharedPreferences using ContactEditorUtils

- Slight restyling of the account list adapter

Bug: 5355671

Original CL: Ib3343a5aea972b366a9df41b9419ad9561c2243d

Change-Id: I46f4c5687a5b6eaa68b55a568f0d737ad80dfc5c
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/AccountsListAdapter.java
f4bd01a76ca87db507d2e969de1b2181ef76ec39 27-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Enable Dialpad screen to prohibit some certain numbers" into ics-factoryrom
a9655d2a263037eaeb5666a06ba162cfcec3625d 25-Sep-2011 Katherine Kuan <katherinekuan@google.com> DO NOT MERGE Fix account list for group editing

- Don't use contact writable account list to populate the
account picker when creating new groups, instead check for
isGroupMembershipEditable() on the account type

- Repeat the same for determining whether the "new group"
button should appear in the PeopleActivity or not

Bug: 5360120
Change-Id: Ia1ec62eff3fe4fd5b495548218c58f238ff49788
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/util/AccountsListAdapter.java
46c864c98cc3380a757e3b8f6976d2725ee433d4 27-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "DO NOT MERGE New editor flow" into ics-factoryrom
5993574276f0c97216c0bafe464daf75d665dbb5 26-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Enable Dialpad screen to prohibit some certain numbers

bug: 5350613
Change-Id: I8d24c1ca8882bbff005776d3d9676b2c568776b4
ndroid/contacts/dialpad/DialpadFragment.java
42342a7e91b5076bc222802379e12b56272ca366 26-Sep-2011 Makoto Onuki <omakoto@google.com> Prevent activity leak which was introduced in Ifb86c931

Don't store the passed context directly, but use the app context.

Bug 5355671

Change-Id: I7cd4f4d1ee4d9364ae34407718125f65cdf67129
ndroid/contacts/editor/ContactEditorUtils.java
5d3806fd091d8a7ca3922a47cb3be2f3f81ee31b 23-Sep-2011 Katherine Kuan <katherinekuan@google.com> DO NOT MERGE New editor flow

- Added dialog-themed activity that pops up on new contact creation
in 3 cases with a variation of message when there are:
* 0 writable accounts on the device
* 1 writable account
* 2+ writable accounts

- The dialog is displayed whenever a new account is added
to the device or the default account has been removed

- Once an account selection has been made by the user,
we store it in SharedPreferences using ContactEditorUtils

- Slight restyling of the account list adapter

Bug: 5355671
Change-Id: Ib3343a5aea972b366a9df41b9419ad9561c2243d
ndroid/contacts/activities/ContactEditorAccountsChangedActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/AccountsListAdapter.java
a2aaa65357cf088ae25a9d58a4dba976ff904451 26-Sep-2011 Makoto Onuki <omakoto@google.com> am 64d95bae: Merge "Utility methods for new contact editor flow" into ics-factoryrom

* commit '64d95bae817be522e576ece311fa17d88a4c627c':
Utility methods for new contact editor flow
ad5910cd92694ad56d4431a0edde7f685de835c6 26-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Don't use avater as stream photo placeholder"
558669dab4109afebd19eade1f95a396215fb44d 23-Sep-2011 Makoto Onuki <omakoto@google.com> Utility methods for new contact editor flow

- shouldShowAccountChangedNotification() to see if we need to show the dialog.

- saveDefaultAndAllAccounts() should be called when saving a newly created
contact, with the account used to save it. This saves all writable accounts
and the default accounts to the preferences.

- getDefaultAccount() to get the default account.

- createAddWritableAccontIntent() to launch the account setup wizard.
- getCreatedAccount() to interpret the result from the wizard.

- Also implemented Parcelable for AccountWithDataSet, so now it can be
put in a Bundle.

Bug 5355671

Change-Id: Ifb86c931b43fa307b65756cf24cbef4350374c67
ndroid/contacts/editor/ContactEditorUtils.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/AccountWithDataSet.java
763305a87c3484370f22f8a44c490b722fe15360 24-Sep-2011 Dianne Hackborn <hackbod@google.com> Merge "Remove noisy debug logs."
c5597d5d722f723f12172599b4fc69f42b496df8 24-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix name editor data loss on rotation"
8d2cdbf6483485ada8b1275e71bc29ee1a6fb5e4 24-Sep-2011 Dianne Hackborn <hackbod@google.com> Remove noisy debug logs.

Change-Id: Id8eeaa1574074a3992aa3e50cc7cb1733c61f431
ndroid/contacts/ContactsApplication.java
4b9b26ec637a171532a679a3cea3afa342caaa37 24-Sep-2011 Isaac Katzenelson <isaack@android.com> Sort people in group view according to sort settings

Bug: 5364236 People within groups are sorted alphabetically by last name
Change-Id: I808393fbbb07b9f618b8b8f46355bfe2c938e6a8
ndroid/contacts/GroupMemberLoader.java
fb6e35d7aca3465934ce0e98143c1142ff133ee1 23-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Suppress too verbose logging"
2b3ee0f34801444c7d775ce747125459f69712bb 22-Sep-2011 Daniel Lehmann <lehmannd@google.com> Make third party sync adapters editable

- Already merged in factory rom branch under
https://android-git.corp.google.com/g/#/c/136996/
but marked as do not merge, so we submit it
here manually

Bug:3093621

Change-Id: If3bb34f7d29bea4bd873342232bea3c1a77bcd2a
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExternalAccountType.java
b05466a9349441e79fb12d60abdf669168b59593 22-Sep-2011 Isaac Katzenelson <isaack@android.com> Fix name editor data loss on rotation

Bug: 5290661 Edited name for a contact not saved

When the contact editor was recreated on screen rotation the
data on the name editor was updated incorrectly.
The problem was that a change to any of the fields in the name editor
was erasing the other fields. Instead of erasing the other fields, i changed
the code to sync between the display name and structured name so that on
rotation, the data is correctly stored and retrieved.

Change-Id: I644bfea2af4e759e1d7d94aa09840ed15efd079d
ndroid/contacts/editor/StructuredNameEditorView.java
38959cf5b4689d4cdb35f037b1aab0e5e9c42a3d 22-Sep-2011 Daniel Lehmann <lehmannd@google.com> DO NOT MERGE Make third party sync adapters editable

Bug:3093621

Change-Id: If3bb34f7d29bea4bd873342232bea3c1a77bcd2a
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/RawContactReadOnlyEditorView.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExternalAccountType.java
3d3a15c465b0c4105148458307a7b50e9b267fd0 22-Sep-2011 Makoto Onuki <omakoto@google.com> Don't use avater as stream photo placeholder

Bug 5230226

Change-Id: I084676f2322c4071b938f3925471f3128cb6f10d
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
6fc3aacd1bb5498e55d58f469d044e6e0d1246aa 22-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Improve D-Pad accessiblity of the call details."
64593b9772fccbbd0f4154dabc830e6f9b154dec 22-Sep-2011 Daniel Lehmann <lehmannd@google.com> am 96e87fd6: Use existence of editor as indicator whether source is editable.

* commit '96e87fd6e808e9d853263ffeb5104f3253a18639':
Use existence of editor as indicator whether source is editable.
b5c9f63a8e32e0eab77daf98661d318f6248eb7d 22-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Suppress too verbose logging

Bug: 5345778
Change-Id: I00b87523632993ae6462fde6606a315d565e7092
ndroid/contacts/ContactsApplication.java
ndroid/contacts/util/Constants.java
57e48dabd06412ecbdb6cf2c3a316b2d37c1fad3 21-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Account header icon cut off in contact editor for local contacts"
b5a3f5c6d3414bdc737258fc28bf3dd376ac75bc 21-Sep-2011 Flavio Lerda <flerda@google.com> Improve D-Pad accessiblity of the call details.

We are doing something fancy with the layout, to scroll the header when
the list view is scrolled: a list view is shown under the controls, with
a first header item which is invisible as it is behind the controls; the
controls are then scrolled up when the list is scrolled. This is similar
to what is done in the tab carousel in the contact details/updates.

Unfortunately, this broke the accessibility of the call details.

In this commit I have a partial fix: whenever the hidden header is
focused, focus is transfered to the controls. This makes the history
items not accessible, but makes the more crucial controls accessible
again.

Bug: 5323306
Change-Id: I342e58b9052e2aba3d5d8c8ea1b178108741de91
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
96e87fd6e808e9d853263ffeb5104f3253a18639 21-Sep-2011 Daniel Lehmann <lehmannd@google.com> Use existence of editor as indicator whether source is editable.

Bug:3093621

Change-Id: I3ba344667ce1b0f2da6847d783c0ac90f36ebd8f
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
2ea2ebbd23320f09ed38bf22d053842cc244646c 15-Sep-2011 Katherine Kuan <katherinekuan@google.com> Account header icon cut off in contact editor for local contacts

Bug: 5298440
Change-Id: I9dfe60ef1c2b81c96f9b785d734031839a62d758
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
a3f0c35705c2367b7ff0f73cd2c19c12790b197f 21-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix import/export menu in People App."
879be426bd1eb184fecbf89f5a0c88ba85807168 21-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Update highlight state for primary/secondary targets."
f698f7f5397a84bd571175b55c1507aa62d1b4cb 21-Sep-2011 Erik <epastern@google.com> Merge "b/5335419 Go up one level at a time"
9943d9c70ff23502ee6bd0f355d16314089f2c7f 21-Sep-2011 Isaac Katzenelson <isaack@android.com> Fix import/export menu in People App.

Bug: 5348940 Import/Export pop-up isn't using the standard pop-up layout
Change-Id: I9ec3de6d9fc38186a56f25152e4e213786aac763
ndroid/contacts/interactions/ImportExportDialogFragment.java
15586e733fe0500ffe336fcdc6eabdb35f996402 21-Sep-2011 Erik <epastern@google.com> b/5335419 Go up one level at a time

Change-Id: I5a6597896588a2ff8372b8b3877dc6f00abc074c
ndroid/contacts/activities/GroupDetailActivity.java
162b7e34fb581d0fa279957af5136d190c40759f 21-Sep-2011 Erik <epastern@google.com> b/5317367 Check if cursor is empty before reading

Change-Id: I09f07eda5b0d1eaf20eae9e210eabb6e90612810
ndroid/contacts/ContactSaveService.java
ad8fefe918461a372b61ddab82468b6969627214 20-Sep-2011 Makoto Onuki <omakoto@google.com> [phone] Don't start search loader before it's ready

The setFilter() call in Dialtacs.onStart() indirectly started the loader,
but at this point the initialization in ContactEntryListFragment.onStart()
hasn't done yet, so we shouldn't the loader yet.

This caused the first loader to start with the wrong sort order if you have
"sort by last name" set.

Bug 5252597

Change-Id: Ia1efc7b097cb5c1068f0b2ebb6d61fb0c29f4302
ndroid/contacts/list/PhoneNumberPickerFragment.java
44d8fbe0c972706200f407eb078e421bca62cb97 10-Sep-2011 Flavio Lerda <flerda@google.com> Update highlight state for primary/secondary targets.

This commit makes it so that when selecting the primary action, the
secondary action is part of the highlighted area, while when selecting
the secondary action, only that is focused.

Bug: 5317438
Change-Id: I85fde86812c7ce35dd2887d158ca7c2eff205809
ndroid/contacts/detail/ActionsViewContainer.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/PrimaryActionViewContainer.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
4254f97ea4ee3ae6c2b3407f41478fe0445b735b 20-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Organization field should receive focus after selecting "Add organization""
62886d04568192d8f7859841332023232f191eb9 19-Sep-2011 Michael Jurka <mikejurka@google.com> Merge "Make the dialpad more responsive"
01a9fac7bd963d29c607cb17d579b68a71aa8854 16-Sep-2011 Dave Santoro <dsantoro@google.com> Fix phone number comparison in Phone Favorites.

This switches to using ContactsUtils.shouldCollapse for determining
whether we should combine the two numbers.

Bug 5294289

Change-Id: Id1ec369cfe698b52186ff392255d789458622e9d
ndroid/contacts/ContactsUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/quickcontact/DataAction.java
28283074267fd565246b5561454ed385e5cb51f7 16-Sep-2011 Michael Jurka <mikejurka@google.com> Make the dialpad more responsive

Bug # 5339633

Change-Id: I090d8fe2b7f6eb786cf892615b43d9e5c4e34ccb
ndroid/contacts/activities/DialtactsViewPager.java
3c6af944f1c2c64de3839809460b368b718a8f5a 16-Sep-2011 Katherine Kuan <katherinekuan@google.com> Organization field should receive focus after selecting "Add organization"

- This is for the contact editor

Bug: 5159041
Change-Id: I75a2034df4c35a5414cbbe6785dc40b6faf21d15
ndroid/contacts/editor/RawContactEditorView.java
c5aa9ab7d6959a2eb911d7d1e92f027135ee6617 16-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Fixed missing "No Contacts" message"
92165c6938a6d62205c97ec8f7195117362a8d62 13-Sep-2011 Martijn Coenen <maco@google.com> NFC contact sharing: use profile URI if needed.

When a profile is shared using NFC, the vcard URI that
is requested needs to be a profile.

Bug: 5300714
Change-Id: Idaa890e7ff877957ef025774e331da8395f7f99a
ndroid/contacts/NfcHandler.java
48b526d9f63df121e1ee54188cc860732056c53d 15-Sep-2011 Isaac Katzenelson <isaack@android.com> Fixed missing "No Contacts" message

Bug: 5299100 Sometimes the "no contacts" message disappears
Change-Id: I372cd2edafe19213ef025481ca471878fe871182
when there are no accounts
ndroid/contacts/activities/PeopleActivity.java
e66b8d7609c5505dfdda7483ef1cfc18f6d074c7 15-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "New avatars"
ecfc26c3f9495f1a4efed69a1582ff2b0deb2c71 13-Sep-2011 Daniel Lehmann <lehmannd@google.com> New avatars

Bug:5074147

Change-Id: I583d22c63a7b617567c523efeed292ae1e2be7e4
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactTileDarkFrequentView.java
ndroid/contacts/list/ContactTileSecondaryTargetView.java
ndroid/contacts/list/ContactTileStarredView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/ContactBadgeUtil.java
0d96d6185d37911e17395b012afe0e6293285078 15-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add correct content descriptions for favorite tab"
5793dd52e68637c266a1b546f6178c148795f59a 15-Sep-2011 Daniel Lehmann <lehmannd@google.com> Merge "Fix accesibility text in quick contact and itemview"
3dbae9a50def080a34d6afcca916d70aab0bdf75 15-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "[Phone] Don't use custom shared preferences"
faa49c913fedb67161dc784b91faa9a27195b0a8 15-Sep-2011 Isaac Katzenelson <isaack@android.com> Fix accesibility text in quick contact and itemview

Bug: 5275688 accessibility: phone and messaging icon
both are read as 'image-number' in quick-contact card/contact card.

5320265 Accessibility: content description for quick contact
image is the image id number

Added code in quick contact to add specific content description for phone numbers.
Added a specific content description for the quick contact bagde in the ContactListItemView.

Change-Id: Iad57b7bf8e563ac77b121bb15cd8096616fb1d9e
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
f75534bc07689443f9a9253242a473df64ecc2c3 14-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add correct content descriptions for favorite tab

Bug: 5255081
Change-Id: I1d98d5a004995e423ed986340227098a45a47ee3
ndroid/contacts/list/ContactTileView.java
6c40fb564cb810eaae14548abff85d8871601c63 14-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix quick contact icons accessibility issues"
02901c0243ca44b875b0db3c4cc0531d5ec08411 14-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Extend the call log highlight to include the call icon."
9ed91a9539b6f685b63784cdc84ac41ad14fd988 13-Sep-2011 Makoto Onuki <omakoto@google.com> [Phone] Don't use custom shared preferences

Just use the app-wide default shared preferences, so that it'll read from the
cache rather than the filesystem.
The default shared preferences should be preloaded by
ContactsApplication.onCreate using a worker thread when Dialtacts needs it.

It was actually a strict mode violation causing something like > 100ms penalty,
but I assumed it was beacuse it was the first read and unavoidable.
I hadn't realized dialtacts had its own preferences.

I also fixed the social widget settings. Existing settings will all be
migrated.

Also fixed the log spew from SocialWidgetSettings.

Bug 5296990

Change-Id: Idb8e393ebfd6c77b14906ea4ee26dfd032da2770
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/socialwidget/SocialWidgetSettings.java
828ae4c929d3c7fe36a07a23f7da7998fd4bc8ab 14-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Use standardized no account screen on first launch"
fcfc522887202cbda6e7681ae4ec8f5252f23bac 13-Sep-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE with WeakReference to ProgressDialog in ConfirmAddDetailActivity

Bug: 5283463
Change-Id: I17a896ecbb8fb8b3f126ca917cd6499cf266d674
ndroid/contacts/activities/ConfirmAddDetailActivity.java
38458634f8e474786264050d3a1580e03a680fff 10-Sep-2011 Isaac Katzenelson <isaack@android.com> Fix quick contact icons accessibility issues

Bug: 5275688 accessibility: phone and messaging
icon both are read as 'image-number' in
quick-contact card/contact card.

Changed the behavior of ResolveCache.getDescription to get the description
of the action from the icon's app before using the text fields.

Change-Id: I13b32d37e8437686cb5a8953c4f3ea273304d432
ndroid/contacts/quickcontact/ResolveCache.java
5f338fa2f6a370d9857d0bc9c5a229f84f374f8f 13-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Do not look up a contact for special numbers."
ce75bc9a12881c48c5f7e208a47fadcc8b6a04a7 13-Sep-2011 Flavio Lerda <flerda@google.com> Do not look up a contact for special numbers.

Do not attempt to look up a contact for unknown, private, phonebox, and
voicemail numbers. Instead, use the raw number, which will then
correctly be formatted by the UI.

Bug: 5293193
Change-Id: I4315b56d19b802ad701bab806fd278a1e14c240c
ndroid/contacts/calllog/CallLogAdapter.java
aaa2ad5d450d1923dae4fdf76cd050cd8a069040 02-Sep-2011 Katherine Kuan <katherinekuan@google.com> Use standardized no account screen on first launch

- If there are no accounts on the device, then launch
an intent to show the prompt (check that there is no
flag in SharedPreferences preventing the prompt from
being shown).

- Only when the user explicitly selects "Not now" from
the no account screen, do we store a flag that says
we should never show the prompt again.

- Add "Manage accounts" permission in order to
perform AccountManager.addAccount, which gives us access
to the "no account" screen.

Bug: 5250360
Change-Id: I2f925c838bc0e7003a8dbb3280e5a22ed8680670
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/util/AccountPromptUtils.java
73215d678536d3b057a0f0dd1c045250dbe9ed65 13-Sep-2011 Flavio Lerda <flerda@google.com> Extend the call log highlight to include the call icon.

This commit moves the call icon (the secondary action) within the
primary action, which means the highlight for the primary action will
extend to it.

In order to preserve accessibility, it add a nextFocusRight and
nextFocusLeft to the primary and secondary actions, so that it is
possible to navigate between them.

Bug: 5290460
Change-Id: I75f1ca5530d9e656d54f32b58bc1cb04bfc6bed6
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogListItemViews.java
3430d3cd3c2c3011d1f6534dced3ab92c8fb52c6 13-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "Handle removal of local raw contact in profiles."
0e841b2fd0754ce2a8af210aaea6ca02277181af 13-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use OpenableColumns.DISPLAY_NAME for import message"
7c34c0a46434b2669b0fdba2c9e0e4cce5675f94 12-Sep-2011 Dave Santoro <dsantoro@google.com> Handle removal of local raw contact in profiles.

Bug 5284316

Change-Id: I40160543af3cb717791ee8109f0cbf5d06327111
ndroid/contacts/ContactSaveService.java
3fa53400cebd5973a49457e1c643e82d7df9a9c0 12-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use OpenableColumns.DISPLAY_NAME for import message

Previously we've used the last path segment of a given URI,
which may not be correct. DISPLAY_NAME will be more appropriate
especially when vCard view intent is sent from the other apps.

Note that a display name can be available only when the external
apps support OPENABLE category, while we are using DEFAULT category
for VIEW vCard intent. In the future we should change the category
too, but for now this change leaves it as is.

TESTED:
- import from SDCard
- import from Email apps
- import via BT contact share

Bug: 5287116
Change-Id: Iad572eb48b6756246b15d992a8d4231a1b4cb31d
ndroid/contacts/vcard/ImportVCardActivity.java
cd27711b50f75f02afb8b4734bb2ac888d733f2b 12-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix fragment carousel going to wrong scroll position after rotation"
ccf3b6bb9cba613eb31163c7ab97be71307234d1 09-Sep-2011 Katherine Kuan <katherinekuan@google.com> Fix fragment carousel going to wrong scroll position after rotation

- On devices with no physical buttons, there is a status
bar on screen, which triggers an onSizeChanged() method call
which causes the ContactDetailFragmentCarousel to scroll to
the focused view (which was wrongly set as the ListView in the
details page in phone landscape).

- Make sure the right view is focused on and remove the manual
scroll code in onLayout() in ContactDetailFragmentCarousel
because it doesn't do anything because the width of the child
view is not correct (when the page is first launched and doesn't
cause any scroll changes). Instead, when the data is loaded
and we enable/disable swipe, we select the right view to be focused
on, which takes care of scrolling to the right page.

Bug: 5265640
Change-Id: Id3b568b2d1c3af5d4d6cae285038131bb4cb1a45
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
677cfd4db61c801cbdd70db1b5329663f4536748 12-Sep-2011 Dave Santoro <dsantoro@google.com> Handle settings update case for data_set.

Bug 5156004

Change-Id: Idd1455f9bd98ca3607e64546e9ba6c77ea9a2f61
ndroid/contacts/list/CustomContactListFilterActivity.java
bb2713d1dff2e476746e37e3608bbf20ced080b0 10-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Disable "Clear call log" if empty."
806871620d4cd437b32f4e51afe272cac7aa5811 10-Sep-2011 David Brown <dab@google.com> Merge "Fix crash with MMI code *#06#"
5c386e8018824c4d352e4c7d9f8062c22ca33797 09-Sep-2011 David Brown <dab@google.com> Fix crash with MMI code *#06#

The code was calling getWindow().setType() on the IMEI dialog *after*
showing it. The code had been doing that all along, but starting about a
week ago (change Iac63da) the framework now also throws an exception if
you do that :-(

Turns out there's no need to set TYPE_PRIORITY_PHONE in this case anyway,
since the dialer UI can't run on top of the keyguard in the first place
(and the contacts app doesn't have the SYSTEM_ALERT_WINDOW permission
anyway.) So just remove the offending call.

(Note there's also a corresponding fix under apps/Phone for this same
issue. Also, I double-checked all the *other* Window.setType() calls in
Phone and Contacts, and we don't have this same problem anywhere else.)

TESTED: Launch dialer, dial "*#06#": IMEI panel correctly comes up.

Bug: 5279270

Change-Id: Ie19ec1414fc6096ee2c84fe716259304bff7a33b
ndroid/contacts/SpecialCharSequenceMgr.java
bc7730425825a313b1cffa535f209845cf3dcd68 09-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix possible NPE. mDigits may be null on onNewIntent()"
1f28ed435ca11425991874dbaab60b935b216a90 09-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "App-side changes for data_set in Settings."
a8d6da7e24e605147ce975579f23af7f2f5524bc 09-Sep-2011 Dave Santoro <dsantoro@google.com> App-side changes for data_set in Settings.

Bug 5156004

Change-Id: I25c55a014bb007c33c11357a8e994f259499d98a
ndroid/contacts/list/CustomContactListFilterActivity.java
c7511865c24ab903190a2d45a389d10ee15e041c 09-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix possible NPE. mDigits may be null on onNewIntent()

TESTED:
- launch dialpad screen with a phone Intent
- launch the app during phone calls to show dialpad chooser
- play with dialpad chooser
- launch dialpad screen with a phone Intent during
phone call

Bug: 5283231
Change-Id: I3fc709eebf40a2ab3b16798729e4f9c07c4b3421
ndroid/contacts/dialpad/DialpadFragment.java
1aa04015a08711a37e5f889ebaf2077250fcf172 09-Sep-2011 Flavio Lerda <flerda@google.com> Disable "Clear call log" if empty.

Bug: 5278400
Change-Id: I7908528447e7cc1fa5869d5883764feb8e9ee4f9
ndroid/contacts/calllog/CallLogFragment.java
a1ba91f56727aeb50701bd0471a36d57eafcc110 09-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Add statelist for disabled voicemail controls."
53b41c183b10f7628ee7d414c61db312a7d10a01 09-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Update icons for speaker phone."
ef82e32571418d2c1146a58eeb647e5ac3aa8d43 09-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Ignore focus event for digits field"
2d11fc5912b6fd08eebafea9d61440f5f9cd9bd5 09-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Ignore focus event for digits field

On app launch digits field may have a focus, and the focus event
makes tts speak both the app name and the type of the View in a row
"phone, edit box"). This change suppresses the second part and let
tts speak just the app name on launch ("phone").

Bug: 5275935
Change-Id: Ideb62b01104a1701c71ca7af0d6fa05d8cc39657
ndroid/contacts/dialpad/DigitsEditText.java
449c77723969ce642b6196586f8894c897c24819 09-Sep-2011 Hugo Hudson <hugohudson@google.com> Merge "Fixing up the tests."
cea26c0085a704e34537f7871a8e1d85b43c9894 08-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Suppress tts on every digits change"
59853614b436378eeb742ae80141358288c30643 08-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "Fix re-parenting for modifications to the profile."
bf4e2f4ff8461e366ff950b0a59bb52350c7be55 08-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix snippetizing cursor"
3252f4fab6c137a86ec7e04e64a614031c44da39 08-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Allow local profile editing with an existing profile"
2d52f46464dae08f7585a2f533d7bac898262772 08-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Suppress tts on every digits change

Bug: 5276023
Change-Id: Ieceff291bd7dc55e20a4c76992451745acdcb09b
ndroid/contacts/dialpad/DigitsEditText.java
48ed982e078de00f6be49319ccf09bbb2aaadf5e 07-Sep-2011 Isaac Katzenelson <isaack@android.com> Allow local profile editing with an existing profile

Bug: 5244792 Can not create local offline profile if
Google+ profile has already been synced in

Change-Id: Icb818098588f27bab54515d8a554fe77a08569ca
ndroid/contacts/editor/ContactEditorFragment.java
c90f95e63684363d10ffe5ef8f08f2159fb5bfc0 08-Sep-2011 Dave Santoro <dsantoro@google.com> Fix re-parenting for modifications to the profile.

Bug 5274218

Change-Id: Icbeed88032dcdab643aaa85216fb4363473cc80b
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/model/EntityDeltaList.java
2ca7a3830d3284d2736cf708a383efaa73c6d683 08-Sep-2011 Flavio Lerda <flerda@google.com> Add statelist for disabled voicemail controls.

Assets are not yet final, but will allow us to make sure the behavior is
correct.

Bug: 5219830
Change-Id: If28012703caca57b2536ed2a4fd28d5c25d5f552
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
e5f8b369521d3b06fdb0c78a8f2f390e4fbb9004 08-Sep-2011 Flavio Lerda <flerda@google.com> Update icons for speaker phone.

Use two different icons for speaker phone on and off states.

Bug: 5048117
Change-Id: I6fa9dad843a3aace2a693ab69acdae3b1d7277c7
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
e86b753ca40e1db03f97f82ba218b7c236584acb 08-Sep-2011 Hugo Hudson <hugohudson@google.com> Fixing up the tests.

- Recent change b35ab01 changed the prefix highlight colour but didn't
update the test. This fixes the test.
- ContactUtils.areObjectsEqual() method is no longer in use, so was being
removed by Proguard, causing the test to fail. The method may be useful
in the future, annotated it with @NeededForTesting.
- Some setTextWithHighlightingFactory... methods in both
DisplayNameFormatter and ContactListItemView were not being used any
longer, only by the unit tests that tested them. Proguard was therefore
removing them, causing the tests to fail.

Change-Id: I8e52a6d4dc7eac398777897b38cad4ef44d4fa7d
ndroid/contacts/ContactsUtils.java
ndroid/contacts/format/DisplayNameFormatter.java
ndroid/contacts/list/ContactListItemView.java
ceff1b5e81fef622feb01def25f8a6775ff8fb72 08-Sep-2011 Hugo Hudson <hugohudson@google.com> Merge "Fix broken unit test."
6895a318ca34528e31fc75f3fca2ca85e612bf43 08-Sep-2011 Hugo Hudson <hugohudson@google.com> Fix broken unit test.

- Looks like recent changes have made the setDataSource() followed by
prepare() on a MediaPlayer that has an illegal data source start
throwing an IllegalStateException in the prepare() method rather than
an IOException in the setDataSource().
- This change just says that if anything goes wrong with the background
prepare work, rather than specifically an IOException, then we will
show the user that we failed to play.

Bug: 5266872
Change-Id: Idb6e7ea13f24996abb5da93d2979d3d0bdbf5cbb
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
413119e9d2e6170383bfe760d2658a34e382e201 08-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Replace tab texts with icons"
f940291def6615e0ffef4bb19c6bf1e3bacce01b 08-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix corrupted views in favorite tabs"
1ff189a390ce5011f729637baf248646560c1bc6 08-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Replace tab texts with icons

Also replaces existing "contact card" icons with ":D"

Bug: 5274359
Change-Id: I04b77bfdab17f4a2468e8ecde88fab7477c11e3f
ndroid/contacts/activities/ActionBarAdapter.java
c581192eba4a7071acfb344bc1ae1adad6ca0e1c 08-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Make group editor usable in landscape"
ef0513fe308c6a1fcf9cb9e3251711da9d07ae47 08-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix corrupted views in favorite tabs

I12820f1e0673aaf81044fc8cb6adedc0a8a64dd6 suppresses every
re-layout including ones from TextView, which makes the tile look
weird sometimes.

Instead of suppressing all those events, let's suppress only events
coming from ImageViews.

Bug: 5270040
Change-Id: Ia042ba0d548ca4b62a349508eaa8754bbd92dff2
ndroid/contacts/list/ContactTileImageContainer.java
ndroid/contacts/list/ContactTileView.java
320b310f646b2c542c6e1ea0c768f5c38539911e 08-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Make sure only People and Dialtacts responds to search key"
f75603211e74db040a21e269761f62dfde41d66b 08-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix misc font sizes and spacing issues"
507d85177886bece6ac38870d0e4b6c4655abc55 08-Sep-2011 Katherine Kuan <katherinekuan@google.com> Fix misc font sizes and spacing issues

- Make contact name and status more closely spaced together
(vertically), which also helps the status to still be visible
in the extra large font accessibility case

- Use our own version of the select_dialog_item.xml so that
long dialog items (i.e. "Select photo from Gallery")
do not get cut-off on the phone (Framework can't change
the font size in their XML because it's public API)

Bug: 5255619
Change-Id: Ica6ba908b0cb143550e9cf7391524449008b20cb
ndroid/contacts/editor/PhotoActionPopup.java
be7a9d511eed5a549226b2e1bc2ebd6f65018c4c 06-Sep-2011 Katherine Kuan <katherinekuan@google.com> Pixel perfect phone landscape contact card

- Make contact photo larger

- Detect the difference between stream item updates with text only versus
with text + photos --> In order to add padding between images + text without
affecting the other cases

- Make tabs in tab carousel have the right initial alpha value

- Add some constants for the maxLine values in ContactDetailFragment

- Make HtmlUtils not crash with NPE if the streamItem.getText() is null.

Bug: 5254628
Change-Id: I858b4cbfac13fe2105159cf13a4bc6b64442745e
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/util/HtmlUtils.java
d3c35957bbe9a10000909087cbdcc06b6fbe0354 08-Sep-2011 Makoto Onuki <omakoto@google.com> Make group editor usable in landscape

In both landscape/portrait
- Disable the IME extraction mode.
(We probably don't have to do it for portrait, but just for consistency.)

In landscape
- Remove the accout header.
- Horizontally align the group name field and the member name field,
much like the tablet layout.

- Also un-bold group name, per UX request

Bug 5265688

Change-Id: Ic6a39d61f91d21bbf820ee90e807b677ac5d3535
ndroid/contacts/group/GroupEditorFragment.java
2697cbc9bbb968dffe5230949ad43f97da299086 02-Sep-2011 Isaac Katzenelson <isaack@android.com> Fix snippetizing cursor

5217242 Email address with the found "snippet" highlighted should
be displayed on the second line below the contact name

Added snippeting code to client side.
Changed URI to ask for deferred snippeting

Change-Id: Ie5edee9a83d95990c95aa41ff44be0169bb9964d
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactListAdapter.java
7a330308196e8f75d6ec5e449a0dd28813cfc373 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make filter header clickable"
d04002d07723781f611cbc4fd13345100c3bab87 07-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Phone: don't crash when unsupported filter is set"
ff426c749d8cf2687b6fd4497069bcc739efbfa9 07-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "Make pinned section header stay in all caps."
a5aa278ce9089c6b9f81fc24ff55d158aabdc340 07-Sep-2011 Dave Santoro <dsantoro@google.com> Make pinned section header stay in all caps.

Bug 5270148

Change-Id: I28bd7e91f727f1de0c0a0d9df305e6c91153912c
ndroid/contacts/list/ContactListPinnedHeaderView.java
124e5cbea97366d4db1fa5ffe59efedd5913aded 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make filter header clickable

Bug: 5160689
Change-Id: If2f9435bf0090f8bfc138a45fe2c9c04eec08091
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
53d303dc4a74ee266a0711d35eb4327c793b7a24 07-Sep-2011 Makoto Onuki <omakoto@google.com> Phone: don't crash when unsupported filter is set

- Unsupported filters, such as FILTER_TYPE_STARRED, could be applied
with deprecated public intents, such as LIST_STARRED_ACTION.

- Don't crash when these are set. Just treat them as the all filter.
Besides, some of these are 100% valid and there's no reason the
app should crash. (e.g. FILTER_TYPE_WITH_PHONE_NUMBERS_ONLY)

- Also, make PeopleActivity not set a filter for LIST_FREQUENT_ACTION,
LIST_STREQUENT_ACTION and LIST_STREQUENT_ACTION. Just showing the favorites
tab should be enough. (These are all public, but deprecated intents.)

Bug 5265438

Change-Id: I6c6d0ec3279f174907844706ef3527f10bf47bbd
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/PhoneNumberListAdapter.java
775741dd4a90d6727c2d7a08c38b90376513bcad 07-Sep-2011 Daniel Lehmann <lehmannd@google.com> Merge "Fix the aggregation of exact matches where string equality is not given"
80f2e8dd183ab789640e8efd3da2cdfddd1131ca 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use setContentDescription for tabs"
dabe1234137b8edb472421d5afdc7b657f148142 07-Sep-2011 Daniel Lehmann <lehmannd@google.com> Fix the aggregation of exact matches where string equality is not given

Also added some more unit tests to make sure we are calling into the
library

Bug:5250277
Change-Id: I99ae7475ec08b10ed24f5184ca6f38884bc96dbc
ndroid/contacts/ContactsUtils.java
361682570aaf8eac2c4bfc1470e3f6e59e553af2 07-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix missing first section header"
35d928af36e091d6ed8e8c1030453deec68f793a 07-Sep-2011 Isaac Katzenelson <isaack@android.com> Fix missing first section header

5243919 [contact list] first section header gone

Change-Id: I452baf88f517f9ee2e8d96fd4d49fb0f3c00c589
ndroid/contacts/list/ContactsSectionIndexer.java
3b1424a410505949f4ca9fd863acab64c8bfb420 07-Sep-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Posprocessing HTML for stream items."
d0d5eaae0052140a1e993ec63c930b0309e36e3b 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use setContentDescription for tabs

Bug: 5249855
Change-Id: Idb0fa5c10713fedf87ee157166734b642514f33d
ndroid/contacts/activities/DialtactsActivity.java
e050438ffb7b99eb722001149b78904b6005cc2d 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Let tts read the contact's name on detail screen show up"
2ea617c399eaa3a3614936ff2cd0574e35184ae0 07-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Maintain the current view (voicemail only or all calls) on updates."
adfb57a7e889ddf08747fc8d91041dfdf3f7d50d 07-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Alignment tweaks in contact editor"
d6272412cdf3fdda90e835ec5b0cd1e15a0c97c9 06-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Let tts read the contact's name on detail screen show up

Bug: 5255060
Change-Id: I222a7dc057102504c01600572c680162ee30e748
ndroid/contacts/activities/ContactDetailActivity.java
e64bc094f2bdf8d766de2955ba17006fbd85807f 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Let tts speak "not found" when contacts are not found"
9db59fe67d9f2624120c718499a74eab7fea3c03 06-Sep-2011 Katherine Kuan <katherinekuan@google.com> Alignment tweaks in contact editor

- Multi-line address edit text field should now be
aligned with the spinner beside it

- Other misc alignment fixes

Bug: 5250070

Change-Id: I92b4b0d13cd1346227b95e7326a1c37ec68b066d
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/BaseAccountType.java
7ec6cb0231478a103bec214e4aedf599eaf6fcfd 07-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Photoloader tweak"
173f281431ef33a80ec7b26ca2eae019bff2a2f7 06-Sep-2011 Makoto Onuki <omakoto@google.com> Photoloader tweak

- Increase preload delay to 1000ms
- Decreased number of prelaod photos to 100

Bug 5245656

Change-Id: I4360696f9ef01d600b2daae38f054a24c1f8eecf
ndroid/contacts/ContactPhotoManager.java
8907f66cdb60070f88ea006b8d747ac489ea0d6b 06-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Let tts speak "not found" when contacts are not found

- manually send accessibility event for it
- make the whole header view hierarchy visible before sending
the event
-- The view must be visble to let tts speak what we want

Bug: 5255056
Change-Id: I79d7615d9677364a26a12701454ccc5399541de9
ndroid/contacts/list/DefaultContactBrowseListFragment.java
1b4572ba0ba449a4ed0cc896f5f694f33b43f073 06-Sep-2011 Dmitri Plotnikov <dplotnikov@google.com> Posprocessing HTML for stream items.

- Aligning images
- Fixing the margin and color of the blockquote

Bug: 5250700
Bug: 5243091
Change-Id: Ife799c669ac98bf8f7033529fb2b0977ad91ce09
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/HtmlUtils.java
8d5abcb71ed4d9671b9066b9e3ffaf5372d2b22c 03-Sep-2011 Makoto Onuki <omakoto@google.com> Make sure only People and Dialtacts responds to search key

- Remove the default search activity meta-data from manifest, so the old-style
search dialog won't show up when the serach key is pressed. It was for
pre-HC style search UI. Now the search key only works on people and dialtacts,
which implement either startSearch or onSearchRequested.

- Removed all the startSearch/onSearchRequested methods which are now
unnecessary.

- Also removed startSearch() in some fragmets. They're not used.

- Tested some viewer/editor/picker activities, and also both dialtacts and
people, the launcher search box, and the SEARCH intent, on both the phone
and the tablet (except dialtacts on tablet). All looking good.

Bug 5230790

Change-Id: If269df74ae218707daa5b7039439c6fea2575e8d
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/activities/CallLogActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ac25dadaead0b47237e211a709bfb3ab95fd1b70 06-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Contact detail pixel perfect"
e7dcdc76925696c584c017481140094b7e51b3f1 06-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE in ConfirmAddDetailActivity"
323dd9c6a6c21e60760fc1bf010f90f3918aed06 06-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Show edit group option for default auto-added Focus groups"
5e7bb30f68428eabc2c7f06f553ca71616b091d6 06-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use non-capitalized texts for "Me" header"
b1226f0b41e77c2b2bc3b7d8eac7b7203fc5689b 06-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "Fix stream item photo loading for profile updates."
a4400d56056048e0ed2b0489f97782d000cb39ed 03-Sep-2011 Dave Santoro <dsantoro@google.com> Fix stream item photo loading for profile updates.

Bug 5255202

Change-Id: I4bbdb21f57685b9396088d2c77ef90d649f9b1c9
ndroid/contacts/ContactLoader.java
c071dc49418588dc01b987d291ee45dbe41c3d82 06-Sep-2011 Flavio Lerda <flerda@google.com> Maintain the current view (voicemail only or all calls) on updates.

When the underlying content provider content changes, keep the same view
(voicemail only or all calls) as the one the user is looking at.

The underlying data may change because we updated some of the cached
columns, which currently causes the view to be updated for what seems to
the user no valid reason.

The only events we want to be sure to communicate to the user are new
voicemail and missed calls, but the notification bar takes care of those
cases, and if the application is currently open, we will refresh the
content anyway when resumed.

Bug: 5247042
Change-Id: I6db0a980aaafed5990f8e84bf4a9a1d0f44efb36
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
04e6b557e45cc645c4fca1578358b63945452975 03-Sep-2011 Katherine Kuan <katherinekuan@google.com> Show edit group option for default auto-added Focus groups

- Focus groups like "Friends", "Family", and "Coworkers" are read-only
because their titles are read-only and they cannot be deleted, but
their membership can still be editable, so show the "edit group"
option.

- Fix bug with editable Google+ circles were editable by adding a
missing dataset field

Bug: 5250453

Change-Id: I3c5590a01bf641fb22e97fdba4a4eb3c41725e6c
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ea0a8a2fe2f6218d39f1f1f023e438de09d2ea69 06-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Invalidate options menu after loading the details."
e491b1f517f26b059778bd997f03f4f33fc8c15e 06-Sep-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in ConfirmAddDetailActivity

- Null EntityDeltaList is being passed to EntityModifier.trimEmpty()
causing a NPE

Bug: 5241766
Change-Id: I57d884f59635bf68100607394ba985f0a29e13dc
ndroid/contacts/activities/ConfirmAddDetailActivity.java
0892205dd87cd85ea32db0f707dfcf73c73f176f 05-Sep-2011 Katherine Kuan <katherinekuan@google.com> Contact detail pixel perfect

- Use 3rd party action body instead of showing status message
(This will make it more uniform with Quick Contacts)

- Change max lines on group + website fields

Bug: 4689488
Change-Id: I06928ac6ba0d3d96499e474bafd9a3d021b79438
ndroid/contacts/detail/ContactDetailFragment.java
599853d64d43fe00068c3899323c0d87594a5335 05-Sep-2011 Flavio Lerda <flerda@google.com> Invalidate options menu after loading the details.

We do not know until we have loaded the details of a call whether we
should allow dialing the number: the call might be from a private or
unknown number. However, the content of the menu is loaded when first
starting the activity, and, by default, does not include the option.

Adding a call to invalidateOptionsMenu() after loading the details
forces the menu content to be updated.

Bug: 5257543
Change-Id: I0581c278da74ff2dd252e066fb4fbfdb3759dbb0
ndroid/contacts/CallDetailActivity.java
6af176fa4156446c8522642575fc7c2f98c39e74 05-Sep-2011 Flavio Lerda <flerda@google.com> Remove unheard icon next to voicemail.

Since unheard voicemails are anyway in the top "New" section, there is no
need to have the extra icon.

Moreover, this means we do not have two similar looking icons next to
each other, which make the iconography harder to understand: one meant
"unheard message", the other meant "press to play".

Bug: 5254001
Change-Id: Ie0e40a87435442a0f829c544d83ad24bd6fb7f17
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
f66d9f35879365c43adcd17549ad97e421123571 05-Sep-2011 Flavio Lerda <flerda@google.com> Pixel perfect work on call log.

- Divider color updated based on feedback from designer.
- Updated header to use new platform level style.

Bug: 5258258
Change-Id: I6152329d8c0f50d644082d3a2dc1cb4c0472ba60
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogListItemViews.java
0857299795e57711e040b05fdb95c7b61b3bd6a6 03-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use non-capitalized texts for "Me" header

This matters in accessibility mode.

The other section index should be already capitalized, so using
setAllCaps() here shouldn't affect them badly.

Bug: 5255237
Change-Id: Ibcffdad9c8e9a74d4db50bc83e6a8ca2415cc495
ndroid/contacts/list/ContactListItemView.java
bf4582bea2524b53c91e376de43400dabc98260e 03-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Use "Add to contacts" as header for unknown numbers."
c586d846cdab73826dae9e76199589fc99c6833b 03-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix layout for read-only contacts"
2d3b14ebe4421117d62b784cc37577e58c4d1a9b 03-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix layout for read-only contacts

Bug: 5149895
Change-Id: I3c033e80bc3b34093f975641694ded291a1a96a5
ndroid/contacts/editor/ExternalRawContactEditorView.java
454e272a976671d357a6d3945eca5ccf9483ccef 03-Sep-2011 Dave Santoro <dsantoro@google.com> Fix data update/delete URIs for profiles.

If the contact update being performed is in the scope of a profile
contact, the base URI for data operations must also be a profile
URI.

Bug 5249062
Bug 5201592

Change-Id: I19197b338745cf8748339c650c958ba22f580620
ndroid/contacts/model/EntityDelta.java
6295e5bfbff1363ae0398652b38b7ba438ce1288 02-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Introduce xmls for primary/secondary text colors"
68c03dc9166ef64d5d567835f2487e7e275fe4a2 02-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix contact editor account header"
d5678d3c22b7ab82b3840000704ce10162534d5d 28-Aug-2011 Flavio Lerda <flerda@google.com> Use "Add to contacts" as header for unknown numbers.

Instead of repeating the number twice (in the header and in the
underlying call button), use the string "Add to contacts" instead, which
better represents the action performed by the header when clicked.

Bug: 5205326
Change-Id: I568373db2bbbd0ab7d5645a70eb25fbd577dca1e
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
4e005b1789f983308b712bb50d8a268dd6e36be0 02-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Use the correct stream for playback."
a62438c9a582dd729e00d4577e599674ba2d4672 31-Aug-2011 Flavio Lerda <flerda@google.com> Use the correct stream for playback.

We were using the STREAM_MUSIC and playing the using setMode to use the
IN_CALL mode.

Instead, use the STREAM_VOICE_CALL: this works basically the same way,
but does not cause issues when the stream is stopped.

Bug: 5240848
Change-Id: I60595b4da7abe01adb1908ee24a4ca9801a1fa85
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
71886c54c546448284ee8a2ad0014892de07fd6b 02-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Do not show the "configure voicemail" message if there is URI."
d340308d893792d0a8d6eec0411c95c5294d1002 02-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix tab carousel flicker issues"
3deb35dac080c66eae3760b037a7908402f24cd8 02-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Prevent attribution/ comments from getting cut off"
cd68844b64819563d5cea67f8d11ad4f5d8bdec6 02-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Export vCard correctly when sharing contacts

We must not call Cursor#moveToNext() just after
Cursor#moveToFirst().

Bug: 5234280
Change-Id: Ib06ad5546f4816e17a05942cc20eb7de825a7130
ndroid/contacts/interactions/ImportExportDialogFragment.java
226dcdf399e0a637711f9a76b575b7a23d2c7782 01-Sep-2011 Katherine Kuan <katherinekuan@google.com> Fix tab carousel flicker issues

Cases fixed:
- Animation of the tab carousel causes a brief jump
at the end of the animation because the vertical scroll
listener is trying to move the tab carousel to a different
Y coordinate at the same time

- Horizontally scrolling the tab carousel causes it to
get into an "in-between" state where it is out of sync
with the ViewPager (there is also flicker on each tab
because the alpha values are wrong)

- Rotating from phone landscape updates page to phone portrait
was never implemented (didn't scroll the tab carousel to the
right tab)

- Rotating from phone portrait updates page to phone landscape
would cause a noticeable flicker where the page would slide to
the left so the correct page was selected because it was scrolled
when executing a Runnable

Fix issues by scrolling the HorizontalScrollView if necessary
in onLayout(). Consume touch down/up events on the tab carousel.
Add flag to know when the tab carousel is already animating.

Bug: 5220668
Change-Id: Icecaa99b43682111fb7c7d201a059b3962b00cd6
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
570d3a110bf35d9576f168f9c9b3788c6aa0e431 30-Aug-2011 Mindy Pereira <mindyp@google.com> Prevent attribution/ comments from getting cut off

This is the new design for bug:5236510 where text is shown
below (instead of beside) an image.

Makes sure that the attribution and comments lines always show
and that the content does not get cut off in the vertical middle
of a line.

Remove quotes from updates tab text.

Add margin on the tablet portrait contact card view.

Change-Id: Ica021a807a7ab1178e305d3eab6347133ffc3595
ndroid/contacts/detail/ContactDetailDisplayUtils.java
7a318d1fe9d554bf61a4a091d491de64d9f023d4 02-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Introduce xmls for primary/secondary text colors

I7c08d8f533f0dd5318c614e3df14bb39207485e9 introduced
primary/secondary text color with activated state for each
ContactListItemView, which made it impossible to set
those colors differently between People and Phone UIs.

This change instead uses those xml for app-wide use, with
which we can avoid the issue above. Also the other screens
with activated state possibly obtain the benefit.

TESTED:
- People/Phone on phone
- People on tablet (activated state should be kept, as
I7c08d8f533f0dd5318c614e3df14bb39207485e9 did)
- Picker screens show correct colors

Bug: 5249631
Change-Id: I621b2f0fb1e67c31c289c35ee756940725272885
ndroid/contacts/list/ContactListItemView.java
d525aee2dbea0e002f8e499b3ef1d42e503d0059 01-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Layout read-only contacts correctly

- remove unnecessary headers between multiple phones/emails
- modify the layout a bit

Bug: 5149895
Change-Id: I9bbccd8a68d2ffe3d0ed7bbbb8af0f93ffccc4f7
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/model/EntityDelta.java
2cb71bd0d6096f48d9d8c6d66a753b164468abb2 01-Sep-2011 Isaac Katzenelson <isaack@android.com> Fix contact editor account header

Bug: 5179920 Google+ profile should say "My Google+ profile"

Reverted default account type name changes
Flipped account name and type usage that was wrong
Vertically aligned the headers.

Change-Id: Icc279fcba5d426d1afaf32b59bec30ed5d739907
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/FallbackAccountType.java
cc23e7546a9b6015f699345b71c8c5c26899ac4c 01-Sep-2011 Flavio Lerda <flerda@google.com> Merge "Blank the screen while playing voicemail using proximity sensor."
595500a82e2acdb1f050bd35813f7198e534176a 01-Sep-2011 Daniel Lehmann <lehmannd@google.com> Merge "Suppress re-layouts in the tile-view, as our size never changes"
5909aabfcf7bfba11e8c7c455295aee9696b5bcb 01-Sep-2011 Daniel Lehmann <lehmannd@google.com> Suppress re-layouts in the tile-view, as our size never changes

Speeds up the favorite scrolling in the phone app

Bug:5245196
Change-Id: I12820f1e0673aaf81044fc8cb6adedc0a8a64dd6
ndroid/contacts/list/ContactTileView.java
c759304d9b03c9c8c0eaa32393b4d85a3393dad1 01-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "Remove use of profile_raw_contact_id column."
edb695b21967d464c7593f99368adf28a63247f7 31-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Choose ALL filter when there's no filter saved yet

We currently choose CUSTOM filter when there's no filter saved
in shared preferences. It was for keeping users' choice in GB.

Note that in GB we didn't have filter mechanism at all, and what we
had at that moment is what we call "custom filter" in ICS
(custom filter == showing contacts in IN_VISIBLE_GROUP on our
ContactsProvider2)

The problem is that, the fallback choice is not only used after
GB-to-ICS migration but also used when users boot the device
for the first time (after purchasing it, for example). Showing
"CUSTOM FILTER" for the first time of using Contacts app looks really
weird. Also we don't have no easy way to determine if the first app
launch is from migration or not.

Bug: 5241896
Change-Id: Ib151518837b063cf5071a924919d492385885b76
ndroid/contacts/list/ContactListFilter.java
1981c40de5ae386f3afb0a49ba65dbc92f403a92 01-Sep-2011 Dave Santoro <dsantoro@google.com> Remove use of profile_raw_contact_id column.

Bug 5242084

Change-Id: Id1dbfc65850af308cea64c0257d634f769d42365
ndroid/contacts/list/DefaultContactListAdapter.java
fea18db282068142e4891a5ee24540f80adb44d4 31-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show correct activated/selected effect for lists"
63d4405224fbe28b9f6f733fe6a5509a5228b761 28-Aug-2011 Flavio Lerda <flerda@google.com> Do not show the "configure voicemail" message if there is URI.

If there is no URI, this is just a message that is not actionable. Do
not include it in the UI.

Bug: 5225828
Change-Id: I99e5f9e7ea58473ccbfb449d2802084f7acd6d36
ndroid/contacts/voicemail/VoicemailStatusHelperImpl.java
7a1ff0593c74138328cbd98863e1f7d931652ea9 28-Aug-2011 Flavio Lerda <flerda@google.com> Update UI for voicemail status.

Bug: 5226169
Change-Id: I3695ca41525bba70637bf2666c2e57aeb6650dc1
ndroid/contacts/calllog/CallLogFragment.java
fd1b98ba83b1ef9b94329f32f0eacf7ddb31cf8b 24-Aug-2011 Flavio Lerda <flerda@google.com> Blank the screen while playing voicemail using proximity sensor.

This commit blanks the screen when the proximity sensor tells us that
there is an object close to the screen.

This is to avoid accidental touching of UI element with your face while
listening to voicemail.

As a consequence, do not enable this if listening to voicemail using the
speaker phone, because in that case we do not need to blank the screen
at all as the user is unlikely to have the phone near their ear.

This is done using a blank view that is placed on top of all other views
and by hiding the action bar. This leave the notification area available
to be accidentally touched, but we cannot hide the notification area
without starting a new activity.

Moreover, we do not want to start a new activity as that would cause our
activity to be stopped, which we do not want to do while the user is
listening to voicemail, as we plan to stop playback when the activity is
paused.

Bug: 5188914
Change-Id: I17bfa7b9d466db7519a97e7ca96f152bde64b78d
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ProximitySensorAware.java
ndroid/contacts/ProximitySensorManager.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
71b0269c4a43b633d7afdc3ed9afd10a6b601769 31-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show group headers correctly"
db27b4b16acc21cd1fb26fb5430d3f34f1fc1805 30-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show group headers correctly

- have the list's top padding inside the first group header so
that the list shows correct fading effect on top
- have a header divider at the bottom of the header itself
- fix text alignment so that it looks same as the "All contacts"
list

Bug: 5233999
Change-Id: I2ea24b76cd2b2b3240ff3a9b705b7d783cacebee
ndroid/contacts/group/GroupBrowseListAdapter.java
64ef8131aab057fa37fa5f6d63b7296d2fda7fb6 29-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show correct activated/selected effect for lists

- copy system assets for activated/selected states to the project
-- rename existing list_pressed_holo_light to
action_bar_item_pressed_holo_light since the name is not
appropriate and used by system assets.
- use white color for activated/selected texts
- make ContactListItemView show "pressed" effect correctly
-- "activated" background should not be shown when the item
is not activated. If it shows it, "pressed" effect is hidden
by the wrong background.
-- The background itself is needed to not highlight section
headers.
-- manually call setActivated() toward children. Without it,
they look "black" on the first app boot.
- remove an animation parameter for ContactListItemView's
"activated" background. The animation makes the whole item
flicker.

Bug: 5191524
Bug: 5199800
Bug: 5136917
Change-Id: I7c08d8f533f0dd5318c614e3df14bb39207485e9
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListItemView.java
cb655b35e9e9567922641f9f56566fad73c01e16 30-Aug-2011 Dave Santoro <dsantoro@google.com> Merge "App changes for handling profile DB split."
84cac440813d6c151bf330998451ca1e3f6804b1 25-Aug-2011 Dave Santoro <dsantoro@google.com> App changes for handling profile DB split.

- Added a custom loader to load in the profile and contact list.
- Made the CursorLoader for ContactEntryListFragment and its
subclasses pluggable, so the default one could substitute in
the combined profile-and-contact list loader.
- The photo manager needs some awareness of the profile ID-space,
since it's doing bulk photo queries using a custom selection.
- Adapted Isaac's change to the section indexer to handle the
profile being out of consideration when doing the address book
index query.
- Removed uses of the ALLOW_PROFILE param, since it no longer exists.

Bug 5204577
Bug 5136432
Bug 5140891

Change-Id: I676b4cdeabe87b1b585c6c8df2cde51605777106
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactsSectionIndexer.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/ProfileAndContactsLoader.java
d124d99339a6a3a7dc0bfa016263988120ea2a4c 30-Aug-2011 Makoto Onuki <omakoto@google.com> Don't log AccountType.getInviteContactActionLabel()

This requires loading external APKs, which hugely affects performance
measurement.

Bug 5195464

Change-Id: I44f40c5eda04ceb33b56956e7040952da2909cd8
ndroid/contacts/model/AccountTypeManager.java
ac76896f811ea35b842769cf037d577b942822f6 30-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Don't preload AsYouTypeFormatter"
77f22a4225960a754af7ca10d497f6b13c133a7c 30-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Use THREAD_POOL_EXECUTOR when loading a contact"
ac8b7423ff392c243a0bb2dd50540a072ee85ad2 30-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Pixel perfect work on call log."
c410a1bd28a8d62c1cc241dadb8029ba0b55da77 30-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Correctly handle missing URI."
bd702127c2287b905a3568a179aa07ab4b8580fa 30-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Do not show "Show voicemail only" if no source is installed."
7a8cb1c78a2841d09cdc614db83c5444b4b86c0a 30-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Contact editor assets and redlines"
63f80f8f1235110354f0413ad2bf09bca332b7a0 30-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Use framework style for section headers and visual tweaks"
110a35c430a2e96e521e638d1de030d0bf41c67f 30-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Fix blank screen on VIEW raw contact URIs or legacy URIs on phone"
685157e0635ee33350d3dd1c6551e188d3df9f22 30-Aug-2011 Daniel Lehmann <lehmannd@google.com> Fix blank screen on VIEW raw contact URIs or legacy URIs on phone

Store requested URI in ContactLoader Result. We were doing the
wrong comparison of the lookup URI. For example, we were checking
that the incoming URI from the intent (i.e. raw contact URI) was
equal to the lookup URI from the ContactLoader Result. This was
not equivalent and resulting in a blank screen for the VIEW
intent on raw contact URIs and legacy URIs.

TODO: Fix for tablet, there may be a different issue going on
there.

Bug: 5220640
Change-Id: I2d6dff8df4c9065d7d845dca5c09ba1d773770df
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactLoaderFragment.java
2a2fa891e88b8c600f31ab59e2061144bb69c82e 30-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Silently give up split action when mState is null"
73c341f8b174782ab7a42fc4767f67168b6916ee 29-Aug-2011 Makoto Onuki <omakoto@google.com> Use THREAD_POOL_EXECUTOR when loading a contact

Checked other usescases too, but there are no other ones that're obviously
changeable.

Bug 5224505

Change-Id: I9703400e4a93f18e014fcd0e4386374eb0658548
ndroid/contacts/ContactLoader.java
ndroid/contacts/quickcontact/QuickContactActivity.java
9df1846665eb453ddaa6ee5de210cad5e666912d 30-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Don't check DataKind objects when comparing DataActions; mimetype is enough"
b9e60280603f2fa57083c13952e4b25e2585b833 29-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Silently give up split action when mState is null

mState may be null if the Fragment is recreated (or in the other
strange state) by the system during split confirmation, which is
really rare for users (while it may happen during automated
testing). Avoid NPE and give up the save action silently.

Bug: 5220440
Change-Id: I40c9a29ef1f3c1a3913beb9f3a8022b00d297102
ndroid/contacts/editor/ContactEditorFragment.java
66c1ae914fa8e71ff6ca0a5c9659ad760b5a5484 25-Aug-2011 Mindy Pereira <mindyp@google.com> Swap local profile string to corrected string.

Fixes Bug:5179592 Local profile card string should be "My local profile"

Change-Id: I5b75cfba12978765a87e37ceaeafae96cca9b03d
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/FallbackAccountType.java
69fad288d10ea261c12787e5a0e280cf938a7784 29-Aug-2011 Daniel Lehmann <lehmannd@google.com> Don't check DataKind objects when comparing DataActions; mimetype is enough

Bug:5225995
Change-Id: Icf9262e0211f560c4e994281916e99c3115ce295
ndroid/contacts/quickcontact/DataAction.java
053908f6715b53a40fe5fe24b6019759bff1899d 29-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Use holo_light icons for audio-/video-chat"
e598332967106e3db63b73c701f21902d169efef 27-Aug-2011 Makoto Onuki <omakoto@google.com> Don't preload AsYouTypeFormatter

- This took 200ms of startup time at least, and a lot more under heavy load,
especially when the flash is busy. (200ms is mostly disk I/O.)

- Instead, make sure we always use AsyncTask to create
PhoneNumberFormattingTextWatcher, which wass the only thing that uses
AsYouTypeFormatter.

- DialpadFragment already had an AsnycTask. Moved it to the new class UiUtils
and use it in TextFieldsEditorView, which is the only other callsite.

- Also improved the logging for account loading. We used to log only CPU
time, but what we really care is the actual wall time. Because
account loading involves a lot of file access (e.g. loading 3rd party
apks), only measuring CPU time is not too useful.
(In fact, on my phone, loading accounts takes only 50ms CPU time but
>500ms wall time.)

Bug 5195464

Change-Id: I2b51e864d75831bdbb9e424aa846133d49d6ef94
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/util/PhoneNumberFormatter.java
188abafba01afc6499a16de5a84d7f4da9306ef1 29-Aug-2011 Daniel Lehmann <lehmannd@google.com> Use holo_light icons for audio-/video-chat

Bug:5226029
Change-Id: Idd3fec239fc651899ec9d75e12c4dbd034acb0cd
ndroid/contacts/quickcontact/DataAction.java
c3429d2a5b95f8717ee7d235841176b8a1567141 28-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Add log to measure startup performance"
49627cc3f606085d001397ebba93dcb52bf67a5c 28-Aug-2011 Makoto Onuki <omakoto@google.com> Add log to measure startup performance

Use this to enable log:

adb shell setprop log.tag.ContactsPerf VERBOSE

Bug 5195464

Change-Id: I76dc99343763532ebf18f41b75628c4d0c468e9d
ndroid/contacts/ContactsApplication.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/util/Constants.java
fca72fa1f2bf030b3e35635508132b5ad328eab6 28-Aug-2011 Flavio Lerda <flerda@google.com> Pixel perfect work on call log.

- Show a divider only between call log items, not when there is a
section header.
- Format the phone label in the call details in white instead of gray.

Bug: 5225943
Change-Id: Ia7b959bae19f9e38021f173f23cd48ae67a84fe0
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogListItemViews.java
15820796f3914b91c0a86e2291b472d68ad72424 28-Aug-2011 Flavio Lerda <flerda@google.com> Correctly handle missing URI.

If the SETTINGS_URI or VOICEMAIL_ACCESS_URI is null, the application
will fail when trying to process the status of a voicemail source.

This fixes this issue by correctly handling the case of a missing URI.

Change-Id: I329bf2d0c203306b770d10317867fe703e0a569c
ndroid/contacts/voicemail/VoicemailStatusHelperImpl.java
c9ec94eddcb881962bdf334ddde4719d5386a976 28-Aug-2011 Flavio Lerda <flerda@google.com> Do not show "Show voicemail only" if no source is installed.

The "Show voicemail only" (and matching "Show all calls") options menu
items only make sense if there is at least one voicemail source
installed.

If not, then we should not show these options.

In order to determine whether a source is available, we use the
voicemail status table, which contains information about the installed
sources.

Bug: 5216976
Change-Id: Ib25aebba8509a1dd4c1c6de7cba2244461c69cfc
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/voicemail/VoicemailStatusHelper.java
ndroid/contacts/voicemail/VoicemailStatusHelperImpl.java
a3e69af03dd35124941a48c3bfaea87468d66863 25-Aug-2011 Katherine Kuan <katherinekuan@google.com> Contact editor assets and redlines

Change-Id: I08c11dce7f07155a919fec9989587af5f11a3220
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/LabeledEditorView.java
5a7b563bdf571ebc14a1fa5f91f9a393948461cf 09-Aug-2011 Katherine Kuan <katherinekuan@google.com> Use framework style for section headers and visual tweaks

- Use list separator style from framework for the blue headers
in our app (frequent header, recent header, kind type headers)
--> this allows us to get reduce the number of views in our
view tree because the divider is now an asset and part of the
TextView background.

- Adjust padding so it lines up with the new headers now

- Minor visual tweaks

Bug: 5136189
Change-Id: I7b10cc7e608b809d1a97ad8d8c59e31ab9d77e11
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/model/BaseAccountType.java
37bddc2fa266fa0378fcd85ac5047b1fb0af2dc0 10-Jul-2011 Katherine Kuan <katherinekuan@google.com> Add contact detail to existing contact

- Works for phone numbers and email addresses, otherwise route
intent to full contact editor

- Contact card icon / "OK" button first saves the change and then goes
to the contact card

- Port over from GB branch, updated references to non-existent classes,
added new layout to look more like QuickContacts/contact tile,
applied to ContactSelectionActivity instead of contacts list,
added support for non-editable contacts, fix layout for phone
landscape and tablet, inflate the right editor layout based on the
DataKind instead of emedding a TextFieldEditorView
directly inside the XML, use AsyncTask instead of WeakAsyncTask

- Fixed NonPhoneActivity intent flags so that the activity results
will work correctly (will allow contact card to be launched if user
requested to do so and the cancel button in the ConfirmAddDetailActivity
returns the user to the picker)

- Fixed activity theme for NonPhoneActivity to not show a title bar

- For a contact made up of multiple raw contacts, find the first
editable contact to add it to (instead of always picking the first one
which could be non-editable).

Bug: 4295003
Change-Id: I111eaf6bbc78861c2b6a27c93086d00697869ebb
ndroid/contacts/activities/ConfirmAddDetailActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/NonPhoneActivity.java
ndroid/contacts/editor/LabeledEditorView.java
3fe0cee4e2106dafd601bbd670d44cf3cb4fee60 27-Aug-2011 Nick Pelly <npelly@google.com> Merge "Update for NDEF push API change."
d41284e7b5c4864446be3e8279db34d70ece0b77 27-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Add "Contacts in custom view" string for custom account filter"
4e9fb4a5fba076d01bc54a82f87a0d75d4a29d34 27-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE for social widget when contact loader has error / contact not found

Bug: 5217576
Change-Id: I67814b6f923ff6880427a1516946928984852315
ndroid/contacts/socialwidget/SocialWidgetProvider.java
682417481cf5483c5eb87cb5e52d17badc1cb138 27-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Remove "new" label from new group and new contact buttons on tablet"
00eaf3749e4382320aada2299b01567c9a4e9a2a 26-Aug-2011 Katherine Kuan <katherinekuan@google.com> Add "Contacts in custom view" string for custom account filter

- Make People app and Phone app account filter string logic
the same

Bug: 5015564
Change-Id: I33312a33b3e89054f5e8c02021af5f7195aabf52
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
cebedcf0d2b05e8f7d68ac20f724de7ae3e1327c 26-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Fix group list scroll position resetting issue"
44b90b09a61c53cd61b6f8ff0889f85b7d3490bb 26-Aug-2011 Makoto Onuki <omakoto@google.com> Fix group list scroll position resetting issue

- Clear mSelectionToScreenRequested once requestSelectionToScreen() is called.
- Do requestSelectionToScreen() only when selection is visible (i.e. on tablet)
- Also removed unnecessary ListView.save/restoreState. There was no code between
these.

Bug 5221320

Change-Id: Ie3dd466b4f3f84562ffec4c72a8026f5833a0b5d
ndroid/contacts/group/GroupBrowseListFragment.java
73b480880d7a7866ccae52b13018f8fb3e832db0 26-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop showing dialog when the Activity is already gone"
1c89efe5953c7d7d251cb615b0077216dfffbd3c 26-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove search from join activity"
6e99c39b45d87c84a64a201efcde5fc5e6b4bb61 26-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing dialog when the Activity is already gone

Actually showDialog() is deprecated method and this whole
Activity should be rewritten using DialogFragment. This is
just for preventing unnecessary crash during automated testing

Bug: 5166487
Change-Id: I94fcabf1b916d86cdc9333f337b43dafacae4f72
ndroid/contacts/vcard/ImportVCardActivity.java
afe8b8cdf6dda43397dbb57a0c5bbed3984051dd 26-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix header when editing a profile"
c27cd7be5905ac4c7019e409eb3009a264f7853e 26-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Use the call log to cache additional contact information."
a3364bc45b73c6a3bb0e0ec4586110f962ddf8c2 24-Aug-2011 Nick Pelly <npelly@google.com> Update for NDEF push API change.

Change-Id: I9101e2f756fbaeaa392d9d5f4ebc6523618a8a5c
ndroid/contacts/NfcHandler.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
681f36cc7cc49be781eedc4685eda2d1b2c0444c 26-Aug-2011 Isaac Katzenelson <isaack@android.com> Fix header when editing a profile

Bug: 5179920 Google+ profile should say "My Google+ profile"

Added a case to change the header name when editing a profile.
The editor now gets a boolean indicating if the contact edited is a profile.
If it is a profile, the editor sets the header with "My X profile" according
to the account name.

Change-Id: I62af5011061f61a6d1d3c60845a1746c99cda04a
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
e2de5e4d57bc51b8cad8a5aca1689cfbae442cd1 26-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Don't print out bundle in ContactEditorFragment"
80243fd6a57c77c218dd5de957358cdb6ffba009 26-Aug-2011 Isaac Katzenelson <isaack@android.com> Remove search from join activity

bug: 5199310 No way to search and join two contacts

Removed search code and disabled system search button.

Change-Id: Iefdfd6dbe3ac5744abefa33a4cd4e1ca2195152f
ndroid/contacts/activities/JoinContactActivity.java
e1316f0168f27107f46fa0161a2e9b9baac66f05 26-Aug-2011 Katherine Kuan <katherinekuan@google.com> Remove "new" label from new group and new contact buttons on tablet

Bug: 5205257
Change-Id: I90df89c2ef3be78592d32bbd0b54e63a7f34b669
ndroid/contacts/activities/PeopleActivity.java
b1b1f34968ceacb7880141a16130ce564223f263 26-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make the app accept Contacts.CONTENT_URI without id"
f9fa11c0867ec17742a1bc6b742d4a64a631962b 26-Aug-2011 Katherine Kuan <katherinekuan@google.com> Don't print out bundle in ContactEditorFragment

On rotation change, we shouldn't print out the bundle because
it contains PII.

Bug: 5205563
Change-Id: I7965f4312a2769468ea17be6dadb7a988d46883a
ndroid/contacts/editor/ContactEditorFragment.java
c897f0213aec9dc589ea81fe53ccee444101f232 26-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Let Phone UI reload filter on onStart()"
cbe05df145b800118f3ca45f61ea486fad1cca08 25-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Let Phone UI reload filter on onStart()

This is workaround for bug 5165507: Contacts to Display filter loses
its setting when going from People to Phone app

- call ContactListFilterController#onStart() or its variant.
Not calling it is an apparent bug in DialpadActivity
- instead of checking local filter cache, load it from preferences
every time, only on Phone UI

The root problem is that People and Phone UI don't share one
controller insntance and thus they don't receive the same
filter change event. When the user changes the filter in People,
Phone UI won't receieve the event, for example.

On Phone UI, back button doesn't introduce Activity#finish(), which
makes the whole issue more prominent in People -> Phone case
(set filter on People, and go to Phone), but it does exist in the
opposite case (set filter on Phone, and go to People). The latter
case causes the problem only when People is in background (with
Home button, for example).

This will fix:
- display filter change isn't reflected in Phone, when going from
People to Phone (what reported in bug 5165507)

This won't fix:
- display filter change isn't reflected when it is modified in
Phone UI, while People is in background (with Home button event)
(what caused by the root problem behind that bug)

A more fundementaly fix would be to share one single
ContactListFilterController, which would be more complicated and
a bit too risky at this point.

Bug: 5165507
Change-Id: Ie7968deb99c07597c35e3bb1531461f0a42c326a
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactListFilterController.java
f0c4681ee4191e47103f8699dd1bf9cf7fc8b669 24-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make the app accept Contacts.CONTENT_URI without id

Contacts.CONTENT_URI without id is used when external
apps want the Contacts app to show all contacts screen.
The behavior has existed since GB.

Also modifies ContactsIntentResolver (which was new in HC) so
that it treat the intent as ALL_CONTACTS action.

Adding a simple test case for Contacts.CONTENT_URI without id.

TESTED:
- phone, tablet
- launch the app
- launch the app via quick contact
- launch the app via the other app relying on Contacts.CONTENT_URI
without id
- check this modification won't break the other intents shown
by our all intents test.

Bug: 5184700
Change-Id: Icd98c6001d379db91f438a0b15a499d922f4a22d
ndroid/contacts/list/ContactsIntentResolver.java
2ce39a2f0baf4a646752a5181423a648179516b3 25-Aug-2011 Minh Pham <phamm@google.com> Merge "Change commit() to commitAllowingStateLoss()"
4b25da79091157935042d2942a8961ceba92166f 25-Aug-2011 Minh Pham <phamm@google.com> Change commit() to commitAllowingStateLoss()

- Following the pattern in Email and Gmail, we change all commit() to commitAllowingStateLoss().
At least this will stop the monkey ISE.
Bug: 5167769
Bug: 5179918

Change-Id: Ibee8380a0f854aeb30bc3c4359fb706faf4efb4b
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/activities/NonPhoneActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
e7cfad34a0c60120e3a2bc55800889dc474e71f0 25-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Two fixes for custom filter activity."
b548a71b10e0be11798a6dc1d271f6f3263e2c41 25-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove semi-transparent first name on scrolling"
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
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactEntryListView.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressListAdapter.java
9f815574feb0ea9c53dfd6b2ee6ca85e6f8c01a4 25-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove group editing for readonly groups"
4813c270af2b5d904437757807541f1f5e19bb93 19-Aug-2011 Flavio Lerda <flerda@google.com> Use the call log to cache additional contact information.

The new version of the call log needs a bit more information about the
matching contact (if any) to render its entries.

This change both uses the newly added columns in the call log to lookup
this values and stores the updated values back into the call log.

These values are used for setting up the quick contact badge and
formatting the phone number.

This also fixes a few smaller issues:
- the phone number shown used to change format between the initially set
value to the one obtained from the contact: this value is now cached.
- we were using -1 as the id of a non-existing contact, but 0 is
actually the value used elsewhere for this, so stick to that.
- make sure we use the cached value from the call log for formatting.
- update the call log if there was no previous value.
- introduce a UriUtils with a couple of useful functions for handling
URIs.

Bug: 5101753
Change-Id: I22f2b03b234da91e02dbeebe11a94c2f56295a3d
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogQuery.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/ContactInfo.java
ndroid/contacts/util/UriUtils.java
c06f21bd72611b335f4d34586f656225fb02f0fb 24-Aug-2011 Hugo Hudson <hugohudson@google.com> When we leave the voicemail activity, stop playback.

- On pause is propagated through to the VoicemailPlaybackPresenter.
- We use this to stop playback.
- Added a test used when working with this, but suppressed it because
I can't find a simple-enough way of checking that the audio has
stopped.
- Adds the ability to test the CallDetailActivity with a real voicemail.
- Fixes to the FakeAsyncTaskExecutor that Flavio and I have already
discussed - fixes that make the onPreExecute() method work correctly
(i.e. get invoked immediately on the thread that calls submit() on the
executor, rather than on the same thread that calls run... from the
test, which is a poor simulation and also illegal).

Bug: 5206675
Change-Id: I3f96c438dc6bbc1413a40b7bb2306ceb413f14a8
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
3ae114e72617f2faea281d82f7f4ee026d8c5674 25-Aug-2011 Makoto Onuki <omakoto@google.com> Two fixes for custom filter activity.

- Filter out extension accounts with no data.

- Added a couple of convenient methods to AccountTypeManager.

Bug 5160471

Change-Id: Ie6afbfc97927074ec0b57226576e4734bafa5732
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/AccountWithDataSet.java
a359f29a8da2a3d1f4eaafaff1bb180d7980ea21 25-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use the older way to cope with onInvalidSelection()"
da78cfc32101610955f7013a16da2fcaa5f078b0 25-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix blank screen on contact card after extended screen lock"
e92a978f8d3b98364abae85559e547659de1bc58 25-Aug-2011 Isaac Katzenelson <isaack@android.com> Remove group editing for readonly groups

Bug: 5209461 Uneditable groups (i.e. Circles from G+)
seems to be editable, even if they aren't

Added a check that removes the edit button in the Group Details
fragment is the group is read-only.

Change-Id: I83b403c6b4b69d86b52827810741e86ace2e8c53
ndroid/contacts/group/GroupDetailFragment.java
3df110b9689b6b7b3a214bfdebc19a68a4c4968e 24-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Contacts to display: hide accounts without raw contacts"
b5e4419f4ba06d630331669a08613936889f34df 23-Aug-2011 Makoto Onuki <omakoto@google.com> Contacts to display: hide accounts without raw contacts

- Hide extension accounts with no raw contacts.

- Now that building the list hits the database we need to use AsyncTaskLoader.

- Did a little refactoring (e.g. moving mFilter to the adpter) so the code will
work better with a loader.

Bug 5160471

Change-Id: I780985a73325d4d453962e8ea5dca0d68c3c869e
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/ExternalAccountType.java
a0de2bb0d8958a3c2146f5bdfc6409a5338b9fc6 24-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Make sure all group/star tiles have the same height"
4a2341d779d3cd73caa2b737df26e69fd86aaca8 24-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix overlapping group editors"
ec2520280a10e779a567758019408a6610eb0f99 24-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE in GroupNameDialogFragment"
f464b7a6d4bc90123dc7f8eb8ae9d3a7bb191c89 24-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Remove large gap between status message + presence icon on tablet"
fab516143c60565b9cc0d18fbe0af33902764546 24-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix blank screen on contact card after extended screen lock

- After viewing the contact card for someone with social
updates and waiting for an extended screen lock (3+ mins),
unlocking the screen brings up a blank contact card.

- Don't set retain instance state = true for ContactLoaderFragment
so that it follows the normal Fragment lifecycle
(and we already take care of saving/restoring state
anyways in that fragment).

- Don't set the contact data to null onLoaderReset() in
COntactLoaderFragment

- Don't show the "updates" header in the updates fragment
if there are no stream items

Bug: 5141991
Change-Id: Icd8693154f756cf423b64524ffcbd850f1c55d9b
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/detail/StreamItemAdapter.java
b9225e3753f128c80d9643d04faba5354ca263da 22-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use the older way to cope with onInvalidSelection()

Although we're showing "all contacts" list when the selected
contact isn't in the current filtered list, we don't explicitly
select the contact, thus detail page ends up to showing
previously selected contact.

We can partly achieve it, by selecting the contact uri programatically
after showing "all contacts" list, but then, the next problem would be,
what should be done when even the "all contacts" list does not have
the requested contact.

The case is super rare (since "all contacts" should include almost all
contacts users usually want) but still possible, and there's no easy way
to determine the edge case.

One possible workaround for this rare case is to try to show "all
contacts" once and fall-back to single contact mode if the requested
contact isn't there. Though it sounds feasible, the change would become
a bit too risky at this point. For example, it may be very slow with
larger database.

Let's just show single contact for now, and show correct directory
header.

See also Ica75178d10b4a9b95c44cc4f75f56b65fbc67da8 for the code
introducing single contact mode.

TESTED (on phone):
- This change should not affect People UI for Phone.

TESTED (on tablet):
- set custom filter with no contacts, and create a contact.
We should show the contact both in the list and detail.
- set custom filter with no contacts, launch quick contact
via favorite screen, and open contact detail via the quick
contact.
We should show the contact both in the list and detail.
- set custom filter with no contacts, launch the other app
which relies on quick contact, and open contact detail the
quick contact.
We should show the contact both in the list and detail.

Bug: 5193999
Change-Id: I233162572e25acb737c9eae787dfc146879a0dc2
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
c39855fec7624e755ad46033c5a9a3f11b9cac29 24-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Fix various Quick Contact visuals"
1792b08c500ed528e7d21401affd936b3a7b3dc6 24-Aug-2011 Daniel Lehmann <lehmannd@google.com> Fix various Quick Contact visuals

Also fixed a bug where the secondary action can be tapped even though
it doesn't exist (crashes)

This also fixes pushed states, which have been filed a couple of times

Bug:5137515

Change-Id: I810d12a79f0088a0770a0eaf9225fe7906ebd8e7
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
a4caa5534fb2a2709fc6384881890c3125f71810 13-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in GroupNameDialogFragment

Bug: 4674353

Change-Id: I0772d0e41d3d16b4b9582c0163d143330766b795
ndroid/contacts/interactions/GroupNameDialogFragment.java
5acd4059d30f3b048166ef42f8015a873ef4ae2d 24-Aug-2011 Katherine Kuan <katherinekuan@google.com> Remove large gap between status message + presence icon on tablet

- Change status text color to secondary color
- Last pixel perfect tasks on the contact list
(except that ellipsizing text still doesn't work)

Bug: 4689495
Change-Id: I347fe23d884876d367764ca877996030d00185ea
ndroid/contacts/list/ContactListItemView.java
de4e404bd88cb60a8286e17383a49534efcc0e56 24-Aug-2011 Katherine Kuan <katherinekuan@google.com> Sort group editor autocomplete suggestions alphabetically

- Make drop down suggestions use a similar layout to the email
autocomplete dropdown layout (UX request). This also allows us
to view more suggestions on screen at a time.

Bug: 5197573
Change-Id: I96c3d8b93defb716c6df2530bdaa20e86275f564
ndroid/contacts/group/SuggestedMemberListAdapter.java
b848271a560eaeddb2f4007fcbd3f77506a40ac1 19-Aug-2011 Isaac Katzenelson <isaack@android.com> Fix overlapping group editors

Bug: 5173297 Group editor tends to duplicate
itself and overlap the views on top of each other

Add code to remove old editor when a new one is created.
Added code to prevent multiple contacts in list of contacts to display.

Change-Id: I1bd6da440545047d18667bd01f74f84c1677601a
ndroid/contacts/group/GroupEditorFragment.java
1edabe9a4d563f620cd74d5fb1f1ea197c18129b 24-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show empty detail screen (on tablet) on nothing loaded"
648eeb3f9ee10c6792f16d46334c079660d7c45f 19-Aug-2011 Makoto Onuki <omakoto@google.com> Make sure all group/star tiles have the same height

Old way:
- Let LinearLayout divide its width for children.
But some children may get different width than others do, if the
width can't be equally divided.
- Children always use the given width as height.
- So sometimes some children have different height from others.

New way:
- Do the measurement and layout by ourselves.

Bug 5149952

Change-Id: If0421138ab6d8f85fb4391fbd56dc8a75ba0ef33
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileStarredView.java
2bc0f567b9df8ea4cbfaa84b873e4fb0061fcaab 24-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Use photo id when available."
3ba752a1b011c8d7448fd999c73b57567b350505 23-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Asset swap and make SearchView use themed context"
cb6671ae209fa034abc6202f4ba3666a8644cb5c 23-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Remove "joined contact" message from the contact card"
6cb3c9ea0ee489064d57ba16e71decbabf987486 23-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Persist selected group on rotation"
9f777386ea6e65c7475bbefdcc73b6ec0d92a98a 23-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Check if digits container is null or not.

It can be null on some layout (right now landscape layout may not
have it).

Bug: 5202030
Change-Id: I12f6fa65d2566a175f3f5e6f1b4cd9ca9321cbc9
ndroid/contacts/dialpad/DialpadFragment.java
0bf7cd0124fa6f74fe3d64619740420ded86dcce 23-Aug-2011 Katherine Kuan <katherinekuan@google.com> Asset swap and make SearchView use themed context

- Make SearchView in action bar in People app use action bar
themed context so the query text and icons are white instead
of gray. Create a custom theme to make the hint text lighter
than the default DarkActionBar hint text color (as directed
by UX and framework)

- Replace panel_message asset (background of contact editor on
tablet and contact unavailable fragment)

- Replace the panel_content asset (background of group detail
fragment)

Bug: 5127109
Bug: 5199518
Change-Id: Icae927e1d158241140d18028d38cac25dbf282fc
ndroid/contacts/activities/ActionBarAdapter.java
4715cafcbe76ac79b0b25ec62ec4ad8b55a2d41d 23-Aug-2011 Makoto Onuki <omakoto@google.com> Persist selected group on rotation

It was all about timing of restoration. We did have the code to restore it,
but it should have been done before mAdapter.setSelectedGroup().

Also switched from Bundle.putString() to putParcelable().
(putParcelable accepts null -- so the change should be safe.)

(This CL also restores the activated item on the group browse list, although
we don't set proper background to it.)

Bug 5137176

Change-Id: I735f80419c60bb3dd5e760c639900b4eba1ef6c5
ndroid/contacts/group/GroupBrowseListFragment.java
5ee899e689a8ddcc500655f24b0bcdfdbf401702 23-Aug-2011 Flavio Lerda <flerda@google.com> Use photo id when available.

Photo id is a long that uniquely identifies a photo associated with a
contact. It only handles low-res photos, but that's what's used in the
call log anyway.

This commit uses photo ids instead of thumbnail URIs if the photo id is
available, since that's more efficient for storage purposes. In fact, if
a photo id is available it does not even bother storing the URI.

This will make a significant difference in terms of storage when I will
use the call log table to store cached contact information, including
the photo id and thumbnail URI.

Bug: 5101753
Change-Id: Ia60e3ce33763fe3744208763befbaf4489d60bdd
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/ContactInfo.java
ndroid/contacts/calllog/PhoneQuery.java
ndroid/contacts/util/UriUtils.java
69aa5899ef42c0ca18b52d638d82ca019b168935 23-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Propagate original exception when throwing load exception"
071aa0d0511cbffac933539eaa484860fae2132d 22-Aug-2011 Flavio Lerda <flerda@google.com> Use Contact URIs instead of contact ids.

Contact ids are not guaranteed to be stable.

Instead use a contact URI (which contains both a lookup key and a
contact id, used only as a hint).

This change is needed for caching, since we do not what to cache the
unstable contact ids.

Bug: 5101753
Change-Id: I34814c8935e706ee898adcedc39c4baeea147d67
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/ContactInfo.java
ndroid/contacts/util/UriUtils.java
afd283a8a65e0cfd62204c948fa2bce3004db657 23-Aug-2011 Katherine Kuan <katherinekuan@google.com> Remove "joined contact" message from the contact card

Bug: 5166655
Change-Id: I2a983f9d34ec9f2732e01b64dcf890c3d925c1af
ndroid/contacts/detail/ContactDetailDisplayUtils.java
050c3893fadaf6d02951a3fe29684f4cd94fa9c9 22-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show empty detail screen (on tablet) on nothing loaded

TESTED:
- People on Phone should work as we expect.
(this change shouldn't affect Phone experience at all)
- People on Tablet, landscape and portrait
-- nothing should be shown when no contact is selected
on boot
-- detail should be shown when a contact is selected
-- nothing should be shown when filter has changed and
no contact is selected
-- detail should be shown when filter has changed and
a contact is selected after that
-- orientation change should not cause any problem

Bug: 5084998
Change-Id: Ieed0b551655b7ee3b3872117eca50af90df30021
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
6bddb84a3c1fe5837ec6f52e0d8aafe55cff0e88 23-Aug-2011 Gilles Debunne <debunne@google.com> Merge "Removing the deprecated setSuggestionEnabled."
9e7b5da669fcf92a6a627fb720749e5cb627684a 23-Aug-2011 Makoto Onuki <omakoto@google.com> Propagate original exception when throwing load exception

Bug 5198078

Change-Id: I941dc9b96d6c58eb1912d446c3c27ec4c4c2ffef
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
9d215564e904b49ec343c69e8e6967b46d68ded3 23-Aug-2011 Gilles Debunne <debunne@google.com> Removing the deprecated setSuggestionEnabled.

The actual deprecation will be done in CL 126249

Change-Id: Ife7127b6e01af6cd8eb9ce4012ecee2224233b68
ndroid/contacts/dialpad/DigitsEditText.java
09b8ff7eb99f7d16af92a57246ac58c4f3621b77 23-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix group source crash on phone"
e845dc056b78c52f528285d68f50bc602f5038fc 23-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Throw exception if there's a contact loader error"
8ac1a314c265db2699dbe6659c811eb36410f536 23-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Coordinate scrolling between two lists on contact card"
3acaef02bdbc612ba7573f005168cec48aa42905 22-Aug-2011 Katherine Kuan <katherinekuan@google.com> Throw exception if there's a contact loader error

Bug: 5193744
Change-Id: I3a9024f090efc581dec96c7a84580eed1864de42
ndroid/contacts/detail/ContactLoaderFragment.java
f5f8430538efb5636bdd2385f742ec1b23d10b17 22-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix group source crash on phone

- The group source button is supposed to be a scrolling header
in the list of group members on the phone portrait view, but
we can't add a header view to a ListView after the adapter is set.
(Setting the adapter had to be moved before setting the header
view otherwise the group detail page would flicker on every
sync).

- Make the header static as a simplification and hide the view
if there's no group source needed.

- Remove fading edge on group members list

Bug: 5195472
Change-Id: Ibedc629ddd85a54ed8beee92650df617a09d2a6c
ndroid/contacts/group/GroupDetailFragment.java
5001162cb58674e24792b8c6a84e57d9df619042 22-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show IME when search button is pressed."
6beadaeb0f159a150f62471a5c5f0b0463e46733 22-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show IME when search button is pressed.

Bug: 5189462
Change-Id: Ief5059ef9e28d28ac5c0117222e09643ea32bd69
ndroid/contacts/activities/DialtactsActivity.java
6c0470e21d8506fb53915df7463634fd47288343 17-Aug-2011 Katherine Kuan <katherinekuan@google.com> Coordinate scrolling between two lists on contact card

FRAGMENT CHANGES:

- Add a method on each of these fragments to scroll the list by
a given offset (only when the first "fake" item in the list
is at the first visible position on the list). If any other
item (2nd, 3rd, etc..) is the first visible position on the list,
then it gets too complicated to figure out how much to offset the
list, so it's better to just animate the tab carousel to be at the
right spot.

- Add a method that returns the top position of the first item
in the list if the first item in list is visible (to verify
that the offset was done properly). If the offset is not
what we expect, then we know the list couldn't be scrolled.

TAB CAROUSEL:

- Keep track of the Y position of the carousel the last time
the user was on the details page, and the last time the user was
on the updates page. This is because syncing the scroll position
of the 2 lists or animating the tab carousel vertically is only
necessary if the tab carousel position has changed between the
two pages.

LAYOUT CONTROLLER:

- We need to be able to animate the tab carousel to the correct
Y position anyways because if the list in the fragment is not
scrollable (but the other list is scrollable), we need to rely on
animation to hide the big white space below the carousel.

- When a list (i.e. in the ContactDetailFragment) is idle, the user
has stopped interacting with the list, so use the time to sync
its position with the other list (since this may involve a
requestLayout() if a scroll is triggered).

- Because the list may not become completely idle (i.e. the user
flings the list and then starts to swipe), we still need a check
when the user starts swiping the view pager to sync the two lists.
If it's already at the right spot, then do nothing. If we can't
scroll the other list dynamically and we need to animate the tab
carousel, and we should only do this when the view pager has
settled down and is idle.

MISCELLANEOUSE EDGE CASES:

- Fix the tab carousel jumping to the starting position (if a sync
happens and the loader data is refreshed) because the layout is
likely being redrawn and the tab carousel is potentially redrawn
back inside the bounds of its parent. Hence store and reset the
tab carousel position to its previous Y value (which could be
outside the bounds of its parent).

- If the list is scrollable but only by a little bit, allow
the tab carousel to compensate by animating down the rest of the
offset amount

- Tapping on the tab should also work now

- Make photo in updates tab fill the whole tab, change
updates fragment background except for the tablet landscape mode

Bug: 5044680
Change-Id: Icc9445606ea52779dea97b194763c74a0b2a27ee
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ContactDetailViewPagerAdapter.java
ndroid/contacts/detail/TabCarouselScrollManager.java
a344084d5fc1086d5a75e6c54987f6b515fa34e1 22-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Make update items/photos highlight when they're clickable"
9c747ac625d212a10176082fba6b087035f5d144 17-Aug-2011 Hugo Hudson <hugohudson@google.com> Fix up the unit tests for the CallDetailActivity.

- We've recently moved lots of code to use AsyncTask to avoid strict mode
violations.
- Thanks to the new BackgroundTaskService, these weren't being executed,
and the tests were failing. But simply executing them is not a fix,
we want much finer grained control over what executes when, so we
can assert about different states of the ui.
- This cl introduces the concept of an identifier to go with the submitted
task, so that you can uniquely identify tasks from the test.

Additionally, on further reflection, adding a new interface BackgroundTask
wasn't necessarily a great idea. Nor was calling the thing that submits them a
Service - that name is already overloaded to mean something else in Android.

Therefore this cl makes a number of other style changes to the pattern:

- The BackgroundTaskService just becomes an interface AsyncTaskExecutor, with a
single submit() method, in a very similar fashion to the Executor pattern in
java.util.concurrent.
- We introduce the AsyncTaskExecutors class, which may be used to create
AsyncTaskExecutor objects, and also introduces a seam for injecting fake
executors for testing.
- This cl introduces a FakeAsyncTaskExecutor, which can be used to inspect the
tasks that have been submitted, as well as being used to execute them in a
controlled manner between assertions.
- This is now being used to control the flow of voicemail fetching from
the unit tests, and make sure that the recently implemented logic to
read has content, move to buffering state, then move to preparing,
is all working correctly.
- Later this will also be used to exhaustively test all the other
situations we care about.

Change-Id: Ia75df4996f9a5168db8d9f39560b62ccf4b98b46
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/util/AbstractBackgroundTask.java
ndroid/contacts/util/AsyncTaskExecutor.java
ndroid/contacts/util/AsyncTaskExecutors.java
ndroid/contacts/util/BackgroundTask.java
ndroid/contacts/util/BackgroundTaskService.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
227ec819545cd179983eb9faac5492816a7a3bb9 20-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Added new assets for contact editor."
2245870a1354df03512010e4968b144840894fb7 19-Aug-2011 Frank Sposaro <sposaro@google.com> Added new assets for contact editor.

Bug: 5070819
Change-Id: Id90fcf34a376f7d3d0a1dec3a0a76e4df4b5053c
ndroid/contacts/editor/ContactEditorFragment.java
c2c7de6ac834925090694687374293c3768c25e1 20-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Removed fading edges."
3d5c5de0b376aa9c4e5c60eeb0b81118217eb361 18-Aug-2011 Frank Sposaro <sposaro@google.com> Removed fading edges.

-Minor padding fix

Bug: 5136536
Change-Id: I1526aabd98c23ec33906d95744d78bb0292fff9a
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
7b45613a6df9eef617d73c9058ec1fb296142119 19-Aug-2011 Makoto Onuki <omakoto@google.com> Make update items/photos highlight when they're clickable

- Highlighting used to work not because "stream_item_content" had the proper
background but because it was the default behavior for ListView items.

- Implement StreamItemAdapter.isEnabled() and make all list items disabled,
so they don't highlight when not necessary. i.e. when items don't have a
click listener set.

- Instead set a click listener to the "stream_item_content" view.

- And change the background to "?android:attr/selectableItemBackground",
which is the default background for list items.

- Also make photo views highlightable when they're clickable.

Bug 5180619

Change-Id: I06bff9d1a0e5385fa66edd4577ddefb43587621c
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/StreamItemAdapter.java
f78a59076ab7700f0f7482d9935763dcab235563 14-Aug-2011 Flavio Lerda <flerda@google.com> Update the call log contact info cache.

Now that we use the call log cache again, we should also update it when
we find more up-to-date information when looking up in the contacts
database.

Bug: 5101753
Change-Id: I408c1d5c8ec3752d5c15e761274eb06fb9242de6
ndroid/contacts/calllog/CallLogAdapter.java
e39934d51f6ad5ea173551d06beacacb5c3b2555 19-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Use correct style for GTalk-IM; fixes the height of the secondary icon"
cbc819134526286093eb6833385851e4d08fb2c2 19-Aug-2011 Daniel Lehmann <lehmannd@google.com> Use correct style for GTalk-IM; fixes the height of the secondary icon

Bug:5061964
Change-Id: If1e72eb0e85136747225424d204530bae28744bd
ndroid/contacts/detail/ContactDetailFragment.java
43d90c996a063912f804646c8958e9f34e4d6f1a 19-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Launch viewStreamItemPhotoActivity when photo is tapped..."
f748d59e8a31f8c9d054fd11deb9b70250387dab 19-Aug-2011 Makoto Onuki <omakoto@google.com> Launch viewStreamItemPhotoActivity when photo is tapped...

on stream item list, if the account type supports it.

If the account type doesn't support it, tap of photos launches
viewStreamItemActivity as before.

Bug 5185880

Change-Id: I0b43da3e966ee7737937b2dde7a97e4c440d00dc
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/StreamItemAdapter.java
f70053496b23f7e2163abc8c56279de36b826584 19-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix empty state layouts"
2c1ba625efd310747bed10a180716ca82e09ef4f 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "add contact capability for Phone UI"
eb99f175fd892cbe0f704e4cb89832c7e3bd0430 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Explicitly invalidate options menu on digits change"
54bd77f261690ba4477dc97248e827b191cdbf40 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Explicitly invalidate options menu on digits change

We need to ask the framework to explicitly inflate the menu
again on onCreateOptionsMenu() when digits EditText has changed.

Bug: 4983873
Change-Id: I252f0ead2fd71c1694b67b0cbdc7b771d2501eac
ndroid/contacts/dialpad/DialpadFragment.java
2374a4eee09a2d8582051e1c1f9035179bb230f3 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop showing group icons"
deddb487d7596a12b2ec5fdcb0e8054c99fd3185 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing group icons

Bug: 5186302
Change-Id: I07916be6dabfe4cc416cd4e607c08a14da3f3039
ndroid/contacts/group/GroupBrowseListAdapter.java
9a3cd55c1664ebdafc4f8c265e3d2bdcf4e429b1 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Hide the menu icon when dialpad chooser is shown"
0a23976d731231abfe1b31ccad186ac21fae2271 19-Aug-2011 Makoto Onuki <omakoto@google.com> HTML-decode social update for widget

Also checked other callsites of StreamItemEntry.getText(), which are all okay.

Bug 5185873

Change-Id: I8bc81f847e1d50654b4861d2eb643fd333927270
ndroid/contacts/socialwidget/SocialWidgetProvider.java
18f5f79fa3991a864a17596fe14a04045a7540eb 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> add contact capability for Phone UI

Also make edit screen exit to previous screen so that Phone UI
and 3rd applications won't confuse users with INSERT Intent.

TESTED:
* phones with/without a hard menu key
- Phone UI should have just one "create contact" menu on the right
place in the search mode.
- Phone UI should not show the menu outside the search mode.

- People UI should correctly navigate users using add/edit capability

* tablet
- People UI should correctly navigate users using add/edit capability

Bug: 5185218
Change-Id: Id8360aeb6ef99ef0d3ab2902e97c0bbe8f590c17
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/DialtactsActivity.java
06dfcefaa8e6c711a65146dd293ad5960169a607 18-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Replace the is_profile hack by a worse hack, which is at least way faster"
f7b3e1928b356bf7cd35ab1660a4786cc6208779 18-Aug-2011 Daniel Lehmann <lehmannd@google.com> Replace the is_profile hack by a worse hack, which is at least way faster

Bug:5134056
Change-Id: I7b9f419ee552a7d0c592f836355234ad6e34e221
ndroid/contacts/list/DefaultContactListAdapter.java
1185d1a6c04f0faeca2b368f5ab7ca191dc2b31b 18-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Hide the menu icon when dialpad chooser is shown

Now that we may have the menu icon on the right side of digits
EditText, we should hide the whole container instead of the
EditText itself.

TESTED (with phone devices with/without a hard menu key):
- show dialpad chooser and see the screen is not corrupted

Bug: 5183700
Change-Id: Ib598d799799a2e65b3b61524adfa2a64e47eb456
ndroid/contacts/dialpad/DialpadFragment.java
68ca6aa964ae356354615a3bbc19ea99b4597a4b 18-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Hide unnecessary menus when launched via DIAL intent

ViewPager#getCurrentItem() returns "tabIndex" after
ViewPager#setCurrentItem(tabIndex, false), so we need to preserve
the previous value.

TESTED (using phone devices with/without a hard menu key)
- swipe actions do not corrupt menus
- tab clicks do not corrupt menus
- DIAL intent corretly shows/hides menus
- Menus aren't corrupted in Dialpad Chooser

Bug: 5118757
Change-Id: Id857a2d7ac5a007db65b20f80270a07ea527ba7f
ndroid/contacts/activities/DialtactsActivity.java
a1bbf6139bb1e0d30078fe6c99effaf45f7416ef 16-Aug-2011 Isaac Katzenelson <isaack@android.com> Fix empty state layouts

Bug: 5074806 Fix empty state layouts
Bug: 5109507 During loading group, we show "no groups"
instead of "loading groups"

- Changed the layout of contacts_unavailable_fragment to Marco's specs.
- Added a secondary message for empty state.
- Aligned layouts of empty state of each specific fragment to match the
full empty state.
- Removed "No Groups" message when group list fragment is loading the
group list

Change-Id: I5cea254e5892955906127599374dc706d2aca91b
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
94f216b210f29abe7fdb96a18a1718e91b628f54 18-Aug-2011 Makoto Onuki <omakoto@google.com> Group editor: Just close activity when there's no accounts

Rather than crashing.

Bug 5035734

Change-Id: I433049de1a254213beb83501fdae74907f11a4cf
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/group/GroupEditorFragment.java
91febe72abe39c852b9f7f0120da14ff66c13197 18-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Allow phone contact card to switch b/t having/not having social updates"
90cbde8b9c806c9fb35cc2da77a858eb86392a65 18-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Implement custom EditText to correctly suppress IME"
735523543a108659ce1c8ee55872c4d2dada2617 18-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Fixed presence icons for ContactTiles and ContactListItem."
d9f11ebbcf22b2e8f423f0887826c03d01d4a509 18-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Fix bug: Google Talk update title not found anymore"
de15823de8db71ad4757e272b4f5a1a6b29a70d1 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Implement custom EditText to correctly suppress IME

Also use stateAlwaysHidden to ask the Activity itself to
show up IME on the first boot.

Bug: 5032146
Bug: 5171943
Change-Id: Ie763cca52ca6a4d0db48ab240a39cb8f03ebbc03
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/dialpad/DigitsEditText.java
5b8835d19834e3d6e3567769b270a75f17f34507 17-Aug-2011 Makoto Onuki <omakoto@google.com> Fix bug: Google Talk update title not found anymore

When the resource package is not set, we use the framework resources,
so we need to pass "android" to getIdentifier() as a package name.

Bug 5163188

Change-Id: If5b57feb7419909279b58eb51644ff31e2d25478
ndroid/contacts/util/ContactBadgeUtil.java
1cb1270762bc03f77434a7e56fde520811cc7412 17-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Only load extension packages with contacts.xml"
8545ec4d78e5bdaec87b0ae59c448acc96856b4c 17-Aug-2011 Makoto Onuki <omakoto@google.com> Only load extension packages with contacts.xml

It's still okay for non-extension packages to not have contacts.xml.
Enforcing it for them may break backward compatibility.

Bug 5173717

Change-Id: I1ff914f24f08f5bba9cb956e516a78de8144bd2b
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/ExternalAccountType.java
65dce2bc0d144c6ad2cb0be864fa4e785b8204f0 17-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE in ExternalRawContactEditorView"
a248f3c12dfc62acc62bea00cfd2b72d59a61f4c 17-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Fix for "Can not perform this action after onSaveInstanceState""
b59500deb3a7cb7c681b1196ba9ccb57e4e2d83e 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Get rid of an unnecessary member variable

Bug: 5131136
Change-Id: I7e02df8ea7ce553efd919cc41a1da97343c5605f
ndroid/contacts/activities/DialtactsActivity.java
27fda03a5c6bc21f2f0aec27698062cf278107e4 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show filter menu on the right of SearchView when no menu button"
ad3e9d878ac1412568151182ebe94c41c2a91d37 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show filter menu on the right of SearchView when no menu button

TESTED:
- filter option menu shows up on the right side of SearchView
instead of being shown as an overflow menu when the device
doesn't have a hard menu button
- filter option menu keeps shown as one of menus when
the device has a hard menu button

Bug: 5131136
Change-Id: Ice630533cfd4fb13383958489549236f9229053d
ndroid/contacts/activities/DialtactsActivity.java
f5be57898e94c313bc25e42743f1ebdb43d02a27 17-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Bug fixes for ContactTileRow"
51f1071a1dc91dace0de73be1c5fbba4f091f054 16-Aug-2011 Katherine Kuan <katherinekuan@google.com> Allow phone contact card to switch b/t having/not having social updates

- Make phone portrait and landscape layouts have all views necessary
to switch between showing/hiding social updates. Disable swipe
if only the detail fragment is showing.

- Make ContactDetailActivity use ContactDetailLayoutController to
reduce code duplication, add another state for fragment carousel
in ContactDetailLayoutController

- Make fragment widths in fragment carousel configurable based
on screen width instead of fixed dip value

- Make setAlphaLayerValue() save the alpha value if the view
isn't ready yet (otherwise it's a no-op and the caller must
call it setAlphaLayerValue again when the view is attached) -->
this allows us to remove the code to set fragments in the
fragment carousel every time the data is reloaded

- Remove enableAlphaLayer() code and just make the alpha layer
view visible in the XML

Bug: 5164029

Change-Id: I8f28ac27d125502a12221f084ce253611e6f78a1
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ContactDetailViewPagerAdapter.java
ndroid/contacts/detail/ViewOverlay.java
766c5848b68aebc5500f82f998f7fdd9e866677c 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Suppress IME show-up on search mode."
0cd6f7319b11b210147f73d0f34f758a49a26897 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show call settings menu correctly when no hard menu key"
33a3023e9071af540fd5fbb32c6d09cf6234fdd1 16-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show call settings menu correctly when no hard menu key

TESTED:
- call settings is visible on every fragment (phone with hard menu key)
- call settings is visible appropriately (phone without hard menu key)

Bug: 5172892
Change-Id: I1d5c115f4f1ee0bdecf858789f648aa5b05c331c
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
f944adbf961e77c6d22767236efa47cecc3a5db2 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Suppress IME show-up on search mode.

- call SearchView#clearFocus()
- prepare the search view on onCreate()

Though SearchView itself tries to suppress IME on its clearFocus(),
ondemand SearchView creation forces IME show-up for some reason
(attaching it to ActionBar might be the cause of the harm).

Just creating the view every time on onCreate() avoids the problem.
It doesn't hurt performance or any other app capability much.

This change also removes some stale code for showing up IME, which
is needless anyway.

Bug: 5104943
Change-Id: I4c542b3d0cdc5287c9285493e8e5ed0ce25cb204
ndroid/contacts/activities/DialtactsActivity.java
5a7063d7cb8f55f29f5f901e4d7383c4cafc493c 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove DialpadActivity"
f443194c03dd9ecfeecd3e6ef1fabb0945ada645 12-Aug-2011 Frank Sposaro <sposaro@google.com> Fixed presence icons for ContactTiles and ContactListItem.

-Does not draw offline icons
-Only draws circle icons

Bug: 5154620
Bug: 5137647
Change-Id: Ife500d4f7e580fcb4374eba560e153033db87a44
ndroid/contacts/ContactTileLoaderFactory.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/LegacyContactListAdapter.java
638274a83fee56d14aa1ac4c81e87a7e98afd680 16-Aug-2011 Makoto Onuki <omakoto@google.com> Fix NPE caused by Id96aea69

I added an explicit null check for account type, but null was actually used for
the fallback account type.

Bug 5171336

Change-Id: Ia0b98d0e9451eb3fc33d52db09feaff390875e33
ndroid/contacts/model/AccountTypeWithDataSet.java
eea34c1e33624eb1d9c43dd8d49e3f296602e225 15-Aug-2011 Frank Sposaro <sposaro@google.com> Bug fixes for ContactTileRow

-Fixed push states on frequent contacts
-ContactTileRow is no longer clickable
-Keyboard navigation is enabled for favorites screens
**depends on https://android-git.corp.google.com/g/#/c/128328/1**
-Minor padding width fix

Bug: 5163130
Bug: 5071772
Bug: 5171573
Change-Id: I570d6fd1670f4911472328b0a3412d6153b606fd
ndroid/contacts/list/ContactTileAdapter.java
f4fbfdd4f283d2143b87bc6319cb13527b4fe8d1 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove DialpadActivity

It is never used anymore. We're using Dial*tacts*Activity for Phone.

Intent with "com.android.phone.action.TOUCH_DIALER" has been used
inside the Activity and has never supported it for external use.
We'll keep the Intent for now, but we won't support correct behavior
for it. Using android.intent.action.DIAL should do what 3rd party
app will want.

TESTED:
- app works as usual with DIAL intent
- all unit tests run correctly
- intent with TOUCH_DIALER introduces Dialpad screen in
DialtactsActivity

Bug: 5160191
Change-Id: I77d38fb3f7b51782fab3fee7b9e732f55ecf4654
ndroid/contacts/activities/DialpadActivity.java
ndroid/contacts/activities/DialtactsActivity.java
8feafa548a86be17e63a12d273989c51de84aa7f 16-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use custom filter when filter isn't saved"
dfce573f25614c356a982ac25bb4a403eef11699 16-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Friend intent: Proper support for dataSet"
d4ed72eb6610b1318545741140569a973c4ab452 13-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use custom filter when filter isn't saved

- includes misc UI fix on tablet. width isn't set
correctly.

TESTED (needs the change above):
- keep contacts visibility after GB to ICS migration
- keep filter option between People and Phone UI
- keep filter option after People/Phone reboot (killing the process)

REMAINING ISSUES:
- Custom filter affects "All contacts" filter.
For example, if the user choose "All contacts" after showing
"Other contacts" using custom filter (in Google directory),
"Other contacts" will be shown (while it sholdn't).
"All contacts" should show contacts inside default_directory,
or at least it shouldn't be affected by previous custom filter
choice.
- Phone filter still shows "Other contacts" (with phones)
unxpectedly, which should be fixed.

Bug: 5153692
Change-Id: I5c8a9a51caaec967af66fd7840e45efe9802f283
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
6ad227f990265254864a04d3289292ca42330c71 15-Aug-2011 Makoto Onuki <omakoto@google.com> Friend intent: Proper support for dataSet

- Introduce AccountTypeWithDataSet to encapsulate accountType + dataSet
and use it instead of the "account type + '/' + dataset" string,
for better type safety.

Bug 5162267

Change-Id: Id96aea69804bb1151b612838f3fdc24841e5f527
ndroid/contacts/ContactLoader.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/AccountTypeWithDataSet.java
ndroid/contacts/model/AccountWithDataSet.java
d58b04f66f5e559ba6f654c36fdd5da15c3f9bc8 16-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "New tab order: GROUPS / ALL / FAVORITES"
2e177304ab03e8521e951b710460906ec49c07d2 15-Aug-2011 Makoto Onuki <omakoto@google.com> Fix for "Can not perform this action after onSaveInstanceState"

We seem to be getting a view pager event after onSaveInstanceState.
Clear the view pager listener in onSaveInstanceState to avoid this,
which is what we do with ActionBarAdapter too.

Bug 5161276

Change-Id: Ic20188c4f6ee0b60c6b6c9ea98709039a68d8073
ndroid/contacts/activities/PeopleActivity.java
9d2a74ef7b1817ad0708e41151358f5899aeeb67 15-Aug-2011 Makoto Onuki <omakoto@google.com> New tab order: GROUPS / ALL / FAVORITES

To be consistent with the phone app.

Bug 5161134

Change-Id: Ieb50b78d140ca5404620c9ad03fb31433b7b666d
ndroid/contacts/activities/ActionBarAdapter.java
13005b7d9b68edab07e799184a419aef1705e5e6 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix possible NPE on showDialpadChooser()"
919035d903b97a2bf8c9ac3e94e689cff5b9a635 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show the call option menu in Favorite tab too."
dd19fd696a8d173ae36cd8325686c85eba5010e0 15-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Renaming com.google.i18n.phonenumbers to com.android.i18n.phonenumbers to avoid name collision."
231a6fb24a67f054641e7c7d21c487915d35f4ac 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show the call option menu in Favorite tab too.

Now that all three tabs show that, we don't need to manage it
on each Fragment.

Bug: 5149475
Change-Id: I16e1fa2bfeb4bffa6b9e37e2583da3614fa367da
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
2c41f5bb7fe41fc2ff9a13926df56f2ea42e9f64 15-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Throttle view notifications"
448d94bd298f581c3c736f2d1132f2ed833ff207 15-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Use the content of the call log to predict the contact info."
e33014cd8b5b54812f5954878edd5652a61cd270 15-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Clean-up after extracting nested classes from CallLogFragment."
242040e815adf4a449adf0d23e2fb8ae6ff93222 15-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Extract nested classes from CallLogFragment."
5a340628adbf33829c9d1610e7936aee7ca06b29 15-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Use CopyOnWriteArrayList for listeners."
f6c118e1489312196ae65c1a143df61115eb34c5 15-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Do not show geocode for voicemail number."
c62a100875deee7849bf5c521a429ceb1c5d8077 15-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Fixes ContactLoaderTests."
9d58f279befb457bdcb302085b62cd4e3279c777 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Call invalidateOptionMenu() on onNewIntent()"
7c090532c3114e44277f9f5bc9df6937a19bcb4a 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Avoid NPE on hideInputMethod()"
c9191effc62bc4960c1511796e6c70dd2c610551 15-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Several DB changes as requested by ES"
d78ee90c0d4d93b82ad440396e87ae4f47f53e93 15-Aug-2011 Daniel Lehmann <lehmannd@google.com> Several DB changes as requested by ES

- Switch from resource ids to names to prevent breakage on package upgrade
Bug:5135277
- Add SYNC1...SYNC4 columns to StreamItems and StreamItemPhotos
Bug:5119385
- Remove ACTION, ACTION_URI from Groups, StreamItems and StreamItemPhotos
(this reduces db size and prevents click intercepting)
Bug:5135808
- Add some raw-contact fields to the StreamItem and StreamItemPhotos query
Bug:5134081

Doing those changes in one block to prevent too many db upgrade steps

Change-Id: I4c90742580c86203a1686bb625c026438ed19b8f
ndroid/contacts/GroupListLoader.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/StreamItemAdapter.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/util/StreamItemEntry.java
ndroid/contacts/util/StreamItemPhotoEntry.java
bb00677c63c2e83d606c8e08c0be56e823c1701a 15-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Pixel Perfect for Favorites in Phone app."
afc2891b0b07ad1f3d7fa7a272aec5c21bcd8c8b 09-Aug-2011 Frank Sposaro <sposaro@google.com> Pixel Perfect for Favorites in Phone app.

-Reduced View Count
-Added Horizontal Dividers
-Added Vertical Dividers
-Adjusted Sizing
-Adjusted Colors
-Adjusted Spacing and centering
-QuickContactBadge is no longer under shadowbox

Bug: 5062027
Bug: 4686440
Change-Id: Ib72ac41f93814af2646ab9e59b1beb11800cc477
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
e2dbb11633fd988358d3f82c68b01a9ba7a3eee5 14-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Implement CREATOR for parcelable

API requires each Parcelable to prepare CREATOR

Bug: 5157448
Change-Id: I88825dba69f4dbe14ed2a164138ad0ac0a284681
ndroid/contacts/interactions/PhoneNumberInteraction.java
59a887eb0cd4f1f022cbcc7bbb34c2124585e0a5 14-Aug-2011 Flavio Lerda <flerda@google.com> Fixes ContactLoaderTests.

The tests require an AccountTypeManager to work.

Add a way to support this in the ContactsMockContext and inject a mock
in the setUp of this test.

Bug: 5162385
Change-Id: I36c14845396ab6eeba212b5f6b7098785e71d86b
ndroid/contacts/ContactLoader.java
a07abf7f425f2da7487d58851c10c30c03ebda91 14-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Call invalidateOptionMenu() on onNewIntent()

CALL intent is often used by the other apps or CallLog screen to request
dialpad screen (DialpadFragment), at which we should clean up previous menu
states prepared by CallLog or Favorites tabs.

Bug: 5148698
Change-Id: I4cee5a3abc92805353bf0a53fe68c062124cbac3
ndroid/contacts/activities/DialtactsActivity.java
b200a2a49a53bef09dbf0125f6b02f74b408b6b7 14-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix possible NPE on showDialpadChooser()

NPE happens when DialtactsActivity#onNewIntent() is called before
DialpadFragment#onCreateView() is called (which may happen if it is not
attached yet), and DialpadFragment#configureScreenFromIntent()
is called before View objects point to something meaningful.

onCreateView() calls configureScreenFromIntent(), so just ignore the too
early request.

Bug: 5157905
Change-Id: I90eb6ac788fbef4d37527ac224561fba67c058fd
ndroid/contacts/dialpad/DialpadFragment.java
e4b156d0d3b69e8c8b32c8f601b051d7750a5f84 14-Aug-2011 Flavio Lerda <flerda@google.com> Do not show geocode for voicemail number.

As I moved the geocoding to the content provider, we lost the fact that
the voicemail number should not be geocoded, because the voicemail
number can change over time and the provider does not know what it is.

Instead, this change adds an explicit check in the UI code.

Note that this was caught by a unit test, but unfortunately I did not
notice I broke it when I moved the geocoding to the content provider.

Bug: 5111400
Change-Id: Ia14d8ac1a22b52e36bdac784fad5fea706865cb7
ndroid/contacts/PhoneCallDetailsHelper.java
21759cebb306986d49f7db671acd078df51edea1 14-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Keep utility methods in userdebug build.

Bug: 5162140
Change-Id: I7782493a3348c756269f86c60873aaedd580e799
ndroid/contacts/format/FormatUtils.java
3b0c7db46d43dba4782ef9e04a2860fbcf730baf 14-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Avoid NPE on hideInputMethod()

It happens when there's no focused view.

Bug: 5157908
Change-Id: I82e7d69b71f2e23274696a1d1a582f503ca80fcc
ndroid/contacts/activities/DialtactsActivity.java
0a20c77a2e66cee1ae8ff7866b87f564b30015c2 13-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Fix clearing of voicemail notifications."
b5f6432139f887e6f65e1206e927f57cfb670cc6 13-Aug-2011 Flavio Lerda <flerda@google.com> Use the content of the call log to predict the contact info.

This change re-instroduces the cache stored in the call log table for
the contact info associated with a call.

This is the first part of the necessary changes. In this change, I also
use the stored information, I do not update it when the contact is
actually looked up in the call log.

Bug: 5101753
Change-Id: Ib906e9af06410c2cc295192cd4623b011fa0ad09
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogQuery.java
ndroid/contacts/calllog/CallLogQueryHandler.java
de4f16aa0ff53c2756a3f9bf67ad7cb59b4d1aa3 13-Aug-2011 Flavio Lerda <flerda@google.com> Clean-up after extracting nested classes from CallLogFragment.

A few fields were made package accessible: fix those up.

Also, move around a couple of interfaces to the most appropriate
location.

Bug: 5101753
Change-Id: I34af0dc6401874d9c8c71932bce239852d42f703
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogGroupBuilder.java
568ad27e706d7c75dd7412e34c2236c772704a04 13-Aug-2011 Flavio Lerda <flerda@google.com> Extract nested classes from CallLogFragment.

This should help making the changes to the CallLogFragment easier to
make as there is less code around.

This has been done entired using Eclipse's refactoring with no manual
changes.

In the process, a couple of fields have been expanded from private to
package, because, while their were private, they were being used by
the parent/nested class anyway. I will fix those in a follow-up.

Bug: 5101753
Change-Id: Id46e18cfa86939100342daa020430063959dfcfc
ndroid/contacts/calllog/CallLogAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogGroupBuilder.java
ndroid/contacts/calllog/CallLogQuery.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/ContactInfo.java
ndroid/contacts/calllog/IntentProvider.java
ndroid/contacts/calllog/PhoneQuery.java
0331d14de21c78cd6969ef177e399a4b99290f7d 12-Aug-2011 Flavio Lerda <flerda@google.com> Fix clearing of voicemail notifications.

The intent used to clear the voicemail notifications currently also
marks the missed calls as no longer new. This change fixes that by
updating only the entries corresponding to voicemails.

Bug: 5159577
Change-Id: Ia36902daaa9cd19c8b4a2f30259eb328ee103b25
ndroid/contacts/calllog/CallLogNotificationsService.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
a831c0b539cdc120655856074d4621e8e60a843b 13-Aug-2011 Hugo Hudson <hugohudson@google.com> Use CopyOnWriteArrayList for listeners.

- We were previously using a list of Listener objects, specifically a
LinkedList, and synchronizing on the list to maintain thread-safety.
- This cl replaces the LinkedList with a CopyOnWriteArrayList, which is
specifically made for this kind of situation.

A bit more background:
- During the notify period, we had the classic anti-pattern of holding
the lock whilst calling foreign methods (the listener
onServiceCompleted methods).
- It's very evil to call foreign methods with a lock held, since this
can easily lead to deadlock. In this case, if any of our Listener
implementations or any future Listener implementations yet to be
written were to block until some other thread registers or unregisters
a listener, we will have deadlock.
- CopyOnWriteArrayList needs no explicit synchronization - see its
javadoc.

Change-Id: If2251e740a9f266e28956ac5acc52054debb3461
ndroid/contacts/ContactSaveService.java
a4f6f104f4f6d002c504a9757dea9e3eaee573d8 13-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Fix classcast exception bug after sending email."
72307da1977673695a604391f63c698482ffce88 11-Aug-2011 Frank Sposaro <sposaro@google.com> Fix classcast exception bug after sending email.

Bug: 5116764
Change-Id: I3277f8041c951aea37cadebeca4aeba11a3469bd
ndroid/contacts/list/ContactTileAdapter.java
25594d6db384d27641b402cddf23d44818e1cd10 13-Aug-2011 Katherine Kuan <katherinekuan@google.com> Performance improvements for contact card with social updates

- Use background color with alpha hex color instead of
alpha attribute of View
- Instead of posting a runnable in onMeasure, move it
to setCurrentPage / setFragments methods

Bug: 5161205

Change-Id: Ib1ad3b11c359d8fdc1e9143ab9d64c39aa914b91
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
05374affb551a2e3ad55a6d38f74d1463a3cd0e0 13-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in ExternalRawContactEditorView

state.getPrimaryEntry(StructureName.CONTENT_ITEM_TYPE) is
returning null (which is possible based on the javadoc
of the method). Hence, we need to do a null check, and
display a default name string if it is null.

Bug: 5114827
Change-Id: If9dcf7f324e9c54b6723bb6d6b5d1fd78ac2efd3
ndroid/contacts/editor/ExternalRawContactEditorView.java
4d4b82bc40b181563d0ccc4e85a9936df66945e6 13-Aug-2011 Isaac Katzenelson <isaack@android.com> Show local profile with account filter on

Bug: 5155996 Set up my profile is displayed for each account
selected,even if the profile has been set

Fixed the query.
Also fixed a bug with number of contacts not shown correctly that
I discovered during the testing.

Change-Id: Ib493fc3ba626d1607e235b1c20ee0a811b03dd85
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
aba2b83ff2a74c02828f15cbc10563b25d91311a 13-Aug-2011 Makoto Onuki <omakoto@google.com> Throttle view notifications

Only post the notification per loader instance, per raw contact.
This means:
- When you open a contact card, we post the notification for the contact.
- If the contact card reloads itself, we do *not* post the notification,
as we use the same loader instance for this.
- (If you close the contact card and re-open it, we do post the notifictaion,
of course)
- If you're opening cotact card, and the current cotnact got a new raw contact
as a result of background sync, we *do* post the notification for the new
raw contact, not not for existing raw contacts.

Bug 5153847

Change-Id: Id8ef9ece7f2aa991d0c625072b7c58f839e05bb3
ndroid/contacts/ContactLoader.java
52760a1350ff6621b1d02560d59e8995958f1fd4 13-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show custom filter even when there's only one account.

Without this, the user cannot show "Other contacts", for example.

Bug: 5160888
Change-Id: I1063ec3a1c35348a6f3728abe28d38dd566cf50f
ndroid/contacts/list/AccountFilterActivity.java
73fb1d01a718f8c92f1f653cf8f62f45ca244545 13-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove "suggested contacts" while editing profile"
afcc5673da3921db2fee4153b7b77df55f2da2ae 13-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Don't show "more networks" for me profile"
efd97b37feec59d1e16f079ce6e200547941826a 13-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Fix ClassCastException from Parcelable[] to Member[]"
870a87e85e405ab469d61f11f24663219f3972b6 12-Aug-2011 Makoto Onuki <omakoto@google.com> Don't show "more networks" for me profile

Bug 5144040

Change-Id: Iad17cb01d37ec24ee74ff6f7784483227f846bac
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactDetailFragment.java
2bbfae8f92d5c218c83a49621a4c8f98f4d7a394 12-Aug-2011 Isaac Katzenelson <isaack@android.com> Remove "suggested contacts" while editing profile

Bug: 5155177 The "suggested contact" pop-up shouldn't
show up while editing a local profile

Added a check to remove the call to get suggestion when the contact
is the profile.
Did some cleanup and created a method for detecting if we editing
a user profile.

Change-Id: I54b3a009f9fe3dd5f899b8b903b6830e71835874
ndroid/contacts/editor/ContactEditorFragment.java
7254f976a0a87a4eea3367a931fa1a93dce4e098 12-Aug-2011 Makoto Onuki <omakoto@google.com> Fix ClassCastException from Parcelable[] to Member[]

I didn't know you could put ArrayLists to a bundle...

Bug 5158102

Change-Id: Ib2ae84010526789cee8ae34b6817a7c18257d99d
ndroid/contacts/group/GroupEditorFragment.java
02a54ebd3185948e2c1c0f39b7718cb9abaea934 12-Aug-2011 Makoto Onuki <omakoto@google.com> Prevent monkey crash with aggregation suggestion popup

Bug 5153029

Change-Id: Ibcedddaf1d2b57e1399e483701fe76c50aec64dd
ndroid/contacts/editor/ContactEditorFragment.java
f63c770f27ad62000cff2744bda831f3717dd5e7 12-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "New search behavior for empty query"
de1a500c885c8a2ad0f82086e9603b24e0abe787 12-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Only call onVisibilityChanged on creation for the current tab."
ba482b6c88a4f6be66233a78749dcfccf87889ac 12-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Fix group editor crash (IndexOutOfBoundsException)"
f4ca033f6f8d7b88572743060ae5b5b074b4d878 12-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Pixel-perfect fixes for the call details."
35be86e866c5e6bb496e9e99bac775b446195519 12-Aug-2011 Flavio Lerda <flerda@google.com> Pixel-perfect fixes for the call details.

- Fix spacing when voicemail or call/SMS are not available.
- Fix font sizes and use textAppearance wherever possible.
- Fix bug with label not appearing in call/SMS.
- Do not show the label if the name is not present.
- Remove dedicated field for phone number in call/SMS (it is not used).

Bug: 5157649
Change-Id: I32b78236b3f85e4a087545ec993f9794093e48b1
ndroid/contacts/CallDetailActivity.java
8a854eb9235364ad0cad93425546be346460bb28 12-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Fixes headers for new and older calls."
8cebd7f86f952729bc83c7601ba101a705cdeab3 12-Aug-2011 Shaopeng Jia <shaopengjia@google.com> Renaming com.google.i18n.phonenumbers to com.android.i18n.phonenumbers
to avoid name collision.

Bug: 5157607
Change-Id: I8569776c3c4ae1ba9b346495e51b846fbe065f74
ndroid/contacts/ContactsUtils.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/model/AccountTypeManager.java
be38b67e61d4b074614d41dc0b1179230c252270 12-Aug-2011 Flavio Lerda <flerda@google.com> Fixes headers for new and older calls.

The attribute android:drawableBottom does not work as I expected (it
works as documented though).

Instead, use the same pattern used for headers elsewhere in the
application.

Bug: 5152462
Change-Id: I4b3f9b0d959c9f69c90ef8181b98e62f6031d25d
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemViews.java
c36c75318f8e47679d5281b7de2a2b5295eede50 12-Aug-2011 Flavio Lerda <flerda@google.com> Only call onVisibilityChanged on creation for the current tab.

When the fragment is initially attached, there is a call to
onVisibilityChanged, so that the fragment knows whether it is shown or
not.

Currently, we are calling this with true or false for all tabs (actually
only the DialpadFragment and CallLogFragment, as they implement the
listener interface). However, we do not need to be notified that we are
not visible if we are just being created.

This is needed because otherwise we will assume we were being dismissed
while in reality we were never shown.

Bug: 5157085
Change-Id: I37be7799b0e473cc2eabefef75a56335420979a3
ndroid/contacts/activities/DialtactsActivity.java
6faccb8a006eb0c55338eebb34d9dc59af154b14 11-Aug-2011 Hugo Hudson <hugohudson@google.com> Fetching content via intent, timeout on ui.

- Adding a new state, fetching the content.
- Set ui in fetching content state whilst we check has_content field.
- If content not available, move to make request for content state.
- If fetching content fails within a timeout, show this on the ui.
- If content is available, move to buffering state as before.
- Disable ui during buffering and fetching content states.
- Re-enable ui elements once successfully prepared.
- Add speakerphone to list of ui elements to be disabled on error.

Other:
- Makes inner fragment class static, to prevent possible NPE when
accessing the Activity via getActivity().
- Makes use of mApplicationContext where it makes sense, rather than
using the Activity directly.

Bug: 5059965
Bug: 5114261
Change-Id: Id2fee5e279fb02688198a1d6b602555f7a450450
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
fcd462b5d974ae14a8b811413785d76e33b54058 12-Aug-2011 Debashish Chatterjee <debashishc@google.com> Merge "Fixed & simplified missed call & voicemail notifications."
8fde1ead2527c926ac44f2aa0feda0e805bbab3e 11-Aug-2011 Debashish Chatterjee <debashishc@google.com> Fixed & simplified missed call & voicemail notifications.

Fixed how missed call and voicemail records are handled w.r.t.
notification and appearance in the "new" section.

The new section is meant to show calls that are not yet consumed. Till
now, for missed calls "new" flag has been used for two purposes -
(1) indication that the notification has to be shown and (2) unconsumed
call. However for voicemails the "new" flag only indicates
the notification state. The consumed state is indicated by the flag
"is_read".

Using the "new" flag with dual meaning causes problems when we want to
remove notification for voicemails. In order to remove voicemail
notification on entering the call log screen we need to mark the calls
as "old" but this means that missed calls immediately get moved to the
"old" section.

This change extends the usage of the "is_read" flag to missed call as
well. Now the "new" section simply includes calls that are not marked as
read and "old" section includes everythng else.
Missed calls are marked as read when the user leaves the call log
screen, whereas voicemails are marked as read when the user opens the
call details page.

Framework change to insert new missed calls with default unread state
is done in Id24f815994ce90c89f5907c919ce95043a5d6217.

bug: 5141185
Change-Id: Ieade142fb5acf5b295251ff1f73bf30d1860bae1
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
93166eb56f411e3c32387790e216c9df799ddae1 12-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Add "Show all calls" to options menu."
8ef558d147af3ea47fe67f2585fb24b97a2e1285 12-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove join/split buttons for profile"
e0105b86aae0a239e28334ee0e64ced49db631bb 12-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Add one more string: quote marks around a social update"
743b8033caba0e55a7cc9365f5876969a4be8c66 12-Aug-2011 Katherine Kuan <katherinekuan@google.com> Add one more string: quote marks around a social update

- For social update previews in the tab carousel, use quotations
at the start/end of the update.

Bug: 5063920
Change-Id: Ib08c24d67f953267781b4cffb42fd823b27d20a5
ndroid/contacts/detail/ContactDetailDisplayUtils.java
d69ed3875736f6ed56ea1e07f90da9d81b58a70f 12-Aug-2011 Katherine Kuan <katherinekuan@google.com> Display name disappears when switch tabs

- Everything except the first letter of the display name
disappears when you switch tabs on the tablet
- Recycle the header view and re-bind the data each time
instead of holding onto the view in memory

Bug: 5131989
Change-Id: I72e85b6326d323d6498dfe6c890d8decb0a691b7
ndroid/contacts/detail/ContactDetailFragment.java
3759b3557137797c3dbd4124396e4c30894ff14f 12-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE in ContactDetailUpdatesFragment"
088e44b3f729a16364cb869c1eeae717583a1c76 12-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix InstantiationException in GroupDeletionDialogFragment"
1ba8b6fea4c3f82ded19305874e72a326612aed1 12-Aug-2011 Katherine Kuan <katherinekuan@google.com> Finish string changes

Bug: 5147284
Bug: 5144069
Bug: 5150725
Bug: 5149819
Bug: 5144900

Change-Id: Ib3495e1ef7847eb2c01d7609c1524024123c993c
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupEditorFragment.java
2b995e2c10e23834b224cad8205c30acc88219d9 12-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix InstantiationException in GroupDeletionDialogFragment

Fragments should have a public and empty constructor, so
make endActivity parameter be part of the dialog arguments.

Bug: 5133793
Change-Id: I58cd1745c07f57073fb4e4029b7a5f68456426f4
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
59b46720e92799a29d84e6e31fb3eeea60166f0d 12-Aug-2011 Makoto Onuki <omakoto@google.com> Fix group editor crash (IndexOutOfBoundsException)

It's probably that the suggestion list has changed just before the callback
is called.
Use the view tag to get SuggestedMember to avoid look-up by index.

Bug 5149812

Change-Id: I04254eaf94728c42164ddc73dbd2dbf140ec8525
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
735f2fa8bd6bf3c0fead06f630399354061dff81 12-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix contact widget layout"
e668051b61d05c267a8e3c1bfd2fe9b034aa6ae1 12-Aug-2011 Makoto Onuki <omakoto@google.com> New search behavior for empty query

It's a very lightweight change to implment the new spec, which says:
- Don't start searching until the user types the first letter
- But if the search view is shown, make the ALL tab current, and disable swipe

With this CL,
- No changes to ActionBarAdapter.isSearchMode(). It still returns true
if the search view is visible, even if it's empty.
- However, in order to make the all fragment show the normal list for
empty query, only turn the fragment into the search mode if the query is
non-empty.

Also reverts I25908651 as we no longer do a search with empty query.

Bug 5104010

Change-Id: I50038994c6d65aab71ceefdf9218f3c7ad2bc6a4
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
48eca3fd31689f05c75241749b987d05d1602d1e 12-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in ContactDetailUpdatesFragment

setData() is getting called before onViewCreated() in the
fragment, so check if the adaper has been initialized or
not before trying to set the stream items to it.

Bug: 5153519
Change-Id: I4a65f4713f7cd9cfc1a6fad494fb65a1f1352b1f
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
0d39c55413f822e01594231a16e5fe9d8a88a13e 12-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Contact picker/group list pixel-perfect"
1ab16ddc566674257c3a8fb02e72356f044659f5 11-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Fix opening of grouped items."
f693ce92212e5338e45b6e22f60a44c7b2a2360b 11-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Add title on top of updates."
08c87460331cbab92e94d96b704bd8f713a65202 10-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Contact picker/group list pixel-perfect

There are still a few issues to be fixed around picker
stuff, but it looks basically fine enough.

- fix misc padding issues around contact listing itself
- introduce conditional padding for phone search view to keep
top padding consistency
- keep consistency between group and contact listing
- remove "groups per account" count
- stop showing quick scroll bar in group list

Bug: 5137457
Bug: 5144140
Bug: 5143350
Bug: 5080599
Change-Id: I038c112bbf9e956e9a2b784178c0360d03e3f333
ndroid/contacts/GroupListLoader.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupListItem.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
c54be18d6887088972aa88159e27bdecb3112366 11-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Makes the call details scrollable."
942a2f2f06ae3919560ce014fccf5c09f0f6027e 11-Aug-2011 Flavio Lerda <flerda@google.com> Add title on top of updates.

There should be a title at the top of updates.
It should be "Recent" if the tab carousel is present and "Recent
updates" if not.

Bug: 5082091
Change-Id: Ib97f8918738c96aee9bffc1c846dabb7d4d2ffe6
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/StreamItemAdapter.java
138080ffe05475023f0f7007188ee7f68622a1d7 11-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix local profile in contacts list"
565c39aa6aa37cafe67f9aaf1cf45977509f21ad 11-Aug-2011 Flavio Lerda <flerda@google.com> Add "Show all calls" to options menu.

This allows a user to switch back to seeing all calls after filtering to
show only voicemails.

Bug: 5099084
Change-Id: I02624673c1b534b32f35520ad9ec8713de073189
ndroid/contacts/calllog/CallLogFragment.java
8fdf890892dd5aeec35f693c158777f9fdd7d0e4 11-Aug-2011 Isaac Katzenelson <isaack@android.com> Fix local profile in contacts list

1. Removed profile from search
2. Added profile when account filter is used.

Bug: 5142989 User's profile shouldn't show up on during a search.

Change-Id: I224f89f81264b83094a46cee57d45900dad07848
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
78647249d6460958a987815f0780077732f5a0b7 11-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "String changes"
d1333a29ffe2b85b7e2bcb0a5d9801e1ffa62cd2 11-Aug-2011 Flavio Lerda <flerda@google.com> Makes the call details scrollable.

This change makes the call detail activity scrollable, making it easier
to see the details of multiple calls.

In order to make sure the main controls are always visible, it only
scrolls out the picture view, but always keeps the rest in view.

Bug: 5041805
Change-Id: I40b87efecfe3c921aab831e83dbff806b10b9c9f
ndroid/contacts/BackScrollManager.java
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
b4625e72331742bfe1291a49e409b165c6799047 11-Aug-2011 Flavio Lerda <flerda@google.com> Fix opening of grouped items.

Correctly broadcast the list of ids when opening a group item in the
call log.

Bug: 5152648
Change-Id: If4e487fa5a3c1d80651ff20c24cdd13b59b97ec0
ndroid/contacts/calllog/IntentProvider.java
47cf7b6609753788e174ea583436daa71c6bef4c 11-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Background tasks can decide which executor to run with."
11097c9945c9896b2cafbf16d03de673610b8fad 11-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Do not show the UI until the data is loaded."
69b08d0fa3fa485c8df59012f82197beecfe4d5e 11-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Accessibility improvements."
4f3536bd14097532c4cbb2c8340df6dd77ae5e91 11-Aug-2011 Isaac Katzenelson <isaack@android.com> Fix contact widget layout

Bug: 5071756 Widget update is cut off on phone portrait

Removed the date view from the widget
Removed assets
Fixed paddings and margins for tablet

Change-Id: I21877529720c088a9752e8185fff4f958ed83c1c
ndroid/contacts/socialwidget/SocialWidgetProvider.java
9574314dd24a045761453b51244fa75a1da36f6e 11-Aug-2011 Katherine Kuan <katherinekuan@google.com> String changes

Bug: 5150725
Change-Id: I5b9cb06fe20db37f3d9af6a8e06b35277df3580f
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
03587ecd46c0a524f3cdc5ffd2959be2bc30bb34 11-Aug-2011 Isaac Katzenelson <isaack@android.com> Remove join/split buttons for profile

Bug: 5149871 There should not be a way to Join/Split profiles
Change-Id: I4c7782d67f04fe494ed1825e631d2b8c1ae5810b
ndroid/contacts/editor/ContactEditorFragment.java
c357bf902bf4e3382783bb87af121ea9e3dfe79b 11-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Fix bug 5051541 Group members list flashes when syncing"
1fcb853d2cf6670db9b4eecc492f4676894d4bec 11-Aug-2011 Makoto Onuki <omakoto@google.com> Fix bug 5051541 Group members list flashes when syncing

Bug 5051541

Change-Id: I0b90426067c2bc179be9c8103df8818720330889
ndroid/contacts/group/GroupDetailFragment.java
e2c99d07582feeb18a7e1b29cb24d83c227806fb 11-Aug-2011 Itzhak Katzenelson <isaack@android.com> Merge "Account filter and profile header style fixes"
30dff0f18a24d83cbb31d74bc6ab65736795ba81 10-Aug-2011 Itzhak Katzenelson <isaack@android.com> Account filter and profile header style fixes

Bugs: 5144226, 5142982

Fixed layout and style according to Marco's document:
1. Fixed style of account filter
2. Fixed style for profile header
3. Fixed contacts count to not include the profile

Change-Id: I0c6fc0f4839a993c0fede8840b7636c0460eed55
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
06c3ca10faa9eeb96596b5bb724cc190bce81a28 11-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Remove STOPSHIP regarding hiding options menu"
be994059c89c99f9b97c7e9c3721f3280b958a81 11-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Don't show overflow menu options in search mode on phone"
3aa093f06aa766c085a7e164f27c0b71240be74e 11-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "HTML decode social updates"
0e05dc587d27d94ffb35bc813de6ac054b3dd322 10-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show popup for aggregation suggestion"
6c8c0777c823e2a2fef69299c0b36ca4a40e1fea 08-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show popup for aggregation suggestion

- create ListPopupWindow instead of embedding Views into
the base layout.
- refrain AggregationSuggestionView from having focusable and
clickable capability, which will be automatically supplied from
ListView
- tweak layout xmls to show ListPopupWindow correctly. Include
some pixel-perfect designs

Bug: 5057400
Change-Id: I9ec8642c0864204747ee445da7ee0292171a8788
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
a2625e4b5249132bb102ab9568daba8ebea7fe78 10-Aug-2011 Hugo Hudson <hugohudson@google.com> Background tasks can decide which executor to run with.

- Allow BackgroundTaskService to take an Executor as an optional argument,
most commonly these will be one of the static fields defined on
AsyncTask.
- Make voicemail prepare media on async background thread.
- Mark voicemails as read concurrently with other async tasks.
- Change background task service to accept an Executor as argument.
- Remove the initial progress and initial time from seek bar.

Bug: 5148472
Change-Id: I55815294fe671d3a42af0b2d6d5e29e6eaea271e
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/util/BackgroundTaskService.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
b184ed6b462fdb59e54b3ad9dde90a318aee855e 10-Aug-2011 Flavio Lerda <flerda@google.com> Accessibility improvements.

- Do not use a list for a single row.
- Use content description in a few more places.

Bug: 4989128
Change-Id: I056237843dc6bca7987b18543f18f917babe2a4f
ndroid/contacts/CallDetailActivity.java
4e63babec72da433712dcf4b6d909a709c9c39d5 10-Aug-2011 Flavio Lerda <flerda@google.com> Do not show the UI until the data is loaded.

Instead of updating the content of the UI when first opening the call
detail activity and then updating it, hide it until the data is loaded.

Bug: 5039572
Change-Id: I6daa4a8ecbc006e223cf5f4087776d71f2f3bbea
ndroid/contacts/CallDetailActivity.java
146115ac370c37e56741be451de6c722b669adf4 10-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Sharing has been punted."
9e9611da7badfb9c742f8983e39cd2c8adc7cb6d 10-Aug-2011 Hugo Hudson <hugohudson@google.com> Sharing has been punted.

Bug: 4961053
Change-Id: I040de6f89778ee11033271aa65de26d2c0fe47bb
ndroid/contacts/CallDetailActivity.java
12592e84e0b214731ce5c3532f8d24032a96cc09 10-Aug-2011 Flavio Lerda <flerda@google.com> Fix StrictMode violation.

Currently we load the data about the phone calls on the UI thread.
Instead, start an async task that loads the data and then updates the UI
onPostExecute.

Bug: 4968959
Change-Id: I117c0794268592cc60767012175253fa43cda65a
ndroid/contacts/CallDetailActivity.java
8ebfa3d13c402a821eed4e91c59a8d8bf9bd2df0 10-Aug-2011 Flavio Lerda <flerda@google.com> Improvement to visual layout of call details.

Changes the styling for the call and SMS row, the history items, and
fixes the alignment of the name on top of the picture.

Bug: 5039572
Bug: 5121168
Change-Id: Ibeaa0621a7662d7537db0573a370f61f8a00e385
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
6c70ef0400ef72128fe15292d8882e4a8e825799 10-Aug-2011 Debashish Chatterjee <debashishc@google.com> Merge "Clear missed call notification."
6763efb5841ed731e6c13b1744bdda2175c57ab3 10-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Change the layout of the call log list items."
57c0a9a96f969e8a4952bce8c04d711cd781b841 10-Aug-2011 Jeff Hamilton <jham@android.com> Merge changes I37292676,I324a0544

* changes:
Move the notification logic out to a listener so there can be an Activity based version of the listener as well for NFC VCARD imports.
Fix a BroadcastReceiver leak.
a370c232a136951076402cba2cb89e0394d23a66 10-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Support for application-provided images in stream items."
82b7c07b33fe5f3e2bfdee1d5f4c68060a337028 10-Aug-2011 Flavio Lerda <flerda@google.com> Change the layout of the call log list items.

This fixes selection and touch targets.

Instead of the whole list item being clickable, split out the various
parts.

Bug: 5063588
Change-Id: Ifb433d637d26dadc3998e4686c80ca0cb18a3ebc
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemViews.java
ndroid/contacts/calllog/IntentProvider.java
413f36a0c26cb42f844b335e70d0ceb466321e0a 10-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Contact card fixes"
946070f67043bf0be82a15e3904c7dfb219290cd 10-Aug-2011 Makoto Onuki <omakoto@google.com> Remove STOPSHIP regarding hiding options menu

This was a workaroudn for a framework issue, which has been fixed.
Now this is enough to hide all options menu when there's no contacts.

Bug 5030449

Change-Id: Ib5235a3c37132a73f545e8399cc7fd22f7e6448c
ndroid/contacts/activities/PeopleActivity.java
af0a9d47e9ac629266884b902bcc480bed5e2b1b 10-Aug-2011 Makoto Onuki <omakoto@google.com> Don't show overflow menu options in search mode on phone

Hide "display options", "import/export" and "accounts" in search mode.

Bug 5144098

Change-Id: I86784a9fba3e61cb13cae1a8b7614b840dca4052
ndroid/contacts/activities/PeopleActivity.java
826513476c488fe597d41cdd8530e850c2d0cb64 10-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Use geocoded location from call log content provider."
b8b069959ed4ca88517ab033f8e89a9e4ab05dca 10-Aug-2011 Katherine Kuan <katherinekuan@google.com> Contact card fixes

- Move call to TabScrollManager until tab carousel is initialized
(this will allow contact with social updates to scroll + pin header)
- Bring back overlay / touch interceptor on phone landscape
so updates fragment will be dimmed out when it's not the current page
- Remove windowContentOverlay=null on contact detail activity
so the shadow appears below action bar

Bug: 5144095

Change-Id: I206e83906b89c5de0d8860e1bfc89c31b4f638b7
ndroid/contacts/activities/ContactDetailActivity.java
7c03fd16d9c6138118b6d236694f650289f27326 10-Aug-2011 Makoto Onuki <omakoto@google.com> HTML decode social updates

Bug 5122642

Change-Id: Ib01742afb8b7a84b75806a66c1983a8b83d7ff7b
ndroid/contacts/detail/ContactDetailDisplayUtils.java
2b7d3c453e09f8b26e92c118ed9923a8ff5f8df4 10-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Reduce number of views in call log."
65ca8b2082300ec9849082e5718b85fbbf30dd31 09-Aug-2011 Flavio Lerda <flerda@google.com> Support for application-provided images in stream items.

This change add a way to include an image in the text and comments of a
stream item.

The image can be included by having an <img> tag whose src attribute is
a URI identifyin of resource to use of the form:

res://package/name

where package is the name of the package containing the resource and
name is the name of the resource as defined by the package (notice, not
the id, but the name of the resource).

Bug: 5123531
Change-Id: I8f35fd1f98a2b9cc8f5223d67f8c143e2714716e
ndroid/contacts/detail/ContactDetailDisplayUtils.java
0133589fec89150313918576ab5e4f569cb7de5d 10-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Makke DONE button close activity on readonly group editor"
9b81f1d888772086e49fa39bfa3304f9e072614c 09-Aug-2011 Flavio Lerda <flerda@google.com> Reduce number of views in call log.

Use only one image for the secondary action and configure it at
run-time.

Bug: 5099652
Change-Id: Ibcc9f2f0abbf4d7d409ba5d574d88387836fc0bf
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
ad8e14065996cf8c0f5e0d6bc90c7fa334fc227f 10-Aug-2011 Makoto Onuki <omakoto@google.com> Makke DONE button close activity on readonly group editor

Bug 5142181

Change-Id: I5b300b150113b77800de698dbb7bdd40c35b15f4
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/group/GroupEditorFragment.java
bec0e12648b7c90aab9eda5b2837faca2493e5c3 10-Aug-2011 Makoto Onuki <omakoto@google.com> Remove unused callback

Bug 5143491

Change-Id: I20b82551329f1beb05dc4039cf0d501fe9a9e676
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupEditorFragment.java
71fc6ec6598aeb8dcad797c05816bab91762e2b3 09-Aug-2011 Flavio Lerda <flerda@google.com> Use geocoded location from call log content provider.

When showing the geocoded location in the call log, use the value from
the provider instead of querying the geocoder each time: that would be
too slow and cause a strict mode violation.

Bug: 5129581
Change-Id: Ia0eb5bdd33c5bcebcf6267ce01f7d36c53396c30
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/PhoneNumberHelper.java
96a051e2ea4f18e63b67e5b6f9c0a691a7541a75 10-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Group editor: Handle rotation correctly"
f81b6d9ba129f0220de93aa9a7426547889755c3 09-Aug-2011 Makoto Onuki <omakoto@google.com> Group editor: Handle rotation correctly

- Properly save/restore fragment state
- Don't close cursors loaded by cursor loader.
They are retained through orientation changes. Closing them manually
causes accessing closed cursors after screen rotation.

Bug 5075387
Bug 5136936

Change-Id: I7722d90e5a5b52af1666a69bc56d1df27c4de2a0
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
1a106bab1e314b0c4ea78ceeaed009d492b90588 09-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Start service intent when contact is being displayed"
db55a25b613cbb4e8c607fe466c8ff9ee9236e25 09-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Pixel Perfect Favorites in Phone."
3ef27fb18a2fe075c43131b653cd2e6306e187e2 09-Aug-2011 Daniel Lehmann <lehmannd@google.com> Start service intent when contact is being displayed

Bug:5138185
Change-Id: I84dbf0f933d575b4910b220fe9743a47f46d5762
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/ExternalAccountType.java
257cec1e445c338eb86f82cb9be5a2fb37edbb8d 03-Aug-2011 Frank Sposaro <sposaro@google.com> Pixel Perfect Favorites in Phone.

-Changed drawable for secondary touch target
-Adjusted secondary touch target selectable area
-Changed secondary touch target divider
-Changed "Frequently Called" header
-Added horizontal dividers
-Added vertical dividers
-Adjusted frequent secondary font color
-Aligned frequent phone number

Bug: 5062127
Change-Id: Iaa48bdfe837fddf10e1131ecfab4885d67409015
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
4a855e176218fe39bf4b83585bc44c2d650c1a3c 09-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Disable first name bolding"
1167da421b68952a590b050c32def7e0eff7cca6 03-Aug-2011 Jeff Hamilton <jham@android.com> Move the notification logic out to a listener
so there can be an Activity based version
of the listener as well for NFC VCARD imports.

Removed the now unused showImmediatley from
ImportRequest.

Change-Id: I37292676239444516bcc11486fc53e69b869dfa6
ndroid/contacts/vcard/CancelActivity.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
ndroid/contacts/vcard/ImportRequest.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/NfcImportVCardActivity.java
ndroid/contacts/vcard/NotificationImportExportListener.java
ndroid/contacts/vcard/VCardImportExportListener.java
ndroid/contacts/vcard/VCardService.java
42f089a95651ee72c9ca8c7e4590c068442d5821 09-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Pixel perfect for tablet contact editor"
ec1395638edb9eeb90aaf9c036a38fbb38c9a2ab 09-Aug-2011 Makoto Onuki <omakoto@google.com> Fix "More networks"

This functionality was lost in I548f2e4b.

Bug 5142163

Change-Id: Ia75cee6f307df3d62a9911d894e3741ba8ea5219
ndroid/contacts/detail/ContactDetailFragment.java
599700fb0182a17435cc86137b5f8bd39b8581e2 09-Aug-2011 Makoto Onuki <omakoto@google.com> Disable first name bolding

... on
- Contact list
- Contact card
- Contact editor

Bug 5042741

Change-Id: Ife8d494c19e2daef7e59d819ded52638dc9f2b6f
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/format/DisplayNameFormatter.java
594f09257106c62518807851e617fc3b38150dcb 09-Aug-2011 Debashish Chatterjee <debashishc@google.com> Clear missed call notification.

The current implementation failed to clear missed call notification
because it requires the parent activity's window to in focus.

Due to some reasons getActivity().hasWindowFocus() returns false when
invoked from onResume(). By experimenting it came up that the window
gets focus AFTER the fragment is resumed.

The fix is to to use KeygaurdManager.inKeyguardRestrictedInputMode() to
determine if the keygaurd is on, and not remove the notification if so.

Bug: 4521535

Change-Id: I56cf82d708d7c694a966bdd6b79a328895c86048
ndroid/contacts/calllog/CallLogFragment.java
3fbbf1c8e9c1a39334e9da7a9af5da307469bed8 09-Aug-2011 Debashish Chatterjee <debashishc@google.com> Merge "Call log auto refresh."
06f857d40f9666bd633b9680fdf76fe410fa598b 05-Aug-2011 Debashish Chatterjee <debashishc@google.com> Call log auto refresh.

Modified ExtendedCursor to support registration/unregistration
of contentObserver & datasetObserver on the cursor.

Automatic refresh of voicemail when inserted through the voicemail
content provider still does not work because call log uri is not
notified in this case. This will require a fix in the content provider.

Moved the call to reset new flag from onResume() to onStop() such that
calls are now marked as read when the user leaves the call log screen.
If entries were continued to be marked as read in onResume() then it
triggers a refresh and moves the entries from "new" to the
"old" section immediately. We want the entrie to remain in the "new"
section until the user exits the call log screen.

bug: 5055868

Change-Id: Iaef05ae721df1ab19dc001e17f4cd7be4019863e
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/ExtendedCursor.java
e5532c78dd308c85ae8b09cb6c5641656cd373d4 09-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Layout for Updates with multiple images."
f0a714e292f37286170b7972521688abd88f4223 09-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Introduce a NeededForTesting annotation."
3572293500a7406813e61e6fedd63ca606debc19 09-Aug-2011 Jeff Hamilton <jham@android.com> Fix a BroadcastReceiver leak.

The AccountTypeManager singleton is registered
in the ContactsApplication's getSystemService()
but the call to get the singleton was using the
given context not its .getApplicationContext().
thereby leaking when it was passed an Activity.

This fix seems cleaner then making sure each
caller passes the proper type of context.

Change-Id: I324a05449770e35bfaffb6773a394d63e9ddfb59
ndroid/contacts/model/AccountTypeManager.java
fd43cddee690e84f56163cd1c0899c3200b624e7 05-Aug-2011 Flavio Lerda <flerda@google.com> Layout for Updates with multiple images.

Use a table layout to arrange images in the updates: if the number of
images is even (including no images), the text is placed on its own row.
Otherwise, the text is added together with the last image.

Bug: 5123875
Change-Id: I372a15a3d384fbea79a1cd9f225db3f05996f5d4
ndroid/contacts/detail/ContactDetailDisplayUtils.java
573f972298bf98cfeb54238b12899e4ac2ceba61 09-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Create a CallLogListItemView that prevents layout requests."
1ebbd5bbe71814123b80df702b474bcd7196cbb7 05-Aug-2011 Katherine Kuan <katherinekuan@google.com> Pixel perfect for tablet contact editor

- Remove a bunch of files because now the tablet should
look like the phone layout

- Fix padding / margins

- Don't allow phonetic name to be deletable (it would
just clear the field) so that the structured name
and phonetic name now line up (UX decision)

- Make text in editable fields centered by
setting a specific height on the edit text field
if it's not multi-line text

Bug: 5096927
Change-Id: If5d27752d79680cd40316428c7aa9ec30af6e320
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/AccountType.java
692cb6a2eb863afd3f8e4b4b1d2e1bda8f8a53e1 01-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show all contacts on invalid contact selection

Happens when a contact is created but it isn't shown due to
contact fliter (e.g. the contact is for the account A while the
filter shows only contacts for the account B). Single contact
mode is just confusing in that case, so now let's show all contacts
and notify the change to the user.

Bug: 5031526
Change-Id: Ica75178d10b4a9b95c44cc4f75f56b65fbc67da8
ndroid/contacts/activities/PeopleActivity.java
c8045923f2078bffc57ace187b7f01e708050ecd 08-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix back button on group editor"
77aec8c63026b980dbdbc37c83a4082d6eccea6f 08-Aug-2011 Adam Powell <adamp@google.com> Merge "Possible low-fruit optimization for DialtactsActivity."
eab4d5b67692027e038b5b042095f297ca6c7660 08-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove group edit button in empty state"
2aa2fbf55f41b4932fd3c8ff049225bbbe90d5e2 08-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Support for local profile"
1e144ed66089c2932dbaebb02157eef4a87d0a88 08-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Remove plain_contact_photo, as QuickContactBadge can take over now"
ead19c5eafee0ffb43b02a4ae75ac5244ad3f853 30-Jul-2011 Isaac Katzenelson <isaack@android.com> Support for local profile

Bug: 5121834 Support local profile
5086184 Account name is overlapped by number of contacts
5082317 Text is chopped on the top in contact list

1. New headers were added at the top of the contact list to
present an empty local profile.
2. Clicking the empty local profile opens the editor to allow
the user to create a local profile.
3. Profiles are shown at the top of the contacts list with the
"ME" header and the number of contatcs.
4. "Add to contacts" button and the starred button were removed
from the details view when it is a profile.
5. Fixed a problem with a header view that remained when you had
a profile or was in search mode.
6. Fixed problem with contacts count apearing in search mode

Change-Id: I45615616e03a603759888d9e7169a853b3328b14
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/list/ContactListProfileItemView.java
ndroid/contacts/list/ContactsSectionIndexer.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/widget/IndexerListAdapter.java
cce61178a881b20f69b0249599a792d7dacef7ce 08-Aug-2011 Adam Powell <adamp@google.com> Possible low-fruit optimization for DialtactsActivity.

Reuse generated fragments for the ViewPager once created.

Change-Id: Ic3a2b421814fc576c8bc9d51e95697208667df4e
ndroid/contacts/activities/DialtactsActivity.java
cb0af8376e4a114b4d0ff4c8358331e3c7a8ad65 06-Aug-2011 Flavio Lerda <flerda@google.com> Create a CallLogListItemView that prevents layout requests.

Bug: 4971062
Change-Id: I45bb22e400b39343fd19d22f44aa22d3a2384799
ndroid/contacts/calllog/CallLogListItemView.java
90f2996a01a1804b2a64d316c6550e6d322a5e92 08-Aug-2011 Isaac Katzenelson <isaack@android.com> Remove group edit button in empty state

Bug: 5134586
Change-Id: Id7b77e16c1393d8ec1293776513274027f996bf9
ndroid/contacts/group/GroupDetailFragment.java
155c0708cc28642836360b820833e22217130f0c 08-Aug-2011 Flavio Lerda <flerda@google.com> Introduce a NeededForTesting annotation.

This annotation can be used to mark those classes and methods that are
used by tests and that therefore should not be removed by ProGuard, even
if unused.

This is similar to VisibleForTesting annotation, but in this case, there
is increase of visibility, just happens that we do not currently use
those methods in the application code.

This fixes a number of failing tests in the continuous build. This
problem affects only userdebug builds, because eng builds do not run
ProGuard.

Bug: 5112827
Bug: 5131770
Change-Id: I13d06bc7bebb8f5d2d9ff515a5587b4f25bed5ac
ndroid/contacts/calllog/CallTypeIconsView.java
ndroid/contacts/test/NeededForTesting.java
ndroid/contacts/util/ExpirableCache.java
ndroid/contacts/util/StreamItemEntry.java
485f5eb5529c69c4864516c2e2762ab581c7e4ca 08-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Prepare playback immediately, new BackgroundTaskService."
51ada3680de8700bc273a7e652886823f4c1981f 05-Aug-2011 Hugo Hudson <hugohudson@google.com> Prepare playback immediately, new BackgroundTaskService.

- Immediately we start the CallDetailActivity with a voicemail, do the
preparing of the media so we can see the duration.
- Use the duration text field to show "buffering..." until media source
is prepared.
- Do the preparing in the background, this fixes a strict mode
violation.
- If there's an error preparing, show an error message in that field.
- Add tests for both of the above cases.

BackgroundTaskService:
- Introduces new BackgroundTaskService, lightweight method for
submitting AsyncTask objects.
- Introduces BackgroundTask interface and simple AbstractBackgroundTask
abstract implementation.
- Adds BackgroundTaskService to ContactsApplication allowing Activity
objects to get hold of a regular background task service.
- Adds a MockBackgroundTaskService for use with injecting for test, so
that we can prevent or control processing of background tasks.

Other:
- Every time we resume the Activity, we were causing a new voicemail
fragment to be created. There was no bug tracking this, I just
noticed it because of occasionally flaky tests. Added a fix and test
to catch it again next time.
- Fixes missing tear down method in PeopleActivityTest.

Bug: 5115133
Bug: 5059965
Bug: 5114261
Bug: 5113695
Change-Id: Ia2469229fa756da8b3977231fbf23a9d3fb379ce
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/util/AbstractBackgroundTask.java
ndroid/contacts/util/BackgroundTask.java
ndroid/contacts/util/BackgroundTaskService.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
9fb5678fc42f4b8db9628f9fb7cd60702f55b104 08-Aug-2011 Daniel Lehmann <lehmannd@google.com> Remove plain_contact_photo, as QuickContactBadge can take over now

Bug:5099652

Change-Id: I5490fd17c37697c3593a9e7e7fd3b562ac09d701
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemViews.java
a657d075e970f7b1227cf42c04a85470b718c237 08-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Remove some TODOs and imports"
5ff239cbeffdf0118b9dbc19eece9c66d1272c5c 08-Aug-2011 Daniel Lehmann <lehmannd@google.com> Remove some TODOs and imports

Change-Id: If6e693569a89201bce2bfcf481ece6812e30906e
ndroid/contacts/quickcontact/QuickContactActivity.java
d25d46b30ae006a17a68906e2a774a9691b5f9db 08-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix back button on group editor

Bug: 5121656
Change-Id: I78cdbf2cff82cb510539c25716767674f5bade0a
ndroid/contacts/activities/GroupEditorActivity.java
8f59c2b18b73df6af3c808802620839f0a6a61d4 04-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Reflect recent UX design changes around filter capability

Include several related changes

- introduce filter option in phone search
-- have limited filter support in PhoneNumberListAdapter. There's
no easy way to share the logic for filtering as People UI
is taking care of Contacts/RawContacts table while Phone UI
needs to take care of Data table, though we may be able to have
some utility library for filter operations.
- have additonal layouts for filtered phone search. Along with it,
also introduce some pixel-perfect design for Phone/People apps
both for phone and tablet
- add "up" capability for CustomContactListFilterActivity
- launch CustomContactListFilterActivity directly from
AccountFilterActivity instead of relying on
their parent Activities (PeopleActivity and DialtactsActivity).
-- In the current structure, IME is shown during migrating
from AccountFilterActivity to CustomContactListFilterActivity
"only in Phone UI", as SearchView temporarily has a focus

FUTURE TODO:
Currently devices without hard menu key show overflow menu in
Phone search mode, while we want soft button on the right side
of search view.

Bug: 5104984
Bug: 5081251
Bug: 5121569
Change-Id: If935f13b33b105884a914b207fd096588825226e
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
cf27dd8f902f819981e42b2cff0cc8cc5bb77a78 05-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "New assets for action bar"
cbd949b05213925662fff328682834eafaec3391 05-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Pixel perfect work for phone contact editor"
6cb8be1e8b92ec2713010b068fbaf47d89372c98 05-Aug-2011 Katherine Kuan <katherinekuan@google.com> New assets for action bar

- Plus other miscellaneous assets
- Modified some files to reference the new assets
- TODO: Clean up unused assets again

Bug: 5121276
Bug: 5128825

Change-Id: Ib3996bfefc58c02cbf81a32dea890beb9711d935
ndroid/contacts/model/BaseAccountType.java
a53b13e44c1f5948de03443b0b40175aa65040bd 05-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop showing default thumbnail in photo manager"
f5be9baf49891a2c81b2ca9bef80d86f7e20d8cd 05-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing default thumbnail in photo manager

Bug: 5126085
Change-Id: Ie90814fc353a70524049aa892e228d72c9dafb01
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/group/GroupBrowseListAdapter.java
8167b14342c4a1e1d1f336470aa3a9be45cb38d3 05-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Attach listener to allow clicks to be handled on contact details"
6befd64143f0c78a768c3fc79151e40a747e391d 05-Aug-2011 Katherine Kuan <katherinekuan@google.com> Attach listener to allow clicks to be handled on contact details

- For phone, contact with no social updates
- We don't hook up the listener for the contact detail fragment
if it's a contact with no social updates.

Bug: 5123726

Change-Id: If051b909c7c9d372eda5c0612f1cb86caafa65f6
ndroid/contacts/activities/ContactDetailActivity.java
acee265634c9e3e5ffcbdb2c4670e0ff69c32757 05-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Extract the functionality for scrolling the tab carousel."
56e5db371d13628aea61c31e4e7e0b3cd5e1dbbb 05-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Fade transitions between messages for voicemails."
67519b221d8a644c40836c15a8ad0a32782fca1f 05-Aug-2011 Hugo Hudson <hugohudson@google.com> Fade transitions between messages for voicemails.

- Change playback layout to have two superimposed text views, both
visible, one transparent and the other opaque.
- When swapping between permanent and temporary text, fade out one view
and fade in the other.
- Also uses the constrain() method from MathUtils and get rid of my
clamp() method.

Bug: 5113788
Change-Id: Ia72a3f2a85fd9ac32303e7cf18744a12ba46f75f
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
9def68a878226e0d9fc49701a7f0c63a24219283 05-Aug-2011 Flavio Lerda <flerda@google.com> Extract the functionality for scrolling the tab carousel.

This creates a TabCarouselScrollManager which handles scrolling of
carousel tabs up when the user scrolls one of the two list views.

This extracts a common copy in preparation for changing it to handle the
switching between scrolled tabs.

Bug: 5123933
Change-Id: I8741140b4770173ca33ea5a9baddb7862c5cf7f5
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/TabCarouselScrollManager.java
ecb3e86b6546ee8daf0c27ddd86777158da6b1d2 05-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Small clean-up of stream items utility class."
fd70903236883f47b21f23b8cb49a1ccacdfcdf1 02-Aug-2011 Katherine Kuan <katherinekuan@google.com> Pixel perfect work for phone contact editor

- Always show account header for raw contacts
- Align text fields and titles along the left margin
- Align spinners
- Use "Add new" as the default text if there's no value
in Event or Groups field yet
- Restyle account header
- Use primary/secondary colors everywhere
- Non-editable contact fixes: remove "not editable on
this device" and replace it with a toast when the
user clicks on the header, restyle item_read_only_field

Bug: 5097095

Change-Id: I94a6c91b05344028b64c62735fb4559f9944529d
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
1c9b49686a02ab4dc6bf6ce6ba18f56ed2da79a5 05-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Make the CallLogAdapter a static nested class."
50c4a791b194d26ac9998ae9ee8b26c63cda8d16 05-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Have a chat icon inside IM tab"
a21993720988a5fc0b48594d1ff0ce6f932780b7 04-Aug-2011 Flavio Lerda <flerda@google.com> Small clean-up of stream items utility class.

We do not need a way to add a set of stream items to a container: we now
use a ListView.

Do not set the listener in the helper method: we can just do that in the
adapter itself.

Bug: 5119353
Change-Id: Id647ddc358f82b5fee8628b06645412e48712229
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/StreamItemAdapter.java
f31df5d850fd0c10d9da4cd356f944c962fb44bb 03-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Have a chat icon inside IM tab

Bug: 5098861
Change-Id: Ib37f47a457f2245e3e1cebf95773bbd14641882c
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
95a1cfe10646e522a0466793147ae9d564fc3ef7 04-Aug-2011 Flavio Lerda <flerda@google.com> Make the CallLogAdapter a static nested class.

This is a precursor to extracting the CallLogAdapter into a separate
class and re-factoring it to dynamically build the list of groups.

That should in term help performance on startup, if we can not construct
the whole grouping on startup.

Bug: 5114769
Change-Id: If684a81d10108e4d72249552cb7ced286ec8cbc6
ndroid/contacts/calllog/CallLogFragment.java
c3d8750bdfe07f7440a44509fa10d268ad266f18 05-Aug-2011 Dave Santoro <dsantoro@google.com> Merge "Fix custom list filter for groups."
de6d3386dc954815f8f7e6287feba6622ff7d6eb 05-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Support scrolling of Updates tab."
fcbf9262ad779464908cb69935397a6c9627ceba 04-Aug-2011 Hugo Hudson <hugohudson@google.com> Simplest attempt at a fix for clear call log bug.

- Clearing the call log currently deletes voicemails from the log
without removing their attachments (and leaving you no way of later
deleting those attachments).
- The fix is either to not delete the voicemails when clearing the call
log, or to delete their files as well.
- I think we should skip deleting voicemails, because having all your
voicemails deleted is probably more than should be expected from a
menu item entitled "clear call log".

Bug: 5123101
Change-Id: I665cee1ae94dc9c40826185ae9d01705d407022f
ndroid/contacts/calllog/ClearCallLogDialog.java
c24f1714a5a694379cb9784b9f48e5f50885d198 04-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "ContactDetails no longer needs to traverse all entries onLongPress."
c94a28f630c26321a177524fb45b3731825219e0 04-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Modified strings for "Frequently Contacted" divider."
22cb663a251af60bc6beeb1954568c8e6a4c34e9 03-Aug-2011 Flavio Lerda <flerda@google.com> Support scrolling of Updates tab.

This commit changes the Updates tab to use a ListView for its items. The
ListView has an extra header item that overlaps with the carousel tab
(if present), and implements the scrolling which hides part of the
carousel (excluding the tab itself).

The fragment now basically contains only a list view, which will store
all the items, and an optional title (I need to check if that's actually
needed, but for now it is there).

The extra header is implemented with a layout: for those configurations
where there is a carousel, the header contains a placeholder which is
the same size as the carousel; for those configurations where there is
no carousel, the header will be an empty FrameLayout (but in those same
cases, there is a header at the top of the list in the fragment's
layout).

This commit does not take care of making the scrolling work across the
two tabs, e.g., when switching between tabs. I will address those issues
in a follow-up.

Bug: 5119353
Change-Id: I0eb6dcc06d624991ab1f5f8fe1197337ba03286b
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/StreamItemAdapter.java
73ab23683ed8ac24a6f429dcce50c54bbeae4987 04-Aug-2011 Dave Santoro <dsantoro@google.com> Fix custom list filter for groups.

Bug 5116514

Change-Id: I1faf3321d6d571508ce7bcb2cd22fba0ad19af8d
ndroid/contacts/list/CustomContactListFilterActivity.java
7723d801b1c009c8ac142d88348a039895225ba9 04-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE on tablet contact card with social updates"
fe17026100674b204f3b4fc6cb5a61f51ac99ec6 03-Aug-2011 Flavio Lerda <flerda@google.com> Use a single text view for count and date of calls.

This further reduces the number of views needed to render the call log.

At the same time, fix a few minor issues that are needed for pixel
perfect UI:
- Do not show the text when the item is new.
- Instead, for new items, highlight the date in the color associated
with the item (blue for voicemail, red for missed calls).
- Do not put a separating slash between the count and the date.

Bug: 5099652
Change-Id: I18b71463e7398f00f0fe8fecbeb334b67d618312
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallTypeHelper.java
3bbd9a0c3e85262365376ae212f9a8bc521e37d4 04-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE on tablet contact card with social updates

- In tablet portrait, instead of having 3 fragments
on screen (2 fragments for the view pager and
1 detail fragment for contact with no updates), just
have 2 fragments where the view pager adapter has
count = 1 when there are no updates (which disables
the swipe).

- Store whether or not the contact has updates in
the save instance state bundle so it can be
restored in onCreate()

- Set retain instance = true for the ContactLoaderFragment

- There should always be a ContactDetailFragment and
ContactDetailUpdatesFragment after onCreate() of the
PeopleActivity on the tablet

- Basically apply similar logic from the phone CL:
https://android-git.corp.google.com/g/#change,125585

- TODO: Take out duplicated code from ContactDetailLayoutController
and ContactDetailActivity

Bug: 5106878
Bug: 5082871

Change-Id: I3af08bf84072d3d94e4f3a6bc1d01faf3432e3e7
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailViewPagerAdapter.java
db0d8669cd1ffaa45827edb65b2b0eecb27561f5 03-Aug-2011 Katherine Kuan <katherinekuan@google.com> Reuse fragments when rotating contact card on phone

- Part 1 of refactoring contact card fragment code,
Part 2 will be refactoring the tablet code to fix
bug 5082871

- ContactDetailActivity should always have non-null
fragments after onCreate() (either retrieved from
Fragment Manager or created dynamically)

- New view pager adapter that returns views that contain
existing fragments (instead of generating new fragments)

- The main reason for these changes is that when we
create fragments dynamically (necessary for the ViewPager
otherwise the fragment from XML will already have a parent),
the view ID will be the pager view ID. When we rotate,
the fragments are already defined in XML for the fragment
carousel and already have different view IDs, so it won't
restore properly. We can't put the pager view ID in the
fragment carousel layout, otherwise the ContactDetailActivity
will try to cast it to a ViewPager. Alternatively, if we make
both layouts rely on dynamically created fragments, the problem
becomes the fact that once fragments are added to the fragment manager,
they cannot be retrieved and added again to a different parent if there's a
different layout (exception is thrown). Thus, the solution is to have
the same parent container in both phone portrait and landscape layouts.

- Also it is unclear what was happening to the fragments on
rotation (they weren't being restored but weren't being removed
from the FragmentManager). We can remove the hack now that
would store the ViewPager fragment tags in the saved instance bundle
and manually remove those fragments from the FragmentManager after
an orientation change.

- In onCreate() of the ContactDetailActivity, if this is a
restored instance, then inflate the correct layout right away
so the fragments can find the parent containers.

- Save/restore ListView state on rotation

- Save/restore selected tab for contact with social updates

- Clean up computation code for FragmentCarousel by moving it to
onMeasure() method

Bug: 4976082
Bug: 4686406
Bug: 5082871

Change-Id: I7840b1dd1110da4dcc28ebabe3fc2739ff11c2f2
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailViewPagerAdapter.java
826b6ee041537b9476b4cf23e13334dc3d9b4f7e 03-Aug-2011 Frank Sposaro <sposaro@google.com> ContactDetails no longer needs to traverse all entries onLongPress.

Bug: 5110284
Change-Id: I5cf40234ee9b71204f5322ae67597f0866afc1f4
ndroid/contacts/detail/ContactDetailFragment.java
49445ce03613a3c3a66536bdf26a4888382c7535 04-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Fixes for a couple of strict mode violations."
5bbe25d770eb0e7863107038d612260f08cb04b3 03-Aug-2011 Hugo Hudson <hugohudson@google.com> Fixes for a couple of strict mode violations.

- Removing from call log and trashing voicemails were both operating on
ui thread.
- Decision here is not to finish until after the post execute completes.
- I could go further and test the result of the delete, and show a toast
if the delete doesn't work, but for now leaving that work for later.

Bug: 5113695
Bug: 5098527
Change-Id: I5937de2e5c3da3794439f3fa510276b799162b0d
ndroid/contacts/CallDetailActivity.java
be967d2bfdf0c922d30ce62e5aaeeffdc4941a6d 03-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Hide search view before showing the other views"
f7bb9a0ae86053b717922611ccaa11098bd44910 03-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Use simple TextView for call details header."
fa92d0b70656f8dba2da3ad7f34560fd62a4e472 03-Aug-2011 Dave Santoro <dsantoro@google.com> Merge "Avoid adding uninitialized external account types."
a5ed6df7d3702e648075204b790cf15dcd98a6e6 03-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Hide search view before showing the other views

Bug: 5105154
Change-Id: Id03a7753e77e8d19761dbfc8268a34bb82c97af9
ndroid/contacts/activities/DialtactsActivity.java
0a139005a21553a5c45219879620adb20fc1f879 02-Aug-2011 Debashish Chatterjee <debashishc@google.com> Mark voicemail as read when call details page is opened.

Bug: 5059737
Change-Id: I875ae49f36af0bfe329dea26bb2e7ca2e9d2e709
ndroid/contacts/CallDetailActivity.java
b88abaaf3e733a9daf681277b7e5e8e58c015462 03-Aug-2011 Flavio Lerda <flerda@google.com> Use simple TextView for call details header.

Instead of the using the more complex call_log_phone_call_details
layout, use just a text view, since all we want to show is the name (or
number) of the person who called.

Bug: 5099652
Change-Id: I408b5ffaeea09c0efe2631bd317d1ea640be294f
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogListItemHelper.java
0f53ef6e6442a1ef21b843b21d8c2575c2f5015c 03-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Replace FrameLayout by LinearLayout, remove a RelativeLayout."
8e2a7b6436fa2eec71b310e9eb446befc4bccd15 03-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Do not show geocode for voicemail and private numbers."
dd094985ab2b8b3dd5702c38ee4d560e8c4066c9 03-Aug-2011 Daniel Lehmann <lehmannd@google.com> Replace FrameLayout by LinearLayout, remove a RelativeLayout.

Also adds a thread name to the call log lookup thread

Bug:5099652

Change-Id: Ib57f7dc8776838ff0b1d216cb97d4f856f74946b
ndroid/contacts/calllog/CallLogFragment.java
35168ccd8beda015ae5fd6ca25972fc21e422865 03-Aug-2011 Dianne Hackborn <hackbod@google.com> Clear bitmaps from canvases after done drawing to them.

Change-Id: I6a6283b5e02fa0ef822112796d8bb4b6ea20728d
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/widget/TransitionAnimationView.java
5226abf2ee19f53b9d9bf63109138aff79c7a222 03-Aug-2011 Dave Santoro <dsantoro@google.com> Avoid adding uninitialized external account types.

Bug 5112257

Change-Id: If5e89194d995cec9caee3308931ea1e33285a6ee
ndroid/contacts/model/AccountTypeManager.java
f50b48738e70d901f6200356ded40cb3d7211ad4 03-Aug-2011 Flavio Lerda <flerda@google.com> Do not show geocode for voicemail and private numbers.

Bug: 5111400
Change-Id: I4f7e8f2bf8480731184578b335a7ce7fc5ef4270
ndroid/contacts/calllog/PhoneNumberHelper.java
3dd23fdb42772b1a02249c74cd060929cbe3cab3 02-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Implement the trash menu button."
98cd95250b9d6e270ab2672154016952aeeffae5 02-Aug-2011 Flavio Lerda <flerda@google.com> Merge "Use phone icon for the back action in call log details."
bcb58dd162121b4871c08e347803a4b0c79ea76d 02-Aug-2011 Frank Sposaro <sposaro@google.com> Modified strings for "Frequently Contacted" divider.

Bug: 5104277
Change-Id: I5af4d722aaa6e6af993ad0f047cdd46f34ca0624
ndroid/contacts/list/ContactTileAdapter.java
7b02fde8c7daf4d66e4b4ed85b50ed57425e8a20 02-Aug-2011 Hugo Hudson <hugohudson@google.com> Implement the trash menu button.

Bug: 5098527
Change-Id: I873bea30d5ac3eb1337bb0aae3e1a6ea81550ba7
ndroid/contacts/CallDetailActivity.java
bcdab562875e5d98f39cbd271165270eb0610afc 02-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Change tab carousel tab size according to device size"
9481317eae66e5efdc3e048ed2f10e369af62235 02-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Style contact detail list items on tablet contact card"
0db051f4f5fc583fc1cc9a444ca34ef38ad32a8b 02-Aug-2011 Flavio Lerda <flerda@google.com> Use phone icon for the back action in call log details.

In order for this to work, I had to also change the default icon for the
call log details activity. However, is that is logically part of the
phone app, it is reasonable to change it, even if it does not appear on
its own in the launcher.

Bug: 5105565
Change-Id: Ibe09f0ad17f5ed03b2236443cc9a3c8f192ce18f
ndroid/contacts/CallDetailActivity.java
a02b6a23b649f1c25b20f8143b1b4a985e6269e9 02-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show group photos asynchronously

Bug: 4689452
Change-Id: If559d698f673849e7f65ad7b7eccdcec94a998d7
ndroid/contacts/group/GroupBrowseListAdapter.java
63641368c47fd0ccec263c4ad90661d778416fa5 02-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Add the ActionBar trash and share icons."
6ecb732e22b271878d5f9215b7c821a1d97d888f 02-Aug-2011 Daniel Lehmann <lehmannd@google.com> Replace the list of call symbols by a single custom view to paint them.

Saves about 7-21 views per screen and should be more efficient to recycle

Bug:5099652
Change-Id: I10a1b1d188c5c58329de4ba063d41f8c116c3497
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallTypeHelper.java
ndroid/contacts/calllog/CallTypeIconsView.java
f513860e0d64d88585d4aa13150b045c19fcd42a 02-Aug-2011 Daniel Lehmann <lehmannd@google.com> Restyle the Call Log Details. Make the whole contact picture a push target

Reduced by 21 views on Nexus S

Bug:5099652

Change-Id: I49ec28e7d6e560c7622e4e983347bd95ebbd8a97
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemViews.java
a3621527f7f43d63cd2358f0e08f388dc885f6f6 02-Aug-2011 Katherine Kuan <katherinekuan@google.com> Change tab carousel tab size according to device size

- For phones, the tab width should be 75% of the screen width,
while the tab height should be 50% of the screen width

- For tablets, the tab width should be 66% or 2/3 of the screen
width, while the tab should be square so the tab height should
be 2/3 of the screen width

- Adjust alpha layer to not cover the tab label so that the
"about" and "updates" text will still be on top.

- Added pressed state to fragment overlay in fragment carousel
in phone landscape

Bug: 4689488
Change-Id: Ie7ec3897105abbd195caf0b7f78e380e79f1ddfe
ndroid/contacts/detail/ContactDetailTabCarousel.java
d260de4c59c17b57d9a6a4c0033e360c65b50306 02-Aug-2011 Daniel Lehmann <lehmannd@google.com> Restyle the Call Log Details. Make the whole contact picture a push target

Change-Id: I23fced4895a63181229cc0d2e003256f575dd40f
ndroid/contacts/CallDetailActivity.java
a6761be357dbdb7f89b41710dd917bb1a7f6e644 02-Aug-2011 Daniel Lehmann <lehmannd@google.com> Merge "Remove hardware layers. Replace alpha by colors-with-alpha"
8bec90963b31074164321b5e7712fdb33f4fa134 01-Aug-2011 Katherine Kuan <katherinekuan@google.com> Style contact detail list items on tablet contact card

- Add primary and secondary colors
- Change list item height and padding
- Clean up some views in contact_detail_list_item.xml

Bug: 4689488

Change-Id: I75ce795f9ba019e39c53b70b6b2284953cc33aa8
ndroid/contacts/detail/ContactDetailFragment.java
586dc2bc2a0d9517ccb6dfad406c2c6ac3564930 02-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Refactored switch statement in ContactTileAdapter."
0238a818238eb974951cf5e8b75a5d5707bd5b4d 02-Aug-2011 Frank Sposaro <sposaro@google.com> Merge "Frequently Contacted header on Tablet is always shown."
4bbc1f9182383687915f9bcb94290f201eb9433b 02-Aug-2011 Dave Santoro <dsantoro@google.com> Merge "Allow external account types to parse any package."
d28eaaa2b5b4e4ae8a79b08073d49208979fdee4 01-Aug-2011 Dave Santoro <dsantoro@google.com> Allow external account types to parse any package.

This allows for external account types to be managed via a package
that isn't a sync adapter, so long as the package contains a service
that provides the necessary contacts metadata.

Bug 5077096

Change-Id: Ic2b545a276421b45d55d512f3901df8ff75d05fe
ndroid/contacts/model/ExternalAccountType.java
dbd80eedb51891fef7b85cb7f5170a8f6faf8288 02-Aug-2011 Daniel Lehmann <lehmannd@google.com> Remove hardware layers. Replace alpha by colors-with-alpha

Bug:5097580

Change-Id: Icd1815d78cd482f6fa62663aa9283ff743e40642
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/quickcontact/FloatingChildLayout.java
0a586160f653fac9e96d82a18c80b602886b38b3 02-Aug-2011 Dave Santoro <dsantoro@google.com> Handle lack of stream items properly.

Bug 5104711

Change-Id: I0251415d48c79aad21c809bf9257e05a1f8e578b
ndroid/contacts/socialwidget/SocialWidgetProvider.java
c2f09c3cfd01c9bad5cbf76f7a9f9f363a511b5d 30-Jul-2011 Hugo Hudson <hugohudson@google.com> Add the ActionBar trash and share icons.

- Adds the share drawable against dark background from ux repos.
- Removes the trash button from the main voicemail ui.
- Adds both trash and share to the ActionBar top right corner of call
details, but only if we are looking at a voicemail.
- Adds placeholder methods for when these buttons get clicked.
- Changes other options menu elements to use the android:onClick
property with a well-named method, rather than using switch by id.

Other changes:
- Tells proguard not to remove android:onClick style methods where those
methods are public void and take a MenuItem or View single argument
(exactly the type specified in xml files).
- Remove android:showAsAction property on the call detail options,
because I don't think we want them to appear on the ActionBar at all,
and if we did these are the wrong properties to use.
- Remove the variable storing the 'has remove from call log', we can
just calculate that in onPrepareOptionsMenu.
- Calls through to super.onCreateOptionsMenu and
super.onPrepareOptionsMenu rather than just returning true, as
requested in the javadoc.

Bug: 5070929
Change-Id: I237bdcbb7b0a5135e940a0f44a64e4a39f741fa6
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
8473de7e6da9a33c5a8c128f88ae9e493a52ece4 01-Aug-2011 Dmitri Plotnikov <dplotnikov@google.com> Declaring the Google+ data set as an extension of Google Contacts

Change-Id: I6b1d7e5ea86c854f3312bccd8f3fbfaef406d149
ndroid/contacts/model/GoogleAccountType.java
b643900c095fae200c053915948fc35a4d335cb6 01-Aug-2011 Hugo Hudson <hugohudson@google.com> Merge "Create the voicemail fragment on-demand, not every time."
c37573179d14786670358275b898b8eb8fa4f150 30-Jul-2011 Hugo Hudson <hugohudson@google.com> Remove the duration field for voicemails.

Bug: 5083839
Change-Id: I732f6916373accd91581dc68ded6ab8dfae085b2
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
b1c5ff47096a3105de54d3b4351bd1f769dd50f8 31-Jul-2011 Frank Sposaro <sposaro@google.com> Frequently Contacted header on Tablet is always shown.

Bug: 5063866
Change-Id: I38d8ed1263130c2f651eb23a0ee36ad165dd4c01
ndroid/contacts/list/ContactTileAdapter.java
3f3fddf90af21a078dfc7133fa09c0b299e449c8 31-Jul-2011 Frank Sposaro <sposaro@google.com> Refactored switch statement in ContactTileAdapter.

Change-Id: Ifcceee200dea7d2f96646c9f410b07717e192b35
ndroid/contacts/list/ContactTileAdapter.java
8e7c03b42e498c6123066ff700bfc627cca9b5a0 31-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show QuickContact in front of soft input"
b2e7f5821e189514b41b82ce2c3e58ebe8bceb28 30-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Added push states for ContactTiles"
9994f6634f3e13991b8cbf2021d7bf9099c12cd7 28-Jul-2011 Frank Sposaro <sposaro@google.com> Added push states for ContactTiles

-This does not include Starred Quick Contact for tablet.
--That view needs to be fixed with Bug: 5062027

Bug: 5044780
Change-Id: I2149f1cbf18904bf64611b65482b1ba7fcb42523
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileSecondaryTargetView.java
ndroid/contacts/list/ContactTileView.java
10d7df7bab8c332744fad64b9167c2ef061070e4 30-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show QuickContact in front of soft input

Bug: 5092171
Change-Id: I112c9e82d6c55bc4740f9447771b2cbe96fdf8b7
ndroid/contacts/quickcontact/QuickContactActivity.java
013a97e328f7ab721f1c5e8958b8eefdd9669737 29-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show separate pressed effect for primary/secondary actions"
a993b81a8693ff4470e4b5e3bfe0938382ffde40 29-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Move notification generation to a service."
c25459aeccbbe4689de1d98f4542f3b7aa5bedc4 29-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show DialpadChooser correctly."
54eb1ea74b71fc4f8248e649b37fdb737aea920e 28-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show separate pressed effect for primary/secondary actions

Previously the whole content is highlightened by users'
item selection. Now we have two separate touch targets.

Affects Contact detail screen and quick contacts. In the
future we need to do similar thing to CallLog screen too.

- stop using onItemClick() but handle two separate onClick
events
- modify layouts so that we can show correct "pressed"
look-and-feel
- prepare two focusable Views for keyboard navigation

Bug: 5042772
Change-Id: I548f2e4ba11043081b3444f6eb341364bf71d917
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/PrimaryActionViewContainer.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
81281eefd5aaf339cbfa080ddfa6c6f63caca71a 29-Jul-2011 Katherine Kuan <katherinekuan@google.com> Unknown contacts are missing "up" affordance on contact card

- Contacts without a name cause the ContactDetailActivity to have
a blank title and therefore no "up" affordance.

- Use "(no name)" instead of blank or "(Unknown)" and make it
consistent across contact card, contact list, contact tile adapter,
and quick contacts

- Fix NPE when adding social widget for contact with no display
name

Bug: 5061950
Bug: 5096795
Change-Id: Id242e0f6d8bfe835d44be448129fddadd146fdb6
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
12b888013a1930c101834b95bb31729e1dac3fdd 29-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Auto select first group in group list on tablet"
b15498a22a1b4dae0fc4be681f7b63d1d7dab1eb 29-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show DialpadChooser correctly.

We need to make DialpadFragment to handle a new Intent
via onNewIntent(). The code was once removed in
I3b2f95b0d34e89bb9665b2014048a634d29e54ce because of possible
NPE. This time we avoid it by just using "if" clause.

Set DialpadChooserAdapter anytime when it is required. Now
Fragment can be reused with onCreateView() (when users' swipe
action), at which the adapter can be available though
the chooser view is recreated.

Modify DialpadFragment#resolveIntent() so that it is
easier to understand. Rename it to configureScreenFromIntent(),
since it is only about its screen state now.

Remove some logic around dial uri handling. Now DialpadFragment
gets the uri directly from Intent instead of parent Activity, so
there's no need to keep it inside DialtactsActivity.

TESTED:
- Launch "Phone" with no calls active
- Make a call, press the "Add call" button from the in-call UI
- Make a call, bail out of the in-call UI without ending the
call, launch "Phone" from the home screen. Play with swipe,
exiting dialpad chooser screen several times
- Launch "Phone" from the other app with a phone number Uri

Bug: 5087992
Bug: 4983278

Change-Id: I5fd687daccf15f632219925a4846019594beec0a
ndroid/contacts/activities/DialpadActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
60c1f788e39577cad5b74414e65d9bab7ca17574 27-Jul-2011 Flavio Lerda <flerda@google.com> Move notification generation to a service.

Generating notifications requires looking up the list of calls to
include and the name of the callers.

Instead of doing this on the onReceive, move this to a service. By using
IntentService this will be done on a worker thread.

Bug: 5036195
Change-Id: Idb6e80c802e40398888bb76f52ad7c5457aea945
ndroid/contacts/calllog/CallLogNotificationsService.java
ndroid/contacts/calllog/CallLogReceiver.java
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
ndroid/contacts/calllog/VoicemailNotifier.java
a976f36273d10ede6598830dd2ab9853cce92bdf 29-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Add actions to update items."
cab054c6d3336ef54dd60ed208df490fae6566db 29-Jul-2011 Katherine Kuan <katherinekuan@google.com> Auto select first group in group list on tablet

- If no groups are selected yet

Bug: 5061848
Change-Id: I52f464791dd0f96dbb00108cdd34895989bbd3d4
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
f6e7133755d32587c2ba4846c2408b60716b2c6e 29-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Make the contact picture exactly half the height as it is wide"
a9ad6945588d3f81968f2462c78fcf1d36874b99 29-Jul-2011 Hugo Hudson <hugohudson@google.com> Create the voicemail fragment on-demand, not every time.

Main changes:
- Remove fragment from call details xml, leave a placeholder comment.
- Add fragment dynamically using fragment manager if desired.
- Change api for setting voicemail and whether to start playing:
accept the uri and start playing as constructor parameters for
controller, have the fragment parse them from the arguments bundle.

Other changes:
- Inflation of fragment requires ignoring the parent.
- Changed locking strategy when updating clip position, it's only done
now when getting the current position. This guarantees that we don't
try to get position after scheduled runnable is null (which should
prevent us trying to call get position once we've released the player,
which was the source of a crash I would rarely see when using the back
button).

Bug: 5048103
Change-Id: Ie82708184295500473b5d2c5db010cdd332acb8a
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
965da8446f4bf73217611b43059bd92f311db089 28-Jul-2011 Flavio Lerda <flerda@google.com> Add actions to update items.

This commit let you click on an update item if it has an associated
action and actionUri.

In order to make this visible to the user, it adds a background that
will be highlighted when the item is selected. It also marks the item as
focusable for accessibility.

In order to make the selection expand to the entire row, play around
with the padding a little bit: basically, the update list itself is
now as wide as the screen, and the individual items have padding as
appropriate.

Bug: 5095755
Change-Id: Ib1b2d179152beae125dded1b393b3dfc8b22abc9
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
5a77a5563706fe1b143d976d1b47abaeb873e138 27-Jul-2011 Flavio Lerda <flerda@google.com> Add comments to items in Updates tab.

Bug: 5095383
Change-Id: I87311bc37446fe83bf47aa554774a9a056f3a251
ndroid/contacts/detail/ContactDetailDisplayUtils.java
2e95ad0cd5fe199d0e3ef4bbcbae8baa247382c5 29-Jul-2011 Daniel Lehmann <lehmannd@google.com> Make the contact picture exactly half the height as it is wide

Bug:5087954
Change-Id: Idb8a1bd61b4c8f95910d3c5c7255400d276af0d9
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/widget/ProportionalLayout.java
3c6865e57ea7e26364155cae9922bcdbea5162ed 29-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Pass correct group member suggestion to IME"
9079f1abda6d0fc2243395e9effce56d3290f434 28-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Fix NPE issue with items that don't have a subtitle (happens with Exchange)"
b7950f9e602270686d7c9a8e019b492088860c45 28-Jul-2011 Daniel Lehmann <lehmannd@google.com> Fix NPE issue with items that don't have a subtitle (happens with Exchange)

Bug:5090824
Change-Id: I35806f25d750db66d18e82d977aaa64a02f8605c
ndroid/contacts/quickcontact/QuickContactListFragment.java
4acc29e8f65e5939f72347af1b0ec3087f8bb6ec 28-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE in GroupEditorFragment name checks"
8b1fe76ff6d68b79427acfb4498bed0986a6518c 28-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Use new search pattern in People app"
1c07d4bf219bcdcc433b69a40ed3398ba7b3389f 28-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in GroupEditorFragment name checks

- We need a valid group name when we save the editor, so
we read the group name text view before saving. However
this is throwing a NPE because now the group name text view
is not retrieved until we've selected an account (new group
creation) or loaded the account (existing groups) and
determined which layout we're inflating.

- So there's a period of time where it's possible the
group name text view variable is null, so verify
it's not null before checking if the name string is valid.
If the text view is null, then we'll abort the save group
procedure early.

Bug: 5090543
Bug: 5091206

Change-Id: I1d768ad3b0c1f11a56de5c7f9c476b5176e5c3ed
ndroid/contacts/group/GroupEditorFragment.java
6ae983fc9fff8ec820fd09d0d5b997bcbea31a43 28-Jul-2011 Makoto Onuki <omakoto@google.com> Pass correct group member suggestion to IME

So the member suggestion will work in the extracted mode too.

Bug 5075514

Change-Id: Ica1ec6295f65b15ba2486bc7b05c2138d15a2408
ndroid/contacts/group/SuggestedMemberListAdapter.java
f75900ed2bafa5411c46e8fde0b8dccbc6753176 28-Jul-2011 Makoto Onuki <omakoto@google.com> Fix group member suggestion

We were not setting mDataSet properly, and doing "data_set = ''" when
it should be data_set IS NULL.

Bug 5091319

Change-Id: I4ec8fcb5e21772dcdbbf1359fe3dcc7cab6a9f36
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
d0bf62647f7e7cf86ff4319d673c6c6196f07f03 28-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Fix extra row issue in ContactTileAdapter."
2b3f3c54d3beb017b2f59f19e9ce0ecc3e039dbc 27-Jul-2011 Dave Santoro <dsantoro@google.com> App changes for account types with data sets.

This is primarily a replacement of the Android Account object in most
parts of the app with a new AccountWithDataSet object that extends
Account (by adding an additional attribute, the data set).

This also includes a major refactoring of the AccountTypeManager,
both to allow it to handle data sets and to allow for
non-sync-adapter packages to be referenced by the sync adapters for
an account and registered as sources of contact data. Attributes of
the sync adapter that would typically come from the authenticator
can be parsed out of the Contacts XML for these packages.

Bug 5077096

Change-Id: I88f311c64eae78c88e9999bff6f7de8538e62157
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/GroupListLoader.java
ndroid/contacts/GroupMetaData.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupDetailDisplayUtils.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/GroupListItem.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/AccountWithDataSet.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
20aa41d2c414d88ed8434433b1d5061c53bd1bc1 28-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Implement new QuickContact design"
edb576aab33efff623691a89ace3c76cb2ff12d1 28-Jul-2011 Daniel Lehmann <lehmannd@google.com> Implement new QuickContact design

- Also removes default-functionality
- Fixes the flicker when dismissing (Bug:5025418)

Change-Id: I46cf0fbdb2dcbf002612672e5e8f81a9b1ab6939
ndroid/contacts/TypePrecedence.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/ClearDefaultsAction.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/quickcontact/ProfileAction.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactBackgroundDrawable.java
ndroid/contacts/quickcontact/QuickContactListFragment.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/quickcontact/ResolveCache.java
ndroid/contacts/util/Constants.java
d8a61b7296bf7388505f0211d7ef44700e766193 27-Jul-2011 Katherine Kuan <katherinekuan@google.com> Use new search pattern in People app

- Magnifying glass should go inside the EditText field
- "Done" button on keyboard should hide the keyboard
- When going to a search result (contact card),
the "up" button should return to the search results
and not relaunch PeopleActivity

Bug: 5081198
Change-Id: I32e103c39c40da26bfd12f1fa8cef000f33ee1c9
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
2ad0dea36362beb70f5a92ac9b4c6a1db7bbb8b9 27-Jul-2011 Katherine Kuan <katherinekuan@google.com> Add alpha layer to tab carousel on contact card

- Introduce CarouselTab class to handle the
alpha layer and touch interceptor
- Clicking anywhere on the tab will select that
tab
- Remove split style action bar on contact card
so favorites star will be in upper right corner

Bug: 5081735
Bug: 5042660

Change-Id: I54088b49c928297dbfc523752258ceaa97cce445
ndroid/contacts/detail/CarouselTab.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/FragmentOverlay.java
ndroid/contacts/detail/ViewOverlay.java
2e52db5aef55228ecd8f9af484fc8ba9d955b915 27-Jul-2011 Frank Sposaro <sposaro@google.com> Fix extra row issue in ContactTileAdapter.

Bug: 5068324
Change-Id: I7e4207d50f3468afc62d32a449125fb08d9f42ea
ndroid/contacts/list/ContactTileAdapter.java
1dd2200b37d78ca2718c515baad7d4db718ee5ce 27-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Modify action bar for group editor and group card"
3792cc74f8a1a55a04af72508b70d7f3281a5eb6 27-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make search behave correctly"
df0633cf6daec00bd9bada0c6bc164fbd2024166 27-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Added phone number and phone number type to frequent phone contacts."
d04768a41fc0c1918eec625fb61e3c8b90719b13 27-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make search behave correctly

- call setIconifiedByDefault(true) and setIconified(false) to
show magnifying glass icon inside SearchView's edit text
- manually call onActionViewExpanded() on entering search mode
and onActionViewCollapsed() on exitting the mode to make
SearchView work correctly with its close button
-- Those should be called automatically if we let search view
menu item do that, but because we're using custom layout,
we need to do that manually.
- clear focus and hide soft key when the user presses "done" button
on soft keyboard
- ignore close event when text is empty, to prevent recursive
exitSearchUi() call

Bug: 5080181
Change-Id: I4b603cca8e3051a247a858573ec3f6d631d75ec0
ndroid/contacts/activities/DialtactsActivity.java
f6828029b127f60d758bf30052989d64f50cfa86 25-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Implement smoother swipe animation for Phone UI

Phone UI conditionally shows split ActionBar on the bottom,
which makes swipe animation less smooth. This change makes it
smoother by reducing layout re-calculation.

- stop changing menu state on onPageSelected but do so on
onPageScrollStateChange.
- use android:windowActionBarOverlay to suppress recalculation
during menu show-up
- add marginTop to every fragment for Phone so that fragments
won't overlap with ActionBar
- add paddingBottom for CallLog and Favorites so that those
fragments won't overlap with split ActionBar

FUTURE TODO:

We need custom assets for android:actionBarStyle
- android:background
- android:backgroundStacked
- android:backgroundSplit

Bug: 5022052
Change-Id: I3bd48cf9d8aaa398806531823fca63de328b807a
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
92cb150070f90dfe3c0d39abee9e9c1692a034e5 20-Jul-2011 Frank Sposaro <sposaro@google.com> Added phone number and phone number type to frequent phone contacts.

Bug: 4975604
Change-Id: I75629dd9e8b52dc67317e1b80a010ad1f9613ee6
ndroid/contacts/ContactTileLoaderFactory.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
0b477b197f4735f80d07af6f610f5029745dc01e 27-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Long press to bring up default and copy options for contact detail."
627e5dde4fc76c8bde01cc0db7f56c344c1758b8 25-Jul-2011 Frank Sposaro <sposaro@google.com> Long press to bring up default and copy options for contact detail.

-Displays option in ContextMenu to either set or clear default contact
method depending on if isPrimary is set or not
-Refactored copy text to clip to use new ClipData apis
-Displays checkbox next to item chosen as default

Bug: 4975755
Change-Id: Ibb18a9588a206d1c5f0801b970dee235b8a7e83d
ndroid/contacts/detail/ContactDetailFragment.java
1390f85d3776dd9ad9d38f611f3a0d4ed59f6249 27-Jul-2011 Katherine Kuan <katherinekuan@google.com> Modify action bar for group editor and group card

- Remove home icon in group card
- Change done/cancel buttons in editor
- Remove old honeycomb style on editor activities
and have it use the new split style solid action bar one

Bug: 5081353
Change-Id: Ie39f7f1ea5bd80d5246158442325207effd6aff7
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/group/GroupEditorFragment.java
d510f8a8e03ed67cf5a9a686fd67ab9a19d6ab8f 27-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Options Menu layout changes"
b76ab8b32e141ccf93a751885177342e5750f755 27-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Adding "empty" message in empty state"
c275cb52032da419601a4598deac87c6210dfd19 26-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Uses new FREQUENT_URI to query frequent contacts."
b69a06fc571f09270f468b0fdb75e6ea938a1c7a 26-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Add UI for the "invite""
f9bd01631d9f06744048db84a62e8e8ed4ec70b4 26-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Fixes for voicemail notifications."
a883c7ee29fa61bc8a7447faebfaf2da32ea6547 22-Jul-2011 Frank Sposaro <sposaro@google.com> Uses new FREQUENT_URI to query frequent contacts.

Bug: 5050315
Change-Id: I764d551fb5c531f9291b014cdfcd33b65e1198c6
ndroid/contacts/ContactTileLoaderFactory.java
1eb2b361508bb1a43755f07ce8ab543e8df5273b 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Non-editable group page"
e1b4b0f86772ef141d186ca56c8c01e55492c2a7 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Go to group card after group editing"
8bb20103560c74f8f89b4c5877ef7aae9cd7dd42 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Use group count per account column for group list"
dce311ee5d1312417f80cae610655600e685e5b6 26-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Don't execute Runnables after host activity is destroyed"
b78b7096618cd9c3c8db8e4a8e0ed684fe8b1b11 26-Jul-2011 Flavio Lerda <flerda@google.com> Fixes for voicemail notifications.

- Handle multiple notifications.
- Clear notifications correctly.
- Show un-cleared notifications on reboot.

Bug: 4968721
Change-Id: I1bd1eda4d75371fb7ba92063d74a61de232b61d6
ndroid/contacts/calllog/CallLogNotificationsService.java
ndroid/contacts/calllog/CallLogReceiver.java
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
ndroid/contacts/calllog/NewVoicemailReceiver.java
ndroid/contacts/calllog/VoicemailNotifier.java
66606b648d7eee16b6e5a55506bbee141887b55e 23-Jul-2011 Isaac Katzenelson <isaack@android.com> Adding "empty" message in empty state

Added the message "No Contacts"/"No Favorites"/"No Groups" when
There are no accounts and no contacts on the device according to
the tab selected.
Added a message on the groups view when no accounts are on the
device and a button to add a new account

Bug 5071818: Empty state when no accounts added to device

Change-Id: If736899f4549554693f832f78a1f22798f2beae2
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
a615b7ac82f3512a1689bab3542bbe403ed90923 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Go to group card after group editing

- Unfortunately, since we don't have support for group URIs
(to view a group, edit a group, or view the group list), we need
to determine whether we should set an activity result or
launch the GroupDetailActivity to view the group after editing
is finished.

Bug: 5042435
Change-Id: I71357dfc44f8539273e12169aeea78d80d258a06
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/group/GroupEditorFragment.java
683b57e1fbf27c81c9973de814fc8bb1852e6df8 21-Jul-2011 Isaac Katzenelson <isaack@android.com> Options Menu layout changes

Show correct buttons for each tab
Show correct buttons for contact viewer and editor
Removed ContactOptions activity and now showing ringtone picker
directly.
Removed all "contact options" from XMLs.

Bug: 5062002

Change-Id: Ic52eaacdc5d9b5aab55fde37181c6ad6d7154b74
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactOptionsActivity.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactLoaderFragment.java
3e6991e5ee91ea2cc82a02bd3ea4ed7e941b08af 24-Jul-2011 Makoto Onuki <omakoto@google.com> Add UI for the "invite"

- Add "More networks" button to the contact card networks section,
which opens the list of invitable account types in a popup.
(This "More networks" section reuses NetworkTitleViewEntry.)
- The list popup uses the same layout as the account selector
- Updated the account selector layout according to the rough visual
spec. Removed the tablet variant, as we use the same layout
on the tablet too for now.
- Sends the invite intent when a type is selected.

Bug 5061956

Change-Id: I0a62126a0cf4ffeecc1a7263b124d00201b67e21
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/util/AccountsListAdapter.java
458627bdb10df6d7b0e3fb13e72cf97f96b6358a 26-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Change the search UI on 2-pane"
21ef0f741f869669862fc3122a424edac97f4df4 26-Jul-2011 Flavio Lerda <flerda@google.com> Fix copyright header.

Change-Id: I480c209535ebad22c09c147b8262cd558cfce522
ndroid/contacts/calllog/IntentProvider.java
92b9f1dfc1a7a4d5b97582332e7baf6c853adfd5 26-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Change the set of calls in the NEW section."
bed71bedbaae4d6b26b2b64db476bffa710753e5 26-Jul-2011 Makoto Onuki <omakoto@google.com> Don't execute Runnables after host activity is destroyed

Use Activity.isFinishing() to detect if an activity is (or will soon
be) destroyed.

Also use FragmentTransaction.commitAllowingStateLoss() instead of commit()
in ContactDetailLayoutController.initialize(), which can be called from
Handler.post().
(And removed TODOs related to this.)

Bug 5032952

Change-Id: Ib5598a3e0a94adeaafd0497ac54518f2c6634603
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ffb45de77c1c51214b5baa0eb6f59a7801cfcbaf 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Non-editable group page

- If the group membership cannot be edited, then show
a warning message, gray out the group name, and
remove the "delete member" buttons.

Bug: 5070780

Change-Id: I9213c7eff2237d153c60bb8842515fe404053701
ndroid/contacts/group/GroupEditorFragment.java
534bbe20a73efa699232d74588f8285e432ef430 26-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Fix NPE introduced in I94687ad1"
a46c12688b3b900fb92922d160a11e82a1d6566a 26-Jul-2011 Makoto Onuki <omakoto@google.com> Fix NPE introduced in I94687ad1

Bug 5076892

Change-Id: If6af5ad63188c3c36e7ffacb4b7dff65c11a6207
ndroid/contacts/list/DefaultContactBrowseListFragment.java
0cd85b36f08bac6f7c72e1465b52a1d0d8a7cb3b 26-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Set CLEAR_TOP for "HomeAsUp" button in phone settings"
3b6a40e15a3555cb7f5ee19da89c600fd42ea979 26-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Don't show the filter header in search mode"
1866a071adb9a64112524b2f4836766f7e655123 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Use group count per account column for group list

- Show the # of groups that fall into a specific account name and account type
- Make sure group count does not get cut off on phone portrait
by ellipsizing the account name if necessary

Bug: 5039532
Change-Id: I0420ad426cdd189313d710931339fb06ec766607
ndroid/contacts/GroupListLoader.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupListItem.java
914e8a18c41cfea1df45a57da12194351c64764c 26-Jul-2011 Makoto Onuki <omakoto@google.com> Don't show the filter header in search mode

Bug 5042768

Change-Id: I94687ad150dd5b017de997694ffb1de51533bfcd
ndroid/contacts/list/DefaultContactBrowseListFragment.java
39256cd2c09b6d2db55c8482b86525d4528b47da 26-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Use a "dash" for a phone number that we cannot geocode."
30d3c9881386470eed6adb72ebb3cfebfe7400ee 25-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Make LIST_XXX intents open corresponding tab"
5267367e202dcb39ef0fe912a7be9209548ec436 25-Jul-2011 Makoto Onuki <omakoto@google.com> Change the search UI on 2-pane

- Don't always show the search view. Instead, show the search icon as an
option menu.
- If the icon is tapped, show the search view.
- Don't show "Searching all contacts". Just show the search view right
next to the app icon.

This simply means to use the 1-pane search UI on 2-pane as well.

Bug 5055536

Change-Id: I9a4b16048285cd30975bcb2bae5ec3d01d15f20e
ndroid/contacts/activities/ActionBarAdapter.java
cc7c08ae4e16eb2d9305c0a564bf171b99e7cdc9 25-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Fixes play button for voicemails in call log."
be45e0f3d9ba9b0f842174d857a99edeadc0136e 25-Jul-2011 Flavio Lerda <flerda@google.com> Use a "dash" for a phone number that we cannot geocode.

Bug: 5073215
Change-Id: I19f79a658cb19abd95e0b6b35f9602c1810faaad
ndroid/contacts/PhoneCallDetailsHelper.java
dccafea7af338e1e8ec94170b0e28d22a4c1bfa0 25-Jul-2011 Flavio Lerda <flerda@google.com> Fixes play button for voicemails in call log.

Bug: 5072527
Change-Id: I5a3e61811483f6658668c5ee704dbe07d0107bec
ndroid/contacts/calllog/CallLogFragment.java
ea14605e56c98fcaa93f2f1e4186ce9db5e2f159 25-Jul-2011 Makoto Onuki <omakoto@google.com> Make LIST_XXX intents open corresponding tab

Also, make Contacts Intents send the correct intent for LIST_DEFAULT.

Bug 5071627
Bug 5073681

Change-Id: Id28f85c0adef085417472c2211c29bcd5193aa58
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
6a3515380fb0658c7e07c3569054646b8473fa3e 25-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Enable smooth scroll on tab select

Bug: 5073629
Change-Id: Ie92c01ee11ddfad756e918bc0dee364f7eb125bf
ndroid/contacts/activities/DialtactsActivity.java
9e85e53e99c61a6a7f90ab8c1ab2e61017cbfde2 25-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Added header to frequently contacted in people for tablet."
ae221f1da4d6d86c3620f1217038be442ff37edb 21-Jul-2011 Flavio Lerda <flerda@google.com> Change the set of calls in the NEW section.

We have introduced a IS_READ flag in the call log that is used to
determine which entries (specifically voicemail) have not been marked as
read by the user.

Items with IS_READ set to 0 should be placed in the "new section" of the
call log, together with those calls which have the NEW flag set, i.e.,
which are unacknowledge by the user. Unfortunately the terminalogy is a
bit misleading since the NEW field is an existing field in the call log
content provider and its name cannot be changed.

This commit updates both the query used to generate the list of items in
the "new section" and "older section," as well as the query used to
reset the new calls flag. In the former case, we used to reset the NEW
flag only for missed calls, while now we reset it for all types of
calls, making the treatment of the NEW field overall more consistent.

Bug: 5036195
Change-Id: Ib777179a623b5cc97a1f7864cdaca8b5d6b468e9
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
f79afe68d7423aa741ee0447b04091b136bc7aed 25-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show Contacts icon in Phone UI"
012641e5f2b5d7d768824bdbf6f90a87c52b1ceb 25-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Disable quick contact badge for unknown contacts."
d1cac908706366a50bd3ffd71f90334bf812792f 25-Jul-2011 Hugo Hudson <hugohudson@google.com> Voicemail ui indicates both time left and playback speed.

- Playback time indicator has changed from current position in
voicemail to time remaining.
- This same text view is also used to briefly display current playback
rate when playback rate buttons are pressed.
- Unit tests to show that this logic works.
- This cl introduces a new class whose job is to handle the transition
between the different text states.
- Fixes a crash when we might release the player before the last
update gets the duration from the released player.
- New test method to fetch a text view's content on the ui thread.

Bug: 5044075
Change-Id: Ie3cf6e58c1a0139edb78cf3564a8aec94512156f
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
4d44e6233858a8d3ad9019ac69ec8102ce3fcb3e 25-Jul-2011 Flavio Lerda <flerda@google.com> Disable quick contact badge for unknown contacts.

Bug: 5010334
Change-Id: I864ccf2e0f606bf3d2a9dafa886284d3bc792d21
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemViews.java
e414f6478fac365a75eb37a1ba149d02b2d8c850 25-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Introduces a Listener for CallLogQueryHandler."
8bb6f6f952009d5c4e2c9ea582c960c305255ed0 25-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Show type OTHER again"
2179037e606ef55fa2d6bfa009371eaa522906f1 25-Jul-2011 Daniel Lehmann <lehmannd@google.com> Show type OTHER again

Bug:4689649
Change-Id: Ia513a3be6cb1a6ede92533afe430c8b1ad1d845f
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/BaseAccountType.java
b7ae952816e330e4e1f7e148df1b6dbb52f28f5a 25-Jul-2011 Katherine Kuan <katherinekuan@google.com> Make "up" button different from "back" button

- Explicitly go to PeopleActivity when "up" is pressed
- Use flag FLAG_ACTIVITY_CLEAR_TOP to prevent having
PeopleActivity multiple times in the back stack
- Use PeopleActivity.class because we don't want to use
a URI like LIST_ALL_CONTACTS otherwise it will switch
the tab or the account filter that has been last set
by the user

Bug: 5071475
Change-Id: Id6f768db3838fa0bc007feda89a92e3d36c8a694
ndroid/contacts/ContactOptionsActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/list/AccountFilterActivity.java
3781fc9c09110a82197aaf22d836089feb1088ac 25-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Style external raw contacts editor"
5192d33799bd439aba420d1bf26d766f35dff3c4 25-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix photo + basic contact info header on tablet"
9bd85b3ecd9129feb2f317784a3d8023aa211d42 24-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix photo + basic contact info header on tablet

- Fix these cases:
* On tablet landscape, for a contact with social updates, the name
has to be displayed to the right of the photo.
* On tablet landscape, for a contact without social updates, the
photo must be static and the name should scroll with the list of
details

- In order to support these cases, specify the header of the list
in XML in the case with and without social updates, otherwise there will
be a lot of boolean flags and unnecessary views inflated

- There still needs to be a flag in the tablet landscape view
because the ContactDetailFragment is reused for both cases where the
contact does and does not have social updates. The static photo
must be explicitly hidden in the case of the contact with social
updates because it will appear in the scrolling header. This flag
must be set outside the ContactDetailFragment b/t the phone
landscape view has a static photo that is shown regardless
of whether the contact has social updates or not.

Bug: 4689488

Change-Id: Ifea16c48496b8552b313a05cbb8ade80ae117069
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ea1c3a50874de0e1c34df7a3bd650fb64538f04d 24-Jul-2011 Katherine Kuan <katherinekuan@google.com> Use group summary URI

- This is part 1 of showing more details in the group list.
This CL just uses an existing group URI and sets up the
UI to read from a cursor as the user scrolls the list
(instead of reading the entire list and storing it in memory)
- Include count of # members in a group as a subtitle for
each group
- Include the header as an optionally visible part of the
list item because we don't know how many groups are in an account.
Only show the header if it's the first group in an account.
- Refactor some of the code to make it simpler

Bug: 5039532
Change-Id: Ie01fd005416992c4a1b4d89a1591942dc601c894
ndroid/contacts/GroupListLoader.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupListItem.java
d96056c46dd7ef6f6ee4a252afbe7c5345ab6dae 24-Jul-2011 Katherine Kuan <katherinekuan@google.com> Style external raw contacts editor

- For non-editable contacts on phone (no UX mocks for tablet)
- Move views around, change string / text color, remove dividers
- TODO: Make all data fields from that raw contact grayed out

Bug: 5070780
Change-Id: Ie799da2d148426dd7b1fbe2c76f0617ad2663f76
ndroid/contacts/editor/ExternalRawContactEditorView.java
eac83eceab3b0dd0aa6d2a12f232733926753078 25-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Use ActionBar in call log details activity."
c73d43f34d08fdcb58205f40981ad56958c2b811 25-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Updates to visual design."
d44e83a5f1bddfb7e6fc9f86f603f44afa0996c5 25-Jul-2011 Flavio Lerda <flerda@google.com> Use ActionBar in call log details activity.

This replaces the temporary mock that I added earlier on.

It also gives the action bar home button the correct semantics: it now
always goes to the call log, no matter from which context it had been
opened.

Bug: 5071264
Change-Id: I0324bb91bbd003b46574ec4e422eaed66fa176b3
ndroid/contacts/CallDetailActivity.java
405695664582b4989cffcf054bf1aceb83dec437 22-Jul-2011 Flavio Lerda <flerda@google.com> Updates to visual design.

- Use sizes from spec.
- Show only contact name in call details header.
- Add spacing between contact icons.
- Updates a few assets.
- Add contentDescription to a number of elements.
- Use @dimen instead of ?attr for dimensions.

Bug: 4989127
Bug: 4989128
Bug: 5039572
Bug: 5038409
Change-Id: I3a59af44c77f739185feef39afd57193b5e0176a
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
ndroid/contacts/calllog/CallTypeHelper.java
c234d2573ee41f7056c9886ccbcbfa453071fed5 24-Jul-2011 Makoto Onuki <omakoto@google.com> Merge ""Invite" part 2"
7a482ce1b7a8a4290f085f7445b3495bceb32b58 24-Jul-2011 Frank Sposaro <sposaro@google.com> Added header to frequently contacted in people for tablet.

Bug: 5063866
Change-Id: Ie3b7b852d06cf0ae933c0df574771ded4fa41607
ndroid/contacts/list/ContactTileAdapter.java
da4c8c725b0e9a2bb7228fb9444cc74268c89f61 24-Jul-2011 Flavio Lerda <flerda@google.com> Introduces a Listener for CallLogQueryHandler.

Change-Id: Ib009a1a20a708ee94e203cae1dc5a3307f10e1fb
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
045bc7f5d03bbe5947597d39b5ac77387425df7e 23-Jul-2011 Katherine Kuan <katherinekuan@google.com> Add status message to contact list

Bug: 5070817
Change-Id: I230c7cf7c4f0f6931fa6ddac4cddc9d3741835e9
ndroid/contacts/ContactStatusUtil.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
723fc3b421ce87cd358dbcb107c2d01efe84d0c4 23-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove illegal state exception entirely"
d0599f9b4fc342e889ef923380b12e09637f2dce 23-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Clear field if try to delete last field in section of contact editor"
595d6ea70e5d557b78b5e9f13019f2c4cef99f0e 20-Jul-2011 Frank Sposaro <sposaro@google.com> Added presence and status to ContactTiles and frequents.

-Added status string: "available, busy, away, etc.."
-Cleaned up XML and refactored styles

Change-Id: I66f45c93502ff01849ace1ede7e694e9dc6165b7
ndroid/contacts/ContactTileLoaderFactory.java
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
2293e55d550fbc9974d1185960715e59acb14a85 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Clear field if try to delete last field in section of contact editor

- Don't remove the field if it's the last field in the section,
just clear all EditText fields in that editor

Bug: 4382255
Change-Id: I2b436fbe895e5cc52770eefedaa2bc5f9726605f
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhotoActionPopup.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
09a33b4056235885f330a3312afd059dc8465f6d 23-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove illegal state exception entirely

There's no easy way to tell if the id is invalid or not, as the
id may come from outside the fragment if we're using ViewPager.

DialpadFragment on the other hand ignores unknown ids. Let's ignore
it here too.

Bug: 5067067
Change-Id: I7b4ef764beca526baf6d72d47ca5d4d0094e32e9
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
d1f97397aaed0481f2c1303d67d383dc6e0030dd 23-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show Contacts icon in Phone UI

Bug: 5063707
Change-Id: I689003f234d885527f2c07f0cff2161256e15b7d
ndroid/contacts/list/ContactListItemView.java
53fa6ef138f831a5a510d759a752d5101a256dce 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Remove account name and icon in group list item

- Redundant info that is already in the list header
- TODO: Still a bunch of work left on how to display
group members and photos

Bug: 5039532
Change-Id: I615144499052028b0f479bc02594b579ba689d32
ndroid/contacts/group/GroupBrowseListAdapter.java
69b4a886bdc8e36b7529122b5a97d9e4fd1ddf11 22-Jul-2011 Makoto Onuki <omakoto@google.com> "Invite" part 2

- ContactLoader now loads invitable account types, which are account types
that supports the invite feature and don't contribute to the loaded
contact.
- Add AccountType.DisplayLabelComparator

Bug 5061956

Change-Id: Icadffac9e5e3b739e70f59d709cfdd67909c9a41
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
402d5c9ccd5d07aca67618de76ddf24d1a9a0e46 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix "Add new" strings in contact editor"
147618fa21a2ed187e79aa2eb0414d5f9170310d 22-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Set CLEAR_TOP for "HomeAsUp" button in phone settings

Change-Id: I1d833c18f871f08b4235fc633f4ee615a4d1024d
ndroid/contacts/activities/DialtactsActivity.java
36b27c6289a2e28db5dc7554762106d17437ecf3 20-Jul-2011 Isaac Katzenelson <isaack@android.com> Redesigned ContactListItemView

Change-Id: I6ebbf3e534b4a728d3af0de21ec337d65d8fb59f
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
bcdbc17360815d661be5d4876b12e74104aa77f2 22-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix IllegalArgumentException problem"
c453973cad5b49a43fae28c1b1ce9e16fe29c03a 22-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix IllegalArgumentException problem

onOptionsItemSelected() will be called with menu_call_settings_call_log,
which should be just ignored.

Change-Id: I93cc049159afbd8ddabeb1d06a29e443f6acbf63
ndroid/contacts/calllog/CallLogFragment.java
94d7bab07a69efbe5a383affec95d1d9ba9dc203 22-Jul-2011 Flavio Lerda <flerda@google.com> Move delete and edit number to overflow menu.

Bug: 5035685
Bug: 5036100
Change-Id: I503d0bcf978b34aa559d517ff8d693b597121703
ndroid/contacts/CallDetailActivity.java
8206d115bf59bbaa62347eb58bcdd2eb168bc18c 22-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Stream items UI."
08660261119086d0731eef7fc6d2a16ba3b95e97 22-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Implement filtering of call log."
6fb5cda6f0ade18840f2a28ac2ccc323d909e5b5 22-Jul-2011 Hugo Hudson <hugohudson@google.com> Merge "Remove "Remove from call log" from menu for voicemails."
398e3805b4278310250e5fd1007e2e73b9453d0f 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix "Add new" strings in contact editor

- Instead of using type-specific strings like "Add new
phone number" just use "Add new" since we have labels
for kind sections now.

Change-Id: I0e386ae29330193fec18b62f3949c46e095a872c
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
9959f0c9a7ee91490ecc1f9023c0012855363fe8 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Modify action bar for contact editor"
6be61c5d351099f24904396e97d5954de7b771e1 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Default fields in contact editor"
41ce70d44d86b9d811e727b3bb4b44c137a189b6 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Organization field expands when tapped"
13cc7c59d540608a2f1c68be0a31a0560392e0ae 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Default fields in contact editor

- Remove website and notes as default fields that show when
you create a new contact

- Don't allow "Add another field" button to add fields for
sections that are already visible (i.e. if website section is
visible, then "website" won't show up in the popup menu)

- TODO: Handle the case where there are no more fields to
add, need mocks from UX

Change-Id: I3b0929ebf69c93b60220c75c0b00b72cf5b2aa83
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/RawContactEditorView.java
9b3dfd0bc36568558bfdc32a5d4c30f2d0df5fed 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Modify action bar for contact editor

- Use custom action bar for "Done" button (hide app icon and
get rid of "up" affordance")
- Move "Cancel" into the overflow menu and rename it to "Discard"
- Remove "delete" button from overflow menu in editor as specified
by the UX mocks b/c the user can delete the contact in the
contact card already

Change-Id: Ic389983a08a7b03fa24e7f4c1c37c95bd6c1c9fa
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
d52e2ae994abf628a62175d034fdefa003d87f11 22-Jul-2011 Flavio Lerda <flerda@google.com> Implement filtering of call log.

This commit adds a menu options to filter the call log to show only
voicemails.

Currently the list is reset whenever the user switching to a different
tab or activity, in fact any time the content of the call log needs to
is refreshed.

Bug: 5035665
Change-Id: I7e412b02e08f8d7a15abc2ea1897b726f30bf1de
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
3915600d2b0ff499e0129e951dfd39bff46b2f42 19-Jul-2011 Dave Santoro <dsantoro@google.com> Stream items UI.

This is still pretty rough at this point, and does not fully implement
the UI. It handles loading in the stream items and photo metadata in
the contact loader, and displaying those items in a scrollable view
in the updates pane.

Change-Id: I3e796a6141ffa385aa2acc769cf6dd11f37aa39c
ndroid/contacts/ContactLoader.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailHeaderView.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/util/StreamItemEntry.java
ndroid/contacts/util/StreamItemPhotoEntry.java
a66642330b5c4a62c8b7ce438ccff57c3b017eb1 21-Jul-2011 Katherine Kuan <katherinekuan@google.com> Show more fields above the keyboard in contact editor

- For the phone
- Small visual fixes that will allow as many fields as
possible to be visible when the keyboard is up
* Smaller icons, fonts
* Change some colors
* Remove the "+" icon
* Make address field default to min height 1 line
instead of 3

Bug: 4382255

Change-Id: Icc665c866e4c1cfaa0ba8de7dae9a0c1cbd1b575
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExchangeAccountType.java
157dde190ff8f158dac60495c3b3b4ab2847e764 22-Jul-2011 Hugo Hudson <hugohudson@google.com> Remove "Remove from call log" from menu for voicemails.

- When looking at a voicemail we shouldn't remove from call log, because
we can just hit the trash button.

Bug: 5054103
Change-Id: I97c5870f12a7d495d2c49bb94f0795a1b3e12f9e
ndroid/contacts/CallDetailActivity.java
3fa75acf99f5245eae00c77086ff130b3552ceec 21-Jul-2011 Katherine Kuan <katherinekuan@google.com> Organization field expands when tapped

- In order to show as many fields as possible on the
contact editor, we collapse the editor into a button
that only expands the EditText fields when tapped
(collapsing is not possible unless the user exits
the editor).
- Add an isEmpty() method on the KindSectionView
so we can distinguish between a contact with existing
organization info versus a contact who has an empty
organization field

Change-Id: Iff818c30422c96d1acf6a03cbbcfb6f17bfed106
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/RawContactEditorView.java
8f417593eddb148c6a43a019d8c16c24e6d9a407 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Contact editor fixes"
a94859f61c216d4e137a631995026d3ddefbbf70 20-Jul-2011 Katherine Kuan <katherinekuan@google.com> Contact editor fixes

- Bring back data kind titles
- "Delete" button should be invisible not gone
- Make field + spinner horizontally stacked instead of vertically
stacked on phone
- Don't show account header if editing an existing contact that
only consists of 1 raw contact

Change-Id: I7dd4bfdf273eeaccca8399d182c0a56a6e23a8c7
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
515f9d178d60dc52e5474f78d5f08efcebe9238d 19-Jul-2011 Katherine Kuan <katherinekuan@google.com> Add account type and icon to networks section on contact card

- Indent the details under the network section for a specific
account type

Change-Id: Iba92d79aa2c97dad589a178ce15779ecb433b011
ndroid/contacts/detail/ContactDetailFragment.java
93f625d8f2825575b4f63f4cf78ecbb7b56354eb 21-Jul-2011 Katherine Kuan <katherinekuan@google.com> Don't commit transactions after onSaveInstanceState()

- On the tablet portrait view, once the contact details are loaded,
a runnable is posted to a handler to properly setup the fragments
(by showing/hiding the ContactDetailFragment or ViewPager/Tab carousel)
- Since it's posted to a handler, we need to make sure that
onSaveInstanceState has not already been called or at least allow
the fragment transaction to be lost if it has been
- Prevent the runnable from doing anything if the activity is already
destroyed

Bug: 5011890

Change-Id: Ib43278f21eee390202ffe4b7ed4057482c34e61c
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailLayoutController.java
a0f598523bece50f24395a648f5cabd88efcaa5e 21-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Add fields to AccountType for the new "invite" feature"
9aa9e846dec6c2958be6ce120e138e484fdba330 21-Jul-2011 Makoto Onuki <omakoto@google.com> Add fields to AccountType for the new "invite" feature

- Add two attributes, inviteContactActivity and inviteContactActionLabel,
to the contacts.xml file, in addition to the existing ones such as
editContactActivity.

e.g.
<ContactsAccountType
xmlns:android="http://schemas.android.com/apk/res/android"
inviteContactActivity="com....editor.InviteContactActivity"
inviteContactActionLabel="@string/invite_action_label">

- Add two methods to AccountType to obtain the new attributes.
(getInviteContactActionLabel() will return a localized string)

- Add AccountTypeManager.getInvitableAccountTypes() which returns
AccountType's which define the invite activity and have one or more account.

Change-Id: I545b47a7e4957765684314870739085ea0355a98
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/ExternalAccountType.java
89daed4d7c7469992c64a0780f9d2f925b22a88f 21-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Update view when a contact is removed."
6afac70502f15c12b60960bfbebbc97c7dd8236c 21-Jul-2011 Hugo Hudson <hugohudson@google.com> Merge "Fix crash when altering rate for voicemails without content."
757aa55194ba962c71feabe99d47b3021c3f294b 20-Jul-2011 Hugo Hudson <hugohudson@google.com> Fix crash when altering rate for voicemails without content.

- Repro for crash was to click on voicemail from call log without
content, try to play it (which would silently fail), then try to
use the rate increase/decrease buttons.
- The error being reported to the ui was disabling all the ui elements
but not the rate buttons.
- This fix makes the ui disable the rate buttons too, as well as showing
a Toast, and logging the exception to logcat.
- This cl also adds the unit tests that prove that the bug is fixed.
- In the process, I discovered another bug where missing extras from
the intent used to start the CallDetailsActivity could cause a crash,
so this adds a test and a fix for that case too.
- Also introduces IntegrationTestUtils class, with some useful methods
for doing things like clicking on different parts of the ui.

Bug: 5047879
Change-Id: I46d18723fe783a7a820446e1e13e19b5af82fa5c
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/CallDetailActivityQueryHandler.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
58c0ee5731e9a802f0d811f6ecfc9e75fbdfd4e9 21-Jul-2011 Flavio Lerda <flerda@google.com> Update view when a contact is removed.

The existing code did not update a contact if it was already in the
cache and it was not find by the update query: this means that when a
contact is deleted or a number is removed from a contact, the call log
will not get updated until the entire data is invalidated.

This commit changes the way this is handled: extract two helper methods
for looking up SIP addresses and phone numbers; these functions will
return null in case an error occurs, but ContactInfo.EMPTY if no contact
is associated with a phone number. The returned info is used to update
the cache, even if no match was found, making it possible to update the
call log contact information when a contact is deleted or a phone number
removed.

As a further optimization, this code also takes care of only requesting
a redraw if the contact information has actually changed. This requires
a new equals method (and matching hashCode) on the ContactInfo class.

Bug: 5055883
Change-Id: I2cd930ca8dc935f62a43988abde44cd62cc99a1c
ndroid/contacts/calllog/CallLogFragment.java
d31ffa6b0358f3de0292e97e960852f1dc6a5774 21-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Remove the call button area if we cannot call."
4d8b1ad49cc1ab1a65c03969cab28cc84525ab43 21-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Updates grouping behavior for the call log."
ae8908d2ebcb839000dbf52388f99de5df94560b 21-Jul-2011 Jeff Hamilton <jham@android.com> Merge "Allow importing vcards directly from NFC."
6fb088eca53d723edb4ea0803751eff484c9ae8b 20-Jul-2011 Flavio Lerda <flerda@google.com> Updates grouping behavior for the call log.

We are now using the following policy:

Voicemail and missed calls are grouped with following missed calls (not
voicemail) from the same number.

Incoming and outgoing calls are grouped with following incoming or
outgoing calls from the same number.

Bug: 4968671
Change-Id: I304baca0c02e10e9cbee1c9b01a573e28738fa2a
ndroid/contacts/calllog/CallLogGroupBuilder.java
33b28a1fc0e8ca5c2c285655d0ed8bd0dc275600 21-Jul-2011 Flavio Lerda <flerda@google.com> Remove the call button area if we cannot call.

If this is not a voicemail, then the whole call button area is empty and
there is no need to keep that around. Instead, extend the text area to
the right of the screen.

If there is a voicemail, keep the empty call button area for visual
consistency.

Bug: 5056506
Change-Id: Iaad9228ad6dcc67ebcd8a893ca0383fa595376e4
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
80183e5cbf339ddba0f92265185b4ca68291e47d 21-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix Options Menu buttons"
789bc596877861da26ca862c699a269783d8d42a 21-Jul-2011 Isaac Katzenelson <isaack@android.com> Fix Options Menu buttons

Rename settings to display options
Remove "contacts to display" in search mode

Change-Id: Iafe03965aee27373dde7612fcb6c0852e49e83f4
ndroid/contacts/activities/PeopleActivity.java
e967f7cb12e02f7c852670c315a284aed1310dc1 30-Jun-2011 Jeff Hamilton <jham@android.com> Allow importing vcards directly from NFC.

There is no longer a need for a content provider
to hold the vcard data, it is processed directly
from the inbound NFC intent.

Upon successful import the contact is opened.

Change-Id: Ib49305d36d2448097af60206eab49133ebca655f
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportRequest.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
5cc94b4952167973e0467f4b3ff81e33fbf19108 20-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Do not expose parsePhoneNumber in PhoneNumberHelper."
ebef7717c62e15d69c0965ec7a56c4f16341dff3 20-Jul-2011 Flavio Lerda <flerda@google.com> Do not expose parsePhoneNumber in PhoneNumberHelper.

Instead, do the call within getGeocodeForNumber, so that we have a
single call now that we need to make asynchronously.

Bug: 5046550
Change-Id: I54fddefa3f7c8d29bcd60b0d96162211f90520c9
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/PhoneNumberHelper.java
0ddb32281bf597170c78fde87abbbaca148ef2a9 20-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Implement sticky tab"
b62747a3451d5474c073120426dbb11f61badfd4 20-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Do not allow adding contracts for private numbers."
35d4aec605ce915ff5c574892a2069a37e0b9a77 20-Jul-2011 Makoto Onuki <omakoto@google.com> Implement sticky tab

Remember the last selected tab and open it when the app starts.

Bug 5046301

Change-Id: I94a11b3397181b09f72e91c20bf451e7ac8eb5ed
ndroid/contacts/activities/ActionBarAdapter.java
727f1222e681a91ac96a41c7ac92da4e92bf8e54 20-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "(1-pane) Do smooth transition when switching between tabs"
41164239bf48685394b1aff7b807ea8983feda81 20-Jul-2011 Makoto Onuki <omakoto@google.com> (1-pane) Do smooth transition when switching between tabs

Bug 5044832

Change-Id: I574549ac5a55a45008f0c3d77dfe0225cdccef73
ndroid/contacts/activities/PeopleActivity.java
01358ef6f7e39a160c8df816108bf8c7d6fbecbb 20-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove "new group" button when there are no accounts"
b21fbb626ddca247910b2445c86447c88c58c6bf 20-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Added empty states for ContactTileList."
37efa3aeea2e26fdee640b797efc39279500c4da 19-Jul-2011 Frank Sposaro <sposaro@google.com> Added empty states for ContactTileList.

Change-Id: Id1f90d994059f6ba8193129e7e552a632516364d
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileListFragment.java
8e403405937be21cd1cc0d2fa60f824a697cf39c 20-Jul-2011 Flavio Lerda <flerda@google.com> Do not allow adding contracts for private numbers.

Some call log entries do not have an actual number available. In those
cases, do not allow adding them as contacts, because that would lead to
a contact with an invalid number.

Bug: 5051868
Change-Id: Icc64f9714d7fd3fd6f985c4663dd937648980ae4
ndroid/contacts/CallDetailActivity.java
63ac587e3495feb4ab5bc6acdc07cae53de635a7 19-Jul-2011 Flavio Lerda <flerda@google.com> Dismiss missed calls when the call log is shown.

The notification used to be dismissed by the CallLogActivity. Now that
that class is no longer used but the CallLogFragment is used instead,
add the dismissal in the fragment.

With the fragment, detecting when the code is being shown is a bit more
complex (it takes into account both onResume and onVisibilityChanged).

Bug: 4521535
Change-Id: I01af5b3ab0e1e66e9b90d93b4957c0dff9816603
ndroid/contacts/activities/CallLogActivity.java
ndroid/contacts/calllog/CallLogFragment.java
c147e8826c0bb87b43d270e490117292d41b08ef 20-Jul-2011 Debashish Chatterjee <debashishc@google.com> Merge "Changes in CallDetailActivity to show voicemail status message."
0cb8224a32bd956f6052e6eecc96720711bf6bfc 19-Jul-2011 Debashish Chatterjee <debashishc@google.com> Changes in CallDetailActivity to show voicemail status message.

- call details page now show a voicemail status message if the call in
question is a voicemail and does not have audio available.
- moved VoicemailStatusHelper and related classes into
contacts.voicemail package as it is used by CallDetailActivity as well
as calllog.CallLogFragment

Bug: 5040099
Change-Id: I9ad0c1fb60526ef55d7f38dbd2157b14af9d5b55
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/CallDetailActivityQueryHandler.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/VoicemailStatusHelper.java
ndroid/contacts/calllog/VoicemailStatusHelperImpl.java
ndroid/contacts/voicemail/VoicemailStatusHelper.java
ndroid/contacts/voicemail/VoicemailStatusHelperImpl.java
3ddbafed601cc99aa46daab34d5afb017c87fd61 20-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Delay computing of PhoneNumber as much as possible."
5649a12fe551855f00c8dbeacfc96511c2a5fb71 20-Jul-2011 Katherine Kuan <katherinekuan@google.com> Go to contact card after editing

- In PeopleActivity, get rid of startActivityForResult to launch editor
because the editor will take care of launching the
contact card itself (instead of relying on the PeopleActivity
in the tablet to reload the contact details)

Bug: 4769324
Change-Id: Ibbaaccb03ac7961784dfa7b15c246b8d6f6489a4
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
7b827b27547ae53c5ba9ed5e0d06a1d6b00e5b8d 20-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix group editing buttons"
49917b3ed3272dd0e26112d8403a3891fbc48ce1 20-Jul-2011 Isaac Katzenelson <isaack@android.com> Remove "new group" button when there are no accounts

Bug 5044446: Crash in People app while tapping group icon
When starting the People app with no accounts with at least one
contact, adding a group throws an exception.
To prevent the exception, I removed the "new group" button when
there are no accounts on the device.

Change-Id: I6ef6a34a57b0ca18a22bb5d4686442ca15546a7c
ndroid/contacts/activities/PeopleActivity.java
e962aaf7c3d00baa27cd8f1965e00aaf7c13e557 19-Jul-2011 Isaac Katzenelson <isaack@android.com> Fix group editing buttons

Removed rename button from XML.
Added a variable to store the "is read only" status.
Hide the delete button if the group is read only.

Change-Id: I758114355c81d98df2e326c7f3511a67caf3c438
ndroid/contacts/group/GroupDetailFragment.java
fbac52efa6d07113b6758cf1cb1f19c68c42c7e6 19-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "ContactTiles are using new phone only Uris."
0c07935a3d838ed24db7d20df839be97fe4c625a 19-Jul-2011 Frank Sposaro <sposaro@google.com> ContactTiles are using new phone only Uris.

Bug: 4904403
Change-Id: Ib597ceee7f26ca77f8e5f050bfbfccd421a675a5
ndroid/contacts/ContactTileLoaderFactory.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileListFragment.java
56b428b2f8921142cebd2a0822e4aa4aa122c9c9 18-Jul-2011 Katherine Kuan <katherinekuan@google.com> Group header for group list

- This will probably all go away once we have a new
URI to load the group list
- Make hash map of account name to groups be
Account object mapped to groups
- Header should display account type, account name,
and # of groups

Change-Id: I079b02a214cfeeec5c89583647219b2192c62d40
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
39e966af4e2dcec568ae8176738f9370533f0b87 19-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Add tests for CallLogGroupBuilder."
703cda7119b710446f7abc38843043b7cbbf3a47 16-Jul-2011 Katherine Kuan <katherinekuan@google.com> Show group source on group detail page

- Show group source button as:
* scrolling header item in ListView for phone portrait
* non-scrolling header outside of ListView for tablet landscape
and portrait (b/c can't addHeaderView on ListView after
the adapter is set and we reuse the GroupDetailFragment
on the tablet)
* custom action bar button in phone landscape
- Tested by inserting an action and action_uri for one group

Change-Id: I29abad130dac57e3077fd4f3e546a451f579b394
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupDetailDisplayUtils.java
ndroid/contacts/group/GroupDetailFragment.java
d829ea489ceca9911278be1b311538bf15b63546 19-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Show only "UP" on contact details."
b43065d166129f0b36ed758e00469b689d1f7b29 19-Jul-2011 Jesse Wilson <jessewilson@google.com> Merge "Don't log a potentially null message string."
13fd2d99efcafa86c117855aafaf9fca445d38db 19-Jul-2011 Makoto Onuki <omakoto@google.com> Show only "UP" on contact details.

USing action bar's new mode. In this mode, you can tap either
the "UP" or the title area.
(There's an issue with how the area is highlighted when you touch it,
but it's a framework issue which should be fixed when they get
new assets: b/5049406)

Change-Id: I2edc60708688cbab77aab070a034eea6880e52d5
ndroid/contacts/activities/ContactDetailActivity.java
7fc3ddfeaa861535d141d42960804076a051a36b 19-Jul-2011 Jesse Wilson <jessewilson@google.com> Don't log a potentially null message string.

Change-Id: Ibdc7f6926c5217d045b648c7ad73589b3ab3cb54
ndroid/contacts/vcard/ImportProcessor.java
bd33fb30baf69ab42b058a4d16879b52d38397ff 19-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Fixed Crash in ContactTileAdapter"
494fa709c19ab9df9af1e6de75ac9583051519b0 19-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Keep the search result after orientation change"
c0e63d5046294338a3c14f7a2bb3fc4d897ec5f8 19-Jul-2011 Frank Sposaro <sposaro@google.com> Fixed Crash in ContactTileAdapter

-Index was -1 if ViewType was STREQUENT and no frequent contacts
were on the device.

Bug: 5045064
Change-Id: Ib527c91a7ab897a14444e6fa454111d6100a540e
ndroid/contacts/list/ContactTileAdapter.java
9c466374c2cb5371197334bde701dc8f452ebf03 19-Jul-2011 Flavio Lerda <flerda@google.com> Delay computing of PhoneNumber as much as possible.

Computing PhoneNumber is an expensive operation. We want to make that
asynchronous and it is currently only used together with the offline
geocoder, which also needs to be asynchronous.

Therefore, delay the call to generate a PhoneNumer until it is actually
needed, i.e., at the same time as computing the geocode. This means we
only need to make one call asynchronous instead of many.

Change-Id: Iebebf098be713281b2976c72506e480466fb65d4
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogFragment.java
7533282d831b5adb59d2e579ba9901535288bd89 19-Jul-2011 Flavio Lerda <flerda@google.com> Add tests for CallLogGroupBuilder.

These tests are not extensive as I am going to change the actual
grouping logic in follow-up, so I kept these limited to really simple
cases that will not change in the follow-up.

Change-Id: I830f47c297abb783247696a4f65f569b74282e43
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogGroupBuilder.java
ndroid/contacts/calllog/CallLogQueryHandler.java
92a26f3d90c3ef3fd24e45d6c6d594ea57054427 19-Jul-2011 Flavio Lerda <flerda@google.com> Move logic for grouping phone calls into a helper.

Change-Id: I85e3fce30743ca956f90d11ab755754e820b9b15
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogGroupBuilder.java
949bdc5eeb1e07569097f72d7ca603d4505a9786 19-Jul-2011 Debashish Chatterjee <debashishc@google.com> Merge "Include a separate message for call details page in voicemail StatusMessage."
6e4052c8685192d94a793afeccf8d0f0212584d0 18-Jul-2011 Debashish Chatterjee <debashishc@google.com> Include a separate message for call details page in voicemail StatusMessage.

With this change now a StatusMessage also carries the info about where
it must be shown.

Bug: 5040099

Change-Id: Ib0d430b5eda1a7031ce90d84916b0159ac7cfd38
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/VoicemailStatusHelper.java
ndroid/contacts/calllog/VoicemailStatusHelperImpl.java
a113689156ac38177fb8fdf82e5327c3f916d331 18-Jul-2011 Flavio Lerda <flerda@google.com> Add playback button in call log.

This commit adds a separate playback button to the call log, according
to the latest mocks.

Change-Id: I5d732d7a3775b4c723fb6a70015ed187e40c5c46
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
ndroid/contacts/calllog/IntentProvider.java
8620906e38f9806c1e1ed7a3695336b9c47ab130 18-Jul-2011 Flavio Lerda <flerda@google.com> Correctly update contact information when resumed.

Currently the contact information was not resumed because the content of
the cache was present and the application assumed that we had a
duplicate request.

However, since the only thing we need for a request is the phone number,
use a list of strings and do not add to the list if there is already the
same value in it. This prevents duplicate requests.

Also remove CallerInfoQuery since it is no longer needed.

Bug: 4579309
Change-Id: Ife971dfdd8c9e554689bd00d3be49aec667e43f6
ndroid/contacts/calllog/CallLogFragment.java
783c3222f6658ac4a2a5a4206f89cda04444d27c 18-Jul-2011 Flavio Lerda <flerda@google.com> Update the content of the call log when resumed.

Since the call log is now a fragment, onResume is not sufficient to
determine whether the user came back to the call log.

Instead use both onResume and onVisibilityChanged. However,
onVisibilityChanged can be called before onCreate and other lifecycle
methods are, therefore we cannot assume the fragment is in proper state.

As a workaround, use the isResumed() method to determine whether an
update should happen.

Change-Id: I47cdf07278447209efa0349c7d0a2943e206bdb5
ndroid/contacts/calllog/CallLogFragment.java
b9d23fad544feefdd02e4675a7b9586eb2631982 19-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Use geocoded description in the call log."
ff64220c681b48d54ff9cb3d82687fc53e2139e5 19-Jul-2011 Makoto Onuki <omakoto@google.com> Keep the search result after orientation change

Clearing the search string when entering to the sarch mode was causing the
issue.

After orientation change, ActionBarAdapter restores the previous state
(the search mode and the query term) and kicks onAction(START_SEARCH_MODE).
If we don't clear the query term here, everything will go fine.
(as far as I can tell...)

Bug 5042558

Change-Id: Iba85393caafe491fd37f4d5b477a7703eb9e62e9
ndroid/contacts/activities/PeopleActivity.java
20c92756218ff3a43ae369404108463c9de4b31e 19-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Flatten the categories on the phone"
edc0992377a76f385102249e29a9c48e82f2dbf7 19-Jul-2011 Daniel Lehmann <lehmannd@google.com> Flatten the categories on the phone

Unfortunately, we can't execute this on the tablet due to b/5045558

Bug:5039229
Change-Id: I7fe3ced6321eb4d5a17f3a088da6e107d7d0adf2
ndroid/contacts/activities/PeopleActivity.java
1f6c8549e48d8a4b43f2886f2ae3861023454ae5 19-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Show all contacts when search query is empty."
f7318ab1399dd8bff0dbcd5122ba4b1748c115ed 18-Jul-2011 Makoto Onuki <omakoto@google.com> Show all contacts when search query is empty.

DefaultContactListAdapter seems to be used by the contact picker too,
which looks to be still working fine with this CL.

This will arguably make worse the search + orientation change issue; with this
CL if you rotate the device while searching, the initial list after rotation
always shows all contacts.
I'll fix this in a different CL, as that's not really a new bug.
For now I just filed bug 5042558.

Bug 4983521

Change-Id: I259086511717625cf5925d6ab45b16b62d742dbd
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
afa91b87f756f28f0226af3411c5fcb2fceb9e12 19-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Enhanced performance in ContactTileAdapter."
7979ea27c046dfc2d9305b3282233046acef6ec4 15-Jul-2011 Frank Sposaro <sposaro@google.com> Enhanced performance in ContactTileAdapter.

-Contacts Load faster because now saving cursor and not copying into ArrayList.
-ContactTileLoader factory performs more optimized queries.

Bug: 4901406
Change-Id: I91902a99252e99db081d4437066a74f9fa21f5d1
ndroid/contacts/ContactTileLoaderFactory.java
ndroid/contacts/StrequentMetaDataLoader.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileListFragment.java
ndroid/contacts/list/StrequentContactListFragment.java
6d221fdef8352cc2460ee78f532d318c503ebf6e 18-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Ignore clicks on header of call log."
7e82c65f5513d3245b1248224540851a997f7802 18-Jul-2011 Hugo Hudson <hugohudson@google.com> Merge "Bringing voicemail playback ui closer to the mocks."
7594d799dc8b4486148cdcd586b5dcd24a679211 18-Jul-2011 Flavio Lerda <flerda@google.com> Visual update of the call log.

- Remove child and group item layouts, since they are no longer needed.
- Add icon for voicemail playback to the layout (still unused).
- Update dimensions, colors, and fonts in various places to match mocks.

Change-Id: I00e5eef2d2ba84a884efedffb3533e61fbae7176
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemViews.java
5cd0f4eab2e2ed860fd2be2f158e9d77b9c55a3d 18-Jul-2011 Flavio Lerda <flerda@google.com> Ignore clicks on header of call log.

Bug: 5042091
Change-Id: I3df718e44e749eeace87a3635458431d9af98298
ndroid/contacts/calllog/CallLogFragment.java
cd2cd760c1fc512513331558112e2e0574497cc8 18-Jul-2011 Flavio Lerda <flerda@google.com> Fix "Clear call log" menu item.

The code is now loading the options menu from the resources, so it
should use the id that is automatically generated for it instead of the
fixed id we were using before.

Bug: 5035160
Change-Id: Ic1b15318581522b8d7e7e48208e80c3d8068298b
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/ClearCallLogDialog.java
cb805e853dce5fc4d434f2b1916b154d80ab1744 18-Jul-2011 Flavio Lerda <flerda@google.com> Use geocoded description in the call log.

If a number is not associated with a contact, try to get the location
for that phone number and show that instead.

This is shown below the phone number, since the phone number is still
the most useful information for the user.

Bug: 4968253
Change-Id: If9c29c2e20f96f10e24fcf97ccac85eada237b71
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/PhoneNumberHelper.java
fafaefea41e9f8eb5a4cd80395cb860136215792 18-Jul-2011 Hugo Hudson <hugohudson@google.com> Fix the unit tests.

- The view's tag was recently changed from storing the number as
a string to storing a NumberAndType instance.
- This cl updates the test to correspond.

Change-Id: Ibc108ee6cf5afb21899036fb36cebae1f595e8f9
ndroid/contacts/calllog/CallLogFragment.java
39fac71fa6420e4da324c13f141e6956f2837356 18-Jul-2011 Hugo Hudson <hugohudson@google.com> Bringing voicemail playback ui closer to the mocks.

- Reorganises layout of playback ui using better relative layout.
- Uses phone app dither background of grey-on-black.
- Brings in trash, play, pause and sound resources for ui.
- Updates thumb image for seek bar, still needs final asset.
- Updates rate increase/decrease buttons, but still need final asset.
- Initial version of playback in stopped state correctly shows play button.

Change-Id: Iaa778bcc46718a5f650d892ae23003c849720516
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
8432b27a6b18457e2d30a0d20f1492930797fd21 18-Jul-2011 Debashish Chatterjee <debashishc@google.com> Merge "Made voicemail status query from calllogfragment asynchronous."
ccbccde9cf094470118201091d8cc116cfcff725 18-Jul-2011 Debashish Chatterjee <debashishc@google.com> Made voicemail status query from calllogfragment asynchronous.

callLogQueryHandler is now used to fetch voicemail_status cursor and
pass that to VoicemailStatusHelper to compute the messages for display.
VoicemailStatusHelper no longer make direct call to the content
provider, so is now safe to be used from the ui thread.

Also, modified status message layout to have visibility=gone as a
default value.

Change-Id: I2dce71080d974c318adcbd134e91df85ac6ce611
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/calllog/VoicemailStatusHelper.java
ndroid/contacts/calllog/VoicemailStatusHelperImpl.java
3d4e92d0be6d128cfcaa37bdd4f4d9b9639d3eab 18-Jul-2011 Flavio Lerda <flerda@google.com> Fixes NPE when clicking on a call log item.

Change-Id: I3e2da43a03e4dd7a73f38460d8a534731e3af2a2
ndroid/contacts/calllog/CallLogFragment.java
6bcdd9da2dc9f3b9038145466148d409d6a06f75 18-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Fix for loading the same contact photo twice."
40977b6356206847ea8b4d257668a1ffbc6884d6 18-Jul-2011 Hugo Hudson <hugohudson@google.com> Merge "Voicemail playback, with variable speed ui."
d33b18c0eb6c310037fb5d9e000ac4f273a99644 17-Jul-2011 Flavio Lerda <flerda@google.com> Fix for loading the same contact photo twice.

Currently, the code in the ContactPhotoManager which loads the pictures
from the database assumes that each picture is requested only once.
However, as in the case of the call log, the same picture might be
needed more than once.

This commit changes the code to create a set of photos to load instead
of a list, so that each id or URI appears in the least at most once.
This fixes the problem with the previous code which would end up
resetting each picture loaded more than once in the same request to the
default contact picture just after loading it.

Bug: 5020196
Change-Id: I82169e9cf9048a31e2382fbfa962df5cfdd0971f
ndroid/contacts/ContactPhotoManager.java
57f6caf4a2f45acc4d23ee5e35d30e6a5ec10d03 18-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix group size string"
eb2d5c56e7c46445e2fc3e5ae1ccce9f914cbd64 18-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Make search less magical"
53b427b3dc6f04340133b2da135b3f5efea4de11 17-Jul-2011 Makoto Onuki <omakoto@google.com> Make search less magical

- Remove PeopleActivity.mSearchMode. Instead, always ask ActionBarAdapter
the current mode.

- Don't use the default search behavior (i.e. send a new intent) on 1-pane.
Now 1-pane and 2-pane go through the same path for the search menu item
and for the search key.
i.e. when search key is pressed, show the search view (only on 1-pane),
set focus, turn the "all" list into the search mode too.
(and the "all" list should initially show all contantacts eventually, but
it's another issue which hasn't been fixed yet.)

- Remove dead branches.

- Instead of startSearch, override onSearchRequested(), which is the preferred
way of implementing a custom search action.

Change-Id: I4fd15a7f3164a3832df21b8fa1fb215e53d1a3e1
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/PeopleActivity.java
2b431c0384a7638b91478eef521125cdf0b51b11 17-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix group size string

It should be of the format "X people from Y" where X is the size
and Y is the account type display label

Change-Id: Ic46d287e42b0d69c8f5dc1275d4894ada5ff67d1
ndroid/contacts/group/GroupDetailFragment.java
33e5c470010f81abd22d33fc7208c1955b27da5a 17-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Use highres pictures in call-log (if available)"
362654ae0fe3dd9b26306204904d59c737edad53 17-Jul-2011 Daniel Lehmann <lehmannd@google.com> Use highres pictures in call-log (if available)

Change-Id: I71df0f38ab27b5ff1cb223a0b609b3e384e75224
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/calllog/CallLogFragment.java
5e330ed98f1c2711b4cd3b375a1c0f76bedaf3e1 16-Jul-2011 Katherine Kuan <katherinekuan@google.com> Remove unnecessary delete buttons in contact editor

- Don't offer the delete button until the user has typed something
into the field

Change-Id: I37585565b77f3d6a06677341191bb0f0cc72e508
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
312b26ad1fa2f45bd81d6f1769b1a9972622049b 17-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Switch to using proper icon for call button."
6d9befe1de956c50e31e4d1c22809fe9826f680c 17-Jul-2011 Makoto Onuki <omakoto@google.com> Add debug flag and debug log to PeopleActivity

Change-Id: Ib570aab76090e6b0f4fa649767cdfb7c2b0ccc66
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactsRequest.java
e67081cdc337af96bf17f40c16e766f920aaf8a4 17-Jul-2011 Flavio Lerda <flerda@google.com> Switch to using proper icon for call button.

Change-Id: Ib8c52f52b3b42e9deb9358f93e92e47e0bd478ee
ndroid/contacts/calllog/CallLogFragment.java
b002f512acfd12b0f25c62579af0b7ecb02d728e 15-Jul-2011 Hugo Hudson <hugohudson@google.com> Voicemail playback, with variable speed ui.

Introduces a new VoicemailPlaybackFragment and the
VoicemailPlaybackPresenter that goes with it.

Together these two form part of the CallDetailActivity, and allow us to
play back voicemails inline with variable speed.

Also included is the code from the CallLogFragment to launch the
CallDetailActivity with suitable extras buried in the Intent.

Change-Id: I86585685802b69441f5812b41c215f3534af26e4
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
ndroid/contacts/voicemail/VoicemailPlaybackFragment.java
ndroid/contacts/voicemail/VoicemailPlaybackPresenter.java
9e0038930f0f504bd0054775ba2ed99699cba417 15-Jul-2011 Debashish Chatterjee <debashishc@google.com> First cut voicemail source status message ui.

The UI right now is very basic.

Also renamed Message to StatusMessage to avoid conflict with
android.os.Message used in the call fragment code.

TODO:
- make the UI look nicer.
- show more than one messages
- make db call asynchronously

Change-Id: I10c1be8a37990104b5fe428c61964e7a78b7fd46
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/VoicemailStatusHelper.java
ndroid/contacts/calllog/VoicemailStatusHelperImpl.java
63a0a9e6ff03ca688c3904f41082515874fa1c3b 15-Jul-2011 Flavio Lerda <flerda@google.com> Handle call log entries with a NULL value for the NEW field.

The current query causes SQLite to not return items with a NEW field set
to NULL (if they are missed calls or voicemail) neither in the NEW
query nor its negation.

This fix makes sure that each entry will match one of the two possible
queries and therefore always appear somewhere in the call log.

Bug: 5036125
Change-Id: I66e0b9ed50c9d5733e14ec8da181884a0a6f160d
ndroid/contacts/calllog/CallLogQueryHandler.java
8e39c71705261fa97adf1b6f39336a7fbd2a2c65 15-Jul-2011 Flavio Lerda <flerda@google.com> Show a count for more than 3 calls in a group.

The count represents the total count.

The icons for the call types of the 3 most recent calls are shown.

Change-Id: I1e7a4d2421b5fafa222793c3a4732b134633b828
ndroid/contacts/PhoneCallDetailsHelper.java
60a0d0397c512c11a3d510382b794b88358f7479 15-Jul-2011 Flavio Lerda <flerda@google.com> Do not show phone number in group item.

Since all calls in a group are from the same number, there is no need to
repeat showing the number.

Change-Id: Ic0a7f59edf4714eca423ab21ca1909a28a94c85c
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
ba8484f6f747085b79625c0a8cd02d181c062068 15-Jul-2011 Flavio Lerda <flerda@google.com> If there are no new calls, do not show older header.

If there are new and older calls, we should headers to identify them.
However, if there are only older calls, it does not make sense to have a
header there, and we should just show the call themselves.

On the other hand, if there are only new calls, it still makes sense to
keep the header there.

Bug: 5035679
Change-Id: I717577cf3b76f95843050acad4511ef71c864123
ndroid/contacts/calllog/CallLogQueryHandler.java
417ca4983c7fd76ce6086db5b66f10a95ff9b7d6 15-Jul-2011 Makoto Onuki <omakoto@google.com> Fix bug 5033564 intent tests crash (e.g. LIST_ALL_CONTACTS)

Was caused by the swipe CL Ic6c8a2b8.

- Now that some of the fragments are created at runtime using
FragmentTransaction, we can't assume that all fragments have views
in onCreate().

(The framework calls Fragment.onCreateView() AFTER Activity.onCreate()
if a fragment is dynamically created. If a fragment is inflated
from a layout,onCreateView() IS called during the inflation.)

- So the initialization that may touch fragment views now has to be
done after onCreate().

- Also extract out the request intialization code from configureContentView().
Now onNewIntent() calls only this new method, but configureContentView().

Bug 5033564

Change-Id: Ibcfcef4b20132536d736dd5db15af9122c01b643
ndroid/contacts/activities/PeopleActivity.java
f1c7d6b91f518d17427d63320634356146376fc7 16-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Restyle contact editor header"
4d04f4804c3834556d10edabe70fcab6b44d786c 16-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Fix bug 5036399 (2-pane) Opening a contact from quick"
a4505fc31c7a1072d1aee1781cd86710207d6c79 15-Jul-2011 Makoto Onuki <omakoto@google.com> Fix bug 5036399 (2-pane) Opening a contact from quick

... contact won't update current view.

The issue is that when quick contact opens the activity's
onSaveInstanceState() gets called, where we clear the action bar adapter
listener.
Then, when the user selects "contacts" on quick contact, onNewIntent()
gets called and we update the current tab there.
However, because it's onResume() where we restore the listener and onResume()
is called after onNewIntent(), the activity misses the current tab change
callback.

Fix is easy -- just always call updateFragmentsVisibility() in onResume()
when we restore the listener to make sure fragments visibility matchs
the current tab.

(updateFragmentsVisibility() is virtually no-op if there's no changes, so
always calling it is not inefficient.)

Change-Id: I64aa229cbb1aa37114fce73e83849fbb2098acc7
ndroid/contacts/activities/PeopleActivity.java
3c1046437e54a109558165718780d66241716082 15-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Extract CallLogQueryHandler into its own class."
3a987531733d2ec74a031545b76ccec6e87dc5c3 15-Jul-2011 Frank Sposaro <sposaro@google.com> Fix crash when GroupMember selected on People, Phone.

Bug: 5036924
Change-Id: If6bf9b775840a88bbcf0096c5f3f9e3b221a5b9f
ndroid/contacts/GroupMemberLoader.java
a7c3d4d726b91f645431af14d8cceadd2245f4ce 15-Jul-2011 Katherine Kuan <katherinekuan@google.com> Restyle contact editor header

- Move account switcher to top of editor
- Make account header always displayed (even on existing contacts)
- Take out hack for font size of structured name and just
make it text appearance large
- Align photo side by side the structured name
- Move over honeycomb style of group membership item over to
phone resouces folder
- Center "Add another field" button on the phone

Change-Id: I548edc3f1a2a0c20e83e4a28a10e110e51f8c12c
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
79fe04a9162ae819068a9dbd692c823b8f355b31 15-Jul-2011 Debashish Chatterjee <debashishc@google.com> Merge "Implementation of business logic for voicemail status."
70157221f512bf3bfd47b7f74ca3652aae530266 15-Jul-2011 Flavio Lerda <flerda@google.com> Extract CallLogQueryHandler into its own class.

Change-Id: I21310e85d1d8ad2bc8a4779837d5e4fe79aee6c6
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogQueryHandler.java
369d5d7522a4dbf705930922f35c66b14d3e315b 14-Jul-2011 Debashish Chatterjee <debashishc@google.com> Implementation of business logic for voicemail status.

The new class VoicemailStatusHelper implements all the business logic to
determine what status messages needs to be shown to the user based on
the current status of various voicemail sources. It also orders the
messages in the order of priority.

A follow up cl would use this class to show the message and action to
the user.

Change-Id: I1d0321598356d7451715f027d00ceb3c09418669
ndroid/contacts/calllog/VoicemailStatusHelper.java
ndroid/contacts/calllog/VoicemailStatusHelperImpl.java
2ade5bbab1b4a296eabde2d529a7f511d8267e9a 15-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Provide a simple button to add a contact to the default group "My Contacts""
b71b9e70c7af47ae1b388be4a36266ec0cf6df64 15-Jul-2011 Flavio Lerda <flerda@google.com> Small refactoring on the call log.

Completely decouple the query handler from the fragment.

This is in preparation of making that class a top level type.

Change-Id: Ibc030cb7856f5f14389bf248a5e174767cf473d5
ndroid/contacts/calllog/CallLogFragment.java
76921903290ba9229e0238395c35569cbadecb20 13-Jul-2011 Flavio Lerda <flerda@google.com> Split new and older items in the call log.

This commit changes the way call log items are displayed.

Instead of using a single cursor showing all items, it creates two
cursors, one for new items (missed calls and voicemail with the NEW
field set to 1) and older items (missed calls and voicemail with the NEW
field set to 0 and incoming and outgoing calls).

To make this as much as possible transparent to the UI code, it actually
creates a merged cursor from the two cursor above, so that the UI does
not need to know about the fact that these correspond to two different
queries.

To allocate space for the headers (which are present only if the
underlying cursor is not empty), they are also added to the merged
cursor, using MatrixCursors.

Since the UI needs to know whether to show a header, a new call log
item, or an older call log item, add a synthetic column called "section"
which represents which section a given row belongs to.

In the process, encapsulate the details of the queries being made to the
call log. Probably a follow-up can be done to further hide the details
of how the query works.

Change-Id: I0be6ac5b4ca5b0ccd74a648a5d8687e05ad77a82
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
ndroid/contacts/calllog/CallTypeHelper.java
ndroid/contacts/calllog/ExtendedCursor.java
7ed92eeedcc2275fc7b4f257c6ca03a4d4120cc6 15-Jul-2011 Daniel Lehmann <lehmannd@google.com> Provide a simple button to add a contact to the default group "My Contacts"

Bug:3117458
Change-Id: I88bb889deb8ee1a049395a687e3c36c2eaab7cef
ndroid/contacts/detail/ContactDetailFragment.java
9c354d333cb24591036b2189c3be6122c2a582b3 15-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Hide cursor when no digit."
0ff7d9cba50f6b77fdffb83793e08c407195c8c1 15-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Hide cursor when no digit.

I inappropriately commented out cursorVisibilty stuff.

Change-Id: I5b79b81f979df06252e6e1e86b3e5f7222e6a736
ndroid/contacts/dialpad/DialpadFragment.java
a0d9aa9d3ea861a346be08162fdb0d52e4eac4b7 15-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Disable search key press on 1-pane detail/editor activities"
43fbbc1e5bbc295d0be5033a002e9f532fdfb119 15-Jul-2011 Makoto Onuki <omakoto@google.com> Disable search key press on 1-pane detail/editor activities

These activities don't have the search menu item, so the search key shouldn't
work.
(The behavior was weird anyway... e.g. it worked differently on
ContactDetailActivity and GroupDetailActivity...)

Bug 5032530

Change-Id: If3504cbd3e5cf027d43eec68d8f89e41bd7d324c
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
717e343811088da922cd84fb0d196de85fba7fe9 14-Jul-2011 Katherine Kuan <katherinekuan@google.com> Add members when creating new group

- Enable adding new members at group creation time
- Modify the existing createNewGroup methods in
ContactSaveService to take an array of raw contact IDs
- Note: adding the contact to the group must be
done with applyBatch instead of a single insert
to the data table because otherwise the raw contact
version will not increase

Change-Id: I474758110840b8cad144e6c1b90d09558a7e9478
ndroid/contacts/ContactSaveService.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
a023ddd7788bc7cde35ca7bbeaf3edb99ff34441 14-Jul-2011 Makoto Onuki <omakoto@google.com> Remove unnecessary invalidateOptionsMenu() call...

when switching tabs.

Change-Id: Ifa1c70f58cf210621ffb1e0175707e0c6e9f6dfd
ndroid/contacts/activities/PeopleActivity.java
71e372c222ed5156573f935f5758eb4df85437b6 14-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "2-pane: Make sure to hide "edit contact" on non "all" tabs"
73fab36ac0f5c59be9ff2361ee0dcdd52247491a 14-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Fix bug 5031013 Crash after searching a contact from..."
c1eed6d4fe14599fb89644d460c45020057789be 14-Jul-2011 Makoto Onuki <omakoto@google.com> Fix bug 5031013 Crash after searching a contact from...

Only in onDestroy() mActionBarAdapter can be null because
we may finish() People activity in configureContentView() before initializing
mActionBarAdapter when redirecting to another activity.

Change-Id: Ibf4417b2604a4b85944a23022aef578ec94faaf9
ndroid/contacts/activities/PeopleActivity.java
f234d1cf898c56e3d6ff6bf1e1f4905dc39cb218 14-Jul-2011 David Brown <dab@google.com> Merge "Reposition the EditText selection after "recall last number""
9c0e8ac3a90e01ebca4b83f1f8ef78e9e98a9922 14-Jul-2011 Makoto Onuki <omakoto@google.com> 2-pane: Make sure to hide "edit contact" on non "all" tabs

(also other options such as "delete conact" and "share copntact")

These menu items are actually owned by ContactLoaderFragment, so we need to
show/hide the fragment as well even though it's invisible.

Bug 5028965

Change-Id: I302ee49a2a549c0397bee6a657e04c291c3e8b3c
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactLoaderFragment.java
d84ea5c8b0a8376e7cf80b0e15b65a72fd99d7a9 14-Jul-2011 Adam Powell <adamp@google.com> Follow framework API change

Change-Id: I6bbc24d20d3bd254f6e2d54c14100fa9ab8513ed
ndroid/contacts/activities/ActionBarAdapter.java
429021719c2d8cc834ca1de5a19d972c4c840aab 14-Jul-2011 David Brown <dab@google.com> Reposition the EditText selection after "recall last number"

After recalling the last number dialed, move the cursor to the end of the
digits string. This way you'll be able to delete digits using the Delete
button, just as if you had typed the number manually.

Bug: 2479785
Change-Id: I51d25bcf5e2e984067398e63793308c275bdc797
ndroid/contacts/dialpad/DialpadFragment.java
0a2a5db3b3633883388953dc98e30c2edd7cae62 29-Jun-2011 Dave Santoro <dsantoro@google.com> Contacts App modifications for large photos.

Most of the work is on the provider side - essentially, the
provider will now deal with any size photo, downsizing it as
necessary to fit in a display size and thumbnail size. So
on the client we just need to pass in a larger photo to get a
hi-res display image for the contact.

Also switched a few spots to use the PHOTO_URI (with
openAssetFile) instead of PHOTO_THUMB_URI - more likely
remain.

Change-Id: I6ff8dd5453a9ff787907ab113d6e8aa6a71fcae1
ndroid/contacts/ContactLoader.java
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
e0c66aff27473d0edbd95660b95f0f2a80ab63ec 13-Jul-2011 Makoto Onuki <omakoto@google.com> Show the "UP" icon on the search mode.

- On both 1-pane and 2-pane.
- Also just use a bool resource instead of styles to get
the "should show the home icon" setting.
- Also clean up how we set action bar display options.

Bug 4983521

Change-Id: I81f61a98bfc6695784a323cb28e05d7e3f7f932d
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
38abfa9db22d68a66d4b1eae978770be2d128587 14-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Batch add and remove group members in group editor"
1aeaea08ba325e9a2aacdb39be44ec363c097e79 14-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Allow a sync adapter to provide an OPEN action for a group"
8811b7c3fe518246b8ee2aa00a90319dfafd10c6 14-Jul-2011 Makoto Onuki <omakoto@google.com> Make sure to update menu options when switching tabs

Also removed unnecessarily complicated code to invalidate menu options
when entering/exiting the search mode.

Bug 5027867

Change-Id: I0ee24975d327b775c64952abfbdcbcf32e618a0d
ndroid/contacts/activities/PeopleActivity.java
2d851cc895ffc7afd322298c7d4391ca5bea1a2d 06-Jul-2011 Katherine Kuan <katherinekuan@google.com> Batch add and remove group members in group editor

- Create save intent in ContactSaveService to update
the group name, add a list of new members, and remove
a list of existing members

- Add raw contact ID column to GroupMemberLoader so that
the raw contact IDs can be used in ContactSaveService

- Remove old code that would do the database save one at a
time for each contact member when the action was taken
(and remove the step that would load the full contact because
we now only need the raw contact ID)

- TODO: General cleanup to just use raw contact IDs everywhere
and have one Member class (get rid of SuggestedMember)

- TODO: Allow users to add contacts for new groups (still
can only change the name), but this should be straightforward
after this change

Bug: 4961845
Change-Id: I8a2f1086feecbb63dc6eb3d1e985bccabe28b803
ndroid/contacts/ContactSaveService.java
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
25f9b3dcefa76017598eb8d713187f6eaf3a7e44 13-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "People: Enable split action bar on 1-pane"
8b63882acd4c5c3037faf4ac5b0804bcfa53b965 13-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "PeopleActivity: Remove context menu code"
c0b5f8aa0c634bbd3148965ad9c263bc16424b91 13-Jul-2011 Makoto Onuki <omakoto@google.com> People: Enable split action bar on 1-pane

- Also fixes bug 5023543: (1pane) Search menu item will be gone forever
- Also removed onCreatePanelMenu() and onPreparePanel(). With the action
bar, returning false from onCreateOptionsMenu() is enough to hide
all menu itesm.
HOWEVER, because of a bug in the action bar, we can't simply return
false from it... I put workaround code which should be removed
once the action bar bug is fixed.

Bug 4689447
Bug 5023543

Change-Id: I46c34df127fb777fc9019b99783377c2ee15f7d1
ndroid/contacts/activities/PeopleActivity.java
2cc3b3e8e08b484fa6b228dcdf8025aa8ea99c08 11-Jul-2011 Makoto Onuki <omakoto@google.com> PeopleActivity: Remove context menu code

We don't use it any more, do we?

Change-Id: Id9afd3d9ea45a5de0f36065b054ee05d0974c6f4
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
3da09f5dc68bb991bfba841ae16be93e386017d6 13-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Switches to new icons for call log items."
adc1df97d7cb78bf3d9ec6effd8fbaf7391cc7a1 13-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "PeopleActivity: Swipe!"
693d1f80945b32d43b8333d63ba9c819158a3991 13-Jul-2011 Flavio Lerda <flerda@google.com> Switches to new icons for call log items.

Remove the old icons since they are no longer needed.

Change-Id: I787da3ff769484772bb2a49d3d289cf140abfa51
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallLogFragment.java
250ce43794cdf6820f7a13ef0195a566bd0c8c64 13-Jul-2011 Makoto Onuki <omakoto@google.com> PeopleActivity: Swipe!

I was originally planning to create a set up classes to abstract out the
logic to controll fragment visibilities, but with the last refactoring on
ActionBarAdapter() I think it's managable without them...

Change-Id: Ic6c8a2b87005bc0cd3ab41dee7ac99db794274eb
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
cfff16d74a5e8c6aca67462e9c76168a479273e8 13-Jul-2011 Flavio Lerda <flerda@google.com> Remove the long-press menu from the call log.

Make sure that the logic is preserved in the CallDetailsActivity where
the actions are available: we were currently not handling all the
special cases for SIP numbers and voicemail.

Change-Id: I97f6ffaeb6ee839fd1ddbd4c4c0a532457cc9d14
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/PhoneNumberHelper.java
178eeebac88b352c131bd0315a99da16162c986e 11-Jul-2011 Flavio Lerda <flerda@google.com> Open groups of calls in the CallDetailActivity.

This change allow showing the details of a group of calls in the
CallDetailActivity.

First of all, it adds a way to pass to the activity a list of calls,
namely by using an extra containing a list of ids of rows in the call
log. It preserves the existing mean to open the call details using a URI
for backward compatibility.

In turns, the activity will get the details of each call, assuming they
all come from the same number and therefore the same person, and show a
single contact header at the top, while placing the detail of each of
the calls in the list at the bottom of the activity.

With that done, we no longer allow opening up groups of calls in the
call log: they are no longer necessary, as the details of the calls
within a group are now accessible in the details page.

In the process, extract a utility class that encapsulates operations on
phone number, like whether calls can be placed to a phone number, and
how to display the number to the user. There might be a few more places
where this helper can be used, but I will look at those in a follow-up.

A few optimizations still need to be pursued, for instance the lookup of
the details of the phone calls in a group can be optimized.

Another candidate for a follow-up is using a common ContactInfo class
between the call log and the call details, maybe with shared functions
to extra the information from a cursor.

A further improvement would be to have a shared cache of the contact
info and call log details, so that looking up the information when
opening the call details can be done more efficiently (it is currently a
strict mode violation) since the call details will generally require
information which had already been looked up by the call log beforehand.

Change-Id: I408650d7485afe4c132dd9cc376e6ba0e3388c1e
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/PhoneNumberHelper.java
0ecd98809b109f844cd79c0cf8fa2a75b2bf489d 13-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Renamed updateFragmentVisibility."
05b1600927a903b833c3c31a85bd23449d41e535 13-Jul-2011 Makoto Onuki <omakoto@google.com> Renamed updateFragmentVisibility.

I've just added a method with an almost same name (updateFragmentsVisibility).
Let's give it a more descriptive name.

Change-Id: I96ede4333179258cb414906f76633d2bc25eba69
ndroid/contacts/activities/PeopleActivity.java
075bb70341fa5544db6654020c58a1e0ae609c22 12-Jul-2011 Isaac Katzenelson <isaack@android.com> Fix crash in onLoadFinished in GroupEditorFragment

Change-Id: I7e06d2c994607178518d3d3a8cecec5a3571beda
ndroid/contacts/group/GroupEditorFragment.java
4e2bb32000f391ceb0de7309a159bee5d8e04fc5 12-Jul-2011 Frank Sposaro <sposaro@google.com> Pressing a group member on phone takes you to contact card.

Bug: 5016808
Change-Id: I59990fd0301bfa4934f8add568b40b080eb70e02
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupDetailFragment.java
a35a315670146f54a5b15550e8193ea9b9c64bc9 13-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "People: Action bar tab refactoring"
4d788fc27ac855bd6e0cec17dff39a18564f0089 12-Jul-2011 Makoto Onuki <omakoto@google.com> People: Action bar tab refactoring

- Now ActionBarAdapter manages the action bar tabs.
- Now ActionBarAdapter.setCurrentTab() should always be used to select
a tab programmatically, rather than directly calling
ActionBar.setSelectedNavigationItem().

- Do not re-create/re-initialize ActionBarAdapter/ActionBar for new
intents.

- Simplify fragment visibility update logic in PeopleActivity.

- Do not clear ActionBarAdapter.Listener in PeopleActivity.onPause;
do this only in onDestroy.
Activity is paused when we're processing onNewIntent(), but we still want to
get callbacks during this.

Change-Id: I93ec35e569e1854923503734693b6404cff92f50
ndroid/contacts/ContactsActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
203e234324415a7b2a9f83491ffb4980004c6bea 13-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Introducing a secondary touch target for ContactTiles of Strequent view types."
11e74e4c805c7d5222488814049a9d7a8cfc84bd 12-Jul-2011 Frank Sposaro <sposaro@google.com> Introducing a secondary touch target for ContactTiles of Strequent view types.

Change-Id: I14239a55c540b122d5219f0676401917558fd2ed
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileSecondaryTargetView.java
8cf8613216b65aff1b0194f48bd417a2b291a8e9 13-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Disable highlight"
c7457855f3baa28ff43bd8013664e789f176f4bc 13-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Disable highlight

Holo dark made it annoying.

Bug: 5022254
Change-Id: I2b4bf47c7b3e91626523a22a29a86232bb15f042
ndroid/contacts/activities/DialtactsActivity.java
baa0a5f3fdcfa857ba439bcca5257f948afa5361 13-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Details for multiple calls."
50445e9d1efb1fa046d9a1232c973b4c96e1f52d 12-Jul-2011 Makoto Onuki <omakoto@google.com> Retry: Set up fragments just after setContentView().

Redo of I9e0ad079 with fix for crash on portrait.

I9e0ad079 crashed if you launched the app on portrait, because contact details
fragments don't exist in the layout.
(It worked when you rotated from landscape to portrait, because the fragment
manager would recrate them even though the layout didin't have them.)

The only change from I9e0ad079 is that we still use onAttachFragment to
initialize details fragments.

* Original CL description:

... except for ContactsUnavailableFragment, which is not in the layout.
(we dynamically create it.)

It's part of refactoring to prepare for ViewPager.

This also fixes the "mFavoritesFragment and mFrequentFragment are both
StrequentContactListFragment but we always assume StrequentContactListFragment
is Favorites in onAttachFragment" issue.

Change-Id: If30611039d8cdaa8f91676454eba67e89fcbdcc8
ndroid/contacts/ContactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
9a208cc08567a3d86c7968d7a4f13f5714b9b657 12-Jul-2011 Flavio Lerda <flerda@google.com> Details for multiple calls.

Add the details of the call at the bottom of the call details in a list.

The code allows having multiple details listed at the bottom, but
currently we only have one. A follow-up will add details for multiple
calls.

Change-Id: I0a91cc372f658bada603e22b9438a6db771dc124
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallDetailHistoryAdapter.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallTypeHelper.java
7f61eba2cddfdd99f155c851eaa490f73358d031 12-Jul-2011 Daniel Lehmann <lehmannd@google.com> Allow a sync adapter to provide an OPEN action for a group

Bug:4413120
Change-Id: Idf0f969c20a82c8dcfa04b9234ccebf3f659da99
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/group/GroupDetailFragment.java
33456a0efa16d7f31ba25f1d1b8c662053104117 12-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Revert "Set up fragments just after setContentView().""
4959ca3d0093a798859660f2914003d0da777645 12-Jul-2011 Makoto Onuki <omakoto@google.com> Revert "Set up fragments just after setContentView()."

It crashed on 2-pane portrait. Seems like there's no ContactDetailFragment in the layout...

This reverts commit 0dafecbe5dbf810d83f9cf0ce590e8e055c53a48
ndroid/contacts/ContactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
81d79a8fbed8ab015e760f8c2451d1e66e077066 12-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Set up fragments just after setContentView()."
0c9f33576f92ff7d9fb1f2154c0553a1ab886709 12-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Enhanced performance in ContactTileView due to alpha layer."
0dafecbe5dbf810d83f9cf0ce590e8e055c53a48 12-Jul-2011 Makoto Onuki <omakoto@google.com> Set up fragments just after setContentView().

... except for ContactsUnavailableFragment, which is not in the layout.
(we dynamically create it.)

It's part of refactoring to prepare for ViewPager.

This also fixes the "mFavoritesFragment and mFrequentFragment are both
StrequentContactListFragment but we always assume StrequentContactListFragment
is Favorites in onAttachFragment" issue.

Change-Id: I9e0ad079714813a5bef898a51eb49cc88a78dbf2
ndroid/contacts/ContactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
fd32fcd650e371b1c2c124aaa5c2c945277c8adc 12-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Temporary fix for crash on rotation in search mode"
30cc2916916535a8140637f54925c93189868de5 12-Jul-2011 Isaac Katzenelson <isaack@android.com> Temporary fix for crash on rotation in search mode

Change-Id: Iffc020090dddc4e3aa18972940dbe642c49d4dfd
ndroid/contacts/activities/ActionBarAdapter.java
9e095d2ffc4a94d2fb925d19df6db12bc2b1e124 08-Jul-2011 Frank Sposaro <sposaro@google.com> Added QuickContacts.

Change-Id: I0bf3b536da73c2f9862a958ff0275ef8404def4f
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileSquareView.java
ndroid/contacts/list/ContactTileStarredView.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/StrequentContactListFragment.java
4ff31284ff6bd263621771bbfa6b24e0da5af031 11-Jul-2011 Daniel Lehmann <lehmannd@google.com> Remove restricted white-listing

Bug:4974334

Change-Id: I05736d49a72ca26902de52f967ee8028178e2366
ndroid/contacts/ContactLoader.java
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/detail/ContactLoaderFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
223a843a7290517eccf340817cdae424658dd0da 11-Jul-2011 Flavio Lerda <flerda@google.com> Allow for multiple call icons in the call log.

This commit adds support for having multiple call icons on a single
entry, to handle group entries.

When the group is represented as text, we currently use only the first
call type, but, in a follow-up, I will use an additional counter.

Change-Id: Iaa9d1c84eb926c1500bf0a439d45ce59314bd198
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
8c559a9eaf12318b53de3611cd0e7e7ee0dc5a4e 11-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Slight change to the bindView method."
c135d796b9c66ff6fb2ef5651f33d196da9e6dab 11-Jul-2011 Flavio Lerda <flerda@google.com> Slight change to the bindView method.

Pass the number of entries in the call log to the bindView method, so it
can handle all the cases directly. The actual change will be in a
follow-up change.

Change-Id: I08c2e5d88f23842e09d3970f999289d74dc387d8
ndroid/contacts/calllog/CallLogFragment.java
f6141f1bc0116dd5c9dc399567502d74300326b6 11-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in onKeyDown

- If the fragments have not been attached yet, but the user
presses a physical key, then a NPE is thrown

Bug: 4996118
Change-Id: Ibd1640c5e4e546123b08face627cb94dad64ea93
ndroid/contacts/activities/ContactDetailActivity.java
714fc282ace4fef803fff2058133bc21dc442884 11-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Introduce overflow menu button"
bd762dc826d85e5b7db634ef14a0dbb70c42eaab 06-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Introduce overflow menu button

Available when there's no hard menu key on the device.

Also remove Call Settings menu from favorite screen.

Bug: 5001942
Change-Id: Ib0ff3fb15a26001dbdad4756bfa4e4bfe1652da2
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
46464a19616ef00e8f63872e592bddedd1175ef3 08-Jul-2011 Flavio Lerda <flerda@google.com> No longer update nor use the cached contact info.

This commit stops using and updating the cache contact info that is
stored in the call log. Since we need more and more details about the
contact, it does not make sense to keep on adding those in two places.

Change-Id: Ia9435a2fb0bc3dba0df710319709cca9b9bc97df
ndroid/contacts/calllog/CallLogFragment.java
371d5f97d0b87ea0c9d8e8e178c04df34336a29e 09-Jul-2011 Flavio Lerda <flerda@google.com> Update the formatting of call log entries.

Use the three line style that is also used in the details view, in fact,
reuse the helper class and layout from that class.

Fix a few cases that were correctly handled by the call log list but not
by the details view.

Change-Id: I32e6516a571d6e3d95b5f0e414a4fc711cb6a51b
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
4586febe3637303ab6f1b24fc5a23750aa3a6259 09-Jul-2011 Flavio Lerda <flerda@google.com> Show text or icons for call log items.

The current code uses the small icons to show the type of call. The
design we want to implement allows for both icons and text to be
present, depending on the context.

This change adds a boolean flag to determine which one to use.

Change-Id: Ia3ec8bba44f46a4b4857654ffc0256e1af909741
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
9de38681c1d037100a978a5820c09cb74c0d6fee 08-Jul-2011 Flavio Lerda <flerda@google.com> Extract a PhoneCallDetails class.

This reduces the number of parameters passed around and makes it easier
to add additional fields to it (e.g., I need to handle entries
corresponding to multiple calls).

Change-Id: I724cfa78949cc0e4ff7c9a287b4f59f676d92fb1
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetails.java
ndroid/contacts/PhoneCallDetailsHelper.java
003b9d27a7cf1249ac63c10e685d628590f99809 09-Jul-2011 Flavio Lerda <flerda@google.com> Make sure the phone number is always formatted.

Currently, it was possible to have a phone number display without being
formatted. This prevents that case by initializing the field on all
paths.

Change-Id: Ie0fb3f4b9dd8f8c8ec934c34a234c51f120102c8
ndroid/contacts/calllog/CallLogFragment.java
b9256f81c0c65da98fb53b7d1879d71183d852b8 09-Jul-2011 Flavio Lerda <flerda@google.com> Use the correct number for display.

Also add a couple of final modifiers to make the flow clearer.

Change-Id: Id2a4b1508f1202da0e411df194e38808d8d7c1a8
ndroid/contacts/PhoneCallDetailsHelper.java
175b381ab75bdff3c9a6504bec7b48ad5ba8d971 09-Jul-2011 Flavio Lerda <flerda@google.com> Separate formatted number and original number.

This commit makes sure the mNumber field always contains the number
unformatted, as it is stored in the call log database. Since the field
is used to store the phone number as it is used for placing calls, it
should never be formatted.

Change-Id: I286449aafb959459f82e783742e510e5e01b7570
ndroid/contacts/CallDetailActivity.java
553c8893a37ce11ec7a46eed4048921b196fc91b 10-Jul-2011 Makoto Onuki <omakoto@google.com> People: Use PhoneCapabilityTester.isUsingTwoPanes ...

instead of mContentPaneDisplayed.

I'm trying to clean up the fragment stuff. Using isUsingTwoPanes()
seems cleaner than using the old flag, which gets updated in onAttachFragment.

Change-Id: Id894d5679d4d3928794d5f67d87967a7ae849cf5
ndroid/contacts/activities/PeopleActivity.java
46a39e5b50f1bf5f6b2f37f05900acaa979604a2 10-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix refresh problem in the contact card

- Reset the contact data on the fragments after onLoadFinished() is called
so any editor changes will actually update the contact card now
- Fix the issue of the details list going blank by only creating max 1
ViewPagerAdapter per ContactDetailActivity. Check if the layout's already
been setup or not and then go ahead with setting the new contact data

Bug: 5011155
Bug: 4991868
Change-Id: I6ff0613413692212c9ffd23472450e9853b00f54
ndroid/contacts/activities/ContactDetailActivity.java
a89d84e80f02301cb4817bdd97568e77f33e85be 10-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Group list: Don't reset scroll position during sync"
1a1361fd0a82cea2fefc46e184b7ac73cb07a80d 10-Jul-2011 Flavio Lerda <flerda@google.com> Add action to copy the phone number in the dialer.

This is different from the call action as it does not actually dial the
number but allows the user to edit the number before dialing.

As for the delete action, this might not be its final location, but this
moves it to the right activity, the call details page instead of the
long-press menu in the call log.

Change-Id: I0110f7f876d3ee34adc0461a858a8ab1e694f1bd
ndroid/contacts/CallDetailActivity.java
d83811c0b480ae249a5ddfa6ddbf94c0b777a645 09-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Implement delete action in the call details."
fa6ef342238930a1a6c11f41fc16f7fa052691da 09-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Two cleanups in People UI"
a895688702a07b2eedc96795219c5ed79c0ce82e 09-Jul-2011 Flavio Lerda <flerda@google.com> Implement delete action in the call details.

This commit adds an action in the call details to delete the entry from
the call log. Eventually this might end up in the options menu, but I
rather have it somewhere for now, so that we can remove the long-press
menu from the call log.

Change-Id: I0b29ffb77952f5ab86c888a4f4f8c66312caddd6
ndroid/contacts/CallDetailActivity.java
95c5c2a8f8ab17688af10d2ff01bcb5b9ce760b0 08-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Two cleanups in People UI

- remove mListFragment
-- this is actually same as mContactsFragment
- stop letting TabListener remember Fragments
-- onAttachFragment() may make those Fragments obsolete
- Let Tab remember its TabState

Change-Id: I83cc0006bd84ae40bf5ace3685b4d74757cf3b84
ndroid/contacts/activities/PeopleActivity.java
cd539e44d1dd1949ad4302c85c85771ad6560477 09-Jul-2011 Katherine Kuan <katherinekuan@google.com> Remove "view contacts only with phones" filter from phone

Because we have the phone app now

Change-Id: I3528001a6c57d34773106cf481db3c7c36fd5769
ndroid/contacts/list/CustomContactListFilterActivity.java
495db43f0a08bd71ba28a42f89b80d38af15afec 07-Jul-2011 Katherine Kuan <katherinekuan@google.com> Bring back account filter

- ContactListFilterController no longer loads accounts and groups,
to display in the action bar drop down menu. Now it just stores
current filter and saves it to preferences.
- ContactListFilterLoader is no longer needed because we're not
loading groups anymore
- Move adapter from ContactListFilterController to the
AccountFilterActivity
- AccountFilterActivity loads a list of accounts and returns
a ContactListFilter as an activity result based on the account
selected
- If "customize" is selected, then the CustomContactListFilterActivity
will be launched.
- Show header in contacts list according to what account filter
was selected
- Update filter activities to holo theme

- TODO: Remove the "display phones only" option in the
customize menu on the phone

Change-Id: I45e0bdee80e7885d39bf09183a66ec50d81d1982
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/AccountFilterActivity.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
fdf5d84cc1260b116c14c94bec27f949edb06ef6 08-Jul-2011 Flavio Lerda <flerda@google.com> Fetch contact details as soon as possible.

If we currently do not have contact details available, do not wait one
second since the first redraw to start the thread that fetches the
contact details. Instead, start the thread right away, do reduce the
latency of displaying the contact details.

If, however, we simply want to refresh the content of the existing
cache, keep the delay as before: in that case, there is no particular
hurry.

Change-Id: Iecef7a47f972641bed53d47b7b22dd115410583a
ndroid/contacts/calllog/CallLogFragment.java
2c9eb83444a4569fb8279dbaf4c17ad83e368d72 09-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Rename tab "Contacts" to "All""
fc5271090f8b731ef8922e073f015cef11ff32ce 09-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Fix NPE when joining contacts on the phone"
6e6c24190257fd77d99b4ab385501795537f6eff 09-Jul-2011 Daniel Lehmann <lehmannd@google.com> Rename tab "Contacts" to "All"

Bug:4983441
Change-Id: I14e2c1afe6e9d71e7f7837635886fe4b60d0c07f
ndroid/contacts/activities/PeopleActivity.java
623932de8c18e9b83b6fd941afe415ab2e6c730b 09-Jul-2011 Daniel Lehmann <lehmannd@google.com> Fix NPE when joining contacts on the phone

Bug:4355323
Change-Id: I0183bfacaf430202234a96a8dbcb5e9949489a43
ndroid/contacts/editor/ContactEditorFragment.java
5d19342668bc454958fd80ac65d0cb2358e332f7 09-Jul-2011 Frank Sposaro <sposaro@google.com> Enhanced performance in ContactTileView due to alpha layer.

Change-Id: I3f8eaddf674ffe9c1b6c5267e1e3050c8308d783
ndroid/contacts/list/ContactTileView.java
31068757e64e67874f8b73164572277b9900eae0 08-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove deleted groups from GroupBrowserList"
2cbdfc0ec019742c26a2986af98fe98dd84524f1 08-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Fix for search view/IME issues"
5fcd54c6fadfe5de92455f116e2c4d6ab7054be9 08-Jul-2011 Makoto Onuki <omakoto@google.com> Group list: Don't reset scroll position during sync

Manually call ListView.onSave/RestoreInstanceState to restore the scroll
position after setting a new adapter.

Note this solution isn't perfect; ListView.onSaveInstanceState saves
the item ID of the fist item (as well as offset to the scroll, etc).
The scroll position will only be restored correctly if the ID is valid
(i.e. non negative) and unique.

In our case, if the first item is a header, the list view will get
confused and may scroll to the wrong position. But it shouldn't be that
big deal here...

Change-Id: I07e2682178d068253ccc96bc7a836de4bd25c7ef
ndroid/contacts/group/GroupBrowseListFragment.java
82e4a562b164911e045dd10f023501a9d84f127a 08-Jul-2011 Flavio Lerda <flerda@google.com> Fetch the contact manager from the application.

Currently, the ContactsApplication provides a singleton
ContactPhotoManager to whoever requests one. However, if one uses
something other then the application context to fetch the
ContactPhotoManager, nothing will be returned, which means that there
will be multiple ContactPhotoManagers, one per activity.

Change-Id: Ic6f6e5f592e8707862cb39c1dce9c0db8cbf4686
ndroid/contacts/ContactPhotoManager.java
267073407439d7df012a2e0df577e39a1f89c4a8 08-Jul-2011 Isaac Katzenelson <isaack@android.com> Remove deleted groups from GroupBrowserList

Change-Id: Iea7435c6b1f569dd8ac5416b35470b9ae2f48761
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
d9e7b1cd22425c1a77e8bd0cae0ec2a4d05c9397 08-Jul-2011 Flavio Lerda <flerda@google.com> Merge "UI improvements in the call details."
4ba903cdf132a6be2e5efa33187b18ca8446e503 08-Jul-2011 Makoto Onuki <omakoto@google.com> Fix for search view/IME issues

- Set the search view as the custom action bar view on tablet too,
(not as an acition view of a menu item.)
- Add a dummy view to the action bar to prevent the search view from
getting the initial focus.
- Call SearchView.setIconified(false) to make sure the IME will pop up
when setting focus on the search view.

Fix for:
- tablet: Keyboard keeps popping up upon app launch.
- tablet: Keyboard keeps going away after each character is typed.
- tablet: Have the search view request focus again.
- phone: Keyboard won't pop up when the search view is shown

Note:
- The width of the search view on the tablet is temporary until we
get redlines.

Bug 4691469

Change-Id: I70d1dddebf63120e8fbbafd6a0548d8553a8927c
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
58fc577bd7966e6566cdcac09589a0d3e05128e7 04-Jul-2011 Katherine Kuan <katherinekuan@google.com> Contact card on tablet

- Two-column layout in landscape
- ViewPager and tab carousel in portrait
- Views with and without social updates
- Use ContactDetailLayoutController which controls hiding/showing
fragments based on orietnation and contact data
- Move options menu into the loader fragment because there can
be multiple ContactDetailFragments on the screen now at one time
or it can be dynamically created by the ViewPagerAdapter and
we won't have a reference to that in the PeopleActivity

TODO: Use ContactDetailLayoutController in ContactDetailActivity
so there isn't duplicated code. But just make it work now and do
cleanup later.

Change-Id: Ibf8eb317c6e19bc3d98eb9ce46a45cccb237c631
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailLayoutController.java
ndroid/contacts/detail/ContactLoaderFragment.java
fb63c43a9765aaec65f1df217ff666e59e615028 07-Jul-2011 Flavio Lerda <flerda@google.com> UI improvements in the call details.

Change-Id: I296242079ba0095c25fbc82826d50ab377eeddeb
ndroid/contacts/CallDetailActivity.java
a31a8e89f85b9ac9e5b0d6c7d127ae8144cb3a2c 08-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Replace text with icon for call type."
a4434bcf58c1b286c642197ea56c2a71524a18cc 08-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "ContactTile column counts are now dynamically adjusted."
e5d06f534d58baa27fe6b1091b9724f81fd258c9 07-Jul-2011 Frank Sposaro <sposaro@google.com> ContactTile column counts are now dynamically adjusted.

Bug: 4969044
Change-Id: I5185b93ea3e7720136c929ce4c8ab820d7b4dfc9
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/StrequentContactListFragment.java
8820ef2bdfd89742d99648687e7daceef692e991 07-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix "Tab not maintained on rotation""
59dc2751d64f60f743b8a9e78186aa5b79dcaf83 07-Jul-2011 Isaac Katzenelson <isaack@android.com> Fix "Tab not maintained on rotation"

Change-Id: I331794c948dab876c808ba1274cb11dbdb70155d
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
7d7473a1efca1fa02b52d54e5b71003c948ba49b 06-Jul-2011 Flavio Lerda <flerda@google.com> Replace text with icon for call type.

The design is to have an icon to indicate the call type instead of a
piece of text. Since we plan to have multiple icons for groups, use a
LinearLayout to store the actual icons.

Change-Id: I0055eca8eff8a9bc038aa6f152f486c18a6592c5
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
a007e442687d3836d6a9f0d0ddcea527fa1481ac 07-Jul-2011 Katherine Kuan <katherinekuan@google.com> Add ContentProvider operation logging for saving a contact

- To help with figuring out ContentProvider operations for group editor
- Taken from this CL in HCMR2 that was never merged:
https://android-git.corp.google.com/g/#change,111357,patchset=7

Change-Id: Iee2f6dff95d74a03c83f92f61cdb90f7fa5fcea6
ndroid/contacts/ContactSaveService.java
ndroid/contacts/model/EntityModifier.java
e405753872c29c04e4099ce5c68313e9580687c8 07-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Made "up" button go back. Fixed on Group View, Contact View and Contact Option View"
4ec198790236ab4be6bc5d73441215b684832618 06-Jul-2011 Isaac Katzenelson <isaack@android.com> Made "up" button go back.
Fixed on Group View, Contact View and Contact Option View

Change-Id: I6ee4de75dee59b0bc35a611adbe837cebe7ed722
ndroid/contacts/ContactOptionsActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
17a4e622a8e9b55fce562bb21d73a204ada198b9 02-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix bugs in contact card tab carousel

- Fix NPE in scroll length calculation. I was calculating
the allowed scroll length on the fly when it was requested, but
apparently it was being requested before the data was
being loaded in. Anyhow, move the measure code to its
proper place in onMeasure().

- Programatically determine tab width instead of hardcoding it to
240dip

- Move findViewById calls to the onFinishInflate() method
so it only happens once instead of every time loadData() is called

- Fix the bug where if you vertically fling the contact details
too fast, the pinned headers get stuck in some odd state (b/c the scroll
listener missed a frame, we need to always make sure the tab
carousel is in the correct place at all times)

Bug: 4965089

Change-Id: I9ee3261dfff86d7df6f3eb27ec464eea26a900db
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
c9fe7a57ee18b9f06f3e154bd8a81359bb725c3d 06-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Delays text watcher creation in dialpad

PhoneNumberFormattingTextWatcher relies on AsYouTypeFormatter in
PhoneNumberUtil, which causes disk read (StrictMode violation)

Bug: 4599424
Change-Id: Ib67c72cb8e0705eb801bdfe5a368bfcb48ccb637
ndroid/contacts/dialpad/DialpadFragment.java
13fd893af3e3c7b8fa3fbe82e77add50ec60bfcf 06-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "append final"
696e8132c3cc9dd8ef2060a83c9d15f35c2b316b 05-Jul-2011 Flavio Lerda <flerda@google.com> Handles special numbers in call details page.

Some numbers (unknown, private, payphones, and voicemails) should be
shown using text instead of the row number strings.

Change-Id: I297d44bd762548f08c975adc1ba56fc4a9edd146
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
2c1f7878d72184a56e9c2b0d9f4d74be439979c2 06-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> append final

Change-Id: I3ba98a0a0aedf1e9fda8e3592ec72362032509cc
ndroid/contacts/activities/DialtactsActivity.java
72a8e70ef935935fdbb26c53f760be59bbdfe824 04-Jul-2011 Katherine Kuan <katherinekuan@google.com> Group editor for phone

- Instead of a 2-column page, make all the fields stack vertically
for the phone layout
- Since new intents for groups will not be supported in this release,
we can just call into GroupEditorActivity directly

Change-Id: I6b81b26b030ce9815d5f2c2c0d52e10d842970b6
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
971116e466757434f4979a61d4f58ea0deac1ea4 05-Jul-2011 Katherine Kuan <katherinekuan@google.com> New group disambiguation dialog

- Since switching accounts in the group editor is difficult
(i.e. we need to wipe all added group members when accounts
are switched), it's easier to just have an account disambig
dialog when you first create the group
- The disambig happens as a popupwindow anchored to the
action bar "New group" button if it's a wide screen
- Otherwise the disambig is a dialog that comes from
the GroupEditorFragment

Change-Id: Ibd75607b326e600c412f4bd04eb4cc72534aed72
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/group/GroupEditorFragment.java
fa790452a169c18bb0a2f6547a403576624848a6 05-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix possible menu-not-shown/search ui not shown problem"
43105d0b04963ac96acc1fa7f97278f927f48948 03-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix possible menu-not-shown/search ui not shown problem

Fragment should not be managed by its parent Activity but by
FragmentManager.

- use onFragmentAttach() to tolerate Fragment recreation
- Stop caching Fragment in Activity as much as possible.
- move "Call Settings" to Activity-wide options menu
- make PhoneNumberPickerFragment tolerate NPE on
setNameHighlightingEnabled() call

Change-Id: I06a748ea1a618f0fa83ef3c8f99653effc37895e
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
94623f6288bb572520a9b576769ea88c86f73714 05-Jul-2011 Flavio Lerda <flerda@google.com> Fix for flaky tests: do not use background thread.

Tests are sometimes failing because a background thread is used to fetch
contact details.

This commit provides a way for tests to specify that such processing is
not needed.

Change-Id: Idd367e4add83349bcd2c7ed9306d0aa178b85230
ndroid/contacts/calllog/CallLogFragment.java
d72bf8a27d12efd492df7333f1f8590a9eb6f097 05-Jul-2011 Flavio Lerda <flerda@google.com> Cache values extracted from resources.

Change-Id: I672710e691eaee135a0d688ef5ef80abed1ed27a
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
963f219df44f5577aa973dca931fcd6fb60921eb 05-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Extract logic from PhoneCallDetailsViews."
afb93bb5893c7c64be3f32598b383fdf589c29d8 05-Jul-2011 Flavio Lerda <flerda@google.com> Extract logic from PhoneCallDetailsViews.

Instead of having the logic in the views object, use a helper class. The
advantage is that we can have a single instance of this class and I will
do some optimizations in a follow-up changelist.

Change-Id: I6258e947aa33a2a3b6e72d7273a3b7e080c5d7e5
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsHelper.java
ndroid/contacts/PhoneCallDetailsViews.java
b7306e3af3a877b397b71f6418a482c9597fd28f 05-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Use CONTACT_ID field for the quick contact badge."
87bd5360fcd0cc1f76f0e46a431a8c5152a9a7ed 30-Jun-2011 Flavio Lerda <flerda@google.com> Add notifications for new voicemails.

New voicemails trigger a broadcast: receive the broadcast and show the
notification in the status bar for it.

Lookup the number and contact name (if any) and include those in the
notification.

Bug: 4968670

Change-Id: I7c68458696199c47fe49b37a732fe10ce24e3fe9
ndroid/contacts/calllog/DefaultVoicemailNotifier.java
ndroid/contacts/calllog/NewVoicemailReceiver.java
ndroid/contacts/calllog/VoicemailNotifier.java
7753f03fc96c23f9826d2db6af1de44ca896f575 04-Jul-2011 Flavio Lerda <flerda@google.com> Use CONTACT_ID field for the quick contact badge.

Currently the code uses the PHOTO_ID as the id of the contact that is
used to open the quick contact badge, which is not the correct
identifier.

Change-Id: I5ada4e2e8e7924d6212e7e8b472a131fcf18e80d
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
e00060ff05c602e036cf0c3809ed866270c93c3f 04-Jul-2011 Flavio Lerda <flerda@google.com> Visual updates to the call log.

- New style icons for the different call types.
- Icons for call and playback of voicemail.
- Style definitions for call log.
- Add placeholder assets.

Change-Id: Ia2ec57dc078d1dec9680aea4917aea0490dda1a8
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
b4ae205c738ee5131e3f34a273628adc28b09776 05-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Move social snippet and date to updates fragment"
bcb5f514cff58300fdb48ca883f08876076b23fa 04-Jul-2011 Flavio Lerda <flerda@google.com> Implement QuickContactBadge for call log.

This change adds QuickContactBadge functionality to the call log.

This means we can directly access most actions on the contact directly
from the call log, without going to the details or opening the
long-press menu.

Bug: 4774110

Change-Id: I47c0137424462be5230bab466d458621be1977a6
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemViews.java
d814e42a6ac71962a6eeb9ce37b4abc2c1205952 04-Jul-2011 Katherine Kuan <katherinekuan@google.com> Move social snippet and date to updates fragment

- Now the phone landscape view shows the social update
- Make updates tab show 3 lines of the social update
(no status date)
- Remove empty "no updates" view in updates fragment
(if there are no updates, the updates tab shouldn't
even appear)
- Remove star in "about" tab because it's been moved
to the action bar
- TODO: Make this a list of updates when social
integration is ready

Change-Id: I60cf15edb58b8818c63e6fe9b5fec01f64fca563
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
f81e4c688d86d3905738d9d1caf934179e69304e 02-Jul-2011 Katherine Kuan <katherinekuan@google.com> Contact detail list changes

- Bring back DataKind header labels
- Fix dividers
- Add networks section for 3rd party entries
- Move phonetic name (previously in header) into list of contact details
- Move attribution (previously in header) under networks section
- Rearrange ordering of DataKind sections according to mocks
- Do some minor re-styling for phone

Change-Id: Ic49e521e122b00a6038b0679f21b90e2323b9171
ndroid/contacts/detail/ContactDetailFragment.java
16c4b2943e02a0b919e7da7bb5e58ced7523b8f6 04-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix crash when trying to edit a contact

- Set the lookup URI manually in setData since we're no longer calling
loadData on the detail and update fragments

Change-Id: I5838e2bfe4a77d9d47444b4e16ce02485af17307
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
2eb969cc399d87b659a45568fa951d394c216917 28-Jun-2011 Katherine Kuan <katherinekuan@google.com> Contact card with and without social updates

- This is for the phone (landscape and portrait)
- Some tweaks were done to the tablet to prevent regression
but it's not quite ready yet
- No social updates means a single scrolling list of details
- Having social updates means a tab carousel and ViewPager
- Add invisible contact loader fragment
- Now the loader fragment loads the contact --> passes to
ContactDetailActivity --> passes to all necessary fragments /
carousels (no matter the configuration)
- Get rid of ContactDetailAboutFragment and move those changes
into the ContactDetailFragment

Change-Id: I7be55ae7205bbcb8106bf2f2e4ae8dd6ce2c6a78
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailAboutFragment.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/ContactLoaderFragment.java
ff21d31ad90e64853f66b4064a0322ef0ff9aeeb 03-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Vibrate on soft search button event

Change-Id: Id0a00307bb9858c5fffa6404645de3f773e63a64
ndroid/contacts/dialpad/DialpadFragment.java
218d1b1a7e412658735ab8858675f3b9cf432968 03-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show quick contact in phone search UI"
f2bc9f78ab2fe6856f338f537445e210f1eb9300 02-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Group editor on tablet"
7aff29aa9c0b83116cdf8bdf493f0e6888033090 02-Jul-2011 Katherine Kuan <katherinekuan@google.com> Don't show "My Contacts" and "Starred in Android" groups in group list

- In group list, basically filter out the group if auto-add = 1
or favorites = 1

Bug: 4727799
Change-Id: I8909707058fc86cd525e8df705f2efe571171760
ndroid/contacts/group/GroupBrowseListFragment.java
c6b8afe730255537978f2c938cca6986cae63c34 23-Jun-2011 Katherine Kuan <katherinekuan@google.com> Group editor on tablet

- Allow autocomplete to add new members which presents
the user with suggestions from the raw_contacts table
with the same account name and type as the group
- Hook up the "new" and "edit" group buttons on the tablet
- Once the user exits the editor, update the group list
and scroll the group list to the group that was just edited
- Allow rename of groups (make the names of read-only groups
not editable)
- Allow removal of members
- Hook up the done / cancel / up / back buttons

- TODO: Be able to create a new group + add new members
in the same transaction. Then the new group editor
will allow adding members at the same time. Currently
you can only add a name to a new group. Once it's created,
then you can go and edit the membership.

- TODO: Bulk add/remove members in one transaction when the
user exits the editor. Currently it's saving the change
after you modify the membership list (even before you hit
the "Done" button in the editor).

- TODO: Add member status message and chat presence

- TODO: Add UI for non-editable groups

Change-Id: I1f32a28862c358b8bd1469666743cd240d28f80b
ndroid/contacts/ContactSaveService.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/GroupEditorActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/group/GroupEditorFragment.java
ndroid/contacts/group/SuggestedMemberListAdapter.java
ndroid/contacts/interactions/GroupRenamingDialogFragment.java
87e324c46ea0c9034fd1cf5a884ef2b2cb9c2c7a 01-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show quick contact in phone search UI

Change-Id: Ibc643162b9c74964b1b9e9bd89351203fb29d6b6
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
fd33cc3ab956222dffa6b669a13a614747a5cdff 26-Jun-2011 Katherine Kuan <katherinekuan@google.com> Add flag to AccountType for ability to edit group membership

- Needed for the group editor feature (upcoming CL)
- Only Google and Exchange group membership lists can be edited,
all other groups from other sources are not editable (for ICS at
least)

Change-Id: I8f2ab08a6ff0cebcce0b182e4793dfbc645a5412
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
88f70fc83cdd119e85d9890b2875faf5c981b47d 01-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show app icon on Phone search UI.

Change-Id: I2c09ed6635b27042c7c98bb40c41fa1724e533db
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
89c29bf154365060963fbdee8949de68771dcbcd 01-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add the search button in CallLog/Favorites"
aa72f08effc0b2bac7c56dd2fed9bbeae3a6f109 01-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add the search button in CallLog/Favorites

- Use ActionBar's split style
- Maintain swipe/tab-select behavior correctly
- remove old menus and add search menu item
- use xml instead of programatically adding menu items

Change-Id: Ibb00ae0f33d3a42b72c238f4d1d9a3fe0ea31562
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
be41323d24a57a60c9e90d55b8485f057d1abcb3 01-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Fix NPE in People App on phone when search is pressed."
aa2dfcdf9e7a4701f3954413f1cd75b8e1a26910 30-Jun-2011 Frank Sposaro <sposaro@google.com> Fix NPE in People App on phone when search is pressed.

Bug: 4980842
Change-Id: Ida527a877c22354c447726e900336f050fa74aee
ndroid/contacts/activities/PeopleActivity.java
61caa5cae8be7f11d11f8410a6ce82f0ff1215aa 01-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Uses a tag for vCard-related notifications."
a62b5dde268143c1e5fbe2d43065c127063cf25b 01-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Introduced ContactTileSquare."
53d4b8eef85ccdc2e750a36307492c97cfbb225c 01-Jul-2011 Flavio Lerda <flerda@google.com> Uses a tag for vCard-related notifications.

Currently, we are adding notifications for vCard events using an
identifier. However, these identifiers need to be unique within the
application, which is not easy in this case since an unbounded number of
identifier can be used (i.e., they are based on the job id of the vCard
being imported).

Instead, add a tag to the notification, so that notifications for vCard
cannot conflict (and replace) notifications coming from somewhere else
in the application.

Change-Id: Ia544fc4e11c43799222c30cece9330478208fd46
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
48bf8fec98657f207356f761daac118ae8a9bc08 29-Jun-2011 Flavio Lerda <flerda@google.com> Include voicemail in the call log.

A recent change added filtering of voicemail from the call log content
provider by default. This change makes sure call log actually includes
the voicemail.

Change-Id: Idc74468e3f9806d7648b3a746d63032bc96c9c21
ndroid/contacts/calllog/CallLogFragment.java
862c0230cf03b05f97a673abdc525cdc5ced98bb 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Support horizontal swipe in Phone app"
3a2d13bf51f1e51dc52dcef84730bf921d47c1ba 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add comment about keyboard showup logic."
438e1f19279ea058e145c84dbe3ba62cc14df645 29-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Support horizontal swipe in Phone app

- introduce ViewPager for swipe support
- let DialpadFragment call resolveIntent() by itself
on onCreateView()
- remove ContactsFragment (a.k.a previous "3rd" tab)
- remove resolveIntent() call in onNewIntent()
-- This was introduced to fix bug: 4724464 but we cannot
do same thing anymore, as we cannot assume views in the
Fragment is ready at that moment.
- remove some codes coping with old tab behavior.
-- After having the ViewPager, we cannot simply assume
Fragment is a replacement of previous tab activities.
Fragment creation is delayed by ViewPager, so some of
old codes causes NPE.

Bug: 4974874
Change-Id: I3b2f95b0d34e89bb9665b2014048a634d29e54ce
ndroid/contacts/activities/DialpadActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/dialpad/DialpadFragment.java
eec538e5a1cacb96b7cd4309efaa5ddb0baac6fa 30-Jun-2011 Frank Sposaro <sposaro@google.com> Introduced ContactTileSquare.

-Used to display what use to be called ContactTileRegular
-Easier to read and fixes some weird layout issues

Change-Id: I5fc35d5a0d5a1bea3f2a2ff72281cd822bfcc6b9
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileSquareView.java
ndroid/contacts/list/ContactTileView.java
d5edade6cf63ef10bba3df627b792450d43e404f 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Refresh layout for dialpad"
a599456ad6c40f183cf77ef33ea927ee829e7fb8 30-Jun-2011 Dave Santoro <dsantoro@google.com> Merge "Fix issue with loading profile photo."
11a9df755a4cfbe81b2488b1d588126166cdaeb8 30-Jun-2011 Dave Santoro <dsantoro@google.com> Fix issue with loading profile photo.

The photo preloader was not requesting that profile data
be included in the query.

Bug 4981384

Change-Id: I9fa1a0ee0a1e9fe3a12fe5d906631ef3365de4dc
ndroid/contacts/ContactPhotoManager.java
39b4ce98396fdf6b545fd2ce6d26e8aad70ad0f2 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Refresh layout for dialpad

- update some assets for new holo UI
- Use system's TableLayout
-- ButtonGridLayout is hard to control from xml
-- Tried to use new system GridLayout, but it looks
TableLayout was suitable for this purpose
- remove background drawables
- remove codes dynamically setting background for digit field

Change-Id: I75853eca37ffa3a554a407b181dedc9b92bcf9e7
ndroid/contacts/dialpad/DialpadFragment.java
e53dd224d029a05260d96e5c754db895a2cb5d10 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix possible NPE in phone search UI

Bug: 4970248
Change-Id: I82a8482d500cd849c8c1d4507386f3ca45ad0f10
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
36c33609482ae5c961ac5f3b67c581a0bb430f38 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add comment about keyboard showup logic.

Change-Id: I53ae005377479da5d7365d7421fbc2a07049a55f
ndroid/contacts/activities/DialtactsActivity.java
f4e5dfa30a752ec785b2eecee21c2b620104def2 30-Jun-2011 Amith Yamasani <yamasani@google.com> Merge "One way to make the keyboard appear on starting search."
22f1749a2a0bfcce9b35c5a4b43d6018d07149b8 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show incall UI correctly."
c18f9b7cb0846d0c10fe0398224b53530a2194ec 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show incall UI correctly.

Change I39f9b042990c7c1136fd7471cd292d5a679505cc removed what we
need. In GB we explicitly used phoneIsInUse(), so using it again
would be appropriate.

Also use "inverse" color so texts should be visble at least

Change-Id: I401bcb25d1d75a4eda5c1747e724293e93d87d68
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
c5be9585f664a893392486e3f86c67f3e083f271 30-Jun-2011 Amith Yamasani <yamasani@google.com> One way to make the keyboard appear on starting search.

Change-Id: Ie76bf8e58fbf99025f803847ba091928a7a209e6
ndroid/contacts/activities/DialtactsActivity.java
2aa09b9965fd22c4dd5536d0f576ac351a8eb00d 29-Jun-2011 Frank Sposaro <sposaro@google.com> Fixed NPE Bug for joining Contacts on Tablet.

Bug: 4355323
Change-Id: Icb4802e0d2b67dc118818d98ea5e06d95dde3d25
ndroid/contacts/editor/ContactEditorFragment.java
7d8944f8dff9a3502c5c2e8c6543efcd753880ef 29-Jun-2011 Frank Sposaro <sposaro@google.com> Merge "Favorites on Tablet are ContactTiles."
f00ff8b91e6c452839bb80c195bc8616797b9a0c 29-Jun-2011 Frank Sposaro <sposaro@google.com> Favorites on Tablet are ContactTiles.

-Redesigned fragment sizes on favorites tablet.
-Frequent ContactTiles are now shown as a list.

Change-Id: I6dbce53e867619665df551cb85afc9960c76c0fa
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/StrequentContactListFragment.java
3bc1e8f0dd82496bd462f8ce14ce8d97ba09d71a 29-Jun-2011 Katherine Kuan <katherinekuan@google.com> Merge "Move favorites star to the action bar on contact card"
cfcd0764a1ec53c6014df9ce3e7d3a3da511599f 29-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Highlight search texts in search result

PeopleActivity does it.

Change-Id: I2d4523ace783c2b622e0d0e0cd17fb61d1155c0a
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
160daa80e79f26e32b121ff1f2eba688c2380821 09-Jun-2011 Flavio Lerda <flerda@google.com> Use a cache for the contact info in the call log.

This commit introduces an ExpirableCache, a cache whose elements can be
marked as expired.

Instead of clearing the cache when the activity is resume, marked the
items in the cache as expired. Items that are found in the cache but are
expired will trigger a re-fetch of the contact details.

Change-Id: Ib06534c33d3427047afc4d95fc254a644a92d836
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/util/ExpirableCache.java
942cec2d8a248b1a22e95f4d573d235e281ee91a 29-Jun-2011 Katherine Kuan <katherinekuan@google.com> Move favorites star to the action bar on contact card

- Only applies to the phone
- Remove star from tab carousel

Change-Id: I214a4d2a310b5f2060b55856755e9635a8c45a58
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
fa3f7b6898e9f61b93a4c871c307bd72cb719806 29-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add Call Settings menu in dialpad fragment."
5f0b0843665e3edc76735965a8e1fa340fff7802 29-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add Call Settings menu in dialpad fragment.

Also fix some issues around the other menus, which are
shown even when a user doesn't enter digits.

Bug: 4971637
Change-Id: I6bfc26cc19d0cc397f7a8e585e87330336ae4407
ndroid/contacts/dialpad/DialpadFragment.java
e2bead5b35e3fcd6658a1f08473c81c852d123dc 28-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Handle a possible weird case for empty directories table"
038d088d32924c5d616f38bcb324ff6f5d02239f 28-Jun-2011 Frank Sposaro <sposaro@google.com> Merge "Frequent contacts now display as a single list item per row."
f06138c8d719a0b2ad0dc4ae26f8d6321c27d64c 28-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Handle a possible weird case for empty directories table

Usually ContactsProvider must have at least one directory
in its directories table. If it does not, Contacts app works
wrongly with search UI, which is not appropriate for production.

We still need to figure out when and why it "may" happen, so
this change will dump really nasty error log when it happened.

Also modifies its comment. It looks this method does not
maintain the cursor, and should not (as this method is called
from other methods which want to maintain it)

Bug: 4970089
Change-Id: Ieaca11bfabf8413bb3f8c9867d304a5c00b5735b
ndroid/contacts/list/ContactEntryListAdapter.java
e9886ff7a1e14bed299567b0254acd13dfcc3cdc 24-Jun-2011 Frank Sposaro <sposaro@google.com> Frequent contacts now display as a single list item per row.

Change-Id: I5a4812d5b01d76368da56e0506df638089932e7e
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
37a2684d1e47f6d78d757c437a187548f242ee13 27-Jun-2011 Flavio Lerda <flerda@google.com> Fixes tests on userdebug builds.

A number of tests are currently failing on userdebug builds because they
refer to methods that are used only in tests and proguard striped these
methods when building the application APK.

This change adds the VisibleForTesting annotation to all such methods.

Bug: 4901489
Bug: 4902483
Change-Id: Ic7c51ef5b77f4f2d2af39cdafbf8e2e37260644b
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/activities/CallLogActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/format/FormatUtils.java
ndroid/contacts/format/PrefixHighlighter.java
ndroid/contacts/interactions/TestLoaderManager.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/test/InjectedServices.java
ndroid/contacts/widget/CompositeListAdapter.java
42009fea75cc6cb3b48161949f31333a630c2547 28-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove contact tab."
20962611bd54c64c206351d53b51686081d89e53 24-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove contact tab.

- remove contact list tab on phone UI
- show search button instead of voice mail button
-- uses temporary assets
- remove some layout xml and have dimen values instead

Bug: 4691486
Change-Id: Iec028849fa65079ac7d76a64baf1590fd4537c37
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
adef82a200de882283b2ff7e74b2c88a7e7c2b78 27-Jun-2011 Dave Santoro <dsantoro@google.com> Merge "Renamed references to INCLUDE_PROFILE."
8f0f3343e4363a5e1f11b35392c8393f263aaa41 21-Jun-2011 Katherine Kuan <katherinekuan@google.com> Phone landscape view of contact card

- No tab carousel, show half of the other (about or updates) page,
tap or swipe to see the other page
- Add alpha layer and touch interceptor layer
- Add new resources folder for w470dp to cover landscape on
phone sized devices

Change-Id: Ia3b1cd76ebe35420b1facd415998b14ba161b0ba
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailAboutFragment.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailFragmentCarousel.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
ndroid/contacts/detail/FragmentOverlay.java
ee179470c986594ac8f8cbacb7bdddff332ecfc7 25-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add listener to "favorites" fragment.

Bug: 4948919
Change-Id: I43c0ef977cbb732d910091482d467228379b952f
ndroid/contacts/activities/PeopleActivity.java
df4852fcc120be8097b8e2b333671eca434fdfae 24-Jun-2011 Dave Santoro <dsantoro@google.com> Renamed references to INCLUDE_PROFILE.

Bug: 4777097
Change-Id: Ief870cc57e6f9d102a8f8e1e97bbbb540cef1276
ndroid/contacts/list/ContactListAdapter.java
76dd128627beef2e0516e6742280bd15fc68e59f 24-Jun-2011 Frank Sposaro <sposaro@google.com> Added Fix to to check child visibility in InterpolatingLayout.

Change-Id: Ia39f7a00764a563d4747e12505ad89894e7fd815
ndroid/contacts/widget/InterpolatingLayout.java
350e8d53a135e0bb62308a93dd09777364c08a58 24-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Handle menu event correctly.

Right now after showing search UI, every menu cannot be available.

- make them available
- refrain menu in search UI

Change-Id: I4bf0056c9b404d43c2ab2ac0f227441c1147d09f
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
68f33150cf394279fc97f06ba5601482741147b7 24-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Focus last selected tab

"StickyTab" behavior needs more implementation. This mitigate
user experience a bit.

TODO: implement SticyTab behavior which had existed in GB

Bug: 4904820
Change-Id: I39f9b042990c7c1136fd7471cd292d5a679505cc
ndroid/contacts/activities/DialtactsActivity.java
b2e626ad4fedc0fd726f66b9942d1b2f30d9cfef 21-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Implement phone search in DialtactsActivity

Includes tiny layout fixes for ContactSelectionActivity,
which also uses the same phone search fragment.

TODO: let the other Adapters like DefaultContactPickerFragment,
EmailAddressPickerFragment support grouping feature.

Change-Id: I8d7718192522a0005b9b76931560fe297cad882f
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/PhoneNumberListAdapter.java
5f34b2e20ad4a41b6dd3fd0703d59e085bffeb1c 22-Jun-2011 Frank Sposaro <sposaro@google.com> Group members are now displayed as ContactTiles

-For Tablet
When trying to view a list of all the group member, they
will show up as ContactTiles.

Added GroupMemberLoader as a helper class to query
for all members based on group id.

Change-Id: I7eae9066a2e881c28eca1fc157142e49a9bad725
ndroid/contacts/GroupMemberLoader.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/StrequentContactListFragment.java
b1f0e5e8a4de69bd80276742900441e930fa4c86 22-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show dialog if multiple candidates exist

In GB we show a list of phone number to call in Favorites
screen, while we don't now.

Also refrain PhoneNumberInteraction from showing a dialog
by itself but let a nested class do instead. showDialog() is now
obsolete and we should use DialogFragment instead.

Bug: 4743008
Change-Id: I202963c2f03424f07ee386bd9713fde4091a0ae2
ndroid/contacts/CallContactActivity.java
ndroid/contacts/Collapser.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
2c83a753ac53b64ed7c4d7756501e6f8d46618dc 22-Jun-2011 Frank Sposaro <sposaro@google.com> Merge "ContactTiles now expand to automatically fill parent view."
c56a413e08d907858f848ebbdd8f57290a20f44e 20-Jun-2011 Frank Sposaro <sposaro@google.com> ContactTiles now expand to automatically fill parent view.

Change-Id: I58dd59b720f65be772e456eca428fd8de950ef32
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
a1455a2288a7956ea9543177cee4a3be75745e32 19-Jun-2011 Katherine Kuan <katherinekuan@google.com> Pinned tab headers on contact card

- When vertically scrolling the contact details, move the
tab carousel vertically off the screen until just the
tabs are showing
- Make ViewPager span the entire height/width of the screen
- Make the tab carousel go on top of the ViewPager

Change-Id: I8e93fb64e8bb6d1749b371a030a36883fc57f0dd
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
79700889dad553dcde9e22a2fd23df768f68080f 15-Jun-2011 Katherine Kuan <katherinekuan@google.com> Add tabs to contact card

- Since the ContactHeaderView and ContactDetailFragment will still be used
for contacts without updates, leave this code in. Temporarily make all
contact cards have the about and update tabs.
- Use ViewPager for contact details
- Move name and job to action bar
- Add about fragment and updates fragment
- Add carousel for "about" and "updates" tab
- Create utils class for converting ContactLoader results into
strings for display since the ContactHeaderView will no longer
be the only customer for this data

Change-Id: I84ff759ee09daefcc7e7514564c180f27f0400b6
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailAboutFragment.java
ndroid/contacts/detail/ContactDetailDisplayUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailHeaderView.java
ndroid/contacts/detail/ContactDetailTabCarousel.java
ndroid/contacts/detail/ContactDetailUpdatesFragment.java
c569acf64701828c84271a81836dfd1a404dba03 16-Jun-2011 Frank Sposaro <sposaro@google.com> Can now configure adapter based on viewtype. Added section divider.

Change-Id: I7708fcfd1910082bb38f2044377b75161248e6a1
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/StrequentContactListFragment.java
2c58a578f683cbd2b25c12bd284a26ac11a1d624 18-Jun-2011 Daniel Lehmann <lehmannd@google.com> Fix the crash on launch

Change-Id: I7e1aa74843b64dc8fb6c92618a97255601d15038
ndroid/contacts/list/StrequentContactListFragment.java
d8e545ee3e9c26985049ef7ebb380fcde26f17d4 18-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fill in phone number again on onNewIntent()"
5d96befd4cc61df08f89b83aa01b669765470315 17-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fill in phone number again on onNewIntent()

Bug: 4724464
Change-Id: I1ebaa29e497e88211936837e56418a744619f81d
ndroid/contacts/activities/DialtactsActivity.java
e7e7e6d250f9214cc68a411717af517e2d18918d 17-Jun-2011 Frank Sposaro <sposaro@google.com> Merge "Allows variable number of ContactTile columns"
f1b6d5f2e1ffe921e1df54be0418713d9a6e0a56 16-Jun-2011 Martijn Coenen <maco@google.com> Merge "Contacts NFC sharing: address review comments."
194cdd3b71e3fdb1a77a4fa5435a6b6319407e91 16-Jun-2011 Martijn Coenen <maco@google.com> Contacts NFC sharing: address review comments.

Change-Id: Iec72636a514eb5ae08ef387525ac969e374cf4c1
ndroid/contacts/NfcHandler.java
d2031e0c809580219faa55a27c237c7bdf8505a5 06-Jun-2011 Flavio Lerda <flerda@google.com> Refactor code for filling call log views.

Move the code that decides how to fill the call log views into a
separate helper class. This makes things easier to reuse and test.

Change-Id: I5e03e6764f395ca7e9f7ed5451c476ac1bfe6a95
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/CallLogListItemHelper.java
ndroid/contacts/calllog/CallLogListItemViews.java
abfda3989409f21a61968df76d4a098e43944db5 15-Jun-2011 Martijn Coenen <maco@google.com> Merge "Share currently shown contact over NFC."
8bd4065141c64a4ab249aec46e5f32d25a862f64 15-Jun-2011 Martijn Coenen <maco@google.com> Share currently shown contact over NFC.

Change-Id: Idd3cf801bcb154537f7ba352c4ff959ff01dcbba
ndroid/contacts/NfcHandler.java
ndroid/contacts/detail/ContactDetailFragment.java
b961b3b6dae6e3f1b6096631f130c38bfa33267c 10-Jun-2011 Frank Sposaro <sposaro@google.com> Allows variable number of ContactTile columns

Change-Id: I0d8fb22407f5fe45963ca4533c37fc9fd34119e5
ndroid/contacts/StrequentMetaDataLoader.java
ndroid/contacts/list/ContactTileAdapter.java
ndroid/contacts/list/ContactTileView.java
ndroid/contacts/list/StrequentAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/list/StrequentContactListFragment.java
a6c8f2daa80f1816dd25237457d7f6287c6b1b7c 15-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show the selected account first in account switcher

Bug: 4584712
Change-Id: Ib041d7aa3cca3fa8f5b4780eb7a76c5e41819b39
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/util/AccountsListAdapter.java
0633d7fe70124161422fcf50aa88d211698a4bd5 15-Jun-2011 Flavio Lerda <flerda@google.com> Merge "Refactor the code to determine the details of a call."
f6030526dac49978458f15b599f6c842dc24c1a6 15-Jun-2011 Dave Santoro <dsantoro@google.com> Merge "Contacts UI changes for profiles."
0a4d2258411478c7c78790cd55ba25c99f588c26 20-May-2011 Dave Santoro <dsantoro@google.com> Contacts UI changes for profiles.

The user's profile entry is displayed slightly differently from other Contacts.
The profile photo is 25% larger (e.g. 56dip -> 70dip) and rather than showing
the display name, it displays "My profile".

Section headers are also special-cased for the profile entry - it appears above
the section header rather than below it.

Change-Id: I6fd99d303c7dd1347031d3607741827ea2a31a0b
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListProfileItemView.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/DefaultContactListAdapter.java
1ee9df6facd2340416d6a33aeb739707643d2fc3 12-Jun-2011 Katherine Kuan <katherinekuan@google.com> Fix search view on phone

- Take SearchView out of the action bar on the phone
and put it into the overflow menu
- Hide menu item if already in search mode

Bug: 4575326
Change-Id: I63003bb2c31712510ffa30eadb65b8a511f42011
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
8268bbe65440c70db46b4c505433fac1fdc36e58 11-Jun-2011 Katherine Kuan <katherinekuan@google.com> Add group menu options in group details fragment

- Move "new contact" and "new group" menu items into
list fragment (instead of details fragment or
people activity), so it works according to the current
tab esp for the phone
- Move group menu items into group detail fragment
- Remove custom "new contact" button
- Add some fixes for menu items / fragments going into and
out of search mode

Change-Id: I1f2a4d7e90b4e5d438bb271f0a66e21d8069b189
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupDetailFragment.java
a024c3f4514e729d035c1222a9cdee5a63d841b7 10-Jun-2011 Flavio Lerda <flerda@google.com> Refactor the code to determine the details of a call.

This same logic is (partly) duplicated in the call log for formatting
the individual calls in the list. We need to get these two to be the
same so what is best than having a single copy of the code?

This tries to pull as much as possible of the logic into the views class
and leave the rest of the code to handle only extracting the values from
the source.

Change-Id: Ic42b4de70b0a8cb6101f80504d247b68e138a44c
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/PhoneCallDetailsViews.java
0ff0e317cbf788adc4dce38257d27691e032d6ca 09-Jun-2011 Katherine Kuan <katherinekuan@google.com> Group list headers and selection

- Sort groups according to account
- Add headers to groups in same account with # of groups in that account
- Add "selection" background on list item in tablet, but disable it on
the phone
- Misc: enable fast scroll, move icon to right

Change-Id: I1c83aa686de2431b3483a1591ecad7e9e6893cdc
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
23b1b54d9e7cf9e597d2c1616a7224299a163b29 11-Jun-2011 Daniel Lehmann <lehmannd@google.com> Properly pass in preloading (its meaning was inverted)

Change-Id: Ie09d4dd71f8f57ad71e8af97fb3ec5452dc50132
ndroid/contacts/ContactPhotoManager.java
ac36f9f02079328fa55fdb7bbe498bc1d1cc2b64 13-Jun-2011 Flavio Lerda <flerda@google.com> If the loader is cancelled, show an empty list.

Currently, the adapter fails with a NullPointerException while trying to
iterate through the cursor; instead, we can simply show an empty list of
contacts in that case.

Bug:4597448
Change-Id: Ibd91bded0f77fd8f9f040f7f6af12f6c863c6370
ndroid/contacts/list/StrequentAdapter.java
5e684a424e7036ba3d379221d1889b4dd7265021 10-Jun-2011 Dave Santoro <dsantoro@google.com> Update references to ContactBrowserActivity.

The activity was moved to PeopleActivity - references in comments
and test were not all updated.

Change-Id: Ie01e514323a05c4316d4f42c9af75f7759434352
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
f3f933a798c9cfffb1c1c0cc770187b5b0b763eb 10-Jun-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in ActionBarAdapter

- Fixing the SearchView will require more work, but temporarily
add a null check before calling any method on the SearchView so it
doesn't crash anymore in Monkey tests

Bug: 4584460
Change-Id: Ibb31a1931213cdce82b593c9de62e600d5ba2e35
ndroid/contacts/activities/ActionBarAdapter.java
32f395567c9d103e9101c2549f76945c9dee20b5 06-Jun-2011 Frank Sposaro <sposaro@google.com> Redesigning how Favorite contacts are displayed

Changing to muli columns with big pictures

Change-Id: I582f4dae52229920b20d39b565a1a9fd84b28529
ndroid/contacts/StrequentMetaDataLoader.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/StrequentAdapter.java
ndroid/contacts/list/StrequentContactListFragment.java
be18de05d6f6a107c552e369bce58f51c946fde7 07-Jun-2011 Katherine Kuan <katherinekuan@google.com> Add group detail fragment on tablet

- Add action bar on GroupDetailActivity, title, and subtitle
- Make everything use the groupUri instead of passing around
account name, type, group Id, and group title
- Fix some of the callback listeners between the group fragments
and group activities
- Add factory methods to ContactListFilter

Change-Id: I63066ea6eefde1e57562b6396d6dc590ed023c84
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailFragment.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/ContactPickerFragment.java
7e8a164a585d2fb47d248ef1b0421db0a1ec9442 09-Jun-2011 Flavio Lerda <flerda@google.com> Merge "Update the call details UI."
9cafe479bac074b63a7e634217f97bc96058ed85 08-Jun-2011 Flavio Lerda <flerda@google.com> Update the call details UI.

New call details UI:
- Big picture at the top with a black overlay
- Small contact picture on the side
- Details of the call next to the picture
- Action button for calling back
- Action button (disabled) for deleting: waiting for asset
- Details at the bottom

This commit still preserves the list view with action to keep the app
fully usable. These will be replaced once we use a quick contact badge
instead of a plain contact picture.

Change-Id: I8e8218c3ef863abe9b33d4b677afa3c6650b9f77
ndroid/contacts/CallDetailActivity.java
07caddd404cbe2505ffeb32cae81f980baa304e3 09-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make multi import one request"
6d42e4933d42fc2805f921adf3a5e65d64e16238 07-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make multi import one request

VCardService may exit after processing the first request for
multiple imports, in which the user may see strange "rejected"
messages. We should pack those multiple import into one message,
which forces VCardService to process after all the requests.

Bug: 4540627
Change-Id: I4d645eb3a04e35da465b0c4181cbff5bf7ebf029
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
262cfb99325489b1881bb616897afd335bd07f39 08-Jun-2011 Flavio Lerda <flerda@google.com> Merge "Add contact picture to the call log."
b5760b94bbf56ce348876ec36f4669d20a1530f5 02-Jun-2011 Katherine Kuan <katherinekuan@google.com> Add tabs to People app

- Move account filter into overflow menu
- Use action bar in tab and standard mode so the SearchView
is right aligned and part of the options menu instead of the
custom view in the action bar
- Make visibility of action bar home icon a style so the icon
can be hidden on the phone
- TODO: Make physical search button work on the phone so the
search box can be removed from the action bar
- TODO: Fix SearchView focus problems

Change-Id: I7b3ba49f80e1911fb4a096679a00560967584426
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/list/ContactListFilterController.java
264d778cc4fb0c87e1e1cea66d8a4f8b157a8c0d 07-Jun-2011 Flavio Lerda <flerda@google.com> Add contact picture to the call log.

This commit adds contact pictures to the call log. Since the photo id
for contacts is not currently cached, photos will be reloaded each time
the call log is shown.

Change-Id: I6839399a8db97ab9dfa5f464afbabe86e513d1f9
ndroid/contacts/calllog/CallLogFragment.java
e856a6bc58384503472ea9b1a60ca16325565da8 07-Jun-2011 Flavio Lerda <flerda@google.com> Merge "Prevents NPE when trying to find index of word."
682654cb8d77a1d885ff321aa20755f98bf395d9 07-Jun-2011 Flavio Lerda <flerda@google.com> Merge "Introduces a TestLoaderManager to test loaders."
17b15270fa2af6bf168357dccc41835036317e4b 07-Jun-2011 Flavio Lerda <flerda@google.com> Merge "Remove requests to start background thread."
950a56825eee4b3f8c775e483a0bca1c0278d136 07-Jun-2011 Flavio Lerda <flerda@google.com> Prevents NPE when trying to find index of word.

Add check for null prefix or text and simply return the prefix was not
found if either is null.

Change-Id: I81263028a4fcdbf74e6ad0922a170b9a3b83ebae
ndroid/contacts/format/FormatUtils.java
34ce5e98f78b46b858d8afd450d1153c1d985426 06-Jun-2011 Flavio Lerda <flerda@google.com> Introduces a TestLoaderManager to test loaders.

Currently, the ContactDeletionInterationTest are flaky because waiting
for one of the loader to complete will fail if the loader was completed
before we start waiting.

Since this happens asynchronously and we do not information of which
loaders have completed, there is not an easy way to know whether the
loader already completed or never started.

This change introduces a TestLoaderManager which is an implementation of
LoaderManager which delegates to another object, but keeps track of
which loaders have completed. This allows to correctly wait for Loaders
to complete, even if they might have completed before the call to
waitForLoaders takes place.

Change-Id: I5e3795e10fc9b3424b983cdef4ac32feed7dbf74
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/TestLoaderManager.java
05bc27a38dcb4d459e588c2b447b1e271f00bf6c 06-Jun-2011 Katherine Kuan <katherinekuan@google.com> Merge "New People activity"
e3ea5f7ac1518eafbe2859691087625046d70a89 06-Jun-2011 Flavio Lerda <flerda@google.com> Remove requests to start background thread.

When the activity is being paused or destroyed, we asked the background
thread handling update requests to be stopped. However it is possible
for a request to start the thread is pending. Make sure those are
removed as well.

Since onPause/onDestroy and the request are all handled on the main
thread, there is no race condition between the removal of the request to
start the thread and the call to stopRequestProcessing.

Change-Id: I5eab9fa12d54ce5a5519687946fab8f4c82470b6
ndroid/contacts/calllog/CallLogFragment.java
b7a90197cc3f3c248b398dc46b2bce04c1bf3b05 06-Jun-2011 Flavio Lerda <flerda@google.com> Use getTypeLabel instead of getDisplayLabel.

Phone.getDisplayLabel is deprecated and it is currently implemented by
ignoring the label array.

Change-Id: I3e5e41f554c0a76d90af398cfef6f65cb0e01507
ndroid/contacts/calllog/CallLogFragment.java
c9a9cdb5741e5e3190063f7744db7e332f63ec72 03-Jun-2011 Flavio Lerda <flerda@google.com> Fixes highlighting of prefix.

Highlighting of a prefix (from a search) in contacts name was not done
correctly when the name was also set to be in bold. This commit changes
the logic to separate the two aspects and combines them in a way that
makes things easier to use.

Change-Id: Ibdf12d8478b7ab44ca0be82353c43ed9118d29cd
ndroid/contacts/format/DisplayNameFormatter.java
ndroid/contacts/format/FormatUtils.java
ndroid/contacts/format/PrefixHighlighter.java
9856fcee477d04f51bdbcbfdf632876c6b8a1173 01-Jun-2011 Katherine Kuan <katherinekuan@google.com> New People activity

- This is part 1 of bringing up the new People app
- Rename ContactBrowserActivity and related XMLs to PeopleActivity
- Change Contacts to People app launcher icon
- Create new task affinity for phone app activities
- Get rid of ContactsFrontDoor activity because it doesn't need
to distinguish between Dialtacts and ContactBrowserActivity anymore

Change-Id: I8c5e1ed540b294c1bda85409ca1499f88d4459ee
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/PeopleActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/vcard/ExportProcessor.java
63223b47802aa51bdca4c3de5b5096edc2e384e7 03-Jun-2011 Flavio Lerda <flerda@google.com> Correctly terminate when interrupted.

When handling the InterruptedException, reset the interrupted flag.

Moreover, when the thread is about to quit, do not start another query,
as this might no longer be valid. This was causing the test to be flaky.

Change-Id: I5654147a10659639efcbfda0d7e52df489b76ecd
ndroid/contacts/calllog/CallLogFragment.java
d0c23374a816987ae7340a709267185e88e94882 02-Jun-2011 Flavio Lerda <flerda@google.com> Merge "Extract a couple of utility classes for formatting."
3d7311f76f3f41a5794b01536498c634b3ff2a69 01-Jun-2011 Flavio Lerda <flerda@google.com> Extract a couple of utility classes for formatting.

The PrefixHighlighter class handles highlighting of a prefix in a text
view.

The DisplayNameFormatter handles both the bold of the first name and the
highlight needed when searching (using the PrefixHighlighter above).

Change-Id: Ibd1d3ecd6a88ce40de6dbc591af21c1e7260511e
ndroid/contacts/format/DisplayNameFormatter.java
ndroid/contacts/format/FormatUtils.java
ndroid/contacts/format/PrefixHighlighter.java
ndroid/contacts/list/ContactListItemView.java
00848d5b0cd3199fb91171936eb59db7c5e4b6af 02-Jun-2011 David Brown <dab@google.com> Remove tab text in Dialtacts

Remove the text labels from the 4 tabs in the Dialtacts activity, leaving
only the icons. This allows all 4 tabs to be visible on phone-size
screens in portrait.

This is a short-term fix for ICS dogfooding. We *will* ultimately bring
back labels at some point, but the exact visual design is still TBD.

Bug: 4520620
Change-Id: I5ecb9a2034bdd4cbc54d298d1318ab6f2d7ed15b
ndroid/contacts/activities/DialtactsActivity.java
9ac11cef9b48a5e23db9eaf0fbeb64fd8ace4e87 01-Jun-2011 Flavio Lerda <flerda@google.com> Move the group icon to the right hand side.

Change-Id: Ic9096b01ccda99372f96b5156260c71b6dfb1cda
ndroid/contacts/calllog/CallLogFragment.java
aae838c5a7ef38f4f2778cff6dfaa1f650a44522 24-May-2011 Daniel Lehmann <lehmannd@google.com> Bring back the Strequent Fragment

Change-Id: Ib18bd1023c6f4ecd6bb6ec72eac68481ba815004
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/list/StrequentContactListFragment.java
51e8d634f2d16aeaed73b6fba42d02a1c2d48b20 20-May-2011 Daniel Lehmann <lehmannd@google.com> Remove an unneeded function and an unused callback function

Change-Id: Icb01f50ad12d19a019da04bc27fa0d6f6ec04dfe
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
261cd5650d07fbc41ea8f19d4e422094612d1454 17-May-2011 Daniel Lehmann <lehmannd@google.com> Turn ImportExportInteraction into DialogFragment

Bug:3126133

Change-Id: I544d836b3c5d0e3c38352978d55a55e131885638
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/interactions/ImportExportDialogFragment.java
ndroid/contacts/interactions/ImportExportInteraction.java
29463f695dacc9f3b05ef9ae6ec548216d4d3aab 17-May-2011 Daniel Lehmann <lehmannd@google.com> Merge "Fix a rare null reference exception"
fa3c78d3e506d466dfe2ea9e8caef2b906f331fd 17-May-2011 Daniel Lehmann <lehmannd@google.com> Fix a rare null reference exception

Change-Id: I35960d8fc683fbf5d0ca6254b289e52ceb2e7a7e
ndroid/contacts/calllog/CallLogFragment.java
cae10ce4219962008a22482cd17001d5621279ab 17-May-2011 Dave Santoro <dsantoro@google.com> Fix header display without display name.

Change-Id: Iaec6831158b640c34e585fc68e6945f7ec1cfb3c
ndroid/contacts/detail/ContactDetailHeaderView.java
a911cc61416aa22e3e0ffa1f4f4bcf38d09470d7 13-May-2011 Katherine Kuan <katherinekuan@google.com> Merge "Group detail page and list of members"
dfb145d3cb8bcaa795a0b07360968143f250e8f7 13-May-2011 Daniel Lehmann <lehmannd@google.com> Merge "Use Fragments for tabs"
fd8cdedb816cb1fc5894e2e3c5e144ff16b90b7c 11-May-2011 Katherine Kuan <katherinekuan@google.com> Group detail page and list of members

- Click on group in group list goes to a detail page
- Temporarily show members, TODO: Move list as
an expanded list in group browser activity
- TODO: Populate detail page with group info and
group actions

Bug: 4413116
Change-Id: I114d276f96aed318307d185910ae8799228262c9
ndroid/contacts/activities/GroupDetailActivity.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/group/GroupDetailFragment.java
c15062754af08cadc50b4b8ec89c2175a4bec1fe 13-May-2011 Daniel Lehmann <lehmannd@google.com> Use Fragments for tabs

This will require more work later, but it is a first step that should allow
all features to still be accessible

Change-Id: Iad544575960e6a8beb5f0018ae9a8b5633fe8281
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/DialpadActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
facb82e074712a3f94ac99b13c3a6ad4741fb46b 12-May-2011 Dave Santoro <dsantoro@google.com> Merge "Modifications to bold contacts' first names."
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
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactDetailHeaderView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/format/FormatUtils.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/util/NameConverter.java
ndroid/contacts/widget/TextHighlightingAnimation.java
285fdc6bed0f2bcfb95b4d5f8cf9066a4f8ab888 11-May-2011 David Brown <dab@google.com> Fragmentize the dialpad UI

Moved most of DialpadActivity into the new class DialpadFragment.
The old DialpadActivity is now just a simple container for the fragment.

TESTED (on crespo):
- Dialing an outgoing call
- Options menu (only visible once you've typed at least one digit)
- "Dialpad chooser" scenario (the special UI when you bring up the
dialpad while a call is already active). Note that text colors in
the dialpad chooser items are wrong; that'll be fixed by some
upcoming theme cleanup.

Change-Id: I8827727bb2bc86936c4ef23e1a307ac04141c1ea
ndroid/contacts/activities/DialpadActivity.java
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/dialpad/DialpadFragment.java
9add0e5ef2a267acbe104e04f4cf6ab24cb8ba3e 11-May-2011 Katherine Kuan <katherinekuan@google.com> Add groups tab and show list of groups

- New groups activity, fragment, and adapter classes,
as well as and associated XML layouts
- For phone only, tablet UI is unaffected

Bug: 4409350
Change-Id: Ibeb592142e5ddc1efa5701472bbc72bde11d9760
ndroid/contacts/activities/DialtactsActivity.java
ndroid/contacts/activities/GroupBrowserActivity.java
ndroid/contacts/group/GroupBrowseListAdapter.java
ndroid/contacts/group/GroupBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
769e5fed7af619d538da66adb926eeccdc159cd9 11-May-2011 Daisuke Miyakawa <dmiyakawa@google.com> UI fix for account selector

- don't show account info when there's just one account
- modify layout for account selector

Bug: 4184675
Change-Id: I7e5a9527a2bcb2406a1bc377b063bb262b8f12de
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/util/AccountsListAdapter.java
d37a891cb44cd17083c06d7be693c469403d16df 27-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Enable account switcher in contact creation

- remove account selection step before contact creation
- (phone) put account info on the right side of photos
instead of having "header" for it
-- renamed header_* ids for account stuffs as they may not be
part of header any more.
- add migration functionality to EntityModifier
- add test for it
- no optimal layout

Bug: 4184675
Change-Id: I0e777f9aa37a7c9145bd430f897f8068b0bede56
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
439f1db6e3ca280f61d9fa44f0c0b9117e3e6b18 10-May-2011 Daniel Lehmann <lehmannd@google.com> Merge "Put the call log into a fragment and host it in a simple container activity"
bcd1227fe05b6d522bc478ef1b457ebe08bbdad1 07-May-2011 Daniel Lehmann <lehmannd@google.com> Put the call log into a fragment and host it in a simple container activity

Also did some minor refactorings:
- Combined projections and their indices in nested classes
- Put Menu/Options menu ids into container nested classes

Change-Id: If22b7f7b894ab7167420ca2ba055e2001c5becbe
ndroid/contacts/activities/CallLogActivity.java
ndroid/contacts/calllog/CallLogFragment.java
ndroid/contacts/calllog/ClearCallLogDialog.java
a2d4a9652fb4db9ee222abc7a637366c6c50427c 07-May-2011 Katherine Kuan <katherinekuan@google.com> Fix font sizing and spacing in editor

- Remove name labels
- Remove extra divideres

Bug:4382255
Change-Id: I59c5b91e699b7386690e6df58e58b247d3086c99
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
809769756d9126d577ef58b423efce56fc5c1ef7 06-May-2011 Daniel Lehmann <lehmannd@google.com> Merge "Several renames for consistency. Should help with fragmentizing afterwards"
09fba0a6d82a7f88ce3c8cbb74eddd4bb96eb7e4 06-May-2011 Daniel Lehmann <lehmannd@google.com> Several renames for consistency. Should help with fragmentizing afterwards

TwelveKeyDialer ==> DialpadActivity
RecentCallsListActivity ==> CallLogActivity (be consistent with tab name)

Renamed xml files to have a clearer connection to the object that they
represent

Change-Id: Ie4f123dc03a445596e5ecc216adfef61275dbea3
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/SpecialCharSequenceMgr.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/activities/CallLogActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
ndroid/contacts/activities/DialpadActivity.java
ndroid/contacts/activities/DialtactsActivity.java
938097786d31e97a9354238f69d9de85cedf6551 04-May-2011 Katherine Kuan <katherinekuan@google.com> View types for adapter in ContactDetailFragment

- Use view types in adapter so that the separators are not
clickable
- Make header widget part of ListView so it scrolls off screen
- Use one list of entries instead of an arraylist of arraylists
with quadratic search time
- Get rid of inconsistencies in using section/kind interchangeably
- Fix some padding values

Bug: 4384190
Change-Id: Ib074a0f91005b6bf2d2321385b309e336ec82905
ndroid/contacts/detail/ContactDetailFragment.java
12a93637e406ba7f3da4db8d53cd035c2c1d6e6e 05-May-2011 Katherine Kuan <katherinekuan@google.com> Pressed state for buttons

- Delete button, expansion button, fix padding on messaging icon

Bug: 4382255
Change-Id: I5ef0a9ee760a095b4f9e0efda71c13c4b89328e6
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
2719ab07911c7f6476ae881bcf38699ef98b85d6 03-May-2011 Katherine Kuan <katherinekuan@google.com> New view contact layout

- Larger picture, add 25% black transparent layer on top of
picture, large white font for header text
- Less labels, add section separators
- Remove primary action icon
- TODO: scrolling header + list, gray items non-actionable

Bug: 4371084
Change-Id: Ia4c29efcffc3acfc910ffe2b62ec205e937917da
ndroid/contacts/detail/ContactDetailFragment.java
d410cec49fd2dff88f7479b0239b854e4e50c2c2 03-May-2011 Daniel Lehmann <lehmannd@google.com> Merge "Don't do the LIMIT as part of SORT_BY, but pass it into its own parameter"
4ccae5617bbf9295364015e2ef7e716f65d2a18f 03-May-2011 Daniel Lehmann <lehmannd@google.com> Don't do the LIMIT as part of SORT_BY, but pass it into its own parameter

This is a prerequisite for

Bug:4368912
Change-Id: Ic855ccd768cbce19a3947aff14857907ec2caf93
ndroid/contacts/ContactPhotoManager.java
2591436971bad3050c85929c8e0c5a8d48111f88 30-Apr-2011 Katherine Kuan <katherinekuan@google.com> Fix "add field" logic

- Only update "add field" footer when field goes empty --> non-empty
and vice versa, fix the case for 4 line addresses in Exchange contacts
- Add property in DataKind class for "add field" string
- Remove hash map of mime types --> string resource IDs in
KindSectionView
- Remove "add internet call" string

Bug: 4363151
Bug: 4371568
Change-Id: Id2fec743a7c3e68d8404591cc61de20487245b0a
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
1b22073590c1801c3e6c7bde2f4636632a049f6c 29-Apr-2011 Katherine Kuan <katherinekuan@google.com> "Add field" footer logic

- Instead of an explicit "+" button to add a new field (which
also allows adding multiple empty fields), only show a
"add field" footer to the KindSectionView if there are no
existing empty fields in the section.
- Make the whole footer a touch target and display a
custom message according to the DataKind mime type

Bug: 4363151
Change-Id: Ib7cef5ed5aaefa5b1269f95ed8fe89e7dd742f36
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
63ffb90935d8aec295e4a8f62af6c77dafe1899f 27-Apr-2011 Katherine Kuan <katherinekuan@google.com> Refactor to inflate views from XML

- This is part 1 of getting the contact editor up to par with
the UI mocks, there are some known issues that will be fixed
in coming CLs (i.e. add button functionality)
- This way, the field editors can be vertically stacked
on the phone and horizontally stacked on the tablet.
- Get rid of duplicate labels by using the hint text in the field
or spinner as the title

Change-Id: Ia00a1a65ad0bbd7a4bc05ccb93dd1b1496bca5df
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
d8e0049c4c05a55b41566e3f53d38e877a8d71d2 26-Apr-2011 Dave Santoro <dsantoro@google.com> Move the more-or-less button if needed.

For Exchange contacts, the more-or-less button for the address field would
overlap the delete button, making it impossible to specify a country. This
changes that logic to shunt down the move-or-less button if delete is present.

Bug 4195633.

Change-Id: I52c5be56ed51baa010026b710815f0fbfdbd9ebf
ndroid/contacts/editor/TextFieldsEditorView.java
3bf12640a267146a6a0134367f7236401db8e754 16-Apr-2011 Daniel Lehmann <lehmannd@google.com> Fix the disappearing buttons on the actionbar

HC MR candidate

Bug:4302136

Change-Id: Ib9a30ddf45608750162b44e88992a1e63e8968a3
ndroid/contacts/activities/ContactBrowserActivity.java
0c8859307a651c5d559e3a43de81adca7f2b8d75 16-Apr-2011 Dave Santoro <dsantoro@google.com> Merge "Fix menu after adding a contact on the phone."
0dfbe0339c7319ad02edc34de3d50104f64de735 15-Apr-2011 Dave Santoro <dsantoro@google.com> Fix menu after adding a contact on the phone.

Logic was assuming a tablet interface, and was misconfiguring the menu to
only contain a (broken) search option.

Change-Id: I3b6010f338c10da5b10d6d9863544fbf172cc60f
ndroid/contacts/activities/ContactBrowserActivity.java
5a04f5cf2bc862a42f1077ed5b57a5292cf39b68 15-Apr-2011 Dave Santoro <dsantoro@google.com> Fix issue with viewing contact from call log.

The URL used to look up the contact in the call log does not contain the lookup
key, but the one returned by ContactLoader does. So rather than comparing the
two (to ensure that the matching response was returned), compare to the
result's mUrl, which is set to the requested URL.

Bug 4286955

Change-Id: I87166f02d74306cc4fe77a4d4c1eefd3dfd74a16
ndroid/contacts/detail/ContactDetailFragment.java
4d8f7314cdb088d627e049e605e26ef51253f394 08-Apr-2011 Jeff Sharkey <jsharkey@android.com> Merge "Move QuickContact to Activity instead of Window."
cde7389187ebc6816bd73d4704f1ca1b4ee39ac3 07-Apr-2011 Jeff Sharkey <jsharkey@android.com> Move QuickContact to Activity instead of Window.

QuickContact has traditionally used a Window to show a bubble with
callout centered around a target area. This change moves away from
private Window APIs, and instead creates FloatingChildLayout to layout
the bubble. Using onLayout() is more flexible than a PopupWindow or
Dialog, since it gives us access to getWindowVisibleDisplayFrame() to
correctly handle system windows. (Similar to FLAG_LAYOUT_INSET_DECOR.)

Changes background Drawable to use state_first and state_last to select
above/below callout arrow. Also moves to using setLevel() to set arrow
horizontal location.

Removes recycling chiclet code, and brings in Guava library.

Bug: 3362647
Change-Id: Iae953bae71db76e91e05996fe4c0dcea38bb446f
ndroid/contacts/quickcontact/FloatingChildLayout.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactBackgroundDrawable.java
ndroid/contacts/quickcontact/QuickContactRootLayout.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/util/NotifyingAsyncQueryHandler.java
7134a00efd66e95ea0d1484e04869c5cbd45f25d 08-Apr-2011 Daniel Lehmann <lehmannd@google.com> Fix the contact list. For now show all contacts

Change-Id: I440b9cb6d9656b531c4b6813ed0fd2ef9bab6a28
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/activities/ContactBrowserActivity.java
1aa340df9f45fdc9919e8db4d5402ffdb5e94331 02-Apr-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove unnecessary callback on delete interaction."
0e38be03c78137194d4bc9d3df8b7c2a63f72d69 01-Apr-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove dependency toward VCardInterpreterCollection.

It is now deprecated.

Bug: 4066223
Change-Id: I699de45b6ba035a518b3f63ba6197b514a459b87
ndroid/contacts/vcard/ImportVCardActivity.java
d7c148bc7331ee405ea2932a63cb12bde259e93c 01-Apr-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove unnecessary callback on delete interaction.

onLoadFinished() is called multiple times when database is updating.

Bug: 4051117
Change-Id: I7260a29b3b49f641e82564fa493949543ff9a068
ndroid/contacts/interactions/ContactDeletionInteraction.java
e61c64a0455e6073bb4ea35631a2404ef693840f 31-Mar-2011 Daniel Lehmann <lehmannd@google.com> am 0a8f9e9a: am a10775d6: Don\'t save the contact if the user accepts an edit-suggestion

* commit '0a8f9e9ac4b56ac3a790bf0c5fd2419611d98cc6':
Don't save the contact if the user accepts an edit-suggestion
a10775d625339d168337e03de05d02f5e0a4f55d 31-Mar-2011 Daniel Lehmann <lehmannd@google.com> Don't save the contact if the user accepts an edit-suggestion

Bug:4194346
Change-Id: I51afcea7e92ac3d2e595a72920dd4dbb59267912
ndroid/contacts/editor/ContactEditorFragment.java
33706130c52373382e840bdd6aa94776de706081 29-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Move DataKind outside AccountTypes"
405671a7b42d97ebf7ae7c0eeb4721f881139673 29-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Move DataKind outside AccountTypes

Bug: 4184675
Change-Id: Ibb20cb8b38d0272963fc5330c738bd17c61a5542
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/DataKind.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactWindow.java
056305838b1381a45f751a6894c0fcb802abd5ac 29-Mar-2011 Daniel Lehmann <lehmannd@google.com> Support the phone type MAIN

Bug:4091157
Change-Id: Icb8d2ef1b653736e1ebd19afaa1e2223fa85eedb
ndroid/contacts/TypePrecedence.java
ndroid/contacts/model/GoogleAccountType.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
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/EmailAddressListAdapter.java
ndroid/contacts/list/EmailAddressPickerFragment.java
ndroid/contacts/list/OnEmailAddressPickerActionListener.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressPickerFragment.java
edb871bc5ffb440e5eb638aebd584a88a803bd61 23-Mar-2011 Daniel Lehmann <lehmannd@google.com> Merge "Don't start the search if TAB is pressed"
4f3aa85131e16594fef22ca60439f4320016767f 23-Mar-2011 Daniel Lehmann <lehmannd@google.com> Don't start the search if TAB is pressed

Bug:4155021
Change-Id: I63a75fce26b012375db021c8f32e24db08869e01
ndroid/contacts/activities/ContactBrowserActivity.java
12ac30adcfe7436822f3cc147a45bfaf221e38aa 23-Mar-2011 Daniel Lehmann <lehmannd@google.com> Merge "Aggregate actions before checking whether to show "Clear Defaults""
c8fe4b6e71adb196dc463030e22f1b881432a00e 23-Mar-2011 Daniel Lehmann <lehmannd@google.com> Aggregate actions before checking whether to show "Clear Defaults"

Fixes the "Clear Default" showing up too often, if several data items
can be collapsed down to one element.

Bug:4152775
Change-Id: Ie9b8ae3ef80db4763884a1f9d3e58b2a31625d81
ndroid/contacts/quickcontact/QuickContactWindow.java
bee8b1feada071be76c380dfbcca82f9c00f27fa 23-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use new interface for vCard export"
1e339e27297ede9b6df716b877aa5f2f97d67921 22-Mar-2011 Daniel Lehmann <lehmannd@google.com> Fix crash on dismissal of an empty QuickContact

Bug:4156032
Change-Id: I4d5d6edd82e3f05af4b3d9c25432bcb026d1cadc
ndroid/contacts/quickcontact/QuickContactWindow.java
91a7d98ea5204b10082f7dd3654614969eb3a7a9 17-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use new interface for vCard export

Bug: 4066223
Change-Id: Ie1eb516a8163febd4438e19df5bc0892726942cb
ndroid/contacts/vcard/ExportProcessor.java
6313d346faaa29ff3c01c117268626163491523e 17-Mar-2011 Daniel Lehmann <lehmannd@google.com> Fix crash when opening the editor and move buttons to ActionBar

Change-Id: Id079a1e88c06aee2d1ff2894bc516c4df8b43406
ndroid/contacts/activities/ContactEditorActivity.java
c90c705db8b3665ba9c8d8ce4b8ab3a03e38ddc7 17-Mar-2011 Daniel Lehmann <lehmannd@google.com> Show contact details when contact is tapped.

Do this by changing the routing logic: For viewing contacts, we
do not use the FrontDoorActivity as a proxy anymore. Instead,
ContactDetailActivity will forward the Intent to the ContactBrowserActivity
on a tablet

Change-Id: I04a03404410f3108f583da4592f6ae9f0f4e5bd2
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
ndroid/contacts/util/PhoneCapabilityTester.java
a5b3d4642e709153e202b187e8c9021506882323 17-Mar-2011 Daniel Lehmann <lehmannd@google.com> Fix Contact Detail view on the phone

Change-Id: I086f1e07da62984857d19901ffb5e4cb890a774c
ndroid/contacts/list/ContactBrowseListFragment.java
0f1f66a79bf676959d4e0fcfda70c08121ae0c57 16-Mar-2011 Daniel Lehmann <lehmannd@google.com> Fix crash on launching the menu on the phone

Change-Id: I5f390fd545d9e9d2f30aca2c9933bdc6ef042041
ndroid/contacts/activities/ContactBrowserActivity.java
0bb65a8168c24f7ba21b385bf5341c42b52f49a6 16-Mar-2011 Daniel Lehmann <lehmannd@google.com> Make the dialog for clearing the call log cancellable by using Back

Additionally, put the real clearing-job on a background thread that is
running with a ProgressDialog

Bug:3440756
Change-Id: Ia427fbd1cec1cd6c24983e58b9aafbae196ccdcc
ndroid/contacts/RecentCallsListActivity.java
11ebddd5be52a625aa7b8655de8f1b26a72cec3e 11-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use old version of vCard composition method"
0a39387107a29a8fe42f760e7e660cbda33d53f3 09-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use i18n phone number lib when comparing two phone numbers

PhoneNumberUtils#compare() returns false positive result.

Bug: 2586019
Change-Id: Ia4ebd9adb36eca15f879dd3ec45870fa0c555f55
ndroid/contacts/ContactsUtils.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
35fef5aa9be18ed5164765028eb1bb392f13ab38 10-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use old version of vCard composition method

Must be after I91b65f881e1712ecf82c2e119a92bc70c43c623c

Bug: 4066223
Change-Id: Ibaafdf4e0e1e01713b721d216102ae711db7ba74
ndroid/contacts/vcard/ExportProcessor.java
460ca43c0dd40259ac6f8e59c3b76f1e609927ae 09-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop using initWithRawContactsEntityUri()

Given we may need selection args, adding another init()
variants doesn't make sense.

Must be after Ib533a435cac3b4e4fa31527d02b0657fc4bd0377

Change-Id: Ifa775e06a7848bbf24860933b5d13a0038dca839
ndroid/contacts/vcard/ExportProcessor.java
88934c444d8b5173e1037edd8cb4bea44e922b95 09-Mar-2011 Daniel Lehmann <lehmannd@google.com> am de0898f0: Don\'t ignore "update to empty" when checking whether the state is dirty

* commit 'de0898f0337d3c6ea818237b0a94acf1f15b6299':
Don't ignore "update to empty" when checking whether the state is dirty
40088c27ea8a17313c901169f3cd282862c82c2b 09-Mar-2011 Daniel Lehmann <lehmannd@google.com> am 60b239c2: Treat empty and null strings equally. Fixes a data loss on e.g. rotation

* commit '60b239c24c05233bbf3f7cb45697252e15ec76cc':
Treat empty and null strings equally. Fixes a data loss on e.g. rotation
de0898f0337d3c6ea818237b0a94acf1f15b6299 09-Mar-2011 Daniel Lehmann <lehmannd@google.com> Don't ignore "update to empty" when checking whether the state is dirty

Bug: 4026427
Change-Id: Ia13ad1d7e0901e3a89aa53c21e70ce0becd51d94
ndroid/contacts/model/EntityModifier.java
60b239c24c05233bbf3f7cb45697252e15ec76cc 08-Mar-2011 Daniel Lehmann <lehmannd@google.com> Treat empty and null strings equally. Fixes a data loss on e.g. rotation

Additionally, this will prevent the editor from going into a dirty state
on open, so pressing "Done" will not cause a save anymore if nothing has
changed

Bug:4027153
Change-Id: I0f55b75356b498588a53ad0bc91afaec3ed9434c
ndroid/contacts/editor/LabeledEditorView.java
bd1558743fd039d313dd97b8d07651a08a2fb465 05-Mar-2011 Daniel Lehmann <lehmannd@google.com> am f5c447b3: Merge "Set time zone on date formats." into honeycomb-mr1

* commit 'f5c447b32064dca741d8823f860810d700933cb0':
Set time zone on date formats.
4b648485346462dc26c3a469caeae8589f5fbd58 04-Mar-2011 Daniel Lehmann <lehmannd@google.com> Set time zone on date formats.

Also fix Locale to use en-US for storing dates

Bug:3502565

Change-Id: Id3728de2d2f2c77ad1f27e6acbd71a91d840b3a6
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/util/DateUtils.java
c3529cdd8bce4f1a4ebcf9cda378cb190ae8ff61 03-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use "export only" flag when exporting contact list

Must be with Iaf952a333b3818a76193d185f3036ea03ffc7f32

Bug: 3143497
Change-Id: I4b529a8805b1b0e219c16e93242b102659e8f2e7
ndroid/contacts/vcard/ExportProcessor.java
1e2a0333712ed2d2cbfac633d2696e5e4572b6fb 03-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Modernizing phonetic name support"
19e73fc7d4238295363490b1879d4683b0e41937 02-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing callback delivery for ContactSaveService"
3a6a905a39e6cbb3b2dc99835cdf28c84437691a 02-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing callback delivery for ContactSaveService

Bug: 3500229
Change-Id: Ia50aa5878344f182e33141ba891c3dea56a170ec
ndroid/contacts/ContactSaveService.java
ndroid/contacts/ContactsActivity.java
5ec40b04041818bc042c0671cb1a43b54f650e25 02-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Modernizing phonetic name support

Bug: 3497894

Change-Id: I5aaa77275bbe1921af2d7ef034d2319691f8abf7
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/PhoneticNameEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
c76c2e872b4d8deb0e8ac26e9558fa360d525fde 01-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact editor

Bug: 3499233
Change-Id: I3dc95c4d1e16b9d764bd50a937a58c9401be07ab
ndroid/contacts/editor/ContactEditorFragment.java
83cc117f09934ab275419bc5ffc8c60a16a28fc3 01-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Using the right class loader for unmarshalling

Bug: 3497767
Change-Id: I68d54f07cd4e65843e90f8f819212798df018acd
ndroid/contacts/editor/StructuredNameEditorView.java
9eda503de088811bbde2999050426cc8d3ebac63 01-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing directory handling for contact detail entries.

Data URIs were not constructed correctly for data
rows coming from a remote directory: the directory ID
was not included in the URI.

Change-Id: Ie575b88a1216c119ad9beff1dfd2b93b240f7afd
ndroid/contacts/detail/ContactDetailFragment.java
6efa77639dbbafd807b2315bb4afa4f129c85633 01-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing handling of postal address for GAL entries

Bug: 3494992
Change-Id: Id9b49bf67086c5ed2f592ce64955a55444a6ab86
ndroid/contacts/detail/ContactDetailFragment.java
c77f48947093d5f84b7df661a29b8b45d573cc10 01-Mar-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing parsing of intent extras for Exchange contacts

Bug: 2969875
Change-Id: Ifd7f1ba2e794ebf24626c53e5ed3a14ae9adc791
ndroid/contacts/editor/StructuredNameEditorView.java
ndroid/contacts/model/EntityModifier.java
11bb73bcdf4290ced99e3e06b1f76d4c37357aea 26-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Preserving name structured on expand/collapse operations

If the user does not change components of the structured
name, the expand and collapse operations in the editor
should not reparse or re-compose the name.

Bug: 3473362

Change-Id: I4fe5f0d06757b2fe098a5bd895c84108195049e9
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/StructuredNameEditorView.java
eeb68a341734ded343004d4eecb585420e70605b 25-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Posting focus request after adding a new field in the contact editor.

Also, making the contact name selected on the activity start

Bug: 3403046
Change-Id: Ic6baf9d4404237d62bca3cdabc41a14422236a3c
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/KindSectionView.java
c863b0171f2a54a0ee71b34b33034aeea2464cca 25-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Remove confirmation dialog when cancel empty new contact

Bug: 3487518
Change-Id: I3d47b9249efd634e2ce21e6fbea19fe68f3d3ccd
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/model/EntityModifier.java
49e4035fd490673efe0d0fb46029f9e915c1612c 25-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fix saving contact when the only thing that changed is photo"
f3cdeca5e0b3a7f9411b6babad5de2925623372a 25-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fix saving contact when the only thing that changed is photo

Bug: 3485535
Change-Id: I5e79faa4c5a8fd87223aeb219fe88076fbaa3ca1
ndroid/contacts/model/EntityModifier.java
3c96bf44a9f2089b602ee32d9c10417c278e3f5f 25-Feb-2011 John Evans <jsevans@google.com> Merge "Added @Override tag to onDismiss Improved comment..."
06feeb524c03d87dea87a50f5d948f9ede885803 25-Feb-2011 John Evans <jsevans@google.com> Added @Override tag to onDismiss
Improved comment...

Change-Id: Id5556d9e1bd3408ef52708e9291a2c1def192a07
ndroid/contacts/CallContactActivity.java
1b29450c1cfa977075aaea4c2a02c233e2301323 24-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fix the issue where contact creation is triggered by another app

Bug: 3483189
Change-Id: I88374824ab49549e683fab51519d7915661073c0
ndroid/contacts/activities/ContactEditorActivity.java
0279fcaca57c064e156cea43706b838ba031830a 24-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fix leaked window in contact delete dialog

Bug: 3388952
Change-Id: I4bdc2985717d016dcca72a7661ece45279d9354b
ndroid/contacts/interactions/ContactDeletionInteraction.java
ac0e18e09199247baacba175ccc9f4ef4edffd13 24-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fix NPE in Contact Deletion Interaction

Bug: 3426648
Change-Id: Id98e140579f1bbba69bcbc9d1848c892f79723de
ndroid/contacts/interactions/ContactDeletionInteraction.java
7f10d5670893aad216a90adba12b1faeec9b42a7 24-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Social widget to have quick contact or navigation to social app

Bug: 3451506
Change-Id: I5538a381a19137c76258baee8a2309fe347e6ee2
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/DataStatus.java
0bfab910bde169be3fb63880ce4f0b4459b7bb84 23-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Remove "Only contacts with phones" option from non-phone devices

Bug: 3451465
Change-Id: I2526c02e9456bdb6db03161b7e84569f4a81ce86
ndroid/contacts/list/CustomContactListFilterActivity.java
c49deffc83b18da1a1ec5c28bf1a322ce0ca2470 23-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Make contact shortcut smaller

Bug: 3400135
Change-Id: Ibc7fc35d846cbc871efed04bd14bc71076537ae9
ndroid/contacts/list/ShortcutIntentBuilder.java
c9eda37df2ff1ba2f845ae330bae364cb35fa50a 23-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Close contact editor after deleting contact

Bug: 3396132
Change-Id: I1818446b8ecb6ef71d7c763d3e7ea3dc4c820b02
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
07bf52d66b6a17be1d1a1016fdf53321a1b83861 23-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Move selection after deleting last item in the list

Bug: 3429922
Change-Id: I9887082b6f07ed1f3d99158c9f65d789b33674ab
ndroid/contacts/list/ContactBrowseListFragment.java
eb5c3228af1e86db5552bc8baf6bf62c77612f3e 23-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Prevent empty search results from showing up before typing

Bug: 3446388
Change-Id: I6994eca6c90357e61dfbdc22283e3169ece25efc
ndroid/contacts/activities/ActionBarAdapter.java
27bfa40a248101925abd69cc3106897baf81cbac 23-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Disable SIP calling from Contacts on no-voice devices

Bug: 3413467
Change-Id: I3c937aec5aa95fe4e6d6e4ffb43fb1423b96a2af
ndroid/contacts/util/PhoneCapabilityTester.java
95461a5f1d0349e13d099c6e1961024b1cd9de32 22-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Restarting contact loader when the user configures contact widget."
48f4b487a2b03a5f12796ebe94923fd7decb04d7 17-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Restarting contact loader when the user configures contact widget.

The gist of it is that under some unknown circumstances
Launcher reuses widget IDs. In that case we would start loading
using a stale URI from shared preferences and would never
restart the loader with the newly picked contact.

Bug: 3442597
Change-Id: Id051449eb4088be4f4f9975b34da511143965197
ndroid/contacts/socialwidget/SocialWidgetConfigureActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
82aff211e6ec2cec3bc92621c3261f46cdfc56f9 17-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop showing duplicate notification."
8359d04d075243442e973d2c3fdab8d47eb4cbb0 17-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Conditionally removing SIP call button

Bug: 3413467
Change-Id: Ic5364825bb8e55bcb9022d3c796a8ea5a476dfae
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/quickcontact/ResolveCache.java
d063e3b982c443e20fafce53b42e096acad17747 17-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing duplicate notification.

Bug: 3440788
Change-Id: I11ecd04f77b1172b6460fc9e041417e51d379ccb
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProcessor.java
fb53547ccc23fa70699c7bd654e0b1a4ee6568b1 16-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Ensuring that a contact is saved after item deletion

Bug: 3462241
Change-Id: Id0698a42885975a671257efb01c643b9ed0d74d2
ndroid/contacts/model/EntityModifier.java
04bb400ab21235635e4ad2268ba94ecf58431e32 16-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Showing "clear defaults" only if there are multiple choices

Bug: 3447220
Change-Id: I8a80fb59e881fec0b10295f112d40a4953960869
ndroid/contacts/quickcontact/QuickContactWindow.java
ce37f3017c666bcea483a75322e80d5cc1ba6f64 16-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Preserving editor status on rotation

Bug: 3452739
Change-Id: I9127ad4b37ff2a50123cde5b4e3ae8b4021e14e9
ndroid/contacts/editor/ContactEditorFragment.java
5ab8d7fc444922f1069024f2c631929467d5a47c 16-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Switching to a lookup key-based query in QuickContact

Bug: 3460622
Change-Id: I18f6a56858e4e42604aa6cfae168a90cf8a92d80
ndroid/contacts/quickcontact/QuickContactWindow.java
5f93b52d7f1bc940ab147bae4bd192ec4c68ae27 16-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Setting the scrollbar style to "outside overlay"

Bug: 3293700
Change-Id: Ib1dbfbf3494fc450dfc8d4558f8c73624f06a379
ndroid/contacts/list/ContactEntryListFragment.java
f9ca423c867ab2cd4f0d9025a95436489c41d405 16-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Simplifying status management when launching subactivities

Bug: 3460703
Change-Id: Ibeabe952b5f22f0ac9de0d0f770284535a847d62
ndroid/contacts/editor/ContactEditorFragment.java
cd1b9a29458d30ec74cf94dc9945cbdb6186a68e 16-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Preventing NPE in aggregation suggestion UI

Bug: 3438193
Change-Id: I0a30d99339268e388d310720b52137022a3a44fe
ndroid/contacts/editor/ContactEditorFragment.java
e8b87af24c11a3319ac946aeb149eaad1d3ec14d 15-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Disabling aggregation suggestions while contact is being saved"
a9333790f027d59a2edfd4a98c0392b144577416 15-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Disabling aggregation suggestions while contact is being saved

Bug: 3457627
Change-Id: Id3bce3540ca83166a9c4f795c9b4aeab07d7c8ae
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
214c77f7c5432df6045ad8c82bc5ab4d845fc42a 15-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Moving contact saving to the service"
a011414b12955a91c8f3efe528f374654d930098 15-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Moving contact saving to the service

Bug: 3220304
Bug: 3452739
Change-Id: If4124096a24e5dd302feb5338efaaa8398b2cb6b
ndroid/contacts/ContactSaveService.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/model/EntityModifier.java
0560fc27e6a100275132993439b276d3cb53592c 15-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Let MediaScanner know an exported file."
fcc7e386cf027b1fe31fe551f365843218f6fb35 15-Feb-2011 Daisuke Miyakawa <dmiyakawa@google.com> Let MediaScanner know an exported file.

Bug: 3452599
Change-Id: Iad8f00360a816e32bf322b4e167800e3d49810d1
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ProcessorBase.java
ndroid/contacts/vcard/VCardService.java
832dc0e2d0f91a28166ea51a068ebaf339e09e0d 14-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing display of the photo action menu

Bug: 3291482
Change-Id: I61c89542541ffcdfa0efe1235b7efdb2dd1b3c44
ndroid/contacts/editor/PhotoActionPopup.java
27e78563c1f04490ffa8b850a0442715482d1f2c 14-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing order of phonetic names in contact editor

They should unconditionally follow the family-middle-given order

Change-Id: I23405198afdba459a4c97f16143be0600963bb02
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExchangeAccountType.java
728164084ac6c1c6170df04b6973908586bc98cb 10-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Full text search: ignoring snippets without matches

Bug: 2078420
Change-Id: I1837a94c16d9f81ae36626f902e0853ec700cfa0
ndroid/contacts/list/ContactListItemView.java
10bd0e72fd362ee76f5b052190b842c2cb2690fe 10-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Full text search: preprocessing snippet."
5181dff5240a207fd04e0c065d978535c3e8744f 10-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Full text search: preprocessing snippet.

Bug: 2078420
Change-Id: I3332a3218fdf86124287c51fc273cdaa2b570db6
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactListAdapter.java
ab79a268ad8f113f0bc76ee410e6b804cdaa44ef 10-Feb-2011 Jesse Wilson <jessewilson@google.com> Handle null byte array in contacts cache.

http://b/3438334
Change-Id: Id391bcd4564ac10dc4970609eb9382c7500a3778
ndroid/contacts/ContactPhotoManager.java
97c67f2f00f9df07b2df13a9c63e551453da380c 09-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Full text search: switching to the new API."
813c0eefa3f243dbfae981fd5559163a198569cd 09-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Full text search: switching to the new API.

This is half-done for now. The snippets will
need to be post-processed.

Bug: 2078420
Change-Id: I20d84835b6eff8553007f67f7c0fbb25a8de4fbe
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
abb00fcd301ad439a870d9e726b139ab4d76f0c6 09-Feb-2011 Jesse Wilson <jessewilson@google.com> Merge "Use android.util.LruCache instead of LinkedHashMap."
fb231aa77da10a939559f9b0b267ab3b94e8d35c 08-Feb-2011 Jesse Wilson <jessewilson@google.com> Use android.util.LruCache instead of LinkedHashMap.

Change-Id: Ibfa1550ae303069ecfc17c7a4958d64d36fbccc9
http://b/3184897
ndroid/contacts/ContactPhotoManager.java
9a03dc37140be80f06d92d1d71792157872b6b87 07-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> am 22f01055: am 5556d951: Fixing "Add to contacts" dialog style.

* commit '22f0105502f1f0270c0b58bd0ebfe9763514c0cc':
Fixing "Add to contacts" dialog style.
5556d951757448b76118a479c6b3fe0a4c4ce2f3 04-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing "Add to contacts" dialog style.

Bug: 3418355
Change-Id: I5b82983c00a9aab75be803036d62fdf0c9d10bc2
ndroid/contacts/activities/ShowOrCreateActivity.java
dad754f374e40556c5fbaa390372e9823588f931 02-Feb-2011 Wink Saville <wink@google.com> am de398489: am 18d52586: Have SpecialCharSequenceMgr use getCurrentPhoneType

* commit 'de3984898ed53377eabca110693272eb76aa4155':
Have SpecialCharSequenceMgr use getCurrentPhoneType
18d52586e07bbe0c4ddb791515ec83ff19600d2d 02-Feb-2011 Wink Saville <wink@google.com> Have SpecialCharSequenceMgr use getCurrentPhoneType

To preserve proper behavior now that getPhoneType can return
PHONE_TYPE_NONE use getCurrentPhoneType.


bug: 3198435
Change-Id: I41a744dbeededc585a4ce05801fd64a047e33f59
ndroid/contacts/SpecialCharSequenceMgr.java
cb8f1bd53cd719275345164f412a61162ab5cd55 01-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Improving photo cache"
7edf238cb6e051bb53d327d9b435bbf5b4aa11c4 01-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Improving photo cache

Now we have a fixed size LRU cache of compressed
images and on top of that a soft cache of
inflated bitmaps.

Change-Id: I0ea37be41d8f5c6e361bdf160e3e518b014f3615
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactsApplication.java
bfa16f09d6fa15a8f9459f919345a2710d692636 31-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am c6204e73: am bbe62a3c: Merge "Removing ghost activity title from the NonPhoneActivity dialog" into honeycomb

* commit 'c6204e736132ee9d51c950212791f2920c84334c':
Removing ghost activity title from the NonPhoneActivity dialog
bbe62a3cb8216b7831efc05b4c04269145938f6d 31-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing ghost activity title from the NonPhoneActivity dialog" into honeycomb
1e5fc0cf6bcf07933f1af8ffef353b7ec39003ed 31-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing ghost activity title from the NonPhoneActivity dialog

Bug: 3405780
Change-Id: I47ab5e2b92c4a95e82850be5784a345b18b5dda4
ndroid/contacts/activities/NonPhoneActivity.java
68fe10d6df1796ff794990ba0979b2cf538dedf2 30-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 20e0b5c1: am 62bab313: Fixing handling of single-item data kinds.

* commit '20e0b5c18f08d0b2bb8187d614c97a8f6ba3ed84':
Fixing handling of single-item data kinds.
62bab31374dd66462643cbc04ebb2acece4b9b39 30-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing handling of single-item data kinds.

The bug was that if we had an existing row
for a single-item kind like nickname,
but that row was empty and therefore invisible,
we would allow the UI to create another,
visible row.

The fix finds that invisible row if it exists
and makes it visible thus eliminating duplication.

Bug: 3334481
Change-Id: Ic639e5ae42b485fe6830078e5043a4f10b757086
ndroid/contacts/editor/KindSectionView.java
34b24ef363e2bcca072c34371144a845186d625e 28-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Turning contact photo loader into an application-wide service.

It will no longer need to reload everything on orientation change
and other similar events.

Change-Id: Ibd4c823673d6b380df96a91a2829d24f910bcfbd
ndroid/contacts/ContactPhotoLoader.java
ndroid/contacts/ContactPhotoManager.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
022b62db2a0176b593ea6ca143daa88b3c2ac4ff 28-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Moving ContactPhotoLoader in preparation for making it a Manager

In order to share the photo cache between parts of the application
I will turn it into an app-wide manager. The first step is to
move it outside the .list package

Change-Id: I77b997f803a115f2d41836ebbb5ec65b341eecfa
ndroid/contacts/ContactPhotoLoader.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPhotoLoader.java
886bc7bc9601a99cc8466fafc51252dc1c2e75f0 28-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am f486bf30: am 124315c8: Merge "Removing invocation of banned API" into honeycomb

* commit 'f486bf3069531d7db038e8982b6d79d57c9b8bf9':
Removing invocation of banned API
a77d3c3b30b72f1bfcf49e54795a585cfee6cc4c 28-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 22a43d19: am 356ba8bc: Merge "Transferring directory display name logic to directory providers" into honeycomb

* commit '22a43d199a267e20dc5c68c7e30baeb21fc9b79d':
Transferring directory display name logic to directory providers
2775e94b895f7f6d9a480d072cdd672ae76e4017 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing invocation of banned API

Bug: 3397876
Change-Id: Ia7d89bf16fde5d403fe7e59dd85bf76a8aa6e7ca
ndroid/contacts/activities/NonPhoneActivity.java
356ba8bcd2d715a9f036d5e7b82e865be070681c 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Transferring directory display name logic to directory providers" into honeycomb
3ec8e9ff9d5a65c16a46baff8d2264592cd62a71 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Transferring directory display name logic to directory providers

Bug: 3396886
Change-Id: I67cb28bf6df780eb5bea433f9681da5542d3eca9
ndroid/contacts/detail/ContactDetailHeaderView.java
ndroid/contacts/list/ContactEntryListAdapter.java
4cf97af0ad180e6b78845dd1a79bc64474c9e9af 27-Jan-2011 Kenny Root <kroot@google.com> am e2bedb04: am 216777e3: Merge "Use APIs to determine shortcut icon size" into honeycomb

* commit 'e2bedb042a7b9ea1325e1bb26c8df922383e5e26':
Use APIs to determine shortcut icon size
216777e3ee434ebf4abb039f72dde2d5c26149ef 27-Jan-2011 Kenny Root <kroot@google.com> Merge "Use APIs to determine shortcut icon size" into honeycomb
dc4c0e07a79dd1e7d6e062e789aa78266825d540 27-Jan-2011 Kenny Root <kroot@google.com> Use APIs to determine shortcut icon size

Previously there was no way for an app to know the shortcut icon size,
so there were APIs added to ActivityManager. Now we can change the
Contacts shortcut builder to use these APIs to make icons that look a
lot better.

Bug: 3224340
Change-Id: Ie18eac6b08e06464c62fcc3e663be39545653696
ndroid/contacts/list/ShortcutIntentBuilder.java
140352a95c876966b1aaadfd8566ba37ddd6cde6 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 31d22ff1: am 748bdbdc: Merge "Fixing NPE on attaching a photo in portrait mode" into honeycomb

* commit '31d22ff1067ad7ce2a3a57320d8abf0d7476d59d':
Fixing NPE on attaching a photo in portrait mode
d1a2e841b890fe60615b0619e3d36b391e973455 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 3df4bc95: am b777ce5f: Fixing issue with incorrect number of contacts displayed

* commit '3df4bc950a7bc8096efa4c51ff8478e26a9b9dd5':
Fixing issue with incorrect number of contacts displayed
748bdbdc9b08ddf3d53cdb2812e4c52c0e3d0546 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing NPE on attaching a photo in portrait mode" into honeycomb
248fba273e867616b1f8973dac6ce3e5ee1ba544 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE on attaching a photo in portrait mode

Bug: 3395746
Change-Id: I631276d4777fa7ffba76ebfb87939c07c066810e
ndroid/contacts/editor/ContactEditorFragment.java
b777ce5fb4d47e9b0b822d9ea4a7283792613370 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing issue with incorrect number of contacts displayed

Bug: 3395690
Change-Id: I093d64eeae50b77807996a3c31cdaa0e31e0c20e
ndroid/contacts/list/ContactEntryListFragment.java
1f5e7774cb952b5b9ee577d5957a597908f6fe74 26-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 5f470113: am 53a04d64: Enabling extended logging to catch the closed cursor issue

* commit '5f4701132524d46d53b1142711d4452960411f18':
Enabling extended logging to catch the closed cursor issue
53a04d6492a10ee1974a27f3297b5123cb9723e8 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Enabling extended logging to catch the closed cursor issue

Also, removing the only place when a cursor is explicitly
closed by the app.

Bug: 3381489
Change-Id: I727f846e6660143f32712de2cec16e5346fc6d4e
ndroid/contacts/ContactsApplication.java
ndroid/contacts/list/ContactEntryListFragment.java
7d5cef90f883c8280034cafd7523e97e9041e26e 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 1f0fb2fb: am a9ff0efd: Merge "Removing an icon from the date picker dialog." into honeycomb

* commit '1f0fb2fbfaff7d62bef8b9f79d6a24c47c3434ef':
Removing an icon from the date picker dialog.
53b4eccfcd40812196ab0e20b8bb0fa519a131cd 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am afbb0096: am cc82168f: Merge "Delaying visibility of search view to suppress soft keyboard" into honeycomb

* commit 'afbb0096e3b693c791dea9c6a38c1ca130d1c86c':
Delaying visibility of search view to suppress soft keyboard
a9ff0efd1f5191a724c0c766af67d6a6058e285d 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing an icon from the date picker dialog." into honeycomb
cc82168fe4419bf6ab2937ab3941aeeb4cd253f6 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Delaying visibility of search view to suppress soft keyboard" into honeycomb
b49659019e30ef922629b818bd9ebc9af04dccfd 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing an icon from the date picker dialog.

Bug: 3381207
Change-Id: I3d27393f95a313c69129edebb439cfa0ece73595
ndroid/contacts/datepicker/DatePickerDialog.java
42b314030c3c9b16afc5a84805a481225a6d9de9 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Delaying visibility of search view to suppress soft keyboard

Bug: 3280179
Change-Id: Iec681136b45fcbc20463f698996f37a0bb736a2a
ndroid/contacts/activities/ContactSelectionActivity.java
49775bf6127e9c70db7eae676cc363eee0d94d71 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am c40bc875: am 48c2c90e: Merge "Changing wording for empty contact list" into honeycomb

* commit 'c40bc8758487ae42c111af1bb6c436472a8de283':
Changing wording for empty contact list
48c2c90e43d27f40e51f1ab52387d9928aa8af89 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Changing wording for empty contact list" into honeycomb
f35faebc816c9b84b96e11393eb18f9001f411b5 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Changing wording for empty contact list

Bug: 3338546
Change-Id: Ic9b9e5a7dda12e03252c80d116fff2460c86b348
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
29d21f3120fc865c3f55520d187a4d551bcdc74c 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am ca94e85c: am 1e9668c6: Merge "Replacing the contact photo placeholder asset" into honeycomb

* commit 'ca94e85c14b956fe73493d190534352fd2090125':
Replacing the contact photo placeholder asset
1e9668c62a5c3651b414c1481710e7c3a88db5fa 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Replacing the contact photo placeholder asset" into honeycomb
ef4316ea26185324d392b8100d612974a999f27c 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 444cb159: am 2b95e624: Changing group membership item hight to 48dip

* commit '444cb1592cb1f6976c52f9be9282571309a4772d':
Changing group membership item hight to 48dip
33ea6a7609db20d8de0c16ebca5acad20e9874e7 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Replacing the contact photo placeholder asset

Bug: 3375031
Change-Id: I23f28ff7273dd286c1dd7cd9ece5a3e90d3a596f
ndroid/contacts/list/ContactEntryListFragment.java
2b95e624bc35851987fb621091f20263d635d31a 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Changing group membership item hight to 48dip

Bug: 3383867
Change-Id: Ie849084ecaf1b9c5ddb11d6313a284963511660f
ndroid/contacts/editor/GroupMembershipView.java
1c0b193366dbf9d5deee80b4ed87ac9c4f4364bb 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am af07ad45: am 3add20ef: Merge "Making Event and Group selectors look like spinners" into honeycomb

* commit 'af07ad45e4ec187cc79745399290a7cd8638e597':
Making Event and Group selectors look like spinners
0e3c7b76765d91e567180a00bbd56604679bf54f 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 22bc954b: am 95beed7d: Removing section headers from pickers in search mode

* commit '22bc954b29ce7987793a5659d49c5b283b9abe90':
Removing section headers from pickers in search mode
f37224e690ad0dc07f131bcc5935000afcd86271 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am cc317d29: am 60eee83b: Merge "Removing search field from postal picker" into honeycomb

* commit 'cc317d29eb36a0c116e795edb59d16f355851b1f':
Removing search field from postal picker
bb970c53cf1c1bcd4613ea7593e1d3c13205f2b3 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 7177bcd4: am d8f84e07: Adjusting style of the Join Contact dialog

* commit '7177bcd45116582ec0ce5b5e1ac1065b6ca0bcb7':
Adjusting style of the Join Contact dialog
3add20ef94d988706ecd0708ab8ae235d60b5b87 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Making Event and Group selectors look like spinners" into honeycomb
c69a9ccb6c6440127f75b51aca123afa6946474a 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Making Event and Group selectors look like spinners

Bug: 3383800
Change-Id: Ie460cc5d2b80dbedd962f5bf24d2ae389bdf0268
ndroid/contacts/editor/EventFieldEditorView.java
95beed7d7ec229d916ce03b1136af958a1b5c6be 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing section headers from pickers in search mode

Bug: 3381652
Change-Id: I88b4f206d19ab3e4bf7954f2961b2389a790aede
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
60eee83b99cd6b0e2a27b20bd7798ae8cef005be 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing search field from postal picker" into honeycomb
d66d4158d832ceec0e7754908b0c5541311613d4 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing search field from postal picker

Bug: 3381296

Change-Id: I7e2c31cdb7a745c084ce2f76606634a872478be2
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/PostalAddressPickerFragment.java
d8f84e076b762f063ae498c297d6f02574099dd2 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adjusting style of the Join Contact dialog

Also fixing some minor bugs in Join Contact flow.

Bug: 3351590
Change-Id: I7191f26d7a6736920fe35216ef8766d730d3a0d7
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/JoinContactLoader.java
ec0d845fa7d1d05af31c2bb44e09c5547b15c479 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 6e445ff1: am 5035feeb: Merge "Adjusting padding and fonts in contact detail" into honeycomb

* commit '6e445ff1704f4f5191c7ca6b98fa4126cf982129':
Adjusting padding and fonts in contact detail
89b4cc0aa3918f5a4d3f96c8433a50984b12f7d8 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 3719bc1f: am d6e3599b: Merge "Adjusting paddings and font in the contact list" into honeycomb

* commit '3719bc1f1b6a38c61b1666f01f90ba1017c1ef5e':
Adjusting paddings and font in the contact list
b35e02f0721ebaf800e552c7b895c5de878f4533 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am d7b63876: am d4ec064e: Merge "Fixing alert dialog icon." into honeycomb

* commit 'd7b63876c9ea843ce144f6e303edca38642af4e7':
Fixing alert dialog icon.
5035feeb1eaa72cfcf083e7d22d859a8ca64ebe5 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Adjusting padding and fonts in contact detail" into honeycomb
d6e3599b1d7806c6528826337c05f16abff95bc8 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Adjusting paddings and font in the contact list" into honeycomb
ba3c2e541b17bc68ff86ed402e7ee2c0a84f7d80 23-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adjusting padding and fonts in contact detail

Change-Id: Ia7d2a01e72c38a6aa9e7a72ef380c7b5fcf149f2
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
3f4115d926d411dc765d180458064da930b06b83 23-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adjusting paddings and font in the contact list

Bug: 3379178
Change-Id: I0c1ba6e6514aa4ee5a3a4b09a5bdb49101eb40ef
ndroid/contacts/list/ContactListItemView.java
4292dfa46123a6c0e1de9862b4d8694bfb87875a 23-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing alert dialog icon.

Also fixing selector in the contact editor.

Bug: 3377396
Change-Id: I34ca2e419158fe7869ffda4679ea60fa3c5fdb00
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
ndroid/contacts/interactions/ImportExportInteraction.java
ndroid/contacts/vcard/CancelActivity.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportVCardActivity.java
5c6a605ef867d5e6492ebdf8df1a9dec4cf19409 23-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 8705aa6d: am b18624f0: Changing horizontal dividers in contact editor.

* commit '8705aa6d397aaa78ad753c6f4ae562d611f807b7':
Changing horizontal dividers in contact editor.
b18624f0cbca15e6a515316f7046ad814d54c970 22-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Changing horizontal dividers in contact editor.

Also, moving name editor up and changing
name editor font size.

Bug: 3378205
Change-Id: I3a0457d3e2e231fb58e4d46065ff8b4b692d5626
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/widget/InterpolatingLayout.java
258b7b0162a94d3d84ea0bd7c4ffd40e0601d2e7 21-Jan-2011 Adam Powell <adamp@google.com> am 3e57cfb3: am 7a6e1f9f: Merge "API change - bug 3370353 and bug 3370338" into honeycomb

* commit '3e57cfb384d7efa6fe395105f09613410e498c72':
API change - bug 3370353 and bug 3370338
a56f557d553efba6a6d4bd683e9addbb7e128503 21-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am c9694a54: am 2af4a4d2: Merge "Fixing NPE in contact aggregation suggestions" into honeycomb

* commit 'c9694a54fbf73b10534837d52548a14409caf29f':
Fixing NPE in contact aggregation suggestions
7a6e1f9f94885642b6459643da1802e77bdddd81 21-Jan-2011 Adam Powell <adamp@google.com> Merge "API change - bug 3370353 and bug 3370338" into honeycomb
c5792ae6760291d435e91e0fdd28ece6b3311439 21-Jan-2011 Adam Powell <adamp@google.com> API change - bug 3370353 and bug 3370338

Change-Id: I470771606f15936e3a20f4c0aaac0fe99b2a587f
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactSelectionActivity.java
9e15bb19467bcb0b883f31030fa3eb9e66e47562 21-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 89b04bff: am 1628399b: Merge "Clearing up social widget when contact is deleted" into honeycomb

* commit '89b04bff6b5bef66d5b1735448dd11ba48811b2d':
Clearing up social widget when contact is deleted
f00681ebb837fadfe5ed267095e3199a2abd2e4b 21-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am c67a35d3: am ead0330b: Merge "UI clean-up in the custom contact filter setup" into honeycomb

* commit 'c67a35d3580e763231edee4e8843d1f730e7a800':
UI clean-up in the custom contact filter setup
2af4a4d2146ea50cb8a586e13a298ec7668ac59d 21-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing NPE in contact aggregation suggestions" into honeycomb
300835057b93255412059f236b4df59c706091ed 21-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact aggregation suggestions

Bug: 3374369
Change-Id: I09e387e93673ce8e767f6c0ede4e279c6fe97733
ndroid/contacts/editor/ContactEditorFragment.java
1628399bc5a04fe41ca9bb9db486c1d4bd06beac 21-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Clearing up social widget when contact is deleted" into honeycomb
914c7680e7a47d891ebf760d5bbc6a933499fe23 20-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Clearing up social widget when contact is deleted

Bug: 3372543
Change-Id: I0fa25cd6dc1c950b71706dfb68d55e5503db0fd3
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ead0330b307fa5ae622c12aa9ade20eff7b347c0 20-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "UI clean-up in the custom contact filter setup" into honeycomb
5e7365f24dc2b34f9e61493305ca330fd1d0605b 20-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 7ed2deb4: am 2beedfa2: Merge "Fixing NPE in contact deletion interaction" into honeycomb

* commit '7ed2deb4ed4177ec576aeea1311f7ce01796cf16':
Fixing NPE in contact deletion interaction
ebcf1025204b503c45431a792f1b886c9a63b189 20-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> UI clean-up in the custom contact filter setup

Change-Id: Icdb4be7e247d7f424a7168c115271d91ca00ff80
ndroid/contacts/list/CustomContactListFilterActivity.java
2beedfa2887509a6ff05df7f532417ab14651d99 20-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing NPE in contact deletion interaction" into honeycomb
cc42b45b85456bda4dd3ca1a0b4c24b2a8c368bd 20-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact deletion interaction

Bug: 3373006
Change-Id: I542aa345daebfb11a339615db3ee94c6ed2284fa
ndroid/contacts/interactions/ContactDeletionInteraction.java
da78d20bf274bd648775aabf1fe879fa5f7d8c74 20-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> am d2585aa2: am 537af4ff: API REVIEW: android.widget.NumberPicker.OnValueChangedListener - Contacts

* commit 'd2585aa290062d28e9bed0712412df3f0bf888dc':
API REVIEW: android.widget.NumberPicker.OnValueChangedListener - Contacts
537af4ff5837ea172602793326594dccc057bbbf 20-Jan-2011 Svetoslav Ganov <svetoslavganov@google.com> API REVIEW: android.widget.NumberPicker.OnValueChangedListener - Contacts

Change-Id: Ifd74a235a2407c1b9e87cba31d19ac4f77f2a26b
ndroid/contacts/datepicker/DatePicker.java
f3be615bc7a0654743f305af1e95e107bdcfc606 20-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 1b384d42: am 8092214b: A temporary patch for running too many loaders at the same time.

* commit '1b384d420b94bdb646c633f04748e42b5281340b':
A temporary patch for running too many loaders at the same time.
8092214b7a0ddddc1f603189999bb9dd30e9bf4a 20-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> A temporary patch for running too many loaders at the same time.

Bug: 3352125
Change-Id: Idf1ba7bb617231689db84dcf02b9ea40b55492ca
ndroid/contacts/list/ContactListItemView.java
9a84d751eaa79b09f747994818a5df1136aea812 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 04fb1c67: am 135b44c8: Changing event and group membership from TextEdit to Button

* commit '04fb1c67cc00e1e8dbe6bbcb4d52dc9433899df5':
Changing event and group membership from TextEdit to Button
135b44c8604e375699e22594e65f0daec14f5bbe 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Changing event and group membership from TextEdit to Button

Bug: 3362537
Change-Id: I262bb546f03a7ce40c681e0f0077f97508359a21
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
5fc052f7fbb6731e5808ffebe3fe56b12988a135 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 8c22077b: am 5251884b: Eliminating selection delay when query comes from intent.

* commit '8c22077b254b65be0daae760ce866efbbd7a69da':
Eliminating selection delay when query comes from intent.
5251884bbcdb92dad577d027126547527285fcce 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Eliminating selection delay when query comes from intent.

We want to delay automatic selection of the first
result when the user is typing in order to prevent
flashing UI. However when the query string is sent
to Contacts as part of an intent, such delay is unnecessary.

Change-Id: I55afd4b435e46fbd701eb6a514bcf0f85b963409
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
4785ef602d0e6bed67d82d65fb10b2536db8d166 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am f05cc0cd: am 29d701a9: Adding support for copying contact name, phonetic name and org

* commit 'f05cc0cdbfb4d937ccbc7ed7bcbedf2a5d62c401':
Adding support for copying contact name, phonetic name and org
29d701a984971083587f93d6dff9895622583f2c 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding support for copying contact name, phonetic name and org

Bug: 3362543
Change-Id: Ie1f593d507d89a1d3cad9cfb94e2487968147362
ndroid/contacts/detail/ContactDetailHeaderView.java
e9f7ed202a33764cbae59a7d55c514f88194feca 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am d2424942: am 0edd4071: Adding support for relationship navigation

* commit 'd24249422f25fcb594e710231704cb76d7df8f13':
Adding support for relationship navigation
0edd4071ddcb23bf2a7b95582df0657de9ff0c60 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding support for relationship navigation

Bug: 3362300
Change-Id: I3b281b4db8bdeb029fdb4981e9c6e5b3b3060c7e
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/list/ContactListAdapter.java
8b07e429d4926b29c97fca799f31b3085937e39c 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 19931e62: am 59d8c63e: Adding a blue overlay to contact screenshot.

* commit '19931e62ea8cee3693f0773a5eced9832395865d':
Adding a blue overlay to contact screenshot.
3c06f131aae11a223cc900a5277a62a05bb887d9 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am cf4e5084: am 29277bbc: Merge "Treating Join request as a regular save/reload." into honeycomb

* commit 'cf4e508458d1aa855b2e9a051db37921a67fd3dd':
Treating Join request as a regular save/reload.
ebd2de641874f2f51b5d0bbdeae3b0a9e82da1cf 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> am 2e5488b9: am b906cbe0: Fixing "Bad long" exception in contact uri parsing

* commit '2e5488b9a69432491e918ed784e83924019e0cb0':
Fixing "Bad long" exception in contact uri parsing
59d8c63ee500a4852b307cfb47bfd21d58ee148e 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding a blue overlay to contact screenshot.

Change-Id: I8eefc006a0d25cae0e32f430fd156bd13e6be943
ndroid/contacts/list/ShortcutIntentBuilder.java
dd0dee6c55ea83d541b28e90cd4ad87ffd026f68 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Treating Join request as a regular save/reload.

Bug: 3362504
Change-Id: I5b5d97ed07c25e3a349d47b812efeb113d52a685
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/widget/IndexerListAdapter.java
b906cbe036505547895a568b20187c8361b89fff 18-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing "Bad long" exception in contact uri parsing

Bug: 3364675
Change-Id: Ia2152e47ff1ba582433e47dc2cf34f88bacef897
ndroid/contacts/list/ContactBrowseListFragment.java
60d6ca4f8464ca597b0f22d7cfa427760c3d826e 18-Jan-2011 Dianne Hackborn <hackbod@google.com> am 6e6015b2: am 3ed426c8: Follow API changes.

* commit '6e6015b27bf0b63b7b7d45eeace9b10062cf6515':
Follow API changes.
8936ce111ea86bf629c83c08752fa7c49b55d3df 18-Jan-2011 Jeff Brown <jeffbrown@google.com> Merge "Add joystick support to framework."
3ed426c842a68895a759548fef87bac359f937bb 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Follow API changes.

Change-Id: I984633a080d84bbea756341d029d0aed47882da8
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/activities/NonPhoneActivity.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
04bad51421ca4adab40900324dc2e108f5554e04 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing issues with default selection in GAL results

Change-Id: I6246b3c409a0ffd24029e3cc276dfc2644bcb931
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListAdapter.java
0f6370fd706a211315b6e99a606bb612c3884222 16-Jan-2011 Jeff Brown <jeffbrown@google.com> Add joystick support to framework.

Change-Id: Ia3ab16f1dee9b04a9856877a9f2381e72f25bb27
ndroid/contacts/quickcontact/QuickContactWindow.java
1fbcbd1053c72e165009ad9a7d735dd2c0755c36 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing settings from task stack if called from launcher

Bug: 3360814
Change-Id: I9c68fbb5894c207259c2cdd055d6bb97c129199c
ndroid/contacts/activities/ContactBrowserActivity.java
8fe7821d91764dc33270f70e1f08ec05647ef041 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Making list switch to All Contacts when contact not found

Bug: 3349063
Change-Id: Iaf85a98293f7bf947fe8d7a71e2538fa80a27a9d
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
682e152f65a14971d7df191ff849f9db9d50d617 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Making list preserve selection when contact deleted

Bug: 3349070
Change-Id: Ifefd83525dd8da7b491bf4f5efae9d9e660caaa9
ndroid/contacts/list/ContactBrowseListFragment.java
b4da2cd498c4f7d3db22d69bc41baf0ebdbcb6bc 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing window closing animation in QuickContact.

Bug: 3350061
Change-Id: If19ee0c2d539836aabfdc1e0783e33f07288a754
ndroid/contacts/quickcontact/QuickContactActivity.java
0c708094307e6c6b782095c854a1b545b6972b86 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Preserving list selection when list is populated with stale data

Bug: 3352121
Change-Id: I7a553dbdf7d8a0e5d2af8536b8396ecd56b4a2ba
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListAdapter.java
e9ec5ddb542787b7b5d94d9ea59b05d1f405c5aa 16-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Handle null in vCard import

PendingIntent#getActivity() doesn't accept null while
the method allows null.

Bug: 3360839
Change-Id: Ibebaab64b6091679c553f942a48215a8d5b05d3d
ndroid/contacts/vcard/VCardService.java
1a57fb2749e5a777067d177184f50dda3fa5c4d7 14-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing "closed cursor" exception in contacts search

Bug: 3352125
Change-Id: I04c8d8a6a7a7d74f3b57be6d38a7690669424ce2
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
7f751c772792d3c24503823039900405f6a1a2d0 14-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Switching CustomContactListFilterActivity to from AsyncTask to loaders

Bug: 3338832
Change-Id: Ifb5c3bcbbeffee64063462c5915a86a8704e3f2f
ndroid/contacts/list/CustomContactListFilterActivity.java
7cee774338f39aa5d15dcf9c805f4abf51202330 14-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing picture loading for directory contacts.

The problem was that LoaderManager no longer delivers
result if it is "the same". In our case it was not
actually the same (it now had a photo), but it was the
same object, so loader manager ignored the change.

Bug: 3349056
Change-Id: Ifa2379bacaf0f11ac920b9235f0033eebbbc67f2
ndroid/contacts/ContactLoader.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
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressPickerFragment.java
150cf5d82bf8655fbd6934d98c4a8f374e429fb9 14-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in ContactEditorFragment

Bug: 3351000

Change-Id: I4c16d6e4b1e6c40caca7b94c5a4ea9e4e060e2ba
ndroid/contacts/editor/ContactEditorFragment.java
8db1913dc30cd83ac27e10a4cfda12b4bf08dcfe 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Making search mode triggered by focus in, but ignore focus out

Bug: 3340666
Change-Id: I75422950c9f708f4651ebf74a43f65eebcea9d11
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
a32cce4b90d60df9dc487e82a9566746e17f1989 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Preventing launch of multiple pickers during widget configuration

Bug: 3344426
Change-Id: Ie3083249b49a6bcb1e1cfc5da901cc56e82bc0cd
ndroid/contacts/socialwidget/SocialWidgetConfigureActivity.java
a3f0bce444d97664e282c10e56d09547f3a0e809 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Inflating contact browser fragments from XML

Change-Id: I3395e70bed9aee8f5c70b92952644f58f425dfab
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
fa49a66979567894c85fe2489d1375216d67597e 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Preventing multiple instances of contact browser from launching

There is a lot of complexity (and simplifications) in
this CL because as it turns out having fragment transactions
was causing focus to be acquired by the search field,
which was causing all kinds of problems. So now we only
have one permanent list fragment (which should go into the XML
file) and we just change modes on it.


Bug: 3345023

Change-Id: I096be24b7598350a074eb1dadc954c7619f26669
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/StrequentContactListFragment.java
b302f305ccf885b8cf7f08ca7532ccc5e9cf7fb3 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Revert "Fixing ClassNotFoundException in JoinContactsActivity"

This reverts commit f8aaed83a9620f760b16b10d9b56a0c4a2454f66
as well as partially 4c08c999c422f84421c383d40f9315f001d593e8

I shouldn't have removed FullHeightLinearLayout. Its
functionality is still required.

Change-Id: I31ac11154feb8d33c667f29e38c076fb5e3928ae
ndroid/contacts/widget/FullHeightLinearLayout.java
883d5446559509b82d41eb6a08fe80fcfdea9947 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing GTalk-initiated search in contacts. Part I

Bug: 3344700
Change-Id: Iea2bbe27cebc9356a549af9097376165c0920d14
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/list/ContactListItemView.java
b490ed47831f2cab30ec9c4fce266af84a5e46b8 12-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Adjusting contact picker style to the new light holo theme" into honeycomb
4c08c999c422f84421c383d40f9315f001d593e8 12-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adjusting contact picker style to the new light holo theme

Change-Id: I9c8ac4b526f1099fb5f54d65c3efccc6e50406e6
ndroid/contacts/widget/FullHeightLinearLayout.java
c9731edb3173a38dcaa142da6bab7f1d9e1a5fae 12-Jan-2011 Gilles Debunne <debunne@google.com> Merge "New quickContact holo theme." into honeycomb
09f6596546bec940ef17f9f295f87808d630ccfc 08-Jan-2011 Gilles Debunne <debunne@google.com> New quickContact holo theme.

The background around photos has been removed.

Made test application use the styled quickContacts instead.

Change-Id: Ic25e32d34f325d32976a3c5f80bb15afbc8ddf08
ndroid/contacts/list/ShortcutIntentBuilder.java
ff69c07777187580060a19170a9bf34028c5c63c 11-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Incorporating new assets for video and audio chat actions

Bug: 3295622
Change-Id: Ic8b7449fa9c68978f5ecb696cc4b67f2bd7faddd
ndroid/contacts/detail/ContactDetailFragment.java
16f0af140eb276e1a855b06d11dbc73ed86ef358 11-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Restoring full functionality of no-account contacts" into honeycomb
1dc28bef7d5353310359c3711b6cdac390d8a2e0 11-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Restoring full functionality of no-account contacts

Bug: 3339401
Change-Id: I2c185ee6e1189b89fce875f59b55ccd68edf6313
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
7913fd1634c84d04417125b9145d5db49b22ab05 11-Jan-2011 Chet Haase <chet@google.com> Animator resources now live in res/animator

Change-Id: Ia150d536dd068a6f6dcfd0e18e5aa6e7121932d2
ndroid/contacts/widget/TransitionAnimationView.java
b360407351cdb473ebc2b3f02796bbe55404399f 11-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Specifying an explicit type for the video chat intent

Bug: 3295622
Change-Id: I571435beaa304c5d687f32b9d063e3939dbcd2a3
ndroid/contacts/quickcontact/DataAction.java
75d6cae5c617ec15fa58aea5a6522e367f1168ba 11-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Renaming attributes of InterpolatingLayout to match the convention

narrowLeftMarging becomes narrowMarginLeft etc.

Change-Id: I67e5fff32bce2149faadf06c344fb6e9a0d808b0
ndroid/contacts/widget/InterpolatingLayout.java
2346af4e10c028d1b39141f45de13a11a5ffa108 11-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show Notification when parsing vCard failed." into honeycomb
ddf4270c7c09562dc4eff6f66940ceb89ac8995f 10-Jan-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show Notification when parsing vCard failed.

Bug: 3330767
Change-Id: Ide850c72a49deef50b8ab547abb33ff8738adc22
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
aa30c00c901fa6a60c7ec6dcc7b5094ca9f4bc21 11-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in CustomContactListFilterActivity

It could not get to AccountTypeManager because
it did not have ContactsActivity as its
superclass.

Bug: 3338461
Change-Id: I8d2c87a7c9528c227e9a94e8d37620e9f8e4acd3
ndroid/contacts/list/CustomContactListFilterActivity.java
179c9960e50019608d91661cfbcbb3cc8bc48093 10-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in ImportVCardActivity

Change-Id: I29312bede3f02dc5849ec7bdd75d4fc9ac88c91c
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
6eebf9ba47d5208a67f71d6b609765ef5d47d429 10-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in QuickContact

Bug: 3337036
Change-Id: I4f01e7a34ad87656bcdaa19bd2e499361448261d
ndroid/contacts/quickcontact/QuickContactActivity.java
ab75f82f6a95b221157f2ce3125d76d62f869ebb 10-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Beefing up ContactBrowserActivityTest

Change-Id: Iea217cafe024ca1a94f3d0f327093a72773aef93
ndroid/contacts/activities/ContactBrowserActivity.java
7d402246e9ac26e05eeb25528bc74083412d1a5a 10-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing issue with opening a contact from Talk

Bug: 3306923
Change-Id: I7d34b82a6e42478a1c3039fee1877bf6402e1ee8
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
072d91171c749f43b64900118e6f4dcbdd7b1097 10-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding mock shared preferences

Change-Id: I1af7cb97703191ce016a936fd843e1ac73be1022
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/test/InjectedServices.java
931cb6128412d10f9bb1916601356766195d2859 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing PhoneNumberInteractionTest

Bug: 3330180
Change-Id: I8431d08405bd5ad71b94679cec803ebe5315df2e
ndroid/contacts/interactions/PhoneNumberInteraction.java
1173ae29217fc83f254404f8a5fa10419ee83c93 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing ContactBrowserActivityTest

Change-Id: Ie492eae15c7163d0f8a3577e73ae14b786709a35
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/activities/ActionBarAdapter.java
efad62dfde0be65acff2af0bbf9cb2a7b765fe83 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing an unused parameter

Change-Id: I67b62a03baec7715be799bf6026027a11ca877a6
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/quickcontact/QuickContactWindow.java
6f667b55687bf9193323802e8f3234f0ab254388 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Turning AccountTypeManager into a "system" service.

It's really not a system service proper. It just
uses the same API and the same dependency injection
mechanism as for system services.

Change-Id: I56e24e0f16642a5ab25e809ee12906d965845379
ndroid/contacts/CallContactActivity.java
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsApplication.java
ndroid/contacts/activities/AttachPhotoActivity.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/activities/NonPhoneActivity.java
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/test/FragmentTestActivity.java
a07fa5f37031e4c5cd2933de02d2db41ec153e2b 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Renaming AccountTypes to AccountTypeManager.

The intent is to turn it into a "system service" of sorts.

Change-Id: I047d70a2e59978c05916965ef0c0d9f18abc55e6
ndroid/contacts/ContactsApplication.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ImportExportInteraction.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypeManager.java
ndroid/contacts/model/AccountTypes.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
43fd1e84de5e28639062c20d35ba7bfec8a07001 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing ContactDeletionInteractionTest

Bug: 3330176
Change-Id: I6726e74440cd7cb8c16d169a97da5042f77c9463
ndroid/contacts/ContactsApplication.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/model/AccountTypes.java
ndroid/contacts/test/FragmentTestActivity.java
ndroid/contacts/test/InjectedServices.java
29996f299a7022b3592bdd68ef37fab283b7cadd 07-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing an obsolete test. Fixing a broken test (ContactLoaderTest)

Change-Id: Ifd655315cff18956b13516edcaa42d5542ec6c26
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/model/AccountTypes.java
25af63c715ccd8f9bd6000372261841a036983af 05-Jan-2011 Jeff Brown <jeffbrown@google.com> Add dispatch key shortcut window callback.

Change-Id: I3dedb876a5f6974731518db8057795e6e462a2e6
ndroid/contacts/quickcontact/QuickContactWindow.java
cccf6276e45dc2451f6ed9902bc1b4b2ea0b05fa 05-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Integrating video chat into QuickContact

Bug: 3295622
Change-Id: I1288e735bf821b3e1acd20ca4fcfa4de08b62a1a
ndroid/contacts/TypePrecedence.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/util/Constants.java
7224b4c00f0eb66367e0f2e634537cb0a9a4b220 05-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing bottom fading the contact list

Bug: 3324620
Change-Id: Ie5dbfe699865f4fb7b15b981ec0309b45d0fb177
ndroid/contacts/widget/PinnedHeaderListView.java
a5bb8e2beb959d07c08c62f59722cea474e77f68 05-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Showing proper chat capability icons in quick contact

Bug: 3295622
Change-Id: I196e2d365616fa4356d6266165a56f84e0df50d5
ndroid/contacts/ContactPresenceIconUtil.java
ndroid/contacts/quickcontact/QuickContactWindow.java
9975edcc653647f15d7b06243dbb4b72d3bd56a0 05-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding proper chat capability icons to contact list

Change-Id: If25b3041649b5c9442abe73729c234934314c316
ndroid/contacts/ContactPresenceIconUtil.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/LegacyContactListAdapter.java
dfe20250b9f3d2cf134ba2a8a97399322ad48010 05-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding proper chat capability icons to contact detail

Change-Id: I4d9e01e08a8d70bb6e1591f92436a5ab7c194be6
ndroid/contacts/ContactPresenceIconUtil.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/detail/ContactDetailFragment.java
19d51ac4d931c17c8d84b65ed13199c0ccdeb20e 04-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Renaming an activity class. Removing dead code.

Change-Id: I509fa747441d8d3d5168aa07a4ada4434f02d190
ndroid/contacts/AttachImage.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/activities/AttachPhotoActivity.java
532f6c58a53019079023510b6d578af283154008 04-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Switching account type and name in contact list customization UI

Change-Id: Iad8055261c2cb16f2bae0db5c55e41b45f20a9ee
ndroid/contacts/list/CustomContactListFilterActivity.java
b77be6d2ad06edfd8751f55043e4aa9fd9f36015 04-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing inflation levels from AccountType.

Also, fixing asynchronous update and concurrency issues.

Bug: 3140873

Change-Id: Ie9d342d23ee4a8d23405ef4145c54d7673b2cbe9
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypes.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
69f9e6f0cd9b5401da55f251e9bd98e69643d7df 04-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Renaming fields and variables from "source" to "accountType"

Change-Id: Ie41036e35a45fc7d9a8c934a3cbe68399c567ad6
ndroid/contacts/ContactsUtils.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ImportExportInteraction.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountTypes.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
cb08f1b2a3f2e6e21aa5d993cf44d04658316ccc 04-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Preserving custom dialog state on rotation

Bug: 3263726
Change-Id: I79ff83dfa79ad469ee6897774f1f21aebe5e0c68
ndroid/contacts/editor/LabeledEditorView.java
2b3f95cc12b76523410782d4178562ce241410ef 03-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding support for (some of) ISO 8601 date formats

Bug: 3293435
Change-Id: I1925040b92895bc8c721f18d75f22329d0ba0ac8
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/util/DateUtils.java
97e90c6d0938e31c2af4ab4b6b055cda853502c5 03-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Bringing custom loader in compliance with new Loader API

Change-Id: I347bf9d8c78f541d6a8aaa7a8f5bfb14a0e8590e
ndroid/contacts/ContactLoader.java
17e6f9d6c0dab8bb02f4f7e2f9f43f8b8449f55a 03-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE on switching from Birthday to Anniversary event type

The code is trying to ensure that a year is provided
(which is not required for a birthday). The value
may be null or an empty string.

Bug: 3314819
Change-Id: If76731316e581addeeca9427adcf204eec7e5199
ndroid/contacts/editor/EventFieldEditorView.java
51927566e1092ff86ddd11aa7f5cbd892cf10c80 03-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing "no-op" handling in custom filter configuration

Bug: 3308350

Change-Id: Iaefc5694b49a80b7a251e6e5527bce2c80b3eba5
ndroid/contacts/list/CustomContactListFilterActivity.java
98cff39315a7f4c6569971afee80e452fc4c3ba9 03-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Showing toast on the UI thread."
886d3d6de4a6f7202b1871f5af9944e8650413df 03-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Showing toast on the UI thread.

Apparently, it's not a good idea to kick off a toast from
a background thread.

Bug: 3308302
Change-Id: Ifbd3268ec06c9ebbfec14ff5cbea09ffda9e6bac
ndroid/contacts/ContactSaveService.java
c7e42acae9f66ff9b9121fdb542afe4552b382eb 28-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing account type meta-data refresh."
09546dcaf7422e41eecf4e7c5d763fdc7e2d3372 28-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing account type meta-data refresh.

Bug: 3313829
Change-Id: I58d7162e7c0160689b451189b299403c1d394c38
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ffc16e6a713cc877e1fa0686ae84e6261fccb3e8 28-Dec-2010 Daisuke Miyakawa <dmiyakawa@google.com> Detect unknown filename in importing.

Bug: 3304661
Change-Id: I05e92cf01f91cf4ba1bce7fe5b6a7ed1ced48d7f
ndroid/contacts/vcard/VCardService.java
21c3897231d5650fe86ad3223d76b3a55411ac64 28-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Updating Contacts to use the new NumberPicker API that are to be made public

Change-Id: Ib2240ba3ae6709a7d9362deb4b674e06193faa74
ndroid/contacts/datepicker/DatePicker.java
a5a2744ab8102cf4ff5fbd3e1fa074a45257b3dd 28-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixes in selection management

Specifically, after creating a new contact that contact
would not get selected. Also, after deleting a contact
the default contact would get selected, but the selection
would not get shown in the detail panel.

Change-Id: Ia4d078d22f257419c9fa9c590dc6e0083be3d457
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/list/ContactBrowseListFragment.java
3c8c3e811917998620b4526330b83d32d3c17078 23-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Restoring contact selection after the app is restarted

Change-Id: I279d5b26bc96fc9d0560c88bb38826a533acabaf
ndroid/contacts/list/ContactBrowseListFragment.java
93a05db5aa59dc031ccd5ce76f816f7b2ab1d3a4 23-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing selection management problems:

1. Clicking on a contact in QSB would not select the contact
and sometimes would not show it at all.
2. A really slow directory would prevent the first found contact
from being selected
3. If a request to view a non-existent contact was sent to the app,
it would sometimes fall into an infinite loop.

Bug: 3304574
Bug: 3304475


Change-Id: Id31582840535992550e33bc64674a0248ad7d66c
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
fff6f07a02d3e3bbeff2ecf94a703782b71aea66 22-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for 3rd party contact editing

Change-Id: I0379f7392a23aea68d0f59a9869bb72275f5bddb
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/ExternalRawContactEditorView.java
ndroid/contacts/editor/ReadOnlyRawContactEditorView.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/ExternalAccountType.java
f24a8315250bec2c112b34c16898d6b9ef021165 22-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing contact list definition for contact join activity"
23411b233966730de4e23d07edb871238cf891f2 22-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact list definition for contact join activity

It was using obsolete API, IN_VISIBLE_GROUP instead of
the new API, which is "directory=0"

Change-Id: I1155e1cbc7f3edb3f77542c57422e93d2882198b
ndroid/contacts/list/JoinContactListAdapter.java
c04fc2704faad2c045cfbfea34611dfbe4519cf6 21-Dec-2010 Dianne Hackborn <hackbod@google.com> Update to use new Loader callbacks.

Change-Id: Iaeedefa1b638e1aadf05f79c49b31d7245fca648
ndroid/contacts/ContactLoader.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/DirectoryListLoader.java
8daa1797310aca2333efcff0a0e0b0ed03187fff 21-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE when filter list is loaded before fragments are added

Bug: 3299359
Change-Id: I8de2818c4df18f93572b91d685ffbe151131c927
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
73a45b4ad96b21f468dbacde0da213d190979835 21-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE on join contact activity.

The monkey hit Menu=>Join and then quickly Back.
By the time the async task was done and we were
ready to start the join activity, the editor activity
was already closed.

Bug: 3299389
Change-Id: Ib98f2dc9e815a123636f85972888f3b571841015
ndroid/contacts/editor/ContactEditorFragment.java
192a1387fb364963ff313bdbc866e914d4188790 20-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> New layout of the contact widget

Change-Id: Id440fb606fd5ddc6167af2b1491426080980a9ff
ndroid/contacts/socialwidget/SocialWidgetConfigureActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
9d2bcfb40d0ee107886eb99eba13a840e944ba43 20-Dec-2010 Dianne Hackborn <hackbod@google.com> Update to new Loader APIs.

Change-Id: I4be23901304890e1d0237d81e6cfb3889d5b6591
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/DirectoryListLoader.java
37dc7cf5eaf4e313a077e102ef86c422bc35df6e 18-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Improving memory management in ContactPhotoLoader.

What was happening was that during sync
photos would get loaded and softly retained.
The trouble was that GC would sometimes (often)
free them before they got retained by the
corresponding image view on the UI thread.

Change-Id: I6fd05e2761384f5c0a7c9ba470b718237b9fbbf1
ndroid/contacts/list/ContactPhotoLoader.java
0cd01309feeaf08b1a9852d33fc123c6cbddca6c 18-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Optimizing option menu invalidation

Bug: 3296198
Change-Id: Ic8ed6b474a5aceccde620859fc2f93222637da27
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/list/ContactBrowseListFragment.java
99f9d53bef367804a1df2145454663310f706d0f 17-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing photo flicker during sync

Change-Id: I500e363c58a2a5ab73a1dbe46281c86070ed4142
ndroid/contacts/list/ContactPhotoLoader.java
691e93397eae9a29d979a5e404f0b90130c2e9d4 17-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE on search button hit in ContactsBrowserActivity

Change-Id: Icc2fb4d6d5faa2eceb10edfdb6fd4d17e7b483c2
ndroid/contacts/activities/ContactBrowserActivity.java
76a4a42157a669a94489a78eecbf3b975fec7951 16-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing NPE caused by an unsupported date format."
0a6fa1de53d1c95c75b5841d4dc25e2a3367bdc1 16-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE caused by an unsupported date format.

Bug: 3291968
Change-Id: Ia6baf689228a6b35448ba44197144b743444f1a5
ndroid/contacts/util/DialogManager.java
4ef95cc3329b4ad9fa450e4090efaad9935d493f 16-Dec-2010 Dianne Hackborn <hackbod@google.com> Prepare for some changes to LoaderManager/Loader.

Sorry it is a bit ugly, it is to allow this change to be
checked in prior to the first stage of the framework change
without breaking the build.

Change-Id: Ic781324da69a06ef30a0b34cd4e16d561c9c7df2
ndroid/contacts/ContactLoader.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/JoinContactListFragment.java
68d8da77cd7b71516cd6a32bdfb491bbdc9929fc 16-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing filter selector layout

Two changes here:
1. No longer displaying the second line (account name) for groups
2. Highlighting the currently selected filter in the popup list

Change-Id: Ic13c7aadb89f6e7488732904b78ecc92c34bc7bd
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/util/ThemeUtils.java
4ecb7028746a36c4febb831ba30a07d353e89e16 16-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Making contact filter focusable

Change-Id: I6d4407074c407034db5292064091bea3c63c8189
ndroid/contacts/editor/ContactEditorFragment.java
d3eedfc5f518a081d76d6b9e31a39c5adf988bc0 16-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding a confirmation dialog for canceling out of contact editor

Bug: 3144593
Change-Id: Icd6c9f96d9d2fd4ad84ba38711d0af874258dba5
ndroid/contacts/editor/ContactEditorFragment.java
2f28edacb95db9ee56631815f592e46ec928a33f 16-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing per-filter selection persistence on orientation change

Change-Id: I7706f768ec60506e24ffd96932d6c637b91b8234
ndroid/contacts/list/ContactBrowseListFragment.java
892fb517ff1ba2e3f8804b0a9365a2173bff1f3a 16-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing contact URI refresh from Loader to AsyncQueryHandler

Since this is a single-shot query, we don't really need
the overhead of a loader.

Bug: 3268425
Change-Id: I01c8fa43502ba2ba7c743a6aeb5ce55fe4d9ba90
ndroid/contacts/list/ContactBrowseListFragment.java
ca0a6010b56801ff603f3c7c08327e30f90bfac0 16-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing initialization of requested scroll position

Change-Id: I972f0cf39f1a4852a087b66754e71e3e7b03daf1
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/widget/AutoScrollListView.java
73ac47fb52e2a5c1662e9e31c9e3a618190a5e61 16-Dec-2010 Dianne Hackborn <hackbod@google.com> Merge "Fixed #2887723: Retained LoaderManager will never get started"
615810ec84e5973d6a1454fbb2a92c72e181e9a5 15-Dec-2010 Dianne Hackborn <hackbod@google.com> Fixed #2887723: Retained LoaderManager will never get started

Seems to be working now.

Change-Id: I34fc1c130c0ce405bbc346c923fc2a7369be667e
ndroid/contacts/list/ContactEntryListFragment.java
264023c04b75043fa77267fd1b940d0afb13421d 15-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing dependency between filter loader and list loader

Change-Id: Iaeeb0071d34d9ed68c2704af2ba7fe8981ed435e
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
753f8f6fde5a4f74181310593acebee94a014fe2 15-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing non-deterministic behavior of autoscroll in contact list

Change-Id: I14fdf8b64c72f2fb6554c1cc324a2ca2464ac1a6
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/widget/AutoScrollListView.java
ndroid/contacts/widget/ListViewUtils.java
ndroid/contacts/widget/PinnedHeaderListView.java
e4e52199057ffb57bad42caa33e6b402fd80697a 14-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing a memory leak in ContactListFilterLoader

Bug: 3226188
Change-Id: I02c5287955e7f112b9c9a279dc8709ff41f09615
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactListFilterController.java
7fb3026ef70fb3f3a66113bc9769ba79006a38e1 14-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing layout of pinned headers (were clipped on the right side)

Change-Id: I769df42375564cace36a3fd88b19f2b23be33ead
ndroid/contacts/widget/PinnedHeaderListView.java
b71ef30b7c74021f87d2e824d7763963b1d1f36c 14-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Implement granting of URI permissions from picker."
4fa9cd0088de76d83803210b39f373cd980fd846 11-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact editor

Bug: 3276044

Change-Id: Id66492cd0e8570bbe9333e5085d65b47f42525eb
ndroid/contacts/editor/LabeledEditorView.java
545a233ec77db35c966562925b29942aee82b4e7 11-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adjusting margins/padding

Change-Id: I75e60dc8d893c7810c7700b577a4eec40074b225
ndroid/contacts/list/ContactEntryListFragment.java
65f8cae5f848b63ae695da63b56fc9270513078a 11-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing handling of top/bottom margins in InterpolatingLayout

Change-Id: Ib023021f31c4a813fe7bf976b42f1101da91ce9a
ndroid/contacts/widget/InterpolatingLayout.java
a03c1980ab07a7fa2bbee9398aa71b1e2b55e763 11-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding left and top padding to the contact list

Change-Id: Ib694507bd4a5897776e4f6262544b74bd07072dd
ndroid/contacts/list/ContactEntryListFragment.java
3e076bb53d39eb3757b376a003c412e4f44b0e3d 11-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding a hint to search view

Change-Id: Ie5c964a45458159c82c48414a54e19524289f794
ndroid/contacts/activities/ActionBarAdapter.java
5245ea63b4cca18ee504b27abd534fc13d33dea9 11-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Replacing Aizy with a standard scrollbar

Change-Id: Ie8626844e194894da6e30205fe5da43d92d793c2
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactEntryListView.java
ndroid/contacts/list/ContactListAizyView.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/widget/PinnedHeaderListView.java
d52121b61b71230d0f695f9d3891eaf0cbb7c549 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Making aggregation suggestion engine listen to data changes

If a sync brings up a good suggestion while we are editing
the contact, it should show up.

Bug: 3184559
Change-Id: I0b14dc689cba2780d1a531b53d1e545b22e5570b
ndroid/contacts/editor/AggregationSuggestionEngine.java
e8b9505e4ba98b565704278d6553605523469cf3 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing join contact activity setup on rotation

Bug: 3268656
Change-Id: I542d6f2fae87eaba507488d58433a0b149df4cda
ndroid/contacts/activities/JoinContactActivity.java
c22a6d09fa90a8dd07e0b3a43ae89196c2ce6102 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adjusting size of line item background and divider

Change-Id: I70d4eb72e5a841f825e2d683611a7e3fe319a150
ndroid/contacts/list/ContactListItemView.java
fa82b398f49bf8d5ae386c326f246f0e56e438b9 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Ensuring that the "plus" button is always bottom-aligned

Bug: 3273190
Change-Id: I5a41989b5362b5d14fe4b44642eee1ebb50a197f
ndroid/contacts/editor/KindSectionView.java
3b3b497409ad86017ea378801f85b1ae3d57f00a 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Ignoring unchanged values on contact save

Change-Id: I558208056889b68e8aff6e140e05dc4aa2f4a1af
ndroid/contacts/model/EntityDelta.java
f7ab3f49c3c21544d1bfddc5f9a70019c5b3ae49 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Ignore "join completed" action if it arrives after activity is closed.

Bug: 3259952
Change-Id: If757bafda9dd4edc8120faa1bea6ffefef762acf
ndroid/contacts/activities/ContactEditorActivity.java
15dcf1d5874bf82eb9154e0c5ce4fb924a311ccd 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Wrapping website URL in a WebAddress for proper parsing in QuickContact

Bug: 3272867
Change-Id: Ibd396a666324dce1817712636a36905dceeeabc9
ndroid/contacts/quickcontact/DataAction.java
1b89adcfc9a2dab203789d489f6ab66ba782800c 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Avoiding an unnecessary intent.getType() query on the UI thread

Bug: 3251719
Change-Id: I96ea061bc5f7565a26c30a5fd98b52b6c7e02699
ndroid/contacts/quickcontact/DataAction.java
3d48a46d6ea2d0ad43f1d6253399db45414ac9b7 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding the word "New" to the action bar menu item

Change-Id: I754ab4cc6d18a9bd2fae9f9de5007e490a9c394b
ndroid/contacts/activities/ContactBrowserActivity.java
419a33b87ccd09d49f43302eb5ad2d53e1758786 09-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> New background assets

Change-Id: I8fc7ac315bdb01d6bd7ac49a9c4a6e102873b039
ndroid/contacts/list/ContactListItemView.java
11cbbf445e4724246836f006f06ad16cc82ca439 09-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching to framework styles in action bar

Change-Id: I218710421d40e28557252ac22f95c8e0c1791513
ndroid/contacts/activities/ActionBarAdapter.java
d11bca23766abf3325cebbec5b1b225e3fe4663f 09-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Implement granting of URI permissions from picker.

Now apps can have the user pick a contact and retrieve its data without
needing the READ_CONTACTS permission.

Also fix the intent filters for GET_CONTENT to work correctly (not require
a URI).

This is a manual cherry-pick of
https://android-git.corp.google.com/g/#change,64188

Bug: 3230253
Change-Id: I82ada3e1be000e02aa057a1ff2f64bb97e14bc26
ndroid/contacts/activities/ContactSelectionActivity.java
fab33039529f230990ed0fc6948f48adb81814b2 09-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Restoring the data restriction based on calling package

Bug: 3230263
Change-Id: If035dbc1a061d94b84e750c988a4e086d22e60eb
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
b22ca30163f5f99f07b906c20fd1a798541448a5 09-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Setting proper size for photos in JoinContactActivity

Bug: 3268454
Change-Id: I4684b5a9da435510f4cda62f07f8ed34d4eaf30f
ndroid/contacts/list/JoinContactListFragment.java
91d8e892d549bbeba721cb434163a83bc99330a9 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Aligining fields in the editor

Change-Id: I7137055bf8ab61df33f6a87c8e6c8227dbee8a9f
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/util/ThemeUtils.java
63c311a278cd8ba28d6d8f3b49c0ccd4dffeb57d 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding "Cancel" button to contact picker

Bug: 3254117
Change-Id: Id0a40fc63f2ca094c7a1a77205ada84a58c2c457
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/editor/LabeledEditorView.java
9659af17a02a55a9bc41a06b5ab2cb3d192cc4bf 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Preventing aggregation suggestions from showing up on rotation"
7d4a8dda946f5c013573e4d6601fc14c03156ba6 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing aggregation suggestions from showing up on rotation

Bug: 3263714
Change-Id: Ifacfb1614b609ea9768eb25c795657cd55a16cdd
ndroid/contacts/editor/LabeledEditorView.java
01aa7a7d4f92b2f0f5cc6472089966e1a7d7f516 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Updated Contacts due to refactoring in NumberPicker for exposing the latter in the SDK"
14918c07e1cb3b5b190bec4cc9106db7adbba29f 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing custom type dialog crash on rotation

Bug: 3263726
Change-Id: I4afd193fa97578c98785105d0465c286bd085381
ndroid/contacts/editor/LabeledEditorView.java
9a0519f4f765c3039fc6e6a9e231f1437a9750d6 08-Dec-2010 Svetoslav Ganov <svetoslavganov@google.com> Updated Contacts due to refactoring in NumberPicker for exposing the latter in the SDK

Change-Id: Icd5c8727436759d4f3144ec6c14ea580d9bee7a1
ndroid/contacts/datepicker/DatePicker.java
2fcfa499dd44f62dc63636e363522354e13aa20d 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing from PopupMenu to Spinner

Change-Id: I24d3a76479b3741f5294abfc1003a8c62e56a5d9
ndroid/contacts/editor/LabeledEditorView.java
50c02ede09a757f69c80beb442aa32ee0010efc7 06-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for text copying

Change-Id: Idcafcbc3fa3466ec5ba63087337a8779ed4c2265
ndroid/contacts/detail/ContactDetailFragment.java
b4980bb7ad447365bde3af92c783bd045522da38 06-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing progress dialog when saving a contact"
02bb1252aa990813fa9e86ad75c458acc15e6801 06-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing progress dialog when saving a contact

Bug: 3253127
Change-Id: Ifd3b58f202fea76596880fb6de9f8acc46a32d79
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/TextFieldsEditorView.java
b3dbf292e19a9e26ad5c48d02e025509ae6e18ca 05-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am de62d9bc: am ff8bcc1d: am 2cbec492: Merge "Make sure unmatched autenticator/account-types doesn\'t crash Contacts."

* commit 'de62d9bc43a746c434da533165f5e5ad4bfd4f17':
Make sure unmatched autenticator/account-types doesn't crash Contacts.
ff8bcc1d4af9135107d287cc54a29cb00bacdc52 05-Dec-2010 Jean-Baptiste Queru <jbq@google.com> am 2cbec492: Merge "Make sure unmatched autenticator/account-types doesn\'t crash Contacts."

* commit '2cbec492d03e7b5db7b7a1d5277fc7264cac3241':
Make sure unmatched autenticator/account-types doesn't crash Contacts.
18ffaa2561cc7dd2e3ef81737e6537931c0a9a11 03-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming a couple of packages

Change-Id: I2c0f86b51baa622df629206f8b79ef1d0df09119
ndroid/contacts/ContactLoader.java
ndroid/contacts/ContactSaveService.java
ndroid/contacts/GroupMetaData.java
ndroid/contacts/GroupMetaDataLoader.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/detail/ContactDetailFragment.java
ndroid/contacts/detail/ContactDetailHeaderView.java
ndroid/contacts/editor/AggregationSuggestionEngine.java
ndroid/contacts/editor/AggregationSuggestionView.java
ndroid/contacts/editor/BaseRawContactEditorView.java
ndroid/contacts/editor/ContactEditorFragment.java
ndroid/contacts/editor/Editor.java
ndroid/contacts/editor/EventFieldEditorView.java
ndroid/contacts/editor/GroupMembershipView.java
ndroid/contacts/editor/KindSectionView.java
ndroid/contacts/editor/LabeledEditorView.java
ndroid/contacts/editor/PhotoActionPopup.java
ndroid/contacts/editor/PhotoEditorView.java
ndroid/contacts/editor/RawContactEditorView.java
ndroid/contacts/editor/ReadOnlyRawContactEditorView.java
ndroid/contacts/editor/SelectAccountDialogFragment.java
ndroid/contacts/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/editor/TextFieldsEditorView.java
ndroid/contacts/editor/ViewIdGenerator.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/interactions/GroupRenamingDialogFragment.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/ContactSaveService.java
ndroid/contacts/views/GroupMetaData.java
ndroid/contacts/views/GroupMetaDataLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
ndroid/contacts/views/editor/AggregationSuggestionEngine.java
ndroid/contacts/views/editor/AggregationSuggestionView.java
ndroid/contacts/views/editor/BaseRawContactEditorView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/Editor.java
ndroid/contacts/views/editor/EventFieldEditorView.java
ndroid/contacts/views/editor/GroupMembershipView.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/LabeledEditorView.java
ndroid/contacts/views/editor/PhotoActionPopup.java
ndroid/contacts/views/editor/PhotoEditorView.java
ndroid/contacts/views/editor/RawContactEditorView.java
ndroid/contacts/views/editor/ReadOnlyRawContactEditorView.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
ndroid/contacts/views/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/views/editor/TextFieldsEditorView.java
ndroid/contacts/views/editor/ViewIdGenerator.java
9df61ed9eeecb81043e7e6662ff3da83428d6865 03-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing "app up" behavior

Bug: 3237656
Change-Id: Ief60f257ea59a1da8ad9e3fcabf292ee4f7506c3
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
74f519f81f257cd2f962fdf12e6ee9ec6fe6a5f0 03-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing a dialog display exception on contact join

Bug: 3243853
Change-Id: I09c42357e098b5bd7ec30fbb1b1d5e86fe6546cd
ndroid/contacts/views/editor/ContactEditorFragment.java
328a08fec3834280d50be216c310c93169607d31 03-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Updating background assets for contact list

Change-Id: I10e040d385a9ca877d94783f11c7d4ae393a9178
ndroid/contacts/list/ContactListItemView.java
32d64e590d4f9302d204d9a96960ca5739807500 29-Sep-2010 Nicklas Shamlo <nicklas.shamlo@sonyericsson.com> Make sure unmatched autenticator/account-types doesn't crash Contacts.

If the Contacts-app didn't find a valid authenticator for a specific
account-type, it would previously throw an exception and crash.
Now the account-type is silently ignored.

Installing an app with unmatching authenticator/accounts like, e.g:

<account-authenticator
xmlns:android="http://schemas.android.com/apk/res/android"
android:accountType="com.abc.def"
android:icon="@drawable/icon"
android:smallIcon="@drawable/icon"
android:label="@string/label"
/>

<sync-adapter
xmlns:android="http://schemas.android.com/apk/res/android"
android:contentAuthority="com.android.contacts"
android:accountType="com.abc.ghi"
android:supportsUploading="true"
/>

would otherwise crash Contacts.

Change-Id: Idefa3266e1624246de97d1eae6612747b52f8c60
ndroid/contacts/model/Sources.java
c98fe871f87b3cb6e5ed58b186d033d62f7d89f3 02-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Bringing list item background in compliance with the mocks

Change-Id: Ia383f004c2ad0b985273c451cf367973f97c76db
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactEntryListView.java
ndroid/contacts/list/ContactListItemView.java
bb0788a8a052cb3baf8fdc20fcf97d77b94e12ab 30-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for interpolated padding.

Change-Id: Ib7733abdebb2125ae28f4f5deb532f6faf93d0b9
ndroid/contacts/widget/InterpolatingLayout.java
f2da5b4e37e67b28e3bf4b32f4ae668ce0e74c3c 30-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Using holo_light theme in date picker dialog

Bug: 3229279
Change-Id: If909f8b78a3dbc0e4bd215063f15bdb15a369d85
ndroid/contacts/datepicker/DatePickerDialog.java
84e75a17f4444c269b374cc894ccc29fa3faa4cc 30-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> New asset for "clear defaults"

Bug: 3222299
Change-Id: I2be37f6f2068e28afc34349d4416bd0f50b794e2
ndroid/contacts/quickcontact/QuickContactWindow.java
169ff2ab666eb0cf5414b3a5eb8333ec4ddc669a 30-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Pushing initialization of phone number formatter to background thread

Bug: 3228687
Change-Id: Ib797383b2af3608876956ed365026b1522bc0f6c
ndroid/contacts/ContactsApplication.java
ndroid/contacts/model/AccountTypes.java
2b46f0301c51973d6e3b02b78b398af097244af9 30-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Pushing contact joining to the service (background thread)

Bug: 3228687
Change-Id: If7f492aab683e6033a82e45714795c4a04407234
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/ContactSaveService.java
ndroid/contacts/views/editor/ContactEditorFragment.java
234e78453e7b4a3179500fa68c105bee4ad19757 30-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE when a group has NULL account

Change-Id: I04c26d47b733088a11ee8c44cca59d6f9b953108
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/views/GroupMetaDataLoader.java
56c55827a83eef9ebafbb68beb3656c2506c1e0f 30-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Performing all account meta-data loading on background thread.

Bug: 3228687
Change-Id: Id66989ed9a4e671019b931c172de254b8b055a4f
ndroid/contacts/model/AccountTypes.java
3b7dedd2cea8000200fd28f8aa6f9664c9044cef 29-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Priming some caches when Contacts app starts

Change-Id: I333d2b64614835fa8897897752d6a215f94855de
ndroid/contacts/ContactsApplication.java
b5cd5959f0f0c5aa8ce50d3e872c0dcec12af9d4 29-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving package installation and account update listeners in the bg

Bug: 3228687
Change-Id: Id082dac2c2b21f09ccfc30afb5f734e8c36cb2d8
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/model/AccountTypes.java
0b8c9fc3a225f07882b641396f43a4d1d0ab7fee 29-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Bringing read-only contact editor in compliance with mocks"
61e0a57e8d07b4b4784c4a4394e95cf81a894349 29-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Bringing contact detail header in compliance with mocks"
ee194e54e036ac0acd18b8ef2459bccd7dcda80d 29-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Bringing contact detail header in compliance with mocks

Bug: 3135612
Change-Id: Ic90742d2450842859ad19b229d8a8fa1d68564a8
ndroid/contacts/views/detail/ContactDetailHeaderView.java
50d0ceed79730a0f20c632faa3981dc6a2daca4d 29-Nov-2010 Jean-Baptiste Queru <jbq@google.com> Merge "resolved conflicts for merge of af7bd11e to master"
062f8a09d7ec047c5b0529f141b95c49fbbd9561 29-Nov-2010 Jean-Baptiste Queru <jbq@google.com> resolved conflicts for merge of af7bd11e to master

Change-Id: If0816ca5306aae0e59219b095e3923c0b7d9a23b
f049ff0f841b90f5e7973dba51b37b4e1ec3c960 29-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Enabling strictmode logging

Change-Id: Ib4ef5976487d40bb43984591b016d47ea8f28a1e
ndroid/contacts/ContactsApplication.java
af7bd11e3548d5866e8569461977899d094f21c6 29-Nov-2010 Jean-Baptiste Queru <jbq@google.com> am fb636408: Merge "Contact icon cannot be replaced when set from gallery."

* commit 'fb6364087e42fe92c39147b3346c2d321186fadd':
Contact icon cannot be replaced when set from gallery.
ea54a96ada15c83086e854619789ea025244f7a6 29-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Bringing read-only contact editor in compliance with mocks

Change-Id: I34c058e9e225acf25fbad0f76096af197bf8cd88
ndroid/contacts/views/editor/BaseRawContactEditorView.java
ndroid/contacts/views/editor/RawContactEditorView.java
ndroid/contacts/views/editor/ReadOnlyRawContactEditorView.java
7d8cabb65b02096583b928c64ae455d1f79e5633 25-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving contact deletion to the background thread

Change-Id: Idc6ed13ec94e7a9dcbd2254e388e3438d03034ca
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/views/ContactSaveService.java
b919e7d04bdb911b3165202085a1f3ea63ec10e1 25-Nov-2010 Daniel Lehmann <lehmannd@google.com> Merge "Move handling of primary to quickcontacts"
0f78e8b198c56963d6d6044839bb0679f4afd075 25-Nov-2010 Daniel Lehmann <lehmannd@google.com> Move handling of primary to quickcontacts

Bug:3212270

Change-Id: I2d35aef0407e02cc4612a66ca09dbcd89b2fe714
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/ClearDefaultsAction.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/ProfileAction.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/views/ContactSaveService.java
ndroid/contacts/views/detail/ContactDetailFragment.java
66bca8f360c9e21b6a47006f21db7b46b6b46340 25-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Turning ContactDeletionInteraction into a Fragment

Change-Id: I6edb576d0158b7082d3e2bc4d1902d34fc62cc7a
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
9d730dd9d9efe125c9102b298f897577157ffecd 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving contact starring to the service.

Also, cleaning up some internal API.

Change-Id: I5bd2c5e24413f4e9ea538757ab05c85885f8533e
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/views/ContactSaveService.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
e5e49a396cce383f25299c653624b94ffff657ec 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Recycling bitmaps in TransitionAnimationView."
783a09a8770f4322a45cee456adefbbc71218ece 22-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix bugs around vCard export and use new APIs

1) let vCard exporter select correct destination.
Multiple vCard exports don't select different destination:
if users request "export", "import" and "export", they will have
just one exported vCard with imported data, not two (one without
import result and another with the result). This is because
each vCard exporter independently refers to existing files in USB
storage.

This changes make vCard service check available files and remember
file names already reserved.

2) use new Notification.Builder API
3) show user-friendly message when there's no vCard on USB storage

Bug: 3219880
Bug: 3219906
Change-Id: I159d25439023eb10934729a00f4da6d157e44b09
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
bcf864578e0fe25813af75f33f5560709a5c8515 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Recycling bitmaps in TransitionAnimationView.

This reduces memory pressure, but does not actually fix
the leak.

Bug: 3226188

Change-Id: Ia305bfe0f7101d1da7355a7721a8519676fcf442
ndroid/contacts/widget/TransitionAnimationView.java
437babb57eb92054533014518405eece53a2b1aa 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Refreshing photo cache when list is reloaded (part II)

Bug: 2781900
Change-Id: Ie6da809d96639edb420bc3c0e538111842ac0d5a
ndroid/contacts/list/ContactPhotoLoader.java
718a250e01169919123565999aebb6914914e131 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Refreshing photo cache when list is reloaded

Bug: 2781900
Change-Id: Ia224c3906beab4084a1c91cfe42a8e42e7521adc
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactPhotoLoader.java
02cbf8b0e73a7e169445e341f387356242f0334d 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing keyboard from showing while loading contact browser

Bug: 3224228

Change-Id: Ic036e07c3da8deeaf11671295ac0509dd10d7f71
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/views/editor/ContactEditorFragment.java
40bb481d29bf490fddc65b88c957dd4b5dbc4d82 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing the menu option to create a new contact in the editor

Bug: 3224187
Change-Id: I16e7ff91483b7ad78597c60682c9190e97fdf1fa
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
5a30d9a0d4801497d34b3125d1435d4ce000a2b1 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixed issues with the handling of a null contact

Bug: 3215879
Bug: 3203553
Change-Id: Icc3f588dff88c375ab72b4d55b4a74ea311cf885
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
4917b9d73032a0a749618c3d92bc585051d9c6b8 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing Settings menu item in Asian locales"
a053d61c4bc694061f449e00cb1b620b855739bb 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing Settings menu item in Asian locales

Bug: 3151551
Change-Id: I9a63499253979b8d18252aae3fe173e6342ba2cd
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
4a58f1022462352fc76775810da8fa730c2e4059 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Preventing a crash when joining an empty contact"
4c699fc698763b3e271efb7654fb5e38ffb6f556 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing a crash when joining an empty contact

Bug: 3205806
Change-Id: Ibed4f9ac48a96bb0d0b44eb85b77c70bd16c286d
ndroid/contacts/views/editor/ContactEditorFragment.java
174eb0ac54a0b483fee05013a2eb5e538d4b6d0b 23-Nov-2010 Daniel Lehmann <lehmannd@google.com> Use Mipmap for icon to support big screen

Change-Id: I65da1da18af01a1529b3d1a8ef656f5249a45f9f
ndroid/contacts/ContactsLiveFolders.java
ndroid/contacts/model/FallbackAccountType.java
90715b38713ea97504f2b4a8452c8dd46d1c20ec 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Processing ACTION_VIEW in contact browser instead of dialog

Bug: 2971898
Change-Id: I3abb6efd8419733681281a2eafa8d9c09660e2a2
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
ndroid/contacts/list/ContactBrowseListFragment.java
6d7a116c8e65096ee1661e717b1d99432f9a010b 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Catching exception during ProgressDialog display

Also, preventing a window leak.

Bug: 3223787
Change-Id: If7023e4584b70d260aa6873bf324caeb6d4b0805
ndroid/contacts/views/editor/ContactEditorFragment.java
784919788e8984d07a12f7a0c6ca86cb6ddbc095 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> No longer scrolling list if selection already visible

Change-Id: I2829e717c2605f6bd8d33d0c07aad50a1313250f
ndroid/contacts/widget/ListViewUtils.java
7bdb5325be037b8f45b5b82a68e7c9f295e86ed4 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Moving state machine logic from activity into fragment."
d959104d37df65f0d6de9290c3fa2b59065be0fc 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving state machine logic from activity into fragment.

Change-Id: Ie3d56bb0cbf0d437912ce5c77ae97d99ec7d7c86
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ndroid/contacts/views/detail/ContactDetailFragment.java
0615664636b9201d97360cbba32bb99755eee3c5 23-Nov-2010 Daniel Lehmann <lehmannd@google.com> New assets

Change-Id: Ic65a3921db6d7ec18a0aa1d79bceeb26b8293158
ndroid/contacts/ContactsUtils.java
ndroid/contacts/model/FallbackAccountType.java
90b7a2dba454fbaef80d54579c295c0c07356ac5 23-Nov-2010 Daniel Lehmann <lehmannd@google.com> Ensure that left and right drawables are not too narrow

Change-Id: I73151233b2bbbf824a1063f0bed38d456224afe8
ndroid/contacts/quickcontact/QuickContactBackgroundDrawable.java
a87222cb76b42f9a1d869f8ad0737271310a956b 22-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Adding support for new field: Groups.GROUP_IS_READ_ONLY"
ab59660a17e896593f2a07c2e1191c2c23e3e353 19-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Allow users to cancel each import/export.

- add cancel capability for vCard export.
- use jobId for Notification id, so that users can cancel each
vCard import/export request.

Note:
As for Notification id, it may conflict with each other when
VCardService is shutdown.

Minor changes:
- add file name to each notification: users can see "xxx.vcf
is successfully imported" instead of "vcard is successfully
imported"
- rename mCancelled to mCanceled. strings.xml has "canceled",
so inconsistent inside the app. Ignore the inconsistency
between the spell in the app and Future#isCancelled().

Bug: 3215008
Change-Id: I7532e3d1b35a8bbeb694e47077554e36190482ed
ndroid/contacts/vcard/CancelActivity.java
ndroid/contacts/vcard/CancelImportActivity.java
ndroid/contacts/vcard/CancelImportRequest.java
ndroid/contacts/vcard/CancelRequest.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
ndroid/contacts/vcard/ImportRequest.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/ProcessorBase.java
ndroid/contacts/vcard/VCardService.java
5096815f263545aa22f33e5aebe5a45f3118c5e9 20-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for new field: Groups.GROUP_IS_READ_ONLY

Bug: 3214137
Change-Id: I8cbae752b9ed417c8050cd74d7ba1d7d33d10b5b
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterLoader.java
b2dc9aec4398b761556409f8dc7ae7a5a9158f26 20-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Pre-populating the name field for group renaming

Change-Id: I70fd2966d509604e325c7279cd5189ffcdc2f217
ndroid/contacts/interactions/GroupNameDialogFragment.java
1ac58b6f2a925c5a4f759346e5244dfd174acd08 20-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding "Create new group" functionality

Change-Id: I2d0c28fcf3e9b3099c8889560a149f18f0f74c38
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/interactions/GroupCreationDialogFragment.java
ndroid/contacts/interactions/GroupNameDialogFragment.java
ndroid/contacts/interactions/GroupRenamingDialogFragment.java
ndroid/contacts/views/ContactSaveService.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/GroupMembershipView.java
28bff9b86fda95cd7dde44161e04ed05b78c3daa 20-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Using content observer to update contact filter list"
af8e3864a2d0131f72337165c846fe909a099e52 20-Nov-2010 Daniel Lehmann <lehmannd@google.com> Don't flush the ResolveCache each time. Turned inner classes into classes

Change-Id: Ic4d3a6a96988bd1979924ac4c2f807114624cf73
ndroid/contacts/Collapser.java
ndroid/contacts/quickcontact/Action.java
ndroid/contacts/quickcontact/ActionMultiMap.java
ndroid/contacts/quickcontact/DataAction.java
ndroid/contacts/quickcontact/PackageIntentReceiver.java
ndroid/contacts/quickcontact/ProfileAction.java
ndroid/contacts/quickcontact/QuickContactBackgroundDrawable.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/quickcontact/ResolveCache.java
c8e9f2026b463d7138a05c3ffbc340a451315dfc 19-Nov-2010 Daniel Lehmann <lehmannd@google.com> Use framework style for custom action button

Change-Id: Ib3bc733bf2ad1fcd6107b7922dc5e2a16d465f89
ndroid/contacts/activities/ContactBrowserActivity.java
f64f21896cfdc65d05c04df31a8adea5826a5825 19-Nov-2010 Daniel Lehmann <lehmannd@google.com> Asset drop

Change-Id: I36313cb930aa03c14cdd00f17eedad32537d0ecf
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
87afe5c6d7554e44041fd5e76b4045720e480cc6 19-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove unnecessary class."
c06c675d5d9688d21bb6085e024ed4ba78ca4d99 19-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Using content observer to update contact filter list

Bug: 3194334
Change-Id: I90aef198739622a4d4ab606fa94f5fd4da6b72f3
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterLoader.java
e08dd50cd50b3e1800b2e7f443a4f57e54d1c0a0 19-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Remove unnecessary class.

Change-Id: Ia74ba9ff0eeae0685695307104e085d26a1d2da3
ndroid/contacts/vcard/AnimatedImageView.java
e6770bfac00e04a0c4cbb08e16a4fe3e1521bc23 19-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Implementing group renaming and deletion"
e898a9fa52728b2ff6fcd3add693471e9e15553d 19-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing group renaming and deletion

Change-Id: I5d55d0d45f1e275e1ebf4f607ef09aba1c6bedc3
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/interactions/GroupDeletionDialogFragment.java
ndroid/contacts/interactions/GroupRenamingDialogFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/views/ContactSaveService.java
69e82441e5fc4306a66d4f803240a544acade044 19-Nov-2010 Daniel Lehmann <lehmannd@google.com> New visuals and test for QuickContact

Bug:3172860
Bug:2591163

Change-Id: I5af7bf99481c38c6b0ad62b8f1c70b04ce930d1e
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactBackgroundDrawable.java
ndroid/contacts/quickcontact/QuickContactRootLayout.java
ndroid/contacts/quickcontact/QuickContactWindow.java
fee848330af1916b7efc540adb82745114ea83f9 18-Nov-2010 Andre Johansson <andre.johansson@sonyericsson.com> Contact icon cannot be replaced when set from gallery.

It is not possible to replace a contact icon for the
default account type.
This fix adds the default account type to the check that is
made before trying to add or replace a contact icon.

Change-Id: I8fc2a71347c2a9123fe61edece3aef79d0900b14
ndroid/contacts/AttachImage.java
7152124ac79a2faf6fd8e4135069feb92edeb1fe 18-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing monkey-induced NPE

Bug: 3206773

Change-Id: I39ba4fb85186ae686e913d69c0647fc98b1879b9
ndroid/contacts/list/ContactBrowseListFragment.java
c3f2a52067b799e223f0964207a2d1957165e960 18-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for initial state: no accounts, no contacts

Bug: 2950700
Bug: 3201561

Change-Id: I3dce97ead53eebc2424ed397234f3f0a892acc14
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/ProviderStatusLoader.java
ndroid/contacts/views/ContactLoader.java
8b8264620f9362e089322d1e3a7cc5620900e6f9 17-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Resurrecting empty state UI

Change-Id: Idc1ee48d62d4f0c01756f9b7689e0f31235b61d9
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsUnavailableFragment.java
ndroid/contacts/list/OnContactsUnavailableActionListener.java
ndroid/contacts/list/ProviderStatusLoader.java
afec61f0875b36313b0c78a2d89a9d04ceb3e36a 17-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Disabling transition animation when view has size=0"
11a2cb156aedd48424651508689e56374fb10a25 17-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling transition animation when view has size=0

Change-Id: I261c22d07631c356e7ef1ad0a8cacf0fa78b4906
ndroid/contacts/widget/TransitionAnimationView.java
49cf743572ea787b655430f3d060bad0c626fa62 17-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Simplify vCard implementation."
910d3e7854e657d20ab8c3a5a330b2a3188b1c74 17-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Simplify vCard implementation.

- make ImportProcessor/ExportProcessor implement both Runnable and
Future (as FutureRunnable, introduced in 1.6). Getter capability
for Future interface is disabled.
- use just one hash map instead of managing three different ones.
Now that both processors are also Future<Object>, it is much
easier to do so.

Change-Id: Ia9deba6f4063eaae48d42a295d2ce84aca0a424f
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ProcessorBase.java
ndroid/contacts/vcard/VCardService.java
30021efaa4ad17bfa6dc00c94b4d70bca98f566f 17-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make VCardService stop when appropriate."
f219f6ee48c503bb2b628c3f2aeff53b15c5a947 17-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make VCardService stop when appropriate.

- introduce stopServiceWhenNoJob()
- make the service use it when some job is finished or canceled

Bug: 3201525
Change-Id: I4e07446c310a6296adead6e7baae91c71e52d569
ndroid/contacts/vcard/VCardService.java
20fbdc9eddf541e030bca2d8cd33667aec1e116b 17-Nov-2010 Daniel Lehmann <lehmannd@google.com> Merge "Refactorings to make code easier to navigate"
efe71591c2285edf6d97e3549d59099226cdb26a 17-Nov-2010 Daniel Lehmann <lehmannd@google.com> Refactorings to make code easier to navigate

Change-Id: I322e776b1fd948e38c609930ae5eb04213d5032f
ndroid/contacts/quickcontact/QuickContactWindow.java
5c0935b29be4d454ab8f6e89ae94e792ff35982b 17-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for layout_gravity to InterpolatingLayout

Change-Id: I23a167b24ca8da75ed973b92ac264ff7e0fc1274
ndroid/contacts/widget/InterpolatingLayout.java
9706f4692b850ee7a612297b074e50bf5ab00811 16-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let importer/exporter show progress correctly.

Bug: 3201670
Change-Id: Ibb4b91e025ba89ed202c7919a89ecd8c9bd7e24a
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
f918631a0eb08e559812a8552db7e4715f7a0d72 16-Nov-2010 Adam Powell <adamp@google.com> Updated for ActionBar API changes

Change-Id: I7ee4ef091e634c8fde6dec83e0b974e833938947
ndroid/contacts/quickcontact/QuickContactWindow.java
7fbdb28c919b477904c0c0dbb0a1ea774a1715ec 16-Nov-2010 Makoto Onuki <omakoto@google.com> Merge ""ShowOrCreate" dialog -- handle back press"
3b10fd07823bf31dc77017ec7fc371baf7c2ae6e 16-Nov-2010 Makoto Onuki <omakoto@google.com> "ShowOrCreate" dialog -- handle back press

Close the invisible parent activity when back is pressed or
the dialog is dismissed by tapping outside of it.

Bug 3198292

Change-Id: I7eb444b12ec9709ebecc55123e351f99838f9c7b
ndroid/contacts/activities/ShowOrCreateActivity.java
8038500255791fdf80bcc96b723fb3471680ab9f 16-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing twitter profile display"
939755c5d5b6e99de62e36b39a7dbd053d220501 16-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Rewrite vCard importer/exporter."
7c819a1a434e02c54f6d216aa3b1a0d08cc93f50 09-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Rewrite vCard importer/exporter.

- stop using ServiceConnection inside ImportProcessor/ExportProcessor.
Just using methods in VCardService would be much less complicated.
- make VCardService responsible for concurrent import/export requests.
Previously ImportProcessor/ExportProcessor were responsible for them,
which made the code unnecessary complex.
- use Java concurrent library instead of manually managing requests.
- remove immature test. We need to rewrite it in the future.
- add logs.

Bug: 3064531
Bug: 3188526
Change-Id: I2565d91fb7557d786df42da4b8755cd5311434b9
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
17aa9d58cdf2eddcffa94d1d8b3c7cbba3d71211 15-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing twitter profile display

Bug: 3197162
Change-Id: I24f5156b5f639733e49338f7f467b03aabf2bc81
ndroid/contacts/model/ExternalAccountType.java
b34d9ce90ea8258350417e2a010052587fa8f9fa 15-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Hiding the type OTHER"
10e8fdb8ba913480d353325001db19591fc05492 15-Nov-2010 Daniel Lehmann <lehmannd@google.com> Merge "Remove MultiplePhonePickerAdapter"
dc2c68dab96769abd45a914d663e8caf866b5b0b 15-Nov-2010 Daniel Lehmann <lehmannd@google.com> Remove MultiplePhonePickerAdapter

Bug:3193559
Change-Id: Iec7ea645915a4032ec22fb2a51325a6ad0f067b2
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
ndroid/contacts/list/MultiplePhonePickerFragment.java
ndroid/contacts/list/MultiplePhonePickerItemView.java
28ac584a3d156086b3e6350605767d13deab0ac7 15-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Hiding the type OTHER

Bug: 3143954
Change-Id: I9d5e19394b56f4ea667c3fa1dda5d182d3ef2c18
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/views/detail/ContactDetailFragment.java
58d8be3ff47747454afdfadfe2f566a183cdee3b 15-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Resolving a race condition between animations

Bug: 3194333
Change-Id: I01cc841fc7b9e6ec037f8334de18cebf12d746a7
ndroid/contacts/widget/TransitionAnimationView.java
4597c92d655d45447780b32c7572acef110b6ed1 15-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming BaseAccountType to AccountType

Change-Id: Iff47bac0e1a118f4a5319526304df16cb89bd0cd
ndroid/contacts/ContactsUtils.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountType.java
ndroid/contacts/model/AccountTypes.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/AggregationSuggestionView.java
ndroid/contacts/views/editor/BaseRawContactEditorView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/Editor.java
ndroid/contacts/views/editor/EventFieldEditorView.java
ndroid/contacts/views/editor/GroupMembershipView.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/LabeledEditorView.java
ndroid/contacts/views/editor/PhotoEditorView.java
ndroid/contacts/views/editor/RawContactEditorView.java
ndroid/contacts/views/editor/ReadOnlyRawContactEditorView.java
ndroid/contacts/views/editor/TextFieldsEditorView.java
ndroid/contacts/views/editor/ViewIdGenerator.java
807887b2eadcf0b724ee67802f1dacc673ce6de4 15-Nov-2010 Daniel Lehmann <lehmannd@google.com> Merge "Simplify IM types to be consistent with Exchange"
b01a75066862566855c6290ca5413ef96a1963be 13-Nov-2010 Daniel Lehmann <lehmannd@google.com> Improve keyboard navigation

Bug:3189110
Change-Id: I4648b21a437f23cd032bf3900de160a841de5a8a
ndroid/contacts/views/editor/LabeledEditorView.java
ndroid/contacts/views/editor/TextFieldsEditorView.java
3f26e24c0cbc988b32d274b7a4e88c994355ef4f 13-Nov-2010 Daniel Lehmann <lehmannd@google.com> Simplify IM types to be consistent with Exchange

Bug:2473310
Change-Id: I79dfd5d919504d434f5ba3629c92c53226c8ea24
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/views/editor/KindSectionView.java
5eb7ec362e1f72abcde40c5558b53997256a8939 13-Nov-2010 Daniel Lehmann <lehmannd@google.com> Merge "Improve contact detail header, especially portrait (and large) mode"
2f7e55a1ad77010d3f7cf1eeaecdf5f4918c5c2a 13-Nov-2010 Daniel Lehmann <lehmannd@google.com> Improve contact detail header, especially portrait (and large) mode

Removed presense from header

Bug:3188956
Change-Id: I94fbb1ed28b20752aacc918e9dc3e525442f5bc4
ndroid/contacts/views/detail/ContactDetailHeaderView.java
a1c4cf5b6e76d41c849cdba04977e4be25723516 13-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing contact filters for local (unsynced) contacts."
a31fe548862fef70d3244dc3414a478f91b098f6 13-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact filters for local (unsynced) contacts.

Bug: 3159239
Change-Id: Id469b19d35dc62e092db64f0ee3356a7ec2f2680
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
4aae20d85a5c0fa6fe375240439b62e23641886e 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "New assets and layout in the contact filter pulldown"
9ce839e2a86b1742682fdec69641c6ed9d665a06 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> New assets and layout in the contact filter pulldown

Change-Id: I549eccac6f6fe4e28a4a26a5a2433b3562dd8c91
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
f53efbfc942248604575e8f3706b78709d50f94a 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Clean-up of several small issues"
3bc7d028812eb88533fdd41f190def2c502083f2 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adjusting section header layout according to UI design

Change-Id: Ia027d807798eb4c2619f5ee542d6c802a62b545f
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactListPinnedHeaderView.java
ndroid/contacts/widget/IndexerListAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
1a9f4cb2474342bdc1dc3131f64f9f4165893cec 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact list loading

The issue arises when the load of the contact
filters is so quick that it completes before
the list fragment is started.

Bug: 3156609
Change-Id: I591e0fda4541412f99030775804d34822777ba77
ndroid/contacts/list/ContactEntryListFragment.java
703d59a8f6d2a2f00551d03cfb45094440c63527 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Even more clean-up work on the contact browser state machine

Change-Id: I17bec8528c9c1f1bd12cefda52b1aa74dd822006
ndroid/contacts/activities/ContactBrowserActivity.java
955846efce2fb378b527bc74fe322fce655f75e2 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Continued clean-up work on the contact browser state machine

Change-Id: Ief3060e6f81db8f58e1a213b75eafa42205d39d3
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactListFilterController.java
bc5bc44eb0e6f86a093929885547fe37efe60a54 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> More clean-up work on the contact browser state machine

Change-Id: I77ff2dbc2a4fb19a8f61d26a91322fe297bf611c
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
98b4588362ed03e769fcc7584234c5853e342ac3 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Resolving issue with the wrong contact displayed in search results."
30cc853792b4a71871cef8bca03b67b805fdc34e 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Resolving issue with the wrong contact displayed in search results.

Bug: 3172505
Change-Id: I9740429306949162a07044aecfd282d14e14f839
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
850a8cca21ffc35858d2d55914ccef50e811629a 12-Nov-2010 Daniel Lehmann <lehmannd@google.com> Use the new picture frame and always scale the picture in the Editor

Bug:3140059
Change-Id: I449182e3aa56c33d031eb4cdbc1097a7e74eb329
ndroid/contacts/views/editor/PhotoEditorView.java
dfbe752b2b96e5a00cff6b936a3bdc194774a0aa 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Clean-up of several small issues

(Thanks Chet for the review)

Change-Id: Icb845bf74bcd277101bc1a048eaf8d57a5777ec1
ndroid/contacts/widget/TransitionAnimationView.java
3687ef81abae92315133fac3401e64f2b5f8ea8c 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fading in photo only when going from empty state

Bug: 3172509
Change-Id: I902d910c85c4d05168da5de19000ec5601421b88
ndroid/contacts/views/detail/ContactDetailHeaderView.java
1139c7ac47f2814c881c0e88972ad7c33fe5a5ad 12-Nov-2010 Daniel Lehmann <lehmannd@google.com> Merge "Use blue pressed background state"
79c9c5a8f849908d2b141c30af15923ea2b60f5b 12-Nov-2010 Daniel Lehmann <lehmannd@google.com> Use blue pressed background state

Change-Id: I10dd655aeb2bfb38ff9b309576b317e6aeef25c8
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/util/ThemeUtils.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/LabeledEditorView.java
ndroid/contacts/views/editor/TextFieldsEditorView.java
659cb93db4468f39625e3ac7fe8a0f67e776d567 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Updating mLookupUri on load"
85609edf326d86d4a2b67be3610f8de7cce28d1d 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Contact detail transition animation

Change-Id: I0ee47a78940d68092c518a35fbe1c78a2b5323db
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/widget/TransitionAnimationView.java
6caccaeeed943db323be89853a108f422e670760 11-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Updating mLookupUri on load

Bug: 3184715
Change-Id: Ib599aac5610ef2d43bbb60307f2104b3e9319b80
ndroid/contacts/views/editor/ContactEditorFragment.java
915ffc5ae1d10a7ed06d5541fe81da023fa3228f 10-Nov-2010 Daniel Lehmann <lehmannd@google.com> Imported new assets

Change-Id: I9bb245c4a8c50625e10655774dc3700c80c224af
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/views/editor/LabeledEditorView.java
ndroid/contacts/views/editor/TextFieldsEditorView.java
40ec3a82d525e73e16a79d5acca23f145dcbfb4a 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the flow for copying contact from directory

Change-Id: Ia391864e5cfb3ec14310d5174f389f5423079268
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/views/ContactLoader.java
3ba226f9367135f9a8cf8ac9c89d3fadbb270cf7 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Restoring picture fade-in for directory contacts

Change-Id: Id330386cf8160acf5b5eee45c6252f513b6c61b9
ndroid/contacts/views/detail/ContactDetailHeaderView.java
7f4f8d1a2804a131ec40fb0323b227a21ba06357 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Refactoring: ContactLoader now responsible for photo binary data

Change-Id: I4ef43a3af985fc5f05f6d99d349971423d655f9d
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
2519a9209c765e250d36a47bae20734f60bc81d8 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Avoiding unnecessary reloads of directory contacts."
325bc61ccfd0116bd696d1bf047014cb8c4a0469 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Avoiding unnecessary reloads of directory contacts.

If a contact comes from a directory, don't
register to database notifications - they
would not come from the contacts database
for that contact anyway.

Change-Id: I7d274c926f467a9f1598b21fc75bd9baada0c0dd
ndroid/contacts/views/ContactLoader.java
009e3e6e528d1dbf48642325ed144e8d3a0cbcdc 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Improved handling of a contact URI supplied by QSB."
9442ef4d2667eab16f65535b63757a7ffe4ccf69 10-Nov-2010 Daniel Lehmann <lehmannd@google.com> Change dialog to popup

Bug:3140059

Change-Id: If09c7082cff59808c9c60962bece8c58cc2c1ff4
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/PhotoActionPopup.java
ndroid/contacts/views/editor/PhotoDialogFragment.java
e5f1e4d30929783b26e285b3ddfbf9bc07bdef58 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved handling of a contact URI supplied by QSB.

Bug: 3180715
Change-Id: I36e1d22d461db81803fd7d0dd60b5f1977c7eeb3
ndroid/contacts/activities/ContactBrowserActivity.java
5ad20a6b1c0552234e58d9bccb99cb0ba7cc9a0c 09-Nov-2010 Daniel Lehmann <lehmannd@google.com> Improve tablet portrait and phone visuals for contact details

Bug:3171090
Bug:3158879

Change-Id: Id6e190897544882b2b7f11dd11ef5f6a34de9ed8
ndroid/contacts/views/detail/ContactDetailFragment.java
f4a407459b6752442dde829cf413da34486fdc84 06-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Synchronizing with the designer asset repository

Change-Id: I675eb1c94dc1c1d416cfc2889be78b8f6f0927ef
ndroid/contacts/views/editor/LabeledEditorView.java
3178ed1bb080e6235454efd20e3756a654860c9d 06-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing menu items when no contact loaded"
7bf064ec75d7557671cdc39df1f9c28d59d97f81 06-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing menu items when no contact loaded

Bug: 3166841
Bug: 3166786
Change-Id: Iab86921df650cd1cf04e365cc0aa9dd44417c196
ndroid/contacts/views/detail/ContactDetailFragment.java
82b49b8eb8a806393fc59833fab96f924e74e9d4 05-Nov-2010 Daniel Lehmann <lehmannd@google.com> Make groups and date look like spinners

Change-Id: I09d42c9c4a6f8de58be6879188dc8b0ec60555ed
ndroid/contacts/views/editor/EventFieldEditorView.java
ndroid/contacts/views/editor/GroupMembershipView.java
3cceb3f9311d0f1c523fe264238aff5f0394ab32 05-Nov-2010 Daniel Lehmann <lehmannd@google.com> Fix widget loading and Loader leaks

Change-Id: I1b5a80383b3c56574598298683b4f88afe8121c0
ndroid/contacts/socialwidget/SocialWidgetConfigureActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/socialwidget/SocialWidgetSettings.java
362acdb3da27524d42c4bb44423d6276c5738616 05-Nov-2010 Daniel Lehmann <lehmannd@google.com> Have more fields available by default when creating a new contact

Bug:3113351
Change-Id: I42f0c40aaf1fac8dd8b59b7f8b5abcdca15de79a
ndroid/contacts/views/editor/ContactEditorFragment.java
3bfccddd6f61f6196a7f0af426c9e3f742de37f3 04-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the size of the search field

Change-Id: I196ac49cc8a8120f3073b9a7afb8bbd84ad757a6
ndroid/contacts/activities/ActionBarAdapter.java
355d0f4f48bafdc6c267344f7661b3cdea7741ee 04-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Using lookup URI to construct delete confirmation dialog

Bug: 3145139

Change-Id: I09777bf74c4a7d84afe07a6bd65b5165a91b6806
ndroid/contacts/interactions/ContactDeletionInteraction.java
f42f53dfe21a4c5f65bd83c681d161ccc06998bd 04-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing a minor regression cause by the prev CL

Change-Id: I2b33df8a4462523379014e4939aeed1fc82c30ef
ndroid/contacts/views/detail/ContactDetailFragment.java
4eeac7428b658ee7e6d9280c4e4b6fa02a79c3dd 04-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Reducing the number of times contact detail reloads data

Change-Id: I85844fb9074d30529b81c4d5ba3232bd85923a9e
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
52edc5cc25620c7984493543c05ae4cb29d1dfc1 04-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing NPE and a race condition on initial load"
d07335a54090a7c41baa99a2c0a6a869ecc6cfba 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE and a race condition on initial load

Change-Id: Iab48097299f36366fae0849baa115feaa497b55b
ndroid/contacts/activities/ContactBrowserActivity.java
c664f573d67106036fadf34acb2830d38c23e8d6 03-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove verbose log showing all accounts."
f8d1407dcb4e3fbb461922aa8059cb98775aa9cc 03-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Remove verbose log showing all accounts.

Bug: 3127620
Change-Id: I3f6d34aa019fd9ba27e35923186cbf0943a355df
ndroid/contacts/model/AccountTypes.java
d21ddb2c96e71f43eaf7addc25e163181d1ca87d 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving JoinContactActivity and updating style

Change-Id: Ie42a751d53f8ad8911bcb796754889514cc665ea
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/activities/JoinContactActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
e6b19932df02763129b966ac01e31f6ed33fdd84 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Making contact joining select the highest priority name"
6e84e40047b13acedd093919df3da904ca10ca56 03-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix vCard importer flow."
aba4353bcf77ba91463cfd079feec3b6c6f59c5c 03-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix vCard importer flow.

- call startService() before bindService() to suppress connection
leakage
- make cancel operation work properly
- take care of cache files appropriately
- add useful logs
- show Toast every time when import started

Note: I still see some connection leakage in ImportVCardActivity.

Bug: 3150402
Bug: 3159855
Change-Id: Iaec6d4e5d8ebcda84e2df5571f87bd3c59e5b264
ndroid/contacts/vcard/CancelImportActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
ec502e886a94d23f03282ed2ee0cd8400678e8d7 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Making contact joining select the highest priority name

Bug: 3113342
Change-Id: I50997f0434a82c549ece29f9451d411f0b7b153a
ndroid/contacts/views/editor/ContactEditorFragment.java
f7ce5978a6a6314028fe9bbb1da99338b111750f 03-Nov-2010 Daniel Lehmann <lehmannd@google.com> Fix various layout issues

- More space for GAL contacts with keyboard open
- Align group membership editor with other fields
- Renamed "Add information" to "Add another field" (Editor)
- Aligned the button "Add another field"
- Fixed regression: "Add another field" showed all-caps items
- Use framework assets for editor-label (DropDown-like control)
- Renamed item_contact_editor to raw_contact_editor_view
- Renamed item_read_only_contact_editor to read_only_raw_contact_editor_view

Change-Id: If71830f132fc5404aebe815a6f14e84f7a1c89fd
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/LabeledEditorView.java
6955afa91b97f991f16f7c283eb57183c20386a8 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge ""Create contact" no longer part of shortcut picker"
47722f664d84cd252a7453920741670944fa9211 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> "Create contact" no longer part of shortcut picker

Bug: 2937128
Change-Id: Id889367524f4609ba2eef8918d44b3d2a1f0693c
ndroid/contacts/activities/ContactSelectionActivity.java
cfb525b3f18d71d6cc5d4ef36d704b3ba9e9a6f3 03-Nov-2010 Daniel Lehmann <lehmannd@google.com> Fix several layout issues

Bug:3135594
Bug:3158860

Change-Id: I2d592afb2cfc8aaf2f00aca38c9d123719bcb8bc
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/EventFieldEditorView.java
ndroid/contacts/views/editor/GroupMembershipView.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/LabeledEditorView.java
ndroid/contacts/views/editor/TextFieldsEditorView.java
a61e0fbb6e057f9c3b8bcf4b68ae1df41d90f3ba 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the issue with disappearing contacts

The problem was that if you added a contact
to a group it would sometimes be erroneously
removed from the My Contacts group.

Change-Id: I6dc3e9afcd8efe2dfd391a0f5340e4268cac47dc
ndroid/contacts/views/editor/GroupMembershipView.java
4d2431a2c77b6f94e5cf27f1ba5c8d4845131222 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing filtering contacts by account"
43f3ee024a7d76b875ee6e0305e91225b22ce11f 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing filtering contacts by account

Change-Id: I7adb24049c5e78a478f337aa96439ae6d89659ef
ndroid/contacts/list/DefaultContactListAdapter.java
24647ff44b5299280704d02c03065a6757ae46c5 03-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Change the code around vCard import + Service."
a9ba485ac82e8b5170f2b264a27f2dc0a6d18dec 03-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Change the code around vCard import + Service.

Bug: 3150402
Change-Id: I8f51478b2449800b71932f8bbf8c99bf864baf02
ndroid/contacts/vcard/CancelImportActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportVCardActivity.java
af7c7d34f386053d4ea3e2d774d84d8b6c44336c 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing ContactSearchActivity and SearchResultsActivity"
7b8f74678640b571196557d64dd712dc4a109c49 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing ContactSearchActivity and SearchResultsActivity

Bug: 3124910
Change-Id: Iad3c19262b22fb2345bbff42707e1a4d186c0a62
ndroid/contacts/activities/ContactSearchActivity.java
7501ea8ee3fb17010fc2794a77d58184a5352935 03-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add one more log for account info."
7d901bb3d4118762e21f4db19e35fc937dcf96fe 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Automatically adding suggested contact to My Contacts on switch

If the user creates a new contact, gets an aggregation
suggestion and clicks on it - we switch to the selected
contact, but now also adding it to the My Contacts group
if applicable.

Bug: 3140599
Change-Id: I29a18fde42f62297236d1eae88fb149cc7a204b7
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/RawContactEditorView.java
fa6f60d0c34de5840a92cea936e5d5b6e5dd8f21 02-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add one more log for account info.

Bug: 3127620
Change-Id: I8314838154b38a20a8524332504cdde288df76bc
ndroid/contacts/model/AccountTypes.java
3084640fc2f9954cecd53a9cf653046a72d2b8da 02-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add logs telling us the number of available Accounts."
c7bcc935c9e854fd315d3ed92efa7abbdda62f50 02-Nov-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add logs telling us the number of available Accounts.

Bug: 3127620
Change-Id: I44789e9a129f886ec701ed8a3fc61671576f1549
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/vcard/SelectAccountActivity.java
92d3e42302e6b42fe967f81fc8ffde43f86d6c59 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing randomness from contact badge icon

Bug: 3151253
Change-Id: I5cee1bcfdaec1b18c7918c1e6a0631337b5f25f1
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/views/editor/AggregationSuggestionView.java
234acb015beb094713d21025a5dc54f6e90b4256 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an NPE when loader finishes before

Bug: 3156615
Change-Id: I3e2be8f7c6d2cf8a638de9cf1dbbb2492b551ef9
ndroid/contacts/list/ContactBrowseListFragment.java
f2fa355215467cb1c78661aa5f1ef0c960c7a405 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Reloading contact list after settings change

Bug: 3151551
Change-Id: I384cafb655b278b694f985e2fb74ad0b780a3e3f
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
e4f96ae1534810f475f5917ace2376005f0c293d 02-Nov-2010 Daniel Lehmann <lehmannd@google.com> Merge "Provide support for events (birthdays)"
392ccec3b56e8074a5a028af28106134b39f64bc 02-Nov-2010 Daniel Lehmann <lehmannd@google.com> Provide support for events (birthdays)

Bug:3134950

Change-Id: I9194dca403496a6f3a72bb45f69b16d8f530b15d
ndroid/contacts/datepicker/DatePicker.java
ndroid/contacts/datepicker/DatePickerDialog.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/util/DateUtils.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/EventFieldEditorView.java
ndroid/contacts/views/editor/FieldEditorView.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/LabeledEditorView.java
ndroid/contacts/views/editor/RawContactEditorView.java
ndroid/contacts/views/editor/TextFieldsEditorView.java
ndroid/contacts/views/editor/ViewIdGenerator.java
7c78ead849923470b7abf7804f9098441f1fd93f 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing filter for non-grouping contact account types

Change-Id: I465dffd516206db6f49a604e9be76f07367f8f3a
ndroid/contacts/list/DefaultContactListAdapter.java
1015d629f848de9d331a47c819f55854549d661d 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing crash on saving an empty contact

Bug: 3118296
Change-Id: I666129a10bdefeacdbe847b858c0e900e05bfb30
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
99811726a81c28c5ba8d5b847743f8f1381c3b18 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Excluding accounts that don't support contact sync

Bug: 2663372
Change-Id: I11958cdb9461e94b176bcb7b118bd5f027b5549a
ndroid/contacts/model/AccountTypes.java
bd0c12c63bb0adbc78715d9d13ba588c8ae61839 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing layout and behavior of aggregation suggestions.

Bug: 3098963

Change-Id: I50c8d56bf97b1af15200ce416afc6810899f16d7
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/views/editor/AggregationSuggestionView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/FieldEditorView.java
47755301d3886aeef7c94d20ed6607b03c15137e 01-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Smooth transition for directory photos"
014656a717f343c83c6d5933b2fcbaece3af9ea7 01-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Smooth transition for directory photos

They are downloaded over the wire separately
and create a jarring user experience when they
just appear in the middle of the screen.
Changing that to a smooth 50ms fade-in.

Change-Id: Iaea869c341426958aac6cfdfddd4e5268b9b788d
ndroid/contacts/views/detail/ContactDetailHeaderView.java
9c11682392025146f28b946906df0c5288d3c903 01-Nov-2010 Brad Fitzpatrick <bradfitz@android.com> SharedPreferences commit -> apply

Change-Id: I5d453613000cbedbf75aa048bb8dd60bc07a454b
ndroid/contacts/socialwidget/SocialWidgetSettings.java
ab4db015bbf9902890128bead2c818da9e0beab3 29-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Automatically selecting first found contact."
174fdc2dcb965f11cf4eb25e4ea961f0e1e56c85 29-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Automatically selecting first found contact.

Change-Id: I232f37d1b5256c315d514a2c8dee9e9eeca5dcb7
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/views/detail/ContactDetailFragment.java
1536ea1c41573d5dbcc96c949d44355978283ef2 29-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Preserving lookup URI in contact loader when loading from GAL

The bad URI would cause the selected contact
to sometimes get automatically closed (specifically
this was triggered by a contact sync).

Change-Id: I40bb2ac41ec540a07c5efc142f823ff40ecb1b79
ndroid/contacts/views/ContactLoader.java
3ad2f35559f81e0d1b5ff362795ae77c0493bd0a 29-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing ContactNoneFragment

Change-Id: Ie70cc8548828241d55553d6f0e0243b46996aa90
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactNoneFragment.java
0540f8b74a44f5d1da519cc54e598d75f0e572dd 29-Oct-2010 Daniel Lehmann <lehmannd@google.com> Support the contact field "Relation"

Also removed the "secondary" flag (was unused)
Also removed the inflate function from GoogleAccountType (was doing exactly the same as the base class)

Bug:3134946
Change-Id: I587e96e61ef15d8c87ac8749c852caa3138aeb60
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ebac687ab84cbdbbe72f50151e21ad30befb15cf 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in ContactListItemView

Change-Id: I9f3dcc851a73adb0cef9429e862623e4bf66d7e9
ndroid/contacts/list/ContactListItemView.java
582bf01256766da9fd5e2fde872e2444e56f0c2c 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Changing search navigation in Contacts"
ab4d29f6a2edbfae008dbaff35f25baad73aa0df 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing search navigation in Contacts

Search will be fully modal: when the search field
is focused, the app is in the search mode, period.
Back button will cancel search mode.

Change-Id: Ibeb6c28de7ed1a79129aed862a543a6ed2a36435
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactBrowserActivity.java
57f0512df34b7ce0d7930df4f6d4eb0f625a97ae 28-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix broken behavior around ImportVCardActivity."
74d59da9b04bdb913ee0a13a7c938e02f2c49d50 28-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix broken behavior around ImportVCardActivity.

The Activity doesn't work when called from Activities outside
the app context (e.g. opening vCard file as an Email attachment).

I808129cf uses onStop() to detect screen orientation, which is
just wrong.

Bug: 3140101
Change-Id: Id4a67d4f1c4a763fdaca38f5301e6d661a5096b3
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
b3edee9ccf5b56e98c8dd21942685d4fbd4fac94 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Addressing race condition to always show selected contact in list

Bug: 3143043
Change-Id: I190a79b2271f6154c21d049dba090fe944acb827
ndroid/contacts/list/ContactBrowseListFragment.java
6e850a046fcea8ba82a793b43944051246d08180 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing new selection policies in Contacts

1. Selection is now persistent per filter
2. If there is no selection or selection not in the list,
display the first item on the list
3. After creating a new contact or per user request
select the newly created contact in the list. If
it is not in the list, change filter to "Contact"
and display that contact by itself.

Change-Id: I9343fe9d25c86c5d041954d2386f66da2a1bc41f
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactSearchActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/OnContactBrowserActionListener.java
fad92b8f9f90888560798d5887cf256aeb9dec84 28-Oct-2010 Daniel Lehmann <lehmannd@google.com> New widget design

Bug:3129772

Change-Id: I34df2c43833e636ab72a623f56bbfc6c0ccd8452
ndroid/contacts/socialwidget/SocialWidgetProvider.java
6ecda6508ab5b1d3a3dd6fedd3b1b273e3de79e3 28-Oct-2010 Daniel Lehmann <lehmannd@google.com> Fix a crash on some devices when launching the widget configuration

Change-Id: I810ce18d52f851344e7309d57fc1a460f153e2c8
ndroid/contacts/widget/PinnedHeaderListView.java
c49aa3089f3d061d3679f4ee39b70d9dda9ae6c9 28-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Merge photo dialogs into one. Hide "Use this photo" if not necessary"
fe22aff8c87374cfa80a7a02ec29b442f2453d8c 28-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge photo dialogs into one. Hide "Use this photo" if not necessary

Renamed "icon" consistently to "photo"

Bug:3113345
Bug:2183730

Change-Id: I32cffc31b5ee425e6622db30b5199871e91337e1
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ModifyPhotoDialogFragment.java
ndroid/contacts/views/editor/PhotoDialogFragment.java
ndroid/contacts/views/editor/PickPhotoDialogFragment.java
86092529f272b7ed2cee24fae397291696b29b80 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing INSERT_OR_EDIT intent for contacts

Change-Id: I62e8c3628bed7443232d0e23ed50d34a55788f70
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/activities/ContactSearchActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/OnContactPickerActionListener.java
091b295ae012aa923e98cc416eaae56fdc3e0dc4 27-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Performing fragment transaction with delay"
a6c2198bc5ad37119500c4857125ad732548c402 27-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Performing fragment transaction with delay

Bug: 3134987
Change-Id: I40c303a27c2289ce481497569c2cc0770204dab5
ndroid/contacts/activities/ContactBrowserActivity.java
906ac269b114a9fb69373578f0652f2c42ea644b 27-Oct-2010 Daniel Lehmann <lehmannd@google.com> Removed the smooth scrolling for now, until the framework fixes are in

Change-Id: Id656d7056ad9d7a71613f9f071cbef7ab002c6ba
ndroid/contacts/list/ContactEntryListFragment.java
e9b196e446cc34f690a043c5f5d9e5a7b8b92b3f 26-Oct-2010 Daniel Lehmann <lehmannd@google.com> Dialog for showing phone numbers on devices that can not be used as phones

Bug:3116684

Change-Id: I000df5fa6d83812a60fa5eb4c7e621cca2adb4fe
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/activities/NonPhoneActivity.java
ndroid/contacts/util/PhoneCapabilityTester.java
84963bdc462b9ca61579300d3ccbc4d14a0f37f7 26-Oct-2010 Daniel Lehmann <lehmannd@google.com> Don't show QuickContact if contact is not found. Show Toast instead

Bug:2953916
Change-Id: I668190e4354b603cecedd128d98332c8133ca592
ndroid/contacts/quickcontact/QuickContactWindow.java
b8eb1081dc8bbab555eee9b5f975328f665562ec 26-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing star from Directory contact view

Bug: 2916234
Change-Id: I13aade76d8a5181c1ed748b2e08f71d053c2a9b9
ndroid/contacts/views/detail/ContactDetailHeaderView.java
9806ed099226a19e92c29d9efa791cd187fd2a53 26-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact search

Bug: 3129260
Change-Id: Idb822c10da86cb58a7d46456135bdfa215723993
ndroid/contacts/activities/ActionBarAdapter.java
4d174aad97cd382f810e3bf1a7f1f4f4772be118 26-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding search mode to pickers.

Also cleaning up picker layout.

Change-Id: Ic4d344e9c86398d7c591be33b204d40b23d86a2c
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactSearchActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DirectoryListLoader.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressPickerFragment.java
ndroid/contacts/widget/FullHeightLinearLayout.java
d90acd61e464fb557bb08f8de995cfd3a143629e 23-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix deletion from editor"
249888359a0468df8ae09e0733131281db725944 23-Oct-2010 Daniel Lehmann <lehmannd@google.com> Fix deletion from editor

Bug:2999957
Change-Id: I25daccb1b721b468a4ee4cbcb96344c02ceb410f
ndroid/contacts/activities/ContactEditorActivity.java
0ba916492b00530efd36fd659ae0956ea08d96f9 23-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Forwarding keyboard input to the search view"
6d7a299e6f52a4e6a11d81b87c43aa170495c40b 22-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Remove Internet Call functionality from Contact-Details and QuickContact"
7781ea12308e5c5d7bbeab175c31cc6cf1f19188 22-Oct-2010 Daniel Lehmann <lehmannd@google.com> Remove Internet Call functionality from Contact-Details and QuickContact

Bug:3116889
Change-Id: I6ee352623c2b9c01a52153f0435d159b31688710
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/util/PhoneCapabilityTester.java
ndroid/contacts/views/detail/ContactDetailFragment.java
0b51a8d4539cc516dc2c02948335347d1df8769b 22-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Forwarding keyboard input to the search view

Change-Id: I111214dc5bfd2194fef4647ec54fa671a7d1b8ed
ndroid/contacts/activities/ActionBarAdapter.java
ba2051daa54d7816ee1adda22250acf9840b46e6 22-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing "custom" from filter list when there are not accounts."
b864bd7b9029243ad78e3f96163dd2518ffbe5aa 22-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing "custom" from filter list when there are not accounts.

Change-Id: Ifc1e89c130d2ef0e81144d8f954bf930c0dc0182
ndroid/contacts/list/ContactListFilterController.java
2013058703aa110a1d7aac87ef408c96a3919472 22-Oct-2010 Daniel Lehmann <lehmannd@google.com> Show account selector in PopupMenu to be less intrusive

Also show an account icon in the dialog-based account-selector

Bug:3117457
Change-Id: I625a25d9aeb751aec0b8e9865be76ed2ecd916d1
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/util/AccountsListAdapter.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
6fa1c77b026196a3d9a5549b68da2e392fda70fa 22-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Add missing assets to make HC run on the phone again"
090ee0b8e6bf509cf238d53ec74f1aa9a35211b5 22-Oct-2010 Daniel Lehmann <lehmannd@google.com> Add missing assets to make HC run on the phone again

Bug:3089253
Change-Id: Iece259fb94566114458bf74dbd018d15b30e684a
ndroid/contacts/list/ContactListAizyView.java
ndroid/contacts/views/editor/FieldEditorView.java
f9eb73fb8731df573518e6242379bcd7d71ad537 21-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Asynchronously loading directory photos.

Change-Id: I1b25b2da8d2cdf16b3a7758e50dcfc4c0af6a5e8
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
74b83e8e217f40bfc477aacb1420c3bc9a0c3950 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving "Custom" to the end of the list of filters

Bug: 3113319
Change-Id: I81fb4b57eae81a833e44e8d405437970e9df2856
ndroid/contacts/list/ContactListFilterController.java
8bf9523a32cc259808e79684550c00e8e27ed6f3 21-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing contact photo loading issues"
0f7462c7309fe33b0b330d571d1bec7af345d837 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact photo loading issues

Bug: 3111259
Change-Id: Id2bc5edf912eb9ee52779fbeb19996c133189eea
ndroid/contacts/list/ContactPhotoLoader.java
6cf7b045a077a58c1f988404b1ebd4ee9d1e4c3a 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Showing account name alongside the group name"
33d9d201d2baa2cf0d321ba44f51549fc403e503 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Using an intent to switch to aggregation suggestion."
e47dd262a9880121fc2b75fe82b002bc101fc682 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Using an intent to switch to aggregation suggestion.

When the user picks an aggregation suggestion to edit,
switching to the new editor is now done with an intent
instead of a reload. This adds a nice transitional
animation.

Change-Id: Iaeab24a6328be51dcde69c1a6ed9babc929709a4
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
36bcc402eeba16929de16fce8d9edd8ade7a36f5 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Showing account name alongside the group name

Bug: 3113332
Change-Id: I89c0c84d9f479e4bba884d3fd1cdc28707beb040
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
811ed694d6700ca7c166e8941991bf23af1a1824 20-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Move Organization up to the top in the Editor"
23938cc780c3f466c6fa8b883bf36d2e7ab5d745 20-Oct-2010 Daniel Lehmann <lehmannd@google.com> Move Organization up to the top in the Editor

Change-Id: I8cb32521232e324ccbb76eb2a0e2e56f67957e1a
ndroid/contacts/model/FallbackAccountType.java
7db699be6eac9e24f7bc53d641a5bdc9f5496c0b 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Combining data when switching to an aggregation suggestion"
916cf2661ada41a83556884d8f5b322d32ef452b 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Combining data when switching to an aggregation suggestion

Now if you start creating a new contact and
enter some data, then follow an aggregation suggestion
by hitting "Edit" on it, the data you have entered
so far will be carried over to the suggested contact.

Also fixes bug: 3034215

Change-Id: Ic811a289a69fd6573b8735dcf2a7f5920332ce46
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/views/editor/AggregationSuggestionEngine.java
ndroid/contacts/views/editor/ContactEditorFragment.java
1f7e66570992220cb7ed3a93750829311305e234 20-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Remove custom label from Exchange assistant (it was not synced...)"
9a236550e980cbf570676a3ad3fd0b29d013f13b 20-Oct-2010 Daniel Lehmann <lehmannd@google.com> Add @Override and silence IDE warnings

Change-Id: If763a3016c90e4ed6e2db849560e85aa51ef7c36
ndroid/contacts/views/editor/FieldEditorView.java
26c63d201628140b07ed5bcf1aaad251aef95476 20-Oct-2010 Daniel Lehmann <lehmannd@google.com> Remove custom label from Exchange assistant (it was not synced...)

... and caused confusion

Bug:2604139
Change-Id: Ie55e1e3402cfca13402ed0e17eb834be39283cce
ndroid/contacts/model/ExchangeAccountType.java
52c102fcce20f03098f34d1db7d676079d9446fe 19-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Restoring support for external contacts account type XML

Change-Id: I3333fcc16312d8d593396f61019ada83f26c5f8d
ndroid/contacts/model/ExternalAccountType.java
6a91292251913b3c0c8add733326cc70eae4cf51 19-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing broken build.

Change-Id: I5c56e2ba9cc8fc439ee37a156d1a6b247ed7e07c
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/views/editor/AggregationSuggestionView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
c0130cc28edccb21f6698066d90ce2120096eff2 19-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding the "Edit" mode to aggregation suggestion.

Now if you are creating a new contact and enter
the name of an existing editable contact, the
UI will show an identity card for that other contact
and an Edit button. Tapping on the Edit button
simply switches the editor to the suggested contact.

The data you may have entered will be transferred to
the suggested contact in another CL.

Change-Id: Ic0af5d883efb17d30dfea052b911e0a5f02d0e91
ndroid/contacts/views/editor/AggregationSuggestionEngine.java
ndroid/contacts/views/editor/AggregationSuggestionView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
1ad4d1ba1dcc473e1591e049da417dea009a33d6 19-Oct-2010 Daniel Lehmann <lehmannd@google.com> Show organization in header-view; Allow only one organization per contact

Change-Id: I89b99dbdf2148b3628b82b52bbbabea25052b10e
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
35769b804fbfd5a1fc0b2c36cd0a786d662c4334 19-Oct-2010 Daniel Lehmann <lehmannd@google.com> Renamed Sources to AccountTypes

Change-Id: I088c7d9cd66fd4d38e93bc97a6644247f72037ef
ndroid/contacts/AttachImage.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/interactions/ImportExportInteraction.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/model/AccountTypes.java
ndroid/contacts/model/BaseAccountType.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/ExchangeAccountType.java
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/ExternalAccountType.java
ndroid/contacts/model/ExternalSource.java
ndroid/contacts/model/FallbackAccountType.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleAccountType.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/model/Sources.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/SelectAccountActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/BaseRawContactEditorView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/Editor.java
ndroid/contacts/views/editor/FieldEditorView.java
ndroid/contacts/views/editor/GroupMembershipView.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/PhotoEditorView.java
ndroid/contacts/views/editor/RawContactEditorView.java
ndroid/contacts/views/editor/ReadOnlyRawContactEditorView.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
ndroid/contacts/views/editor/ViewIdGenerator.java
72af89f9e497bb8ef54fe3deeec7e8477d192242 19-Oct-2010 Daniel Lehmann <lehmannd@google.com> Refactorings

package quickcontact:
- Newly created. Contains all quickcontact related files

package editor:
- Renamed GenericEditorView to FieldEditorView
- Renamed *ContactEditorView to *RawContactEditorView

Change-Id: I43c1bd4184f8423e1ab3b81339d512bde46cfea9
ndroid/contacts/activities/ShowOrCreateActivity.java
ndroid/contacts/quickcontact/CheckableImageView.java
ndroid/contacts/quickcontact/QuickContactActivity.java
ndroid/contacts/quickcontact/QuickContactWindow.java
ndroid/contacts/ui/CheckableImageView.java
ndroid/contacts/ui/QuickContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
ndroid/contacts/ui/ShowOrCreateActivity.java
ndroid/contacts/views/editor/BaseContactEditorView.java
ndroid/contacts/views/editor/BaseRawContactEditorView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ContactEditorView.java
ndroid/contacts/views/editor/FieldEditorView.java
ndroid/contacts/views/editor/GenericEditorView.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/RawContactEditorView.java
ndroid/contacts/views/editor/ReadOnlyContactEditorView.java
ndroid/contacts/views/editor/ReadOnlyRawContactEditorView.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
ndroid/contacts/views/editor/ViewIdGenerator.java
afeae64e9a9bb39c918202a5775c4904e2f0d92e 18-Oct-2010 Daniel Lehmann <lehmannd@google.com> Move Editor-related files into views.editor

Change-Id: I61d68295c6af2a5ccf018dab4b9d50c0aa601fcd
ndroid/contacts/model/Editor.java
ndroid/contacts/ui/CheckableImageView.java
ndroid/contacts/ui/QuickContactWindow.java
ndroid/contacts/ui/ShowOrCreateActivity.java
ndroid/contacts/ui/ViewIdGenerator.java
ndroid/contacts/ui/widget/AggregationSuggestionView.java
ndroid/contacts/ui/widget/BaseContactEditorView.java
ndroid/contacts/ui/widget/CheckableImageView.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/GroupMembershipView.java
ndroid/contacts/ui/widget/KindSectionView.java
ndroid/contacts/ui/widget/PhotoEditorView.java
ndroid/contacts/ui/widget/ReadOnlyContactEditorView.java
ndroid/contacts/views/editor/AggregationSuggestionView.java
ndroid/contacts/views/editor/BaseContactEditorView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ContactEditorView.java
ndroid/contacts/views/editor/Editor.java
ndroid/contacts/views/editor/GenericEditorView.java
ndroid/contacts/views/editor/GroupMembershipView.java
ndroid/contacts/views/editor/KindSectionView.java
ndroid/contacts/views/editor/PhotoEditorView.java
ndroid/contacts/views/editor/ReadOnlyContactEditorView.java
ndroid/contacts/views/editor/ViewIdGenerator.java
b93a26c62aef357e01080b574b9103babe6435b0 18-Oct-2010 Daniel Lehmann <lehmannd@google.com> Rename ContactSocialWidget to SocialWidget. Remove camelHumps from package

Change-Id: I73ad45dae896bb82b50b880b411741740185374d
ndroid/contacts/contactSocialWidget/ContactSocialWidgetConfigureActivity.java
ndroid/contacts/contactSocialWidget/ContactSocialWidgetProvider.java
ndroid/contacts/contactSocialWidget/ContactSocialWidgetSettings.java
ndroid/contacts/socialwidget/SocialWidgetConfigureActivity.java
ndroid/contacts/socialwidget/SocialWidgetProvider.java
ndroid/contacts/socialwidget/SocialWidgetSettings.java
c5fed378eff4ec10bb6ccada66d75c0bd302e118 16-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Improving display of birthdays"
6d55c4622c47e66f4fceb73c17f87562df556934 16-Oct-2010 Daniel Lehmann <lehmannd@google.com> am 2c67cd7a: Fix regressions: Show call log after a call, show dialer from other app

Merge commit '2c67cd7add7ee178dd6bfd9cc07690b51d77b2a9' into gingerbread-plus-aosp

* commit '2c67cd7add7ee178dd6bfd9cc07690b51d77b2a9':
Fix regressions: Show call log after a call, show dialer from other app
45b4402f0c05b21312dd8d647ae549d43057537d 16-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Improving display of birthdays

Change-Id: I1a098c52e2b6c8968ce811b795611ab028609658
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/util/DateUtils.java
ndroid/contacts/views/detail/ContactDetailFragment.java
6cb8fe23106bc05139798318f19b29c569140628 16-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Not showing progress dialog when saving unchanged contact

Change-Id: I919195244eec73cc0042b53d23cda03a1467557c
ndroid/contacts/views/editor/ContactEditorFragment.java
2c67cd7add7ee178dd6bfd9cc07690b51d77b2a9 15-Oct-2010 Daniel Lehmann <lehmannd@google.com> Fix regressions: Show call log after a call, show dialer from other app

Bug:3101452
Bug:3101238
Bug:3101223

Change-Id: Ib713226e20adfb373210eb0a68cf119fec1d3350
ndroid/contacts/DialtactsActivity.java
8c91dfb9ef1c7ac1a4b2feed0b9a8585d4873542 15-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Conact editor to remain open after a manual join

Bug: 3060255
Change-Id: Ice2bd7d4f1473d3e2c81d6ccd4e3a67428b2bf51
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
fecf3e902ddd9cfeb4cbf672ff991c9a48074744 15-Oct-2010 Daniel Lehmann <lehmannd@google.com> am 699fd9ad: Merge "DO NOT MERGE Sticky tab rule: Remember the last tab that was used to call" into gingerbread

Merge commit '699fd9ad5b1984dc76df06d052e58d05d7ab1163' into gingerbread-plus-aosp

* commit '699fd9ad5b1984dc76df06d052e58d05d7ab1163':
DO NOT MERGE Sticky tab rule: Remember the last tab that was used to call
31c0733fef91c3b68570a1572260b40c7f311fbc 15-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Making aggregation suggestion join instant"
9302ba7bc47d995c88eba7604aeea00a7e41779f 15-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Making aggregation suggestion join instant

The old behavior was that you would mark one of the
suggestions for future aggregation, but then
you could still change your mind before saving.

The new behavior is that the second you hit the
"Join" button, the aggregation happens and you stay
on the edit screen.

Also, fixing placement of the aggregation suggestions UI.

Change-Id: I141b996b8b65e7b14711a26dbf66842097338143
ndroid/contacts/ui/widget/AggregationSuggestionView.java
ndroid/contacts/views/editor/AggregationSuggestionEngine.java
ndroid/contacts/views/editor/ContactEditorFragment.java
0124ecc2befb104125d4a3a915cb7c58d8419cec 15-Oct-2010 Daniel Lehmann <lehmannd@google.com> Organized Usings

Change-Id: Ibf4a012428f3e94034b9a4f5e23ab8b8d6c0eaa0
ndroid/contacts/views/editor/ModifyPhotoDialogFragment.java
ndroid/contacts/views/editor/PickPhotoDialogFragment.java
00ea05799040a55f85cc449fede956983003af97 15-Oct-2010 Daniel Lehmann <lehmannd@google.com> DO NOT MERGE Sticky tab rule: Remember the last tab that was used to call

Bug:3082932

Change-Id: Ic1bc7f64f84bbe2a2a8e5918bfdaa24344d67afb
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/PhoneDisambigDialog.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/StickyTabs.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/QuickContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
955d00695d01561ad94f61f0ef244e25ac43a391 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Improving layout of aggregation suggestions"
c9916d303cc48b4a4ff94ef9c56d7ca5da72c4de 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Improving layout of aggregation suggestions

Change-Id: I8690c36d0e80f89ee5043703e3a20bc46357f6e5
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/views/editor/AggregationSuggestionEngine.java
a47232583cbd915af98f758e65de96edf7be6e00 13-Oct-2010 Daniel Lehmann <lehmannd@google.com> Improve Visuals of Detail View

Change-Id: I1d23dbaaa2dacdab8c70581bb45b2b7f32ccaa82
ndroid/contacts/views/detail/ContactDetailFragment.java
b6ffa6c63e1ef8c37586d677f623f682aba2b81f 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing NPE in ContactDetailFragment"
5b201471da85bf914778b1f4f2d18feadabd7069 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in ContactDetailFragment

Change-Id: If0f260f9307e7ca94ab3a8630a3a9c086564b055
ndroid/contacts/views/detail/ContactDetailFragment.java
a44ab6441a4645e22f5984e034190b5a3e054ed0 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Limiting contact picker to "All contacts""
58be7ed2428ba22400cc342f5e07e8ff99e91380 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Limiting contact picker to "All contacts"

Change-Id: I75ee2a1e4baf6ce77f3ebf9eb9a4caecc3b72538
ndroid/contacts/list/ContactPickerFragment.java
2d4f759e29edd983cf6436c06f2a87d847616ed5 13-Oct-2010 Daniel Lehmann <lehmannd@google.com> First version of the ContactSocialWidget

Change-Id: I81771683e2f4edcf7a05c306249cb9f776be07eb
ndroid/contacts/contactSocialWidget/ContactSocialWidgetConfigureActivity.java
ndroid/contacts/contactSocialWidget/ContactSocialWidgetProvider.java
ndroid/contacts/contactSocialWidget/ContactSocialWidgetSettings.java
ndroid/contacts/util/ContactBadgeUtil.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
dbb292ea6697fa824f2022599f6efae93f47a674 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved layout of contact filter dropdown

Change-Id: Ic502652248f93e5f6c19daadca0575c467404dba
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
bee8d3bd37edf44c535c0cc401e8d03f095b8328 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved layout of contact filter view

Also, no longer showing the down-arrow when there
is no filter or only one filter.

Change-Id: Ie9bbb7aa279ff2013e4c24ca8f302d864679c35c
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ac399c364ed15390bb0e321da0647322c08935a5 13-Oct-2010 Daniel Lehmann <lehmannd@google.com> Temporarily disable the sections in the blue line

Change-Id: Id3b6aeeb878d880db946fc2e1a5a117f666ba88f
ndroid/contacts/list/ContactListAizyView.java
ee1dfd08f926aefb7b13ab31223b03691eaf3b72 13-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Asset drop; only use icons in Detail-View for actionable items"
f2ba95daf860137f854ecec70c943159e2b11a7d 13-Oct-2010 Daniel Lehmann <lehmannd@google.com> Asset drop; only use icons in Detail-View for actionable items

Change-Id: Ib5d16754295c8218cdff8a569db78d6328ee5adc
ndroid/contacts/model/FallbackSource.java
199aa10c8b872482f385816189c39fa310cfbea9 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Making search field NOT take focus on start

Change-Id: I10eeffa72f4fe636b7ab7148fcf6a628ef08fc78
ndroid/contacts/list/ContactEntryListFragment.java
8551c21aa6414bc612c13f90d5a2b08a1b362bc3 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> am 99e2484b: am eb8d6252: Making call log scroll to top in some cases

Merge commit '99e2484b5f256b4c1cd027074d9e58928f3bfbb4'

* commit '99e2484b5f256b4c1cd027074d9e58928f3bfbb4':
Making call log scroll to top in some cases
2962187a8eb68924a0d52696e033f99c5bb12cb4 13-Oct-2010 Daniel Lehmann <lehmannd@google.com> Fix index for Add Information button

Bug:3090526
Change-Id: Ia6b5d93322c3bb1438e76d0f17b7d1e85e1c06af
ndroid/contacts/ui/widget/ContactEditorView.java
1859da76908156813aa15b85f85dba011286a811 12-Oct-2010 Daniel Lehmann <lehmannd@google.com> Animation for Aizy appearence. Blue preview popup window

Change-Id: I857f50d5e11382b7e2dcb8c024a96c2d7a6e086b
ndroid/contacts/list/ContactListAizyView.java
f868df28e3c2061a6e1df25dee5ec3ebbc39c03f 12-Oct-2010 David Brown <dab@google.com> am f4b2bac2: am 3d0ee424: Fix cosmetic glitch in the Call log with SIP addresses

Merge commit 'f4b2bac2f1554276c66cd835ba56942d63eb358f'

* commit 'f4b2bac2f1554276c66cd835ba56942d63eb358f':
Fix cosmetic glitch in the Call log with SIP addresses
84b3cc7fd565ff911ac46a763fdc2f5740a18001 12-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Applying the Holo style to contact picker

Change-Id: Ic57c56359b813d65c89cb0f42efdd1a5f7320894
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
99e2484b5f256b4c1cd027074d9e58928f3bfbb4 12-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> am eb8d6252: Making call log scroll to top in some cases

Merge commit 'eb8d6252c4d6fbc7a2ca7fcc305232ca020a7f15' into gingerbread-plus-aosp

* commit 'eb8d6252c4d6fbc7a2ca7fcc305232ca020a7f15':
Making call log scroll to top in some cases
eb8d6252c4d6fbc7a2ca7fcc305232ca020a7f15 12-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Making call log scroll to top in some cases

It will scroll to the top in all cases except
navigation between tabs in the contacts app.

Bug: 3066840
Change-Id: Id92e2c99880b45c27ea5964fbe45083ed6fbf02c
ndroid/contacts/RecentCallsListActivity.java
f086879c242bb8742c540e680ca2f5f839a1ab5e 11-Oct-2010 Daniel Lehmann <lehmannd@google.com> am 2f55f8ef: Merge "Fix a Cursor leak if cursor doesn\'t have any content" into gingerbread

Merge commit '2f55f8efc28307835b93bff9a0e78a5a76946863' into gingerbread-plus-aosp

* commit '2f55f8efc28307835b93bff9a0e78a5a76946863':
Fix a Cursor leak if cursor doesn't have any content
2f55f8efc28307835b93bff9a0e78a5a76946863 11-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix a Cursor leak if cursor doesn't have any content" into gingerbread
a51f8e974d1515700ebbb545af107668123ba8ba 11-Oct-2010 Daniel Lehmann <lehmannd@google.com> Fix a Cursor leak if cursor doesn't have any content

Change-Id: If542cd383678aced6904f52422ac9099d18c050e
ndroid/contacts/ContactsListActivity.java
406d7639fc420f127d81e225a54def2182b29966 11-Oct-2010 David Brown <dab@google.com> Merge "Set ContactInfo.normalizedNumber to null for SIP addresses"
f4b2bac2f1554276c66cd835ba56942d63eb358f 11-Oct-2010 David Brown <dab@google.com> am 3d0ee424: Fix cosmetic glitch in the Call log with SIP addresses

Merge commit '3d0ee4245cb5a2652e5f632a7ef12007bc303f33' into gingerbread-plus-aosp

* commit '3d0ee4245cb5a2652e5f632a7ef12007bc303f33':
Fix cosmetic glitch in the Call log with SIP addresses
6d77d0d0fc42922e827d996dd143db8cc9a1fd96 11-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Removed Editor embedding from the Browser-Activity (was unused)"
e20d3432a370dd3996deec2df4e3cdf726c94992 11-Oct-2010 Daniel Lehmann <lehmannd@google.com> Removed Editor embedding from the Browser-Activity (was unused)

Also added a few @Override annotations to code new to Honeycomb

Change-Id: Ie313d1f849e8e31dc0ac1bea99c72e591e2cf77e
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactSearchActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ndroid/contacts/list/StrequentContactListFragment.java
3d0ee4245cb5a2652e5f632a7ef12007bc303f33 09-Oct-2010 David Brown <dab@google.com> Fix cosmetic glitch in the Call log with SIP addresses

When there's no "label" field to display (like "Home" or "Work"), we were
setting the visibility of that TextView to GONE. But that's a bad idea,
since we still need it as a RelativeLayout anchor for the "number" field
next to it. This was causing SIP addresses to move all the way to the
left edge of the screen, where they collide with the "expand" icon.

(I sanity-checked the other RelativeLayout positioning in
recent_calls_list_item_layout.xml, and the only other time we use
visibility=GONE is when that whole bottom row is missing, so we won't have
this same issue there.)

Now the "label" field is INVISIBLE (not GONE) when there's no label to
show.

Also, when there's no label to show we don't need any extra margin
*between* the label and the number. So in that case, add some negative
left margin to the number view in order to undo the right margin added by
the label view.

TESTED: all combinations of { groups , non-groups } and { real phone
numbers , SIP addresses } and the label and/or number are now all
correctly aligned.

Bug: 3062630

Change-Id: I760356ded7b510b08c0791b942507f25ab3a4a4a
ndroid/contacts/RecentCallsListActivity.java
4fa54fa5e5731ad2bb75c28edd5775f53e753a78 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> manual merge of b7f16623 from gingerbread-plus-aosp

Change-Id: I892570586bfe3a5d5a330cb38a6ec7c3ddd69b11
b7f166233534b9d9f7039b0f2eeb2dcef0bf3dff 11-Oct-2010 Jean-Baptiste Queru <jbq@google.com> am 0c4a0fab: Merge "Fix crash when separating multiple empty raw contacts"

Merge commit '0c4a0fab6dc91f93aacc8787efb6ac0c0587c3eb' into gingerbread-plus-aosp

* commit '0c4a0fab6dc91f93aacc8787efb6ac0c0587c3eb':
Fix crash when separating multiple empty raw contacts
9fe582eb815e07767f1ff3cd26333536267a166e 09-Oct-2010 Daniel Lehmann <lehmannd@google.com> Check whether data has been loaded.

Also don't show options on non-phones if data has not been loaded

Bug:3055135
Change-Id: Ife873642bcbfe6c4cd3eddb28e9c8010cb8d302d
ndroid/contacts/views/detail/ContactDetailFragment.java
609fd9ff609e6386a4250aa9173f85bd4045cf41 11-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Don't show Phone/SMS in QuickContacts if device can't do it"
7af69425319c4ac75993fcc5ad9d3e69291248cd 11-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Don't show QuickContacts in ContactDetails"
55663c5a40f34891727e2415eee11caab53b45bd 10-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix "Service not registered" bug.

When reusing existing ServiceConnection object, which is once
bound and unbound, the system does'nt allow the second bind()
request and crash the whole app.

Bug: 3060589
Change-Id: Ie66bb7e09a6cf03789b2ea72f1fe9085435d9a48
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/VCardService.java
be06874460eaac9fd4055eed610e4fbae3c42356 09-Oct-2010 Daniel Lehmann <lehmannd@google.com> Don't show QuickContacts in ContactDetails

Bug:3060228

Change-Id: Ic5a1fd3ffb87b8154879608ac86eb8d487df5ed0
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
eb68e4fece2480ce9584efed124a4b31e5c607a5 09-Oct-2010 Daniel Lehmann <lehmannd@google.com> Don't show Phone/SMS in QuickContacts if device can't do it

Bug:2954119
Change-Id: I68a868db3d511c89f63eebe9ed7185d274aa9fde
ndroid/contacts/ui/QuickContactWindow.java
1a3ebb9820f5d179b5f895a0f052caf79ca0fa63 09-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Turn the Aizy into a scrollbar again, similar to the old FastScroll"
857f326fb3dfcd7e36118de2cf56c9537d36146a 09-Oct-2010 Daniel Lehmann <lehmannd@google.com> Turn the Aizy into a scrollbar again, similar to the old FastScroll

Change-Id: I8818554940eba9cc16b9f9ec0c4687a16db76101
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAizyView.java
91ab5b436ebf12e29fdf3e19b3ea195287fcc1d9 09-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Support for LIST_STARRED Intent

In the new navigation model this will switch
from the currently selected contact filter to
the "Starred" filter.

Change-Id: Ieab404e4b847970cb4823d52e8b53d838a75c7dc
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
5d15446eee19350300d6071378fcaf79fffa0b4c 08-Oct-2010 David Brown <dab@google.com> Set ContactInfo.normalizedNumber to null for SIP addresses

At michaelbai's recommendation, set info.normalizedNumber to null after
looking up a SIP address in the contacts database, since SIP addresses
have no concept of a "normalized number".

(This is a followup to https://android-git.corp.google.com/g/71355 , which
was a manual merge from gingerbread. The manual merge was necessary
because the ContactInfo.normalizedNumber field only exists in master.)

Change-Id: I5b56c0bd132efcc7eba2792cc719a534f289f409
ndroid/contacts/RecentCallsListActivity.java
48cc25047d2c61828e9137c50b3496feada7a175 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Support for LIST_ALL_CONTACTS Intent

In the new navigation model this will switch
from the currently selected contact filter
the "All contacts" filter.

Change-Id: I946c7097b54ca65509c2a4ce33f5eea66d29e63e
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
b1e0ac40ba811538038f93d5f85f837936a1adb1 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Improving smooth scroll when required position is nearby

The jump-scroll implementation first scrolls the list
two screens above or below the desired position.
This fix prevents such a jump from happening when the
current position is already withing two screens of the
desired one.

Change-Id: I8e68fc724cc37980a9512a7c9bc7ac8345153578
ndroid/contacts/widget/ListViewUtils.java
1332868ddb427a39d377b31d02d78baab3332d54 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Disabling long-press in the contact list"
d94c3eb74137b723999542a66f32cc7ac79141ab 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling long-press in the contact list

Change-Id: Iedad482ebcb5204a6d18ddb843b53f3df1a32a1a
ndroid/contacts/activities/ContactBrowserActivity.java
8b7d04ab402a0cc3f8aefe0301010c54d50b2c21 08-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add a variable detecting illegal unbinding."
4ba6c0fe0b581aa15c2b9d7a97be0a5f5449e7ea 08-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add a variable detecting illegal unbinding.

Change-Id: Ib7faba494cd04a01f5a32ac97364d5cadaae3245
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportVCardActivity.java
009676f9f2a5d8d47756be37abd9a14f2e564979 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Support for Contacts with Phone Numbers Intent

In the new navigation model "contacts with phone numbers"
will be a filter that can be set via the intent,
but not explicitly in the contacts app except by using
a custom filter.

Change-Id: I4ae94812c5cab6c7e3834beff494c1e840019c03
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactSearchActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
7f9094a68a6c01cd37d8b2fabfb6bbe9a24a35af 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Properly restoring contact filter title from shared prefs

Change-Id: Ifb7f4b2cd1b021a16d7c87eb8a372989027c2857
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
0c491c17eb14d0034478b8b383089d384a9e2ecc 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Upgrading QSB->Contacts integration for tablet UI"
27b97bca14c84b3f830c7a433e14ae5c180a32c3 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Upgrading QSB->Contacts integration for tablet UI

Change-Id: Ic6ff3639b808936c29b08c751b6475ebd0bdad3c
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
55ef8688594be482f03e09ed023c76ecb32abc09 08-Oct-2010 Daniel Lehmann <lehmannd@google.com> Reskin the label-button and use a PopupWindow instead of a Dialog

Change-Id: I188e6954ce5cdc4a45b5e8af933878a2a6db5739
ndroid/contacts/ui/widget/GenericEditorView.java
9665187a0075f22511bd9f56d435f65f95346254 07-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in ContactListFilterController

Bug: 3071711
Change-Id: I820e32250e2699e86754b5302bddee3131a4c6e5
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
1fafec94496cba4c19db418dc716fcfe70c9f809 07-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing custom filter save when no change

If we don't change anything in the custom filter UI,
there is no need to display a progress dialog
and send an empty list of CPOs to the provider.

Change-Id: Ifefa9a7645d45588870b9c1fa99fb6e4412b8bea
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
a4d6a3b7d8e60fc3a92a27216302042ed419ecf0 07-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Updated UI for custom contact filter

Change-Id: Iff60f009208cbe79115a54fdeb27633dbed22fad
ndroid/contacts/list/CustomContactListFilterActivity.java
d02a720299a1ed408f7dfbe3a46de9c43306f85d 07-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving GroupingListAdapter to frameworks/ex

Change-Id: Ic82f1603b82a63a3ce383b509dad8f043af7bfe4
ndroid/contacts/GroupingListAdapter.java
ndroid/contacts/RecentCallsListActivity.java
ad9659e62604309b0d95b0a1f9b19fd6a33990e9 07-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Showing My Contacts if contact is NOT a member of it

Change-Id: I5da6ee72ddea68567028a6d129552a35a826a4f2
ndroid/contacts/ui/widget/GroupMembershipView.java
c41524cbba2a292e97768e0113385bc83764c4f9 07-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding starred filter and placeholder icons

Change-Id: I1a8bfa59bdde0df35be5acb79f2158f2a56f22ef
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/DefaultContactListAdapter.java
251e4f7dc45928053133fe15fd456da00b7cbe8c 06-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Contact filter uses custom UI instead of NotifyingSpinner

Change-Id: Ia51c6944d67e41050be4e3e60856b15b77ffa090
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterView.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/FilterSpinnerItemView.java
15ccbb4d22fd65165cacb7970cbe61de1aa9aac4 06-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving contact filter spinner to the action bar

Change-Id: I29506d0e71e15e4804899146855f22690969d1f5
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactBrowserMode.java
ndroid/contacts/list/ContactGroupFilterLoader.java
ndroid/contacts/list/ContactListFilterController.java
ndroid/contacts/list/ContactListFilterLoader.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
d2876aef07678a9cd8cb42ae09980bb1321aa902 05-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> am d8c92edf: Merge "[do not auto-merge] Check that Activity is still active after AsyncTask." into gingerbread

Merge commit 'd8c92edf87069f736f0caab107b9c0838fa10c8c' into gingerbread-plus-aosp

* commit 'd8c92edf87069f736f0caab107b9c0838fa10c8c':
[do not auto-merge] Check that Activity is still active after AsyncTask.
d8c92edf87069f736f0caab107b9c0838fa10c8c 05-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "[do not auto-merge] Check that Activity is still active after AsyncTask." into gingerbread
9d9c7410b66391c7a7721958631b9650dd7c3a66 05-Oct-2010 Gilles Debunne <debunne@google.com> am 44c4e3d9: Removed usage of deprecated ic_dialog_menu_generic

Merge commit '44c4e3d90ac668378605eac7b23ef8421bbbd06f' into gingerbread-plus-aosp

* commit '44c4e3d90ac668378605eac7b23ef8421bbbd06f':
Removed usage of deprecated ic_dialog_menu_generic
44c4e3d90ac668378605eac7b23ef8421bbbd06f 05-Oct-2010 Gilles Debunne <debunne@google.com> Removed usage of deprecated ic_dialog_menu_generic

Change-Id: Id1d728fd68cea1e1dda961c99c7fb210c0d77992
ndroid/contacts/ui/ContactsPreferencesActivity.java
e40660e9bbae25309b32153d8eec7cbd2f84c133 04-Oct-2010 Brad Fitzpatrick <bradfitz@android.com> [do not auto-merge] Check that Activity is still active after AsyncTask.

Bug: 2981114
Change-Id: Ia4799c776406dba948564cc9ba3d1de90222670d
ndroid/contacts/ui/EditContactActivity.java
9068bd7b57cd301f2e4629f47c50f32c5f97d6f1 03-Oct-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix potential Service Connection leakage.

Bug: 3055590
Change-Id: I7a9e096fface4dba617759d070aeae232ff23a5d
ndroid/contacts/vcard/ImportProcessor.java
2ac3d1594dfade3801cbde05b12a921f0cd01f91 01-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Turned the "copy local" command into a button under the contact detail view"
b3102cb2400bb978e2409d2b0be792edc6182d8c 01-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Moving resources from drawable-xlarge to drawable-mdpi"
18db43d1aafdd565978f81c9462a90b86258cdc6 01-Oct-2010 Daniel Lehmann <lehmannd@google.com> Turned the "copy local" command into a button under the contact detail view

Change-Id: Ic2878d71f2812420191ea00a0a7b1f935b0eda74
ndroid/contacts/views/detail/ContactDetailFragment.java
26c399d43c5ab522e7f26ad7ad8733ade45a26cc 01-Oct-2010 David Brown <dab@google.com> resolved conflicts for merge of a2feb032 to master

Change-Id: I5b09d178b0ddbb04401d4b7e20007192e1a2034b
a2feb03290436e96d208055277d7a8bf9ebedc38 30-Sep-2010 David Brown <dab@google.com> am beb2575a: Better handling of SIP addresses in the Call log

Merge commit 'beb2575a775eac5ded98567e92971508d57004f8' into gingerbread-plus-aosp

* commit 'beb2575a775eac5ded98567e92971508d57004f8':
Better handling of SIP addresses in the Call log
beb2575a775eac5ded98567e92971508d57004f8 30-Sep-2010 David Brown <dab@google.com> Better handling of SIP addresses in the Call log

Fix some SIP-address-related issues in RecentCallsListActivity:

- When doing contacts lookups to "refresh" the list, don't try to use
the PhoneLookup table if the "number" is really a SIP address!

Instead, look it up directly in the Data table. (This basically
does what change https://android-git.corp.google.com/g/70555 did for
incoming calls.)

- With SIP addresses, correctly use a sip: URI when calling by tapping
the list, via the CALL button, or via the longpress context menu.

- Don't try to call PhoneNumberUtils.formatNumber() on SIP addresses

- "type" and "label" are currently unused for SIP addresses; don't
display them

- Disable "Add to contacts" for SIP addresses (for now at least, since
it's currently broken anyway.)

Bug: 3004127

TESTED:

- Visual appearance of both SIP calls and PSTN calls in the call log:
make sure we correctly display the contact name and "number".

- Verify the above for freshly added items, *and* after rebooting and
re-entering the call log.

- Tap the green "call" icon, make sure we call back correctly (for
both PSTN and SIP).

- Tap the entry itself, make sure "view contact" UI looks correct,
make sure the "Call" item works (for both PSTN and SIP).

- Longpress, verify the context menu items:
- "Call" should correctly call for either SIP or PSTN
- "View contact" should work for either SIP or PSTN
- "Edit number before call" should ONLY be shown for PSTN
- "Send text message" should ONLY be shown for PSTN
- "Remove from call log" should work for either SIP or PSTN

Change-Id: I8ab04250b00d23a88f32a56e7d9953d91c24807c
ndroid/contacts/RecentCallsListActivity.java
94e30419adf0775b923c1e15564d275f0331fa63 30-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving resources from drawable-xlarge to drawable-mdpi

Change-Id: Icc8f3b1d7cbbc6c440b48fa1c065d569c32dcea0
ndroid/contacts/list/ContactListItemView.java
653d0e7f310037dadd78616fffddb9bdab574852 29-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Simplifying contact search result headers"
400a5f89eb828d40c83be3c457061aee568eb844 29-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Simplifying contact search result headers

Change-Id: Ic955bc2b209d543e7ca959c7de32f35e05f806ac
ndroid/contacts/list/ContactEntryListAdapter.java
634ab3baaf2bc69bd7977153fcdebf0e737e207d 29-Sep-2010 Daniel Lehmann <lehmannd@google.com> Don't rebuild the state on Add button but only create the required editor

Change-Id: Ice4128a1ebed5f1fb54b09de6ebaa323b5ec092c
ndroid/contacts/ui/widget/KindSectionView.java
b0cb5b2f27505c1f5ab4ed337813f9e4f9987595 29-Sep-2010 Adam Powell <adamp@google.com> Merge "Change dialog to use correct context"
3d236938a2997aabd0974b6d63e5701a28daced1 29-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Adding "Searching.../Not found" header to contact search"
17abbae56d5f18f22fdf975ef279d5a32cd15e97 29-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding "Searching.../Not found" header to contact search

Change-Id: I5a93d0cb0d8c4c29ab8dbb18fc3585940b6a6611
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
43f5cc7c7a5b99132f69f2d1bc9e173a4c9d1790 29-Sep-2010 Adam Powell <adamp@google.com> Change dialog to use correct context

Change-Id: Ia2bf2e142c8212b615ec5f2b227ef334ddd417e0
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
f6536030ea4125a33deee1243c26aecc84772b95 29-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let VCardService handle cancel before import

Bug: 3041048
Change-Id: I37a6f5a264fe0699108e49cd754d0ece667c55e0
ndroid/contacts/vcard/VCardService.java
93090891d59d039d7566e71e2ae5cddf8dc8c14b 28-Sep-2010 Daniel Lehmann <lehmannd@google.com> Don't allow collapsing of single RawContacts

Change-Id: I3be8ab7552f6ba59d2cd94f0e2c38ad22daa74cb
ndroid/contacts/ui/widget/ContactEditorView.java
249bbe664517050d9412ee2d051ba202ee7e572b 28-Sep-2010 Daniel Lehmann <lehmannd@google.com> Use better values for padding

Change-Id: I8a83c774d60029718677f33ca4775f0b78b7e790
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
a32e28796a38a833761660768cbfd13f6d4ec040 28-Sep-2010 Daniel Lehmann <lehmannd@google.com> Switch out dialog context to use proper themes

Change-Id: I7b0b99f3d359e8ccd76b4c9e50368c31c3584c78
ndroid/contacts/interactions/ImportExportInteraction.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/views/editor/ModifyPhotoDialogFragment.java
ndroid/contacts/views/editor/PickPhotoDialogFragment.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
88a405fcd3fecfa24c756a8a453a957ecc9f95ae 28-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing preservation of tab selection on rotation

Change-Id: I954e5ba21466a4e6489b40f47171e576c57537e8
ndroid/contacts/activities/ActionBarAdapter.java
6183540651106e844672a68f7606481536be6ab0 28-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved graphics and text for directory headers

Change-Id: I4355ae63bd86c3e4f584fe9b9291e178e289f956
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ac14436a4db64f7e40cc5ba3fe40ced25a7f829d 28-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing transparency of pinned headers

Change-Id: Id0808640980d7daf44f19186762764fbdd90826a
ndroid/contacts/list/ContactEntryListView.java
ndroid/contacts/widget/PinnedHeaderListView.java
3c69e21d278b1f99b9af817f8459044215238938 27-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Persisting contact selection

Change-Id: Ib4cc2f853b3d6a2a9ec90902f8d35f06c253680b
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/widget/ListViewUtils.java
55b24db5b7759383b3ab8e8f72c1e92c14b69a47 27-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing contact filter from search screen

Change-Id: I808ae4e86ede9f63ab66a6201a90884b58d8f133
ndroid/contacts/list/DefaultContactBrowseListFragment.java
359f111b6794280decb3a194bfd50dccda093e82 27-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Highlighting prefixes that match search query

Change-Id: Ie897fe7e4d57b5de88dcec3983a9578e7942b83b
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactListAdapter.java
a0a8fc69686af5ed0c7ec8c29a5c43b9a394356e 27-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "New plus/minus buttons in Editor"
2b928dbc5a81ec75e9114ef40c5828a3ad52d171 27-Sep-2010 Daniel Lehmann <lehmannd@google.com> New plus/minus buttons in Editor

Change-Id: Ib9a1788b7a03ba8868b1b54d593062b7b936b8e5
ndroid/contacts/ui/widget/GenericEditorView.java
b93d626ebf95f3381184bf8a560630bcdedce9b9 27-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing background for group selection widget

Change-Id: I7487f343b6eb41a9957a73a7ace4475ce0a24bf8
ndroid/contacts/ui/widget/GroupMembershipView.java
5d11ccd7894b8c53a6867f7aba0dbbad3fc00c90 27-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing group popup background and excluding My Contacts

Change-Id: I5b3af4442dc1e61a3f6cd2d70e83073cc0e98225
ndroid/contacts/ui/widget/GroupMembershipView.java
4d37c36146f2906cb2becaaedb6f22ee0e661d1a 27-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Making contact filter list update during contact sync"
35e364a33fbba00d2be1dff7358eacc05041c626 27-Sep-2010 Daniel Lehmann <lehmannd@google.com> Fix dialog dismissal via Back key

Bug:2997673
Change-Id: Ia9f879660f9e0262e2cfcf080245364b884faefc
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
86bf2b4fee827351b9e9dc3648d437ae9014eaa3 27-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Making contact filter list update during contact sync

Change-Id: I21fc13658c494dd388d992ee36507ec1120ef748
ndroid/contacts/list/DefaultContactBrowseListFragment.java
9c6a2ae678093112d2d53d0da9f638b921605948 26-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Displaying "All contacts" instead of account name

This is done when there is only one account.

Change-Id: I4706159a2d8cdabb1206b374a7b1b9eb1ec9941b
ndroid/contacts/list/DefaultContactBrowseListFragment.java
2ed21125970d986906ad3e55f1ab6f4d5ace364a 26-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving several classes

These classes have not been released to open source yet,
so now's the best time to move them.

Change-Id: I2adab7a6ca7a0a9cfd5096fea513776884af6255
ndroid/contacts/ContactEntryListView.java
ndroid/contacts/ContactNameHighlightingAnimation.java
ndroid/contacts/ContactPhotoLoader.java
ndroid/contacts/ContactsSectionIndexer.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactEntryListView.java
ndroid/contacts/list/ContactNameHighlightingAnimation.java
ndroid/contacts/list/ContactPhotoLoader.java
ndroid/contacts/list/ContactsSectionIndexer.java
d0567238d3c593caab88bb1c1892ccefa1d14ab5 26-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing background flicker in contact list

Change-Id: Idfc3e0599a0401d5d222bb9f2b42ae58e4f62147
ndroid/contacts/ContactNameHighlightingAnimation.java
307eeb10550bc30f85cfc0f61d4614d689b56aa7 26-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Excluding local invisible contacts from search results"
e9c95e880403da61d87de20c041c98331a26ce52 26-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Improved visuals for contact filter selector"
049a645462aff60b2b0daf98c7307c72f44a5f28 26-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved visuals for contact filter selector

Change-Id: I9c36d60e84563894988f8b1c96742fe436a9ad7a
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/FilterSpinnerItemView.java
970824204c2516fd316de20f63876cebee056ca3 26-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Prevent formatting the number as it was formatted."
5b1d28f27b73f7f167dfb67af642a3aaf70fbd5d 26-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Excluding local invisible contacts from search results

Change-Id: I691d26d23bb6efe89582c4db7fcac86c06590671
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/DirectoryListLoader.java
bff554982e2c01b8504879c81adaa83bafd499a4 26-Sep-2010 Bai Tao <michaelbai@google.com> Prevent formatting the number as it was formatted.

Change-Id: I36f195cb3d29a757f68e85ae1464f6850c37ddbb
ndroid/contacts/views/detail/ContactDetailFragment.java
f6d358f37a222376bcc5fd159fcf98c22dc22931 26-Sep-2010 Daniel Lehmann <lehmannd@google.com> Fix loading of empty photo

Change-Id: I88b699aa0d8089b631e47cbd3ce0ad7299283b9b
ndroid/contacts/list/ContactListAdapter.java
71f16f90d71ce8d9eeb79710841cc680a3bf0541 25-Sep-2010 Daniel Lehmann <lehmannd@google.com> am c7f25410: DO NOT MERGE Fix Activity instance leak by ContactsPreferences observer

Merge commit 'c7f25410daccf9e14c1726fd3e778910d894f243' into gingerbread-plus-aosp

* commit 'c7f25410daccf9e14c1726fd3e778910d894f243':
DO NOT MERGE Fix Activity instance leak by ContactsPreferences observer
c7f25410daccf9e14c1726fd3e778910d894f243 25-Sep-2010 Daniel Lehmann <lehmannd@google.com> DO NOT MERGE Fix Activity instance leak by ContactsPreferences observer

Bug:3035107
Change-Id: I2ff80d4a77b2729be297e445ed6f65a1e0c939c8
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ui/ContactsPreferences.java
eb68943db0db7a364c8d8f133874d157634dd34c 24-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Loading contact photo from URI if ID is unavailable

Change-Id: Ibfb1de5d1a6bf6789179af330413003a1a8d9342
ndroid/contacts/ContactPhotoLoader.java
ndroid/contacts/list/ContactListAdapter.java
1228c817c5b4850a1ea52a95a860fe6a329462b1 23-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> No longer showing empty pictures for GAL contacts in the list

There is now a flag that tells us whether
a particular contact directory supports photos
or not. If not - we don't display a photo
placeholder for the corresponding contacts.

Change-Id: I74ce43c3490fd419a7138fa01a257d14f0b6a8b6
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/DirectoryListLoader.java
ndroid/contacts/list/DirectoryPartition.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
960818040c13640ee5c3d7216e5e5c964fc33443 23-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing contact name ellipsis to TruncateAt.END on tablet

Change-Id: Id3b17fda68cf8dcdc8ab4b6e211b68365a3039db
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
199ecb858b448c5f14715551538a54f2ccf222d5 23-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adopting new framework terminology: "activated" item

Change-Id: I75bab98c9a955ed1c349ec08ef6384b89f90862d
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
b606d309756dcd7c36d3f1ac91627c3e32bef363 23-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing NPE in Group Selector UI"
025838f0a4b7c19640035a89d42512b892c503ba 23-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in Group Selector UI

Also making My Contacts preselected and not uncheckable
for new contacts in accounts with a default group.

Bug: 3024875
Change-Id: I068f10d227b11aa6b47c85bd5d3ba4b71c011c58
ndroid/contacts/ui/widget/GroupMembershipView.java
faeca6b5ac1a6ae26f0917b6a8e4ac7a34a19356 23-Sep-2010 John Wang <johnwang@google.com> am 3205c221: am 1ddfe559: Modify contextual menu for Sip number.

Merge commit '3205c221b5f1105b5fba503fa58b1d00cfbcea2c'

* commit '3205c221b5f1105b5fba503fa58b1d00cfbcea2c':
Modify contextual menu for Sip number.
3205c221b5f1105b5fba503fa58b1d00cfbcea2c 23-Sep-2010 John Wang <johnwang@google.com> am 1ddfe559: Modify contextual menu for Sip number.

Merge commit '1ddfe559e17fe06c2845f311d598662e271a1b32' into gingerbread-plus-aosp

* commit '1ddfe559e17fe06c2845f311d598662e271a1b32':
Modify contextual menu for Sip number.
1ddfe559e17fe06c2845f311d598662e271a1b32 23-Sep-2010 John Wang <johnwang@google.com> Modify contextual menu for Sip number.

Don't display "edit number before call" and "send text message" menu if it is a sip number.

Dialer doesn't support edit sip number at this moment.

Change-Id: I688d549fe844630c977de41be39525102ea20928
ndroid/contacts/RecentCallsListActivity.java
59f73b2c61736d509d3ad5576d007bcbdca1335e 22-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Switching to tab and search UI provided by the framework."
cdca1f92c19455db5563eb128fe78cf9efe39315 22-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> New search corpora for DEFAULT and LOCAL_INVISIBLE directories

Change-Id: I6017b61a98dfc5f29d09b3699f55fb67fefbd5b0
ndroid/contacts/list/DefaultContactListAdapter.java
09eb04f8765671c429d18b578ae163c917dad26a 01-Sep-2010 Bai Tao <michaelbai@google.com> Format the number through new method

Change-Id: I536d7d94ab360daedfb36e645351d24d28cd2f37
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/ui/widget/ReadOnlyContactEditorView.java
ndroid/contacts/views/detail/ContactDetailFragment.java
56bc3e562afa6015026adc30d0cdc5dea2cae0f7 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Minor improvement to pinner header animation

Change-Id: Ia603e53ba3a9fb773bb0ea4046f6419a316808dc
ndroid/contacts/widget/PinnedHeaderListView.java
5da9363bc4f2e04dc388579e1df979a5843e25e6 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Treating Result.ERROR the same as Result.NOT_FOUND

When loading a contact, we could encounter an
error (especially when it's a GAL contact). Should
deal with that gracefully. For now - just won't
display anything.

Change-Id: I1dc714ea2b7d7b41d53cc986c2b7a2fbd94eca89
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
217245cd313da247a1debcb94ce2627a2a141bf9 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE when Google GAL returns code 406.

Takes care of the crash caused by this:

E/GalProvider( 295): com.google.wireless.gdata2.client.HttpException:
Could not fetch entry http://www.google.com/m8/feeds/gal/google.com
/full/G.b04b5b3a4517c30b: Received 406 status code: Non-profile
lookups are currently not supported

Change-Id: I870a8fd8b15a527e7778341f293f38899c42361f
ndroid/contacts/views/ContactLoader.java
1a59cffd839069ce91a9febb8a136442340ab4c8 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching to tab and search UI provided by the framework.

Could not make the search UI always on: apart from some
serious technical difficulties the UX is odd.

First the UX issue: I type in
a query and then switch to some tab. If we leave the
query string in the field there is a disconnect between
that query and what you see in the list. If we wipe off
the query and then we have to retype it completely on
the next search.

Now the technical issue: the search field grabs focus
so whenever I open Contacts, the search field is focused
and the keyboard is up.

Also had to hack SearchView a bit because it does not expose
the API of its constituent AutocompleteEditText.

Change-Id: Ie8848d16ab724e9bb6b7025e88b495c7297d49a7
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactBrowserActivity.java
fc7197e7f1bb7c8745c70a6a33dc0bec0e0fafee 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Making filter selection persistent

Change-Id: I703a71b3cb59bc3d1bf6256b7eaf12beb44e467f
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
bc1216eee75576cd03dd58865a333da784b339d2 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Refreshing display options onStart of contact list

Also fixing a couple of typos that snuck into the
previous CL.

Change-Id: Ib755f38f7970ca3489253a0d43eefdd7bbee600d
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/preference/DisplayOrderPreference.java
c85ad182093f5556d6dbb310f4708cdc174b2665 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing preferences to PreferenceActivity.

Change-Id: I30f76e94c22828a9516cf2a72a2a772e0b4da44c
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/preference/ContactsPreferenceActivity.java
ndroid/contacts/preference/ContactsPreferences.java
ndroid/contacts/preference/DisplayOptionsPreferenceFragment.java
ndroid/contacts/preference/DisplayOrderPreference.java
ndroid/contacts/preference/SortOrderPreference.java
ndroid/contacts/ui/ContactsPreferences.java
ndroid/contacts/ui/ContactsPreferencesActivity.java
5fb1fec44e99da51f5479450d066ca4484cda619 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing ClassCastException in contact editor

Bug: 3011629
Change-Id: I06b64edd741fd70f7890314b134c84f8d1ab5b1a
ndroid/contacts/ui/widget/ContactEditorView.java
1f80f38965d3a82b634a947c4c1b1bfa9b105be1 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Making contact filter orientation change resistant

Change-Id: Iac5df1bc1e77df7ee5d8692f72b27d97afbf99f3
ndroid/contacts/list/DefaultContactBrowseListFragment.java
0b85aed7ae694341ea226c88bf10c0e11ea990ce 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing switching between long and short name forms in Exch

Change-Id: I4b8bb61a23f147b9f26419e3466c9266f70e1b3d
ndroid/contacts/views/editor/ContactEditorFragment.java
2ddba01a5fe79173d22dcd125673313e7007e6ec 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Introducing InterpolatingLayout.

Layout similar to LinearLayout. It allows a child
to specify examples of desired size depending on
the parent size. For example if the widget wants to
be 100dip when parent is 200dip and 110dip when
parent is 400dip, the layout will ensure these
requirements and interpolate for other parent sizes.

Change-Id: Id63da83ecab105c46d472cba927a9cead9c2172d
ndroid/contacts/widget/InterpolatingLayout.java
d073d83a6e347ea8187f9ce7a79ca6f20f61453c 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Disabling list filter in search mode"
1799e6d97db667826309acdd265da98972608121 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling list filter in search mode

Change-Id: If80933f5a7b6c1e4930045696bbcec8fab55083c
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
08d233405a0418073254356a772c9954998e1707 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing stale cursor exception

Change-Id: I8435cb127987b7fb98dffd09228054963fbebea9
ndroid/contacts/ui/widget/GroupMembershipView.java
e843f916942fff482ec162eee2a23914e32182cf 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding groups to contact editor

Change-Id: I724b075506ed6949d92c319d2155e2896ee89d6e
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/ui/widget/BaseContactEditorView.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GroupMembershipView.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/GroupMetaData.java
ndroid/contacts/views/GroupMetaDataLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
2deaee154c04cc9dddce2923085246984269b31a 16-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding groups to contact view

Change-Id: I2bb256e8ff220538563b2d3ed777ac62d070afca
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
1a756facf0489efcf99daa90c9a083ed3a317a1c 16-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "New display options activity"
32ec1d93bd41c31cfb6e09a4e3eaae9ecdc3889b 16-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "Horizontal editor layout"
d6e6b8a0feffbf419593c0bd2efe44693652720c 16-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> New display options activity

New activity and a new hacky way to invoke it from
the filter spinner.
Also a custom item view for the spinner.

Change-Id: I00e3854023d8602ea94dc7d11f2961b7efeaca38
ndroid/contacts/list/CustomContactListFilterActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/FilterSpinnerItemView.java
ndroid/contacts/widget/NotifyingSpinner.java
8d8e2e838babfcaca2eaff99862652ce3aceac29 16-Sep-2010 Daniel Lehmann <lehmannd@google.com> Horizontal editor layout

Change-Id: I3a9aef0526f80ee7dfd6eaebca6d822ecc2912a8
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
f7d450d12508ea67d3170068dcdf1a226358b06f 16-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Bringing display options to the browser screen

Change-Id: Ic316e51146ced2aef73a85d1ee5135c21d03a06c
ndroid/contacts/list/ContactGroupFilterLoader.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListFilter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
0389250eb868347885430edb8c9ae41e1faf9ef3 15-Sep-2010 Daniel Lehmann <lehmannd@google.com> Smooth scroll the Aizy

Change-Id: Ifc60b4d9807d8457ac829da79101f374ca89f2c7
ndroid/contacts/list/ContactEntryListFragment.java
b8bfcb481de15c3d28deb6e0e53566bf54e59a01 14-Sep-2010 Daniel Lehmann <lehmannd@google.com> Fix regression: Chose correct item in Add-Field popup

Change-Id: If401aadd442c7caaac4b35ac396b0cad5e8edf83
ndroid/contacts/ui/widget/ContactEditorView.java
0f428ae59c24d95288da6acbf2757c400c04838e 13-Sep-2010 Daniel Lehmann <lehmannd@google.com> Create new layout for xlarge contact-detail-items

Change-Id: Ifb70f51a9a24cf2bfac5a36e8a703713626d3926
ndroid/contacts/views/detail/ContactDetailFragment.java
665357cfd5b164347ede65105fec872bc10215e9 11-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix "Make as default" (there was an Id clash)"
1624964ef877dc7d67452cbdacfb4d811c245c17 11-Sep-2010 Daniel Lehmann <lehmannd@google.com> Fix "Make as default" (there was an Id clash)

Also add a bunch of @Overrides to show fewer warnings

Change-Id: I33e7a1d8ef7b52cf2a4542598617bd2d5bfcf0df
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
30600adb359eb7e5ff1e7f4d57e9c0d26ea07263 11-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing phone action from favorites on non-phone devices

Change-Id: If053ab8ce7ba2076ea7e3ce7316ddc1df45b9da6
ndroid/contacts/list/StrequentContactListAdapter.java
73216881601ddf8eaa7c645657e7fc95091ac35f 11-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling QuickContact in search results on xlarge

Change-Id: I4a2498e48861022c721c3aa7284d9c3a4b1e91b1
ndroid/contacts/activities/ContactBrowserActivity.java
c9c4bcc31232f32707953c28a0a55bfee2ec73c6 11-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "Use a PopupMenu to show the available fields to add"
ab8dbcc888ceb38a56965260ae7b15c97c55588d 11-Sep-2010 Daniel Lehmann <lehmannd@google.com> Use a PopupMenu to show the available fields to add

Change-Id: Iaa2b0862857db627bb2267072b3ba469209a2855
ndroid/contacts/ui/widget/ContactEditorView.java
dbf3e60e3b3cfbd7114d319d6c9ea0cdab5997af 10-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing name editing for Exchange contacts

Change-Id: Ic5ea1fcc59e116050d41957e711fdfe31559e931
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
412bda5a62c62529d1777ec7dc654ef46cc2df6c 10-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 6f67a6e7: am 909271c9: Forgotten commit -> apply change.

Merge commit '6f67a6e75c2259fb6fd3dc78ba84bfe645da33bc'

* commit '6f67a6e75c2259fb6fd3dc78ba84bfe645da33bc':
Forgotten commit -> apply change.
6f67a6e75c2259fb6fd3dc78ba84bfe645da33bc 10-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> am 909271c9: Forgotten commit -> apply change.

Merge commit '909271c9b60f755a5298c611400502e7418d161b' into gingerbread-plus-aosp

* commit '909271c9b60f755a5298c611400502e7418d161b':
Forgotten commit -> apply change.
909271c9b60f755a5298c611400502e7418d161b 10-Sep-2010 Brad Fitzpatrick <bradfitz@android.com> Forgotten commit -> apply change.

Change-Id: I525da1059f568f52504e58b90efbc46c249d8758
ndroid/contacts/DialtactsActivity.java
b1b1e1f4b203a1b7348524e714acdf363ce7a238 10-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing selection in second partition of contact search"
6ecd438414f1f66ff60aef1fc8ac128e709948f5 09-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing selection in second partition of contact search

Change-Id: I846df85640f335f9b1c978b2473c784f3444a4f1
ndroid/contacts/list/ContactListAdapter.java
ccaf9ff88fa8ab7b6c9c357d569ec0f251697d95 09-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixes in directory search ordering

Change-Id: Ib92a65c1e27bd8d2b66bee0f6799c3c1a6cabd19
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DirectoryPartition.java
8c6955ff3c05e1f3899110701c3cb5559a492f1e 09-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Smooth scrolling to selection after new/edit/copy

Change-Id: I8dd5702c6dc3a46b35fea1a3e851238f6e8a38f0
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/widget/ListViewUtils.java
327c8a12a57e1bf546176c43419b74e97c1b6054 08-Sep-2010 David Brown <dab@google.com> am 44ee4164: am da1ae37b: Clean up SIP-specific TODO comments.

Merge commit '44ee416419654bf3c1bceb035e66ea9ff9dfb89c'

* commit '44ee416419654bf3c1bceb035e66ea9ff9dfb89c':
Clean up SIP-specific TODO comments.
44ee416419654bf3c1bceb035e66ea9ff9dfb89c 08-Sep-2010 David Brown <dab@google.com> am da1ae37b: Clean up SIP-specific TODO comments.

Merge commit 'da1ae37bd6c81e66ac8865593f5c6477ee7697ab' into gingerbread-plus-aosp

* commit 'da1ae37bd6c81e66ac8865593f5c6477ee7697ab':
Clean up SIP-specific TODO comments.
da1ae37bd6c81e66ac8865593f5c6477ee7697ab 07-Sep-2010 David Brown <dab@google.com> Clean up SIP-specific TODO comments.

Now that SIP calls have a special icon in the Quick Contacts widget (see
change https://android-git.corp.google.com/g/64976) here's a change to
clean up a couple of left-over TODO comments in the apps/Contacts code.

Bug: 2969763

Change-Id: Ia52f5e9965afdb4b16d771471ef4a4edab73dc33
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/ui/QuickContactWindow.java
ec74d1594e8e95c7c5d8c108a89635b8f0003169 08-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "Refactor Dialogs"
4a62be4f5a365e5afde71becfd446381f2baa494 08-Sep-2010 Daniel Lehmann <lehmannd@google.com> Refactor Dialogs

Bug:2969342

Change-Id: Ic8d7d4bc6db0ab6b1368035210b2ca2008087d3d
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ModifyPhotoDialogFragment.java
ndroid/contacts/views/editor/PickPhotoDialogFragment.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
ndroid/contacts/views/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/views/editor/TargetedDialogFragment.java
2223f83398efef864b7e60b33fa46d017281ef1c 08-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving resource declarations to the theme

Change-Id: I25977cac56bfb39f8e9ccb56587ce02d5e713c4c
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/MultiplePhonePickerItemView.java
54aa198b29e09a68512487b4c1673d0b05456e1c 04-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing size of selector in contact list

Section headers are drawn as part of
a list item and since they can be translucent,
they are affected by the default selector.

Solution: disable the default selector
and simulate its behavior in the custom draw
method.

Change-Id: I06c0bfb8ad173bb1437b9ee757eb78d680bab661
ndroid/contacts/ContactEntryListView.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListItemView.java
7addc378ba9ca578ae2da0d7d22475656d8d895c 04-Sep-2010 Daniel Lehmann <lehmannd@google.com> Don't crash on Touch before initialize

Also removed super-call as it isn't required.

Bug: 2948943

Change-Id: Ifc9f53c435b4be2e4df98a12b4224d107d374f55
ndroid/contacts/list/ContactListAizyView.java
5bb814363db8b94d343c7579d002ceed460ae71a 04-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix Activity leak and implement change notification for preferences"
c60d0786099f8f73a020c96e9bfdd244967f7210 04-Sep-2010 Daniel Lehmann <lehmannd@google.com> Fix Activity leak and implement change notification for preferences

Change-Id: I73d4a1f6a8343fd68e69600bf18185280e60e9e4
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/ui/ContactsPreferences.java
e80851e8ece900fc579f0f293ca1c697c8339a8f 04-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an exception in Strequent list

Change-Id: Ic85a7a2d962e93b6550775a153b389005b4af7d1
ndroid/contacts/list/StrequentContactListAdapter.java
7e5865267a95991765dfe6751678b5cd677c9094 04-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Bigger pictures in the two-pane list

Change-Id: I8bd95f6d5efb59443e96ee295fbe69e14921f7e1
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/MultiplePhonePickerItemView.java
2dd2874d420d901a561795e1afceb7a8dd2246ff 04-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Adding "make personal copy" feature"
548f0cc653bb7abc0ac6950302ba244a5a7cc2b8 04-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "Implement parts of the new design for the Contact Viewer"
440ee9acd8f8ca77200e8e14f81b3fab76614fab 04-Sep-2010 Daniel Lehmann <lehmannd@google.com> Implement parts of the new design for the Contact Viewer

Change-Id: I3c1c3b3adb2c72affc9214e8e5786035f144e6e7
ndroid/contacts/list/ContactListAizyView.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
caf0bc759c4ef96dde5bb0a5256c1dcb51b6ccc4 04-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding "make personal copy" feature

The is the first in a series of CLs.
For now we create the copy, but we don't
actually select it in the UI.

Change-Id: Ie2719bf4e91915992f0e785b7a9827b3c934a6a2
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/ContactSaveService.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
39709a698e37d8a164579992fc6d1b72f856f384 03-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling QuickContact in the two-pane layout

Change-Id: I80386eef9069da518749d56c02fbe6a9b3a5abab
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
75eb78f07311706f2e68af8b85d45cf2d313a76e 02-Sep-2010 Dianne Hackborn <hackbod@google.com> am 1aab56ce: Merge "Implement granting of URI permissions from picker. DO NOT MERGE." into gingerbread

Merge commit '1aab56ce88d0b85da319e2b54ab506cd03d102e0' into gingerbread-plus-aosp

* commit '1aab56ce88d0b85da319e2b54ab506cd03d102e0':
Implement granting of URI permissions from picker. DO NOT MERGE.
1aab56ce88d0b85da319e2b54ab506cd03d102e0 02-Sep-2010 Dianne Hackborn <hackbod@google.com> Merge "Implement granting of URI permissions from picker. DO NOT MERGE." into gingerbread
3decfe7d2785c4abc558f181d3abfe80c3d374af 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> am 330c1a06: Modify variables used in vCard code.

Merge commit '330c1a065f7e00df59c96225c6c4ed7d8e97d95d' into gingerbread-plus-aosp

* commit '330c1a065f7e00df59c96225c6c4ed7d8e97d95d':
Modify variables used in vCard code.
330c1a065f7e00df59c96225c6c4ed7d8e97d95d 02-Sep-2010 Daisuke Miyakawa <dmiyakawa@google.com> Modify variables used in vCard code.

See also cf265ce7f83c1e2bd5db0c3d9bd4c142afd6db34

Change-Id: Icb709432effc38d0f6a8f503188f156c32f31508
ndroid/contacts/ExportVCardActivity.java
ndroid/contacts/ImportVCardActivity.java
958aca24fb348cd8795a952df7de299f09e66d2d 02-Sep-2010 Dianne Hackborn <hackbod@google.com> Implement granting of URI permissions from picker. DO NOT MERGE.

Now apps can have the user pick a contact and retrieve its data without
needing the READ_CONTACTS permission.

Also fix the intent filters for GET_CONTENT to work correctly (not require
a URI).

Change-Id: I1d82a058dc2d3998603adc914d67e2b698f59548
ndroid/contacts/ContactsListActivity.java
2dfa9c7ae4069ec6e612afcb36511ebfae7f9dc2 02-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing an exception thrown when contact is not found"
5f72c1fdfe17fadbd2da3de98b8e5a119044a0bf 02-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an exception thrown when contact is not found

Change-Id: I53a3f5dd9587bd71cedd4fc79a5f59a40c95751d
ndroid/contacts/views/ContactLoader.java
cda64918bd07aff52532188224d6da93dc3b9d2d 02-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix photo selection from Gallery"
02cd4911cf69cf21a2cf612cf954f418a46f6a28 02-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Showing directory meta-data in contact view

Also, adding "Make personal copy" to the menu
(for now unimplemented)

Change-Id: I779ff81370eaf8021e0e740a7c70f3d8c3caee6b
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
c1406450bb2a1a214ff35e99a173ee1a28b926fa 02-Sep-2010 Daniel Lehmann <lehmannd@google.com> Fix photo selection from Gallery

Change-Id: Ia0228673771b72bbe09da944bccc79da373fbbb0
ndroid/contacts/views/editor/ContactEditorFragment.java
4423ca5a213476ddef361062f4252cdf2cf40bd8 31-Aug-2010 David Brown <dab@google.com> Add SipAddress to Contacts UI in master

In gingerbread, change https://android-git.corp.google.com/g/62847 added
SIP addresses to the Contacts app.

This is that same change, manually applied to master. (I didn't let it
auto-merge because that would have failed: the ViewContactActivity class
is totally gone in master.)

This change is identical to https://android-git.corp.google.com/g/62847
except that the change to ViewContactActivity.java is now applied to
ContactDetailFragment.java. (The actual code change is identical,
though.)

Bug: 2942998
Change-Id: I18baf54966022d66d387d42d07fe2fdd5c1539f0
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/ui/QuickContactWindow.java
ndroid/contacts/util/Constants.java
ndroid/contacts/views/detail/ContactDetailFragment.java
993655785a29a135e9ecf645a6a946456baffe37 02-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "New list assets"
e17b1e52e6895f8177b4192f34126000fcb3f983 02-Sep-2010 Daniel Lehmann <lehmannd@google.com> Fix add from third party apps via Intent

- Fixes the issue where intent parameters are not passed after account selection
- Fixes the issue where Name and Address weren't correctly imported

Bug: 2883449
Change-Id: Ie9f3d88194d9731b66d1551dcf8c9dcca1de28c2
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
3e1c9f268c3af1299fff6c8d5b9b2a1b9b9dc857 02-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> New list assets

This is not supposed to be pixel-perfect.
Just some new colors to start getting a feel
for what it's going to look like eventually.

Change-Id: Ie656b13e425a42f49e1449f07455344d60ae1b37
ndroid/contacts/list/ContactListItemView.java
dd51593d205a3253a3031f00678fd72a02dfba22 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 217a3098: am 1eeea0c9: Use new SharedPreferences.apply() instead of commit().

Merge commit '217a3098a4efc8efafb85deb7014da8ed5a7ac96'

* commit '217a3098a4efc8efafb85deb7014da8ed5a7ac96':
Use new SharedPreferences$Editor.apply() instead of commit().
217a3098a4efc8efafb85deb7014da8ed5a7ac96 31-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> am 1eeea0c9: Use new SharedPreferences.apply() instead of commit().

Merge commit '1eeea0c996026fc156ea067c103a6ac6b3250569' into gingerbread-plus-aosp

* commit '1eeea0c996026fc156ea067c103a6ac6b3250569':
Use new SharedPreferences$Editor.apply() instead of commit().
1eeea0c996026fc156ea067c103a6ac6b3250569 27-Aug-2010 Brad Fitzpatrick <bradfitz@android.com> Use new SharedPreferences$Editor.apply() instead of commit().

apply() starts an async disk write and doesn't have a return
value but is otherwise identical in observable effects.

Change-Id: I247beefae4c1becc6f121247d8f0e51e01f71f97
ndroid/contacts/ui/ContactsPreferencesActivity.java
825cb62b7df3cfe208651d488278e1b57c863884 27-Aug-2010 Daniel Lehmann <lehmannd@google.com> Show the editor in full-screen for Edit and New.

Change-Id: I1f02d979db141d2b08b82aac85fa2deb39c5fbec
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
6a434ec52f8b97fe91c9e1816310d79ed1e1df3d 27-Aug-2010 David Brown <dab@google.com> am 9694d372: Add SipAddress to Contacts UI. DO NOT MERGE.

Merge commit '9694d37206416feaee0119cf7e620c7ae97f0a50' into gingerbread-plus-aosp

* commit '9694d37206416feaee0119cf7e620c7ae97f0a50':
Add SipAddress to Contacts UI. DO NOT MERGE.
12c32901edf1f277f9695c5aee2f8ab550e6ab6b 24-Aug-2010 Murillo, Roberto <roberto.murillo@garmin.com> Fix crash when separating multiple empty raw contacts

This changes the back reference logic a little bit to prevent
adding back references where there is nothing to back reference.
This fixes weird cases where a user could hit "new contact" twice
without saving data and then try to separate the two dummy
contacts.

Change-Id: I1a6b4e1a6bda99f5d8ee07ea57cace75a6bed4ab
ndroid/contacts/model/EntitySet.java
9694d37206416feaee0119cf7e620c7ae97f0a50 24-Aug-2010 David Brown <dab@google.com> Add SipAddress to Contacts UI. DO NOT MERGE.

Update the contacts app to display and edit the new SipAddress field.
(See https://android-git.corp.google.com/g/62672 for the corresponding
ContactsContract change.)

The details:

- Updated ViewContactActivity to display the SIP address if present,
and to handle a click by firing off a CALL_PRIVILEGED intent with
the address in a sip: URI.

(Note: this code is wildly different in master, and the automerger
is guaranteed to fail, so I'm marking this change DO NOT MERGE.
I'll apply it manually in master as a separate change.)

- Updated FallbackSource and GoogleSource to know about SipAddress.

A SIP address is displayed using a regular "phone call" icon for now,
but we'll eventually want a SIP-specific variant. (I'll separately
ask the UI dudes for that.) The SIP address field is edited using the
"email address" style IME.

Note I didn't touch the ExchangeSource class, which means that (for
Exchange-synced contacts) we just won't allow editing this field.
(Alternatively, we *could* allow the user to edit SIP addresses, and
just have them silently not synced. I'll check with the product
guys about this.)

Also cleaned up a bunch of unnecessary method overrides in
GoogleSource.java.

- Updated QuickContactWindow to handle SIP addresses just like regular
phone numbers, except that they fire off a sip: intent rather than a
tel: intent.

I still need to figure out how to make the "call SIP" icon different
from the regular "call phone" icon though.

Bug: 2942998

Change-Id: I4f67641ef134be406606a99d9f9f07baeaadbf88
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/ui/QuickContactWindow.java
ndroid/contacts/util/Constants.java
99eefbe1aebd4748f05f0bb43c8a7e7f1b369ee7 25-Aug-2010 Daniel Lehmann <lehmannd@google.com> Check whether a Listener is actually installed. Fixes potential NPE

Change-Id: I10ce02ce586c8c48287d4698a7e5573c72974344
ndroid/contacts/views/detail/ContactDetailFragment.java
1b42d12f6771157780e940ef6b664a7ab6e470e8 25-Aug-2010 Daniel Lehmann <lehmannd@google.com> Merge "Check for Voice capability using the system resource"
7779f490ccc2af98b5cd2cd537d1bdb36e173c94 25-Aug-2010 Daniel Lehmann <lehmannd@google.com> Check for Voice capability using the system resource

Change-Id: I0091fbc603c39a1604dcc7d5a1e78fd8c4b58648
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
ndroid/contacts/util/PhoneCapabilityTester.java
ndroid/contacts/views/detail/ContactDetailFragment.java
1ec497d4c4c07faeb26ac44524be7941b639d92a 23-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching to the new location of CompositeCursorAdapter

This class was moved to the android-common static library

Change-Id: I11dfb5461f71499fadc5923a3e85f9794049a184
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DirectoryPartition.java
ndroid/contacts/widget/CompositeCursorAdapter.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ed6288ff37b6cd3744317a8629b33f8b143ba094 21-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Throttling contact directory search requests.

Change-Id: I83ebb33df1c3c08f56869de454937c63227c0f0e
ndroid/contacts/list/ContactEntryListFragment.java
18be2b55cd809a428ef5dcdea466ab8b9e6368ce 19-Aug-2010 Hung-ying Tyan <tyanh@google.com> Fix build.

Change-Id: Ibcb867c6cc7ecc551035ed78e150fad1f960b103
ndroid/contacts/model/FallbackSource.java
b5954e8d3e45c169eda7fa80b97833d6da55bc27 20-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Postal address in one field

Change-Id: I590371b87aaa62d8918e7d10a7aeaa812f91c704
ndroid/contacts/model/FallbackSource.java
b76d43be3768203f9b1fae4b91cbd3bceeb17056 20-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Some minor improvements to Contact Editor design"
d25f958595b190586bd838d50718b1a2a3f0d417 20-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Some minor improvements to Contact Editor design

- Can supply a custom editor class for a specific data kind
- Can have a field that fills up a row instead of leaving
whitespace at the bottom
- Convenience method isChanged that checks if a specific
field has been changed.

Change-Id: I7dcc4ba1a3100675362e1fc69b4afc3e6793f373
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/Editor.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
ndroid/contacts/ui/widget/PhotoEditorView.java
ac6fd9318da1dc774783454402c4b60ff11ac940 19-Aug-2010 Daniel Lehmann <lehmannd@google.com> Merge "Use new FragmentManager APIs"
3514fd3fbc7aabdddc647cd6f745437ba4f780a6 19-Aug-2010 Daniel Lehmann <lehmannd@google.com> Use new FragmentManager APIs

Change-Id: I31a862f131c58dbe482573fee177d934fa1e4710
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactSearchActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/views/editor/TargetedDialogFragment.java
18b5190d6ed37be04d153a5d6f205076b38ac479 19-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add Cancel capability toward vCard import procedure.

Bug: 2801638

Change-Id: Ia563fa4aed48ad01a6fbb29b350a35c46b7085a3
ndroid/contacts/vcard/CancelImportActivity.java
ndroid/contacts/vcard/CancelImportRequest.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/VCardService.java
41f026d52e0277e21236787b10f76129a8bc6fa4 19-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching contact name editor to single field by default

Change-Id: I7157a99a9a51fa05188cc50b90f37bb55c15793a
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/Editor.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ae2bbe84b4d05e613863120aac0dff8fa099db02 19-Aug-2010 Daniel Lehmann <lehmannd@google.com> Change Aizy to use a primary alphabet and fixed letter distances

Change-Id: I4da56785e99d51c893ba0e5097b37da751382fb7
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAizyView.java
ndroid/contacts/util/PhonebookCollatorFactory.java
d20f2c7dacf392f40b679e61bc8c436a2b96d014 19-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Use rich format for showing the progress of vCard import.

Use a custom layout file for showing the progress by Progress Bar.

Change-Id: Iab64549414050cd627cb9a5617581304b3f2fd26
ndroid/contacts/vcard/ImportProgressNotifier.java
e8b5775b19129033a72991982e2d89ce9907061a 18-Aug-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make vCard importer ignore secure directory.

Make vCard importer call finish() at appropriate timing.

Change-Id: Idd1a6df7ca3de3d038d763d5a45b06927aafbd19
ndroid/contacts/vcard/ImportVCardActivity.java
bb77bbd16c2a4040dc13349104d1b77603f9417b 17-Aug-2010 Daniel Lehmann <lehmannd@google.com> Merge "Show commands for XMPP video chat for Google Talk"
f491ae914769f1062a4d9c31fcbec5ff0e01e4e6 16-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding aggregation suggestions to the contact editor

Change-Id: Ie2db4c1c02301a46ca045d17914f68d4701d9db2
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/ui/widget/AggregationSuggestionView.java
ndroid/contacts/ui/widget/BaseContactEditorView.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/ReadOnlyContactEditorView.java
ndroid/contacts/views/editor/AggregationSuggestionEngine.java
ndroid/contacts/views/editor/ContactEditorFragment.java
e16ee07870fd47372ec3e092f14879930d84de8d 16-Aug-2010 David Brown <dab@google.com> am a0bdc5e7: am 4dd082bf: Disable dialpad chooser when the user selects "Add call".

Merge commit 'a0bdc5e7cbc92ea921b4f1e4aa2c0ac748867a01'

* commit 'a0bdc5e7cbc92ea921b4f1e4aa2c0ac748867a01':
Disable dialpad chooser when the user selects "Add call".
580286bf8b280cfb607942cd207b3eb68fb8af66 15-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixed several screen rotation related bugs.

Change-Id: I12a34ec81267ab68f3d86c64cfaa30118caebbba
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/widget/CompositeCursorAdapter.java
8fd7bb6815399b3eaa7e1fb5f12a3983d2ff1006 14-Aug-2010 Daniel Lehmann <lehmannd@google.com> Show commands for XMPP video chat for Google Talk

Change-Id: I8ff105ff42ffa89b81500f386db3279ffde5fe80
ndroid/contacts/ContactsUtils.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
a0bdc5e7cbc92ea921b4f1e4aa2c0ac748867a01 13-Aug-2010 David Brown <dab@google.com> am 4dd082bf: Disable dialpad chooser when the user selects "Add call".

Merge commit '4dd082bff5d9f2d056affbfa0858f04dac38598e' into gingerbread-plus-aosp

* commit '4dd082bff5d9f2d056affbfa0858f04dac38598e':
Disable dialpad chooser when the user selects "Add call".
4dd082bff5d9f2d056affbfa0858f04dac38598e 12-Aug-2010 David Brown <dab@google.com> Disable dialpad chooser when the user selects "Add call".

As of change https://android-git.corp.google.com/g/59935 , an ACTION_DIAL
intent with no data now brings up the dialpad chooser if the phone is in
use. This fixed a usability problem with the car home app.

Unfortunately an ACTION_DIAL intent with no data is *also* generated by
the InCallScreen's "Add call" button. But we obviously *don't* want the
dialpad chooser in that use case, since the whole point of that button is
to add a 2nd call while the phone is already in use.

The fix is to check explicitly for the "Add call" action (using an intent
extra that already exists), and not show the dialpad chooser in that case.

Bug: 2878748
Change-Id: I890cfa72db375ff7b30fc8026da1bc9103118051
ndroid/contacts/TwelveKeyDialer.java
15972398b530b91612418dc11d41c356d4f43739 11-Aug-2010 Daniel Lehmann <lehmannd@google.com> Allow saving without closing the Editor

Bug:2895633
Change-Id: I8f8c83952ac84389f9d06bc1ef833ba96a8b887f
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
e579a175bdc18153014da00d989cf0a5343d25a9 11-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the contact rebase issue

Change-Id: I51c3774c5352e207807aa492bc2f69dc417ce7b2
ndroid/contacts/views/editor/ContactEditorFragment.java
4e0ce3fb44125453e0ad723d7e3d3e89ad639e01 11-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Excluding target contact from the choices in Join Contact

Change-Id: Iec7894c97292bf1b27b32dc37da61959c780f6ed
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/list/JoinContactListFragment.java
bce2d1e69823b373ed96a65feda7407b6a12ecf6 10-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an NPE

Blind fix - cannot reproduce on Stingray.

Bug: 2859190
Change-Id: I4bf4f0070a99f076d836e1c3202e5ff9ba323554
ndroid/contacts/widget/PinnedHeaderListView.java
a3e9d4463742434d428ea59f644c0c3c2f76de70 10-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "NPE and ArrayIndex exception fixes"
355add82f7e4a29d86065d824c8f3fa5b7f9cbfc 10-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> NPE and ArrayIndex exception fixes

Change-Id: I8280aa0fe62ab0ed34fa4c5d3ccb798cbc472e1f
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/widget/CompositeCursorAdapter.java
328a7c9bba58e77b8a91f91d717307b32958640a 10-Aug-2010 Daniel Lehmann <lehmannd@google.com> Seperate Add and Add_Raw_Contact. Due to ID clash the wrong code was executed

Bug:2895746

Change-Id: I10dfbe977326e813720fbfb9b83a54538c541020
ndroid/contacts/views/editor/ContactEditorFragment.java
2eb26aacc35a624607187418d61c78258eee8b2c 06-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing bug with query string change

To repro the bug, click on search, enter "a", backspace "b"
The result will be for the filter "a".

This CL fixes the problem

Change-Id: Ie85ff4945de4ebbe623dee4a8430dac73c52f0cb
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactBrowserActivity.java
d766c78fd2be15957353cbe5e7f4ab14732b7a84 06-Aug-2010 Daniel Lehmann <lehmannd@google.com> am 9ef05cb6: am f9d9d43d: Merge "ACTION_DIAL should show dialpadchooser" into gingerbread

Merge commit '9ef05cb6459e82d5b5ea1490e88e3618a1e668ea'

* commit '9ef05cb6459e82d5b5ea1490e88e3618a1e668ea':
ACTION_DIAL should show dialpadchooser
9ef05cb6459e82d5b5ea1490e88e3618a1e668ea 06-Aug-2010 Daniel Lehmann <lehmannd@google.com> am f9d9d43d: Merge "ACTION_DIAL should show dialpadchooser" into gingerbread

Merge commit 'f9d9d43da7d9e5a59b27d9fbb47cbd25985b7ce4' into gingerbread-plus-aosp

* commit 'f9d9d43da7d9e5a59b27d9fbb47cbd25985b7ce4':
ACTION_DIAL should show dialpadchooser
f9d9d43da7d9e5a59b27d9fbb47cbd25985b7ce4 06-Aug-2010 Daniel Lehmann <lehmannd@google.com> Merge "ACTION_DIAL should show dialpadchooser" into gingerbread
ee7d1fa29c7bbb78012705cab21581995e507843 06-Aug-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix a crash with custom IM protocol"
60be1a1e8639a58d16f58686f8a89747d6079cc7 06-Aug-2010 Daniel Lehmann <lehmannd@google.com> Fix a crash with custom IM protocol

Change-Id: I42268ca06ed61b987e0f15289fd29da057a7049a
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
9fcf4b162328ccc35a473a1b3c11f4d02ab06bca 06-Aug-2010 Eric Fischer <enf@google.com> Fix code to refer to the right package for this string.

It must have moved but the obsolete translations kept the old reference alive.

Change-Id: Ie03f069b58aeaf48c411f6f7d6b42be0cc198609
ndroid/contacts/util/DataStatus.java
0deb6d35d1d9620f9cc539bbd31c52f2fe97916b 05-Aug-2010 Daniel Lehmann <lehmannd@google.com> resolved conflicts for merge of 63db02b7 to master

Change-Id: I6c4536c824a5abd908f7d2ff8b990ff1e968f4ca
7ca5e4df0d21f223e7c0853ec187c0d008b63047 04-Aug-2010 Bernd Holzhey <holzhey@google.com> ACTION_DIAL should show dialpadchooser

Launching the TwelveKeyDialer with ACTION_DIAL and no data is currently
showing the dialpad regardless the call state of the phone.
With this change it will show the dialpadchooser, in the case no uri-data
is provided and there's an active call.

Bug: 2878748
Change-Id: I5584b449e53c661e7d71d06f4efce68172826041
ndroid/contacts/TwelveKeyDialer.java
b26695a4f14285cc46608cec4ec1935f9440da4e 05-Aug-2010 Daniel Lehmann <lehmannd@google.com> Remove animation-hack. Re-add once we have framework support

Change-Id: I3ecdfd779ea4ea5e887304ece6b313516cf35a11
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
ndroid/contacts/util/ViewGroupAnimator.java
63db02b73152b6d164066d5b7aee977cfbb869c2 04-Aug-2010 Daniel Lehmann <lehmannd@google.com> am d02cdeec: Fix NPE: Dial-Button pushed while a non-actionable item is selected Bug:2887049

Merge commit 'd02cdeec0040c756e488a2251fae2a5908051410' into gingerbread-plus-aosp

* commit 'd02cdeec0040c756e488a2251fae2a5908051410':
Fix NPE: Dial-Button pushed while a non-actionable item is selected
d02cdeec0040c756e488a2251fae2a5908051410 04-Aug-2010 Daniel Lehmann <lehmannd@google.com> Fix NPE: Dial-Button pushed while a non-actionable item is selected
Bug:2887049

Change-Id: Ie5de0bb2d3bea40eb2fae126ee646b949e926060
ndroid/contacts/ViewContactActivity.java
a35a7e2aabc4edfafb9b4171e279bdb4c0c03d44 04-Aug-2010 Daniel Lehmann <lehmannd@google.com> Redo dialogs with DialogFragment and fix Join/Seperate

Change-Id: Ied997ad6ba3cf260eb2a04b8882184f1f800140c
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/PickPhotoDialogFragment.java
ndroid/contacts/views/editor/SelectAccountDialogFragment.java
ndroid/contacts/views/editor/SplitContactConfirmationDialogFragment.java
ndroid/contacts/views/editor/TargetedDialogFragment.java
28ae1efa0a0736c40bbfd26b6939dc1c8491a3f8 03-Aug-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix crash in JoinContactActivity"
fec29c7320c6c45aff69dbd6ec0edb267fb402f4 03-Aug-2010 Daniel Lehmann <lehmannd@google.com> Fix crash in JoinContactActivity

Change-Id: I4f9e486a67bad775ee9ccf7d3e3781031ce93378
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
1e855e007e196091185270ecaf3d5d08139963d3 02-Aug-2010 Ben Dodson <bjdodson@google.com> Fix for finding the first system service

Change-Id: I0438938dd54e90be79785f543b03a9b6bfbdcd69
ndroid/contacts/ui/QuickContactWindow.java
7ccdc1f5337f2cb7b311358c8bb3c68aef6213d1 03-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Making contact selection lookup key based.

- We will no longer load the selected URI just to get
the contact ID
- We will base the selection in the list on the
pair of directoryId and lookup key
- Also, we will no longer require IS_RESTRICTED and IS_SUPER_PRIMARY
to be non-NULL

Change-Id: Ic093060a1c19413b276da35619ecbbed418e27dc
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/views/detail/ContactDetailFragment.java
1dd19dde9f4789885f0e9108a82e6b9256eb96de 02-Aug-2010 Wink Saville <wink@google.com> am d178af42: am 170614a9: am 4ad335f8: Compare only network portion to determine if number is voicemail.

Merge commit 'd178af428c7c7d0dc6cdc1d5ed38aa6fd92cf459'

* commit 'd178af428c7c7d0dc6cdc1d5ed38aa6fd92cf459':
Compare only network portion to determine if number is voicemail.
d178af428c7c7d0dc6cdc1d5ed38aa6fd92cf459 02-Aug-2010 Wink Saville <wink@google.com> am 170614a9: am 4ad335f8: Compare only network portion to determine if number is voicemail.

Merge commit '170614a9c237862a3f2548ebd0816965bf875e88' into gingerbread-plus-aosp

* commit '170614a9c237862a3f2548ebd0816965bf875e88':
Compare only network portion to determine if number is voicemail.
4ad335f8c80c1d588426ef796afdd1a682eecd29 02-Aug-2010 Wink Saville <wink@google.com> Compare only network portion to determine if number is voicemail.

Bug: 2881483
Change-Id: Iff007fb0ca56ed7420e09e75b54da58f5c94e2ec
ndroid/contacts/RecentCallsListActivity.java
4d444244c4228b8d2610b754d3e40788187efaef 30-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching ContactLoader to the all-encompassing query

Change-Id: Ibcf8ac0db5a10966c4742727f32af54ca1773079
ndroid/contacts/views/ContactLoader.java
2b266eeaa5f97e929771f9d6f336a88fe570a89d 29-Jul-2010 Daniel Lehmann <lehmannd@google.com> Merge "Allow deletion from Editor-Screen"
b846fc117b2c4c0c3ed5eb3e9ce32591986a0253 29-Jul-2010 Daniel Lehmann <lehmannd@google.com> Allow deletion from Editor-Screen

Change-Id: I456f7c753a3f73e9d812db2e7a79c8de83b6cfec
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ba34422241add512a295064619e91cd12d03c80f 29-Jul-2010 Bai Tao <michaelbai@google.com> Format the number by the convention of the country the user is in

Change-Id: I1d44e4cfebcd983585c4b9d0ba57bb4a5849a25d
ndroid/contacts/ContactsUtils.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/ui/widget/GenericEditorView.java
d3f1e3128b709d7d9a0229f1d1843f015f4977ba 28-Jul-2010 Daniel Lehmann <lehmannd@google.com> Don't override user-changes if the record changes in the background

Change-Id: I565a6dd6de2cf43ae97c27606fab709113873cc9
ndroid/contacts/views/editor/ContactEditorFragment.java
7aa9b2888e4f630c6311458ea27ecbc13a527b00 28-Jul-2010 Daniel Lehmann <lehmannd@google.com> Modified comments and added TODOs for Activity-Result in the Browser

Change-Id: I5b94e53bb143f9da916540d290876fef2fbd0bad
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
22fb2053fe2bfe98376bf1a0e564f23ae9cecded 28-Jul-2010 Daniel Lehmann <lehmannd@google.com> Show contact after creation; refactor ContactEditorFragment.Listener

Change-Id: I1fcf45334196a3776ed187cfeb93334f88cee281
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
5976403e238d61a36091bca7267fea359dc80575 28-Jul-2010 Daniel Lehmann <lehmannd@google.com> Merge "Sources.get() can be safely called from the UI thread. Updated source."
db1f79cf40d2eebaf893b2c24b2d842a11d3ab80 28-Jul-2010 Daniel Lehmann <lehmannd@google.com> Sources.get() can be safely called from the UI thread. Updated source.

Change-Id: I5157f581fe078c7cd73044a1595b7295a202d96e
ndroid/contacts/model/Sources.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
3e7436450f0fdd5ad939c3b46e7176e082c9ee11 28-Jul-2010 Daniel Lehmann <lehmannd@google.com> Don't show Note and Nickname if they are empty database rows; some clean up

Change-Id: If60b76d73c27f53529ef45254140a412658891b1
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
7b74a1a4168789751869cd100fe8a9719b2dd370 27-Jul-2010 Daniel Lehmann <lehmannd@google.com> Merge "Replaced Google by Android Open Source project"
ef3f8f045ed4150caa64749742227acd0e6b85d8 27-Jul-2010 Daniel Lehmann <lehmannd@google.com> Replaced Google by Android Open Source project

Change-Id: I41bf58262c5524d19119aa767e6961a46c679611
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/util/DialogManager.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactNoneFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
8b57b8d25fd8c4b4886699dd1651daf97ac1d8e9 27-Jul-2010 Adam Powell <adamp@google.com> Updated for context mode API changes

Change-Id: I4da1bc5b5d4026434b33620739716f86ac8dbefe
ndroid/contacts/ui/QuickContactWindow.java
3b7d5949bfa524534e5d1aa29b8eaff8733ae00c 23-Jul-2010 Daniel Lehmann <lehmannd@google.com> Make it possible for View and Edit to be in a Dialog

Change-Id: I55e0f3d9369e638651034131812a590984ff2282
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/util/DialogManager.java
0cb15becc2adef9378396bf92e5ebbb18befccdd 23-Jul-2010 Daniel Lehmann <lehmannd@google.com> Expand/Collapse for RawContact sections in the Editor

Change-Id: I5330bcce244f813189886ae1e431d862d62cf5c9
ndroid/contacts/ui/widget/ContactEditorView.java
07a41bad01d23fad4d57aa423b89b136d68f5a5f 23-Jul-2010 Daniel Lehmann <lehmannd@google.com> Don't show Call and Text in context menu if device can't do it

Change-Id: I2b9b1d1b1ea0147d9916550a6f5f5d232efee84e
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
60ad01b47e1073bac4b9299a54673132f4451378 22-Jul-2010 Daniel Lehmann <lehmannd@google.com> Proper handling of View/Edit from list-context Menu

Change-Id: Ibe299620ca0c0ba237a3cd4bfc83e9c807cc63ab
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactSearchActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ndroid/contacts/list/StrequentContactListFragment.java
69e7fec6dd8a3d24054863c6c648512577fce35c 20-Jul-2010 Daniel Lehmann <lehmannd@google.com> Implement Delete on Contact-Detail; re-use the code from the ContactBrowser

Change-Id: I5b567174b45499c4871db454882bd275b482a014
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
ndroid/contacts/views/detail/ContactDetailFragment.java
fe7f7bbdd09cb12ba97980e5c70ddb02d843e5bf 17-Jul-2010 Daniel Lehmann <lehmannd@google.com> Merge "Remove Phone capabilities from devices that do not have Phone/SMS apps"
f77b8e994f512e3d75d3169198183fde482614d8 17-Jul-2010 Daniel Lehmann <lehmannd@google.com> Remove Phone capabilities from devices that do not have Phone/SMS apps

Change-Id: I580439a9296eb6440e4fd45eba5e552be8a57763
ndroid/contacts/util/Constants.java
ndroid/contacts/util/PhoneCapabilityTester.java
ndroid/contacts/views/detail/ContactDetailFragment.java
eb4a5d0aeb8c7f1bf1c5aba675951006bc3e209c 17-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing a broken test

Change-Id: Icced148d376a1e6cd8e810be72b208fa25021b4a
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/widget/InstrumentedLoaderManagingFragment.java
8773bcb491d18e88b4e3d1f9cf7c57f6bc8e69ed 16-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Routing "view contact" requests to proper directories

Change-Id: I006a5f7a9f88ebb0e3ae2872ad646de87d4d6405
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
65ad5eedb8f44f11e1d29cce141eddd88c0941b3 16-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing visibility of selection in the two-pane layout

Change-Id: Ic1c94aceacdc1f226861ba55388d7531f9b1d642
ndroid/contacts/activities/ContactBrowserActivity.java
fcfdffb439ccf1ddef971109b82e782c47161572 16-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming NavigationBar to ActionBarAdapter

Also, moving browser modes to a class of their own.

Change-Id: Ie2745581537e09717a2c7a58ecebec1b7ada0c81
ndroid/contacts/activities/ActionBarAdapter.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactBrowserMode.java
ndroid/contacts/activities/NavigationBar.java
e1d4c0617ede33b4b0cdb1137aca971b3dacc747 16-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Cleaning up single-pane layout. Phase I.

o Now using an overlay to determine whether to use a two-pane
or single-pane layout.

o Fixing search mode layout on the phone.

o Moving search activity to activities and renaming it

o Setting a custom theme for contact pickers

Change-Id: Iafe61df60206fbdab554c1772b05ca0e5bd74f6f
ndroid/contacts/ContactsSearchActivity.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactSearchActivity.java
061dd9801fb6e00e6fb320ff7fcc5ef0840871fd 15-Jul-2010 Daniel Lehmann <lehmannd@google.com> Remove toast for header

Change-Id: Ia5bc20a385ac28c5e2a4d852fc37b10242a338d4
ndroid/contacts/activities/ContactBrowserActivity.java
afdf6eabbf13aa5bf351b4a65929d4053d5f4ce0 15-Jul-2010 Daniel Lehmann <lehmannd@google.com> Fix wrong index; some fields could not be added. Disabled delete animation.

Change-Id: I6007dcdce7ca3126f05437463258b9c93cd928bb
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
7bb2add27b874d194c294d30c1661dffa78f44bb 15-Jul-2010 Daniel Lehmann <lehmannd@google.com> Don't bring up the search UI while editing a field

Change-Id: I50fb06d275801fbf57e220861444c2f9d5a1bc73
ndroid/contacts/activities/ContactBrowserActivity.java
5988814447dcfacf7a1b49315c07793922e12411 15-Jul-2010 Daniel Lehmann <lehmannd@google.com> Merge "Use new Loader API and properly unregister Observers"
4f138ed4f8930227625117821a1c3dc9b6915653 15-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching to LoaderManager

Change-Id: Ib077c819edfe4f84e53282885c6c304b82c5af9a
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/widget/InstrumentedLoaderManagingFragment.java
222744ea3cd7233677f0ef88804eb3e2db710e43 13-Jul-2010 Daniel Lehmann <lehmannd@google.com> Use new Loader API and properly unregister Observers

Change-Id: I0b50c1eb90b5ccfef36177c2c4392c523bcc96fb
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
054dc6dba689afef6748e1f8d6ea024eccf41591 15-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Moving section placement calculations to IndexerListAdapter"
be82afa9334a6ca7d8b14939ebf5307307f16d08 15-Jul-2010 Daniel Lehmann <lehmannd@google.com> Removed Edit Button (it lives in the ActionBar now)

Change-Id: I518800e00cafdac26846cbacf1160292448ff09b
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
2475ac851b5d8e6d1cc19c53d04163630be490a0 15-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving section placement calculations to IndexerListAdapter

Also, fixing a calculation in JoinContactListAdapter

Change-Id: I0213eb921ff6284c52e67bf2d583018e09c692e1
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/widget/IndexerListAdapter.java
2d2c5d8fea4706b2ba7192ed73f1c974ee074bb7 15-Jul-2010 Daniel Lehmann <lehmannd@google.com> Put Edit/Done into ActionBar

Change-Id: Id477e0d4ac768d068b5947ff6661d817f46cd921
ndroid/contacts/views/detail/ContactDetailFragment.java
bd772a5bfd907f3b14589a07378fb26dfd924d93 14-Jul-2010 Daniel Lehmann <lehmannd@google.com> Fix TAG and comment

Change-Id: I226e24ccd45174ce5f2451b6a220a7ff37815419
ndroid/contacts/activities/ContactBrowserActivity.java
9767e09ae37332d74b5558a3ec16ded20a9328dc 14-Jul-2010 Daniel Lehmann <lehmannd@google.com> Performance measuring code that outputs to the logcat

Change-Id: I48341214e813a6b3e23c7c9e8002fa3ab47eb7a0
ndroid/contacts/views/editor/ContactEditorFragment.java
180abb0e9e8c23f847797e67b0ddd312e2c9398c 14-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Optimizing contact list scrolling"
85787d01deb5e2dbe7eb3d05688de970a85eb532 14-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Optimizing contact list scrolling

Change-Id: I75374373f4ad275409caf9ffa888288728870b66
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
ndroid/contacts/widget/CompositeCursorAdapter.java
ca98444277723c60be83062cf5a25ec7ca1fdb34 14-Jul-2010 Daniel Lehmann <lehmannd@google.com> Instant save in the Editor; renamed EntitySet to EntityDeltaList

Change-Id: Ib4b57e76db346bec38dcf294d895f13d4b2fc6d3
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/model/EntityDeltaList.java
ndroid/contacts/model/EntityDiff.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/views/editor/ContactEditorFragment.java
2776c7fe8117773fdf773396f61ed047238470f9 13-Jul-2010 Jean-Baptiste Queru <jbq@google.com> Resolve merge conflicts

Change-Id: I2d6c1adf2d4cdc1eb1329f5e78cdf5c6f3195aeb
53bf1c10e4de51a5b3ab5c271a81315e52fc1dfc 13-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Id5362cf68443a80498499bb4c7b66bf0718bd419
58c066fa5c947fe8c17b17132edacfa421269466 13-Jul-2010 Daisuke Miyakawa <dmiyakawa@google.com> Supress Exception thrown by vCard exporter.

Change-Id: I252c14b5393c66bd1b1b9fd2c4bb1c6c83ae17b8
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
a1db3705a619dfcd662afe85ba5762771824d89d 13-Jul-2010 cytown <cytown@gmail.com> Fix NPE

Change-Id: I7dbe5705b76ba54dc0dd9bc00051406e83ed7df6
ndroid/contacts/ui/EditContactActivity.java
e2bbe1db7e21e5c1ade79dd2dc74216f82b65e01 13-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching join contact functionality to LoaderManager.

Change-Id: I935e1610e18d5fb72a321aad9a329ae0232ee192
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/JoinContactListFragment.java
5ffd9298a6cd842c5bfb2612a2eda798fa92b7ad 13-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching ID resolution to LoaderManager.

Change-Id: I87e53457f9d248597ddb5b24af805f1367e8a53b
ndroid/contacts/list/ContactBrowseListFragment.java
3391dbed3575b3454c2bebf35dae4a19d8f987f2 12-Jul-2010 Daniel Lehmann <lehmannd@google.com> Make dialogs work again (might need cleanup once/if we get framework support)

Change-Id: I1e46376a69cadc3c3c638130b901e84999407a3f
ndroid/contacts/activities/ContactBrowserActivity.java
cfa39004ed111f131bfb7d8841d5b9a9ee8221fb 10-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming ContactListActivity to ContactBrowserActivity

Change-Id: I641eade0ede0e07bf6e7ec2c3a3430b4131b97c0
ndroid/contacts/ContactsSearchActivity.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/activities/ContactBrowserActivity.java
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
ndroid/contacts/ui/ShowOrCreateActivity.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
cfc648986f569bde83715584a91f89ed28dd8335 10-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing issues with selection preservation including search

We have to do quite bit of work here because contact IDs
are unstable.

Change-Id: I461e1600cd686a2cf5e2dc6f931c7132853f7636
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
9cd1708f333eda622dc6a4fed2a0df9058193a9d 09-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Preserving separate contact selection per mode.

Change-Id: Ic481ffbbe8582cece04e4f2c0b1aa7aada7b93c7
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
d364314c460152db7089b304beec81b3675893ba 09-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Preserving detail URI on orientation change

Change-Id: Ia84cd323398e9503f9fe883db792ef388565124d
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
92a6fdf1b07b8f1447560174e24455fd46aee7cd 09-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Preserving list state on orientation change

Change-Id: Ibb75905573428e244b0cc4f0e61418e9f38101ed
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/activities/NavigationBar.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
c02f508b0eade40538680b905a5c1a02dc6a5658 09-Jul-2010 The Android Open Source Project <initial-contribution@android.com> am ed0924c4: merge from open-source master

Merge commit 'ed0924c45329589b9573fc0fb370167c5f6f3602'

* commit 'ed0924c45329589b9573fc0fb370167c5f6f3602':
ContactsBadge: When there is no data to display, show it to the user
c0ca13a86793082c8969e44c70d4dc8fb83eb1f8 08-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding a "no contact selected" fragment

Change-Id: Ib3bc474e84315854ac0f800ce2566606654d0ff2
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/views/detail/ContactNoneFragment.java
0d5774911ea5885f0bbe6256c1d59719b3ca3e35 08-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> A temporary background resource for view/edit

Change-Id: I9aa93c16f816b4582e20067a30a65ec320d1db98
ndroid/contacts/activities/ContactListActivity.java
ed0924c45329589b9573fc0fb370167c5f6f3602 08-Jul-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: I54c494ff5f594baedbda1692e76423f21780f570
ac59685d328b278f5e07791bf3d5600496898a00 08-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Making selection visible in contact browser.

Change-Id: I936c4d3fdec8061e62b5d551189ec87408d574f9
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListItemView.java
3f58e55985b55290cd29a82ddd880b0eff07ffc7 08-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching to the new API: smoothScrollToPositionFromTop

Change-Id: I662d23fcb95cdd81c0a0494c5ba145116188f91f
ndroid/contacts/widget/PinnedHeaderListView.java
08e1c4e49947daee26cfc435d01605febb7ae6fa 03-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Add modes to the navigation bar

Change-Id: I3754aa391513641d920fb89690ac4ca328c2942c
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/activities/NavigationBar.java
4ba04b30eca7546d38ef6b7a2db77085003afcf5 02-Jul-2010 Christian Mehlmauer <FireFart@gmail.com> ContactsBadge: When there is no data to display, show it to the user
instead of showing an empty badge

To test:
Create an empty Contact (only with a name), and click the Android symbol
on the Contact.
old Version: Empty Badge
new Version: TextView showing "No data"

Change-Id: I28e65b6de689af69d0b6a327c5bea9ab711d0691
ndroid/contacts/ui/QuickContactWindow.java
9e83c84a7603eb6fca1b42631d894731d61f7a34 02-Jul-2010 Daniel Lehmann <lehmannd@google.com> Implement GenericEditorView as a Custom Layout (saves 2 LinearLayouts) and don't inflate from Xml to improve loading performance.

Also re-enabled the ViewGroupAnimator

Change-Id: Idecdf991a435b24617ed37bc007df0f619936d9e
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
4af3b0710ac6f08450b723a3784495469e45ba05 02-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving search box into the action bar

Change-Id: I41d4b4d24109a65a95395857dded4247f6c9c784
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/widget/SearchEditText.java
b979b4294c14f2bc562a5279910bafb7ac1a92b4 02-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Splitting pickers into their own activity

Change-Id: I1998b446b0aaaedc086ad99416fb6118d840623c
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/activities/ContactSelectionActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
424440bd932482c0a08b782a570d600051c56eb4 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Combining ContactListActivity and TwoPaneActivity into one.

Change-Id: I2ab37a0c87bf26c56cef6946fb53814a70e0ac85
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
ndroid/contacts/activities/TwoPaneActivity.java
27834b2ae8bb5a65dfc20c212844d98d1c252cae 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving ContactsListActivity to a different package

Change-Id: Ia8b850ed0be700458e741461ab9ea48508bbbf0b
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsSearchActivity.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/activities/ContactListActivity.java
ndroid/contacts/ui/ShowOrCreateActivity.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
aa1dffe03f6cb3d147556cf53cbf23ad86852cab 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Evicting import/export into a class of its own

Also fixing some issues with dialogs on orientation change

To verify, please use Contact Intents / DEFAULT

TODO: need to add a unit test for this interaction

Change-Id: I3f00b16ee19b6b8522c4526e4bbef17b0afb2ed2
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/interactions/ImportExportInteraction.java
a9dd2ca1b8077538f452632f571235b72b05fc7f 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Making call/sms interaction preserve dialog state"
f3eb02ec999deb60b5a56c3b243b3f62b9f12c41 01-Jul-2010 Daniel Lehmann <lehmannd@google.com> 1. Directly instantiate EditText instead of inflating 2. Remove a superfluous LinearLayout

Change-Id: Ic5903bd440a042c4b53fba92756e7b1c40140dfd
ndroid/contacts/ui/widget/GenericEditorView.java
4db8cbc0c46d6abf23186aacce3e37bd5583cd3a 01-Jul-2010 Daisuke Miyakawa <dmiyakawa@google.com> Fix RemoteViewException.

Bug: 2801654
Change-Id: I335e40b56981b55dac35a8d35e357d1d30c0ce9a
ndroid/contacts/vcard/AnimatedImageView.java
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
d3e5a783d543fd751ef0344d6330c101324690bf 01-Jul-2010 Daisuke Miyakawa <dmiyakawa@google.com> Remove unnecessary comment.

Change-Id: I1f430af15eff46f31cb4a73f094a0d8d0b470bf0
ndroid/contacts/vcard/ImportProgressNotifier.java
b4e8886bcb25cde3b03eedcc815c0166329af3a4 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Making call/sms interaction preserve dialog state

And also cleaning up the implementation

Change-Id: I6d9ca845477282d4ef9db7417e99cffc9e608c86
ndroid/contacts/CallContactActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/PhoneDisambigDialog.java
ndroid/contacts/interactions/PhoneNumberInteraction.java
ndroid/contacts/list/CallOrSmsInitiator.java
6fa862478ba9acf394811bf85d34a41162482f81 01-Jul-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add a unit test for handleOneRequestSimple()."
f302130a911d812f950c53b4a65bbfe0b2c2159c 25-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add a unit test for handleOneRequestSimple().

Bug: 2733143

Change-Id: I40af33e7d5b4df8100a494de18dc0002368d79c2
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
ce96d63613137d22761cc50c611bbd7a70da15a6 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> am b684c9ad: am 30802a7e: am bb58303b: Fixing use of green button in call log

Merge commit 'b684c9ade4ebf98a839c9509d85d6509f5406a67'

* commit 'b684c9ade4ebf98a839c9509d85d6509f5406a67':
Fixing use of green button in call log
b684c9ade4ebf98a839c9509d85d6509f5406a67 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> am 30802a7e: am bb58303b: Fixing use of green button in call log

Merge commit '30802a7e5dc77512191bcdde44640565212b4243' into gingerbread-plus-aosp

* commit '30802a7e5dc77512191bcdde44640565212b4243':
Fixing use of green button in call log
bb58303b94b6013af68997c2c627a852170c92d0 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing use of green button in call log

Bug: 2800236
Change-Id: Iecaa7655f1f4d5c901ad749b089563e5dab79e9d
ndroid/contacts/RecentCallsListActivity.java
134ef33c7203247ea2ad06246e5597dc734ebb49 30-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Breaking out contact deletion into a separate object."
3648d2ea76a6649230d1fdd3dba92797ae7cfb26 30-Jun-2010 Daniel Lehmann <lehmannd@google.com> Removed done and revert. Replaced instances of LinearLayout by FrameLayout for speed.

Change-Id: Idbf4cf14431ae66de7888432189492f5896693b9
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
7fa3cd652fdaa5284fdf5fa9c306f2ca89227c1a 30-Jun-2010 Jeff Hamilton <jham@android.com> Fix some NPEs.

Change-Id: Ief1d70b3cceda812ac1368d1009e4c1aeef77351
ndroid/contacts/DialtactsActivity.java
9692f2664e678b0a264c586c70cc4a9c0ffabc21 30-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Breaking out contact deletion into a separate object.

Introducing a new type of object, Interaction,
which is neither Activity nor Fragment, but just
support for some particular function, e.g. deletion
of a contact.

Also, moving the query to the background thread.

Change-Id: I52d2607592fe3ca012284d8216003947dba5f188
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/interactions/ContactDeletionInteraction.java
df4b146f88c48e2696f5f39f67701e34d7279327 28-Jun-2010 Jeff Hamilton <jham@android.com> Add a proxy activity that loads the right UI base on screen properties.

Change-Id: If6ae100f02a024006a541f02dabaf98ade89ab5d
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/activities/ContactsFrontDoor.java
4cc85dd15d6546bcb2feb587691bfca3f1654d94 29-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing the obsolete "search results mode"

Change-Id: I07834c23916819b23aa306877cc19ba508dbb8b8
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/SearchResultsActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ndroid/contacts/list/OnContactPickerActionListener.java
ndroid/contacts/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/list/OnPostalAddressPickerActionListener.java
ndroid/contacts/list/PostalAddressPickerFragment.java
1a222007768e555f38fa8875ffc73c8a83a266af 29-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing obsolete constants

Change-Id: Ie957f3bcc34cabeda712d74e593bfa4240bdc732
ndroid/contacts/ContactsSearchManager.java
3339ab70ebd8ded7d366ed4b25f39fd5fc06b60c 29-Jun-2010 Daniel Lehmann <lehmannd@google.com> Merge "Re-use the Detail-Loader in the Editor"
bb11be3f5867453e7561cdc7bebe6a380eff6881 29-Jun-2010 Daniel Lehmann <lehmannd@google.com> Re-use the Detail-Loader in the Editor

Change-Id: Ia2f910d9f9097cfd7246f379e2abe23ea8b52d06
ndroid/contacts/model/EntitySet.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ContactEditorLoader.java
e8066ba4f003a2d107a189214cedb41005adc7ef 29-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing broken build

Change-Id: Iee140dbbf5b223fdd6e9a65f1b1bed64e284dbd5
ndroid/contacts/widget/InstrumentedLoaderManagingFragment.java
0b976fc26e8eb09919cd24a4e13370d0ddb5ff38 29-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Making a LoaderManagingFragment testable

Change-Id: Ie7da83a96dd4be34637efcc3c885e2889fede2ff
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/widget/InstrumentedLoaderManagingFragment.java
4bb61a7395e026e38f62b1e821d30dc96900c17d 26-Jun-2010 Dianne Hackborn <hackbod@google.com> Update to follow API changes.

Change-Id: I5fc3a83bc231799a835e93d08d7f66c60829cb1b
ndroid/contacts/list/JoinContactListFragment.java
f319cf8549738feca5965a598af9a310869e1f3d 26-Jun-2010 Daniel Lehmann <lehmannd@google.com> Use the form-based editor in a fragment

Change-Id: I461bc1842f5c9cf1d97f4ef285eb5d88c850134f
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/TwoPaneActivity.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ContactEditorHeaderView.java
ndroid/contacts/views/editor/ContactEditorLoader.java
ndroid/contacts/views/editor/DisplayRawContact.java
ndroid/contacts/views/editor/view/EditorItemView.java
ndroid/contacts/views/editor/view/FieldAndTypeView.java
ndroid/contacts/views/editor/view/FooterView.java
ndroid/contacts/views/editor/view/HeaderView.java
ndroid/contacts/views/editor/view/OrganizationView.java
ndroid/contacts/views/editor/view/PhotoView.java
ndroid/contacts/views/editor/view/SimpleOrStructuredView.java
ndroid/contacts/views/editor/viewModel/BaseViewModel.java
ndroid/contacts/views/editor/viewModel/DataViewModel.java
ndroid/contacts/views/editor/viewModel/EmailViewModel.java
ndroid/contacts/views/editor/viewModel/FieldAndTypeViewModel.java
ndroid/contacts/views/editor/viewModel/FooterViewModel.java
ndroid/contacts/views/editor/viewModel/GenericViewModel.java
ndroid/contacts/views/editor/viewModel/HeaderViewModel.java
ndroid/contacts/views/editor/viewModel/ImViewModel.java
ndroid/contacts/views/editor/viewModel/OrganizationViewModel.java
ndroid/contacts/views/editor/viewModel/PhotoViewModel.java
ndroid/contacts/views/editor/viewModel/StructuredNameViewModel.java
ndroid/contacts/views/editor/viewModel/StructuredPostalViewModel.java
1c5c8e23849ac3babb2bdec65ec63c190a5c40df 25-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing contacts from joining with Directory entries

Also, moving interactions with PackageManager to the bg thread
Also, skipping a trip to the DB when all we want is the default directories

Change-Id: I3813074af2a01d23d0e90cc2f7905ad1691117a3
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DirectoryListLoader.java
ndroid/contacts/list/JoinContactListFragment.java
379e709e6f153c69768c940d0410fe2fe4efc795 24-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make ImportVCardActivity tolerate screen orientation during caching vCard to be imported."
69f09d7c7a2ecfde5031ffd17c526ddade95f81f 24-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make ImportVCardActivity tolerate screen orientation during caching
vCard to be imported.

Bug: 2450447
Change-Id: Iaa24209f920a257b8d9289ae358f8d8b9b33ba73
ndroid/contacts/vcard/ImportVCardActivity.java
c4d1f526aa70a7a001288b1e186f0c26f5fdf77f 24-Jun-2010 Daniel Lehmann <lehmannd@google.com> Merge "Refinements to new editor. Some types use DataKind for input now"
72c3cd56dac0aa31072d93bdf0f1fc1f7560433f 24-Jun-2010 Daniel Lehmann <lehmannd@google.com> Refinements to new editor. Some types use DataKind for input now

Change-Id: I948fc60088d64f244957d72e3e1685b9d02c7194
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/view/EditorItemView.java
ndroid/contacts/views/editor/view/SingleFieldView.java
ndroid/contacts/views/editor/view/ViewTypes.java
ndroid/contacts/views/editor/viewModel/BaseViewModel.java
ndroid/contacts/views/editor/viewModel/FieldAndTypeViewModel.java
ndroid/contacts/views/editor/viewModel/FooterViewModel.java
ndroid/contacts/views/editor/viewModel/GenericViewModel.java
ndroid/contacts/views/editor/viewModel/HeaderViewModel.java
ndroid/contacts/views/editor/viewModel/NicknameViewModel.java
ndroid/contacts/views/editor/viewModel/NoteViewModel.java
ndroid/contacts/views/editor/viewModel/OrganizationViewModel.java
ndroid/contacts/views/editor/viewModel/PhoneViewModel.java
ndroid/contacts/views/editor/viewModel/PhotoViewModel.java
ndroid/contacts/views/editor/viewModel/SingleFieldViewModel.java
ndroid/contacts/views/editor/viewModel/StructuredNameViewModel.java
ndroid/contacts/views/editor/viewModel/StructuredPostalViewModel.java
ndroid/contacts/views/editor/viewModel/WebsiteViewModel.java
e8a9517483cfa0c4d521b834d872a8cb05482bad 24-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing join contact functionality, including search

Change-Id: I3fe1f6270175cbdd13448c1adecbad1ee96d2fac
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
8500000ab83ff320416d9698dd4b2a735759f766 23-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add a smoke test for ImportProcessor."
7b3b27eff8f9433e495232640d28247f096f3c8f 23-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add a smoke test for ImportProcessor.

Bug: 2733143
Change-Id: Iec63217c1b7be04ab0438bb76be96e70dc26e5d6
ndroid/contacts/vcard/ImportProcessor.java
80d527c94389cab477e2c75ded03eec877ea6835 23-Jun-2010 Daniel Lehmann <lehmannd@google.com> Replace the ListView-compatibility code by a real LinearLayout

Change-Id: I58881d580e6bcfbec3ad2cb2d0962cbeee6412a1
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/MyListView.java
ndroid/contacts/views/editor/viewModel/BaseViewModel.java
ndroid/contacts/views/editor/viewModel/FieldAndTypeViewModel.java
ndroid/contacts/views/editor/viewModel/FooterViewModel.java
ndroid/contacts/views/editor/viewModel/HeaderViewModel.java
ndroid/contacts/views/editor/viewModel/OrganizationViewModel.java
ndroid/contacts/views/editor/viewModel/PhotoViewModel.java
ndroid/contacts/views/editor/viewModel/SingleFieldViewModel.java
ndroid/contacts/views/editor/viewModel/StructuredNameViewModel.java
ndroid/contacts/views/editor/viewModel/StructuredPostalViewModel.java
83633cce0b7af22f24a44241b5a9b26ff7960563 23-Jun-2010 Daniel Lehmann <lehmannd@google.com> Create Inline-Editors for every existing type, remove some intermediate code for modal editors

Change-Id: Ibd137797d09db0ca194c0468890290f56050d83c
ndroid/contacts/activities/ContactFieldEditorActivity.java
ndroid/contacts/activities/TwoPaneActivity.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ContactFieldEditorBaseFragment.java
ndroid/contacts/views/editor/ContactFieldEditorEmailFragment.java
ndroid/contacts/views/editor/view/DataView.java
ndroid/contacts/views/editor/view/OrganizationView.java
ndroid/contacts/views/editor/view/SimpleOrStructuredView.java
ndroid/contacts/views/editor/view/SingleFieldView.java
ndroid/contacts/views/editor/view/ViewTypes.java
ndroid/contacts/views/editor/viewModel/BaseViewModel.java
ndroid/contacts/views/editor/viewModel/DataViewModel.java
ndroid/contacts/views/editor/viewModel/EmailViewModel.java
ndroid/contacts/views/editor/viewModel/FieldAndTypeViewModel.java
ndroid/contacts/views/editor/viewModel/ImViewModel.java
ndroid/contacts/views/editor/viewModel/NicknameViewModel.java
ndroid/contacts/views/editor/viewModel/NoteViewModel.java
ndroid/contacts/views/editor/viewModel/OrganizationViewModel.java
ndroid/contacts/views/editor/viewModel/PhoneViewModel.java
ndroid/contacts/views/editor/viewModel/PhotoViewModel.java
ndroid/contacts/views/editor/viewModel/SingleFieldViewModel.java
ndroid/contacts/views/editor/viewModel/StructuredNameViewModel.java
ndroid/contacts/views/editor/viewModel/StructuredPostalViewModel.java
ndroid/contacts/views/editor/viewModel/WebsiteViewModel.java
db12d624126d30b46c3098b5467328e667225dcc 22-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing direct dial shortcut maker"
f3c83c8a0c2c88a092ab69760684c8a6bf47fc46 22-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Refactoring ContactEntryListFragment/Adapter"
b452ffb3df96fc77afd4e2b9b30a050f370d2781 22-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Refactoring ContactEntryListFragment/Adapter

Refactoring for better separation of their respective roles.

Change-Id: Ie11e92a98f31f6a4c0d097109ef1f3977adb5f74
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DirectoryPartition.java
ndroid/contacts/widget/CompositeCursorAdapter.java
b73b880e35221d994c1dd739268741baeabe3f9c 22-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Notification fix 2.

Bug: 2733143
Change-Id: I369ca66f4fdb4d29fb20b8d8c451e6f1cf1e5f22
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
ndroid/contacts/vcard/ImportVCardActivity.java
32acae5f2aeafea8181aea97604eec88b648e340 22-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Modify notification procedure.

Bug: 2733143
Change-Id: Id1982857288301f56f51a958b3176adecf45959b
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
d8fb81a0024d30c027ea6ebf57d29d3ff10453fb 09-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactoring vCard importer/exporter.

Rename ImportVCardService to VCardService and make it responsible for all the import/export works.
The service itself asks ImportProcessor/ExportProcessor to handle each request.
This implementation seems much more easier to be tested than the previous ones.

Bug: 2733143

Change-Id: I7b7d391e4ba294f74c8bbcdfb053368b61b498ca
ndroid/contacts/vcard/ExportProcessor.java
ndroid/contacts/vcard/ExportRequest.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProcessor.java
ndroid/contacts/vcard/ImportProgressNotifier.java
ndroid/contacts/vcard/ImportRequest.java
ndroid/contacts/vcard/ImportRequestProcessor.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/ImportVCardService.java
ndroid/contacts/vcard/ThreadStarter.java
ndroid/contacts/vcard/VCardService.java
cc8bfc88f5c066b4e1b8d4a08eee52164decf24f 22-Jun-2010 Daniel Lehmann <lehmannd@google.com> Make the editor in the two-pane activity work

Change-Id: Ie468cbedf70a87084117b933e646f3af87746377
ndroid/contacts/activities/TwoPaneActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
3a1207729e6ffdeeb4b17f2bf22b33b2f7e88394 22-Jun-2010 Daniel Lehmann <lehmannd@google.com> Some inline editing work

Change-Id: I3d83f7407dd28605e9ea780f1d488fd291ac77ce
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/DisplayRawContact.java
ndroid/contacts/views/editor/MyListView.java
ndroid/contacts/views/editor/view/DataView.java
ndroid/contacts/views/editor/view/FieldAndTypeView.java
ndroid/contacts/views/editor/view/ViewTypes.java
ndroid/contacts/views/editor/viewModel/BaseViewModel.java
ndroid/contacts/views/editor/viewModel/DataViewModel.java
ndroid/contacts/views/editor/viewModel/EmailViewModel.java
ndroid/contacts/views/editor/viewModel/FieldAndTypeViewModel.java
ndroid/contacts/views/editor/viewModel/FooterViewModel.java
ndroid/contacts/views/editor/viewModel/HeaderViewModel.java
ndroid/contacts/views/editor/viewModel/PhoneViewModel.java
ndroid/contacts/views/editor/viewModel/ViewModelTypes.java
14e58c8bac7ae357120d93e181986a5d7382aa7c 21-Jun-2010 The Android Open Source Project <initial-contribution@android.com> am f0812395: merge from froyo-plus-aosp

Merge commit 'f081239537fd7cfc42b7171973a5aa679213aa54'

* commit 'f081239537fd7cfc42b7171973a5aa679213aa54':
Disabled verbose logging
b85b83ee4adc8b72fe68499f669ca530d58e6815 19-Jun-2010 Daniel Lehmann <lehmannd@google.com> Refactor and rename to prepare for inline editing

Change-Id: I084755c762704a5e2ea7272d4f1e9888266c2707
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/DisplayRawContact.java
ndroid/contacts/views/editor/typeViews/DataView.java
ndroid/contacts/views/editor/typeViews/FooterView.java
ndroid/contacts/views/editor/typeViews/HeaderView.java
ndroid/contacts/views/editor/typeViews/PhotoView.java
ndroid/contacts/views/editor/view/DataView.java
ndroid/contacts/views/editor/view/FooterView.java
ndroid/contacts/views/editor/view/HeaderView.java
ndroid/contacts/views/editor/view/PhotoView.java
ndroid/contacts/views/editor/viewModel/BaseViewModel.java
ndroid/contacts/views/editor/viewModel/DataViewModel.java
ndroid/contacts/views/editor/viewModel/FooterViewModel.java
ndroid/contacts/views/editor/viewModel/HeaderViewModel.java
ndroid/contacts/views/editor/viewModel/ViewModelTypes.java
50480399c88ead1d743deb5c8b7c6b2d530c4914 18-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing direct dial shortcut maker

Change-Id: I8ef26983a4ef08a964cfca31ef2373a8fba0ea06
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
0c95b1fc5363a102e65d6159d12d0f6e8e48c2a1 17-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing search in the contact shortcut maker"
d3758b00601ce3ff8c4336b45cc1249806e52c13 17-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing search in the contact shortcut maker

Change-Id: Ie32c35b01d3fcf7c5b4858c5d46268dc659c63d7
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
136545818e2f3bb383d90ae5909d13141ef0a91f 17-Jun-2010 Daniel Lehmann <lehmannd@google.com> Merge "Refactor list-caches into Custom Views with Listeners"
e8767a1136d2a2f9cb3e3ca5f44b2142baab9709 17-Jun-2010 Daniel Lehmann <lehmannd@google.com> Refactor list-caches into Custom Views with Listeners

Change-Id: Ie8e1c3713bc609d64725506e2d5cd8141d15c3e7
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ContactFieldEditorBaseFragment.java
ndroid/contacts/views/editor/typeViews/DataView.java
ndroid/contacts/views/editor/typeViews/FooterView.java
ndroid/contacts/views/editor/typeViews/HeaderView.java
ndroid/contacts/views/editor/typeViews/PhotoView.java
d621f71428a7fd1aa15bd101423c9a690b44ea07 17-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact shortcut creator

Change-Id: I1f5d5166be24c3b824aade5c68fe2f5ed9f612d8
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
65914fbf2cdca3ed64865cae86becb7ef00eb928 17-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing ArrayOutOfBounds in Strequent view

Change-Id: Ia21b5d4473ed764c4c427016aeb07b33d2c55b7b
ndroid/contacts/list/StrequentContactListAdapter.java
469c6cc2226a9454bda86cd5aa95e771ab09fdb8 17-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling name animation in the Strequent view

Change-Id: I83438184f0b953bf1fd11421f1356c064350dae2
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/StrequentContactListFragment.java
ndroid/contacts/widget/TextHighlightingAnimation.java
f52d9878819d55933ed8152ffc8ae8fcdc54210d 17-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an NPE in Strequent view

Change-Id: Icf41f47a45829e3aae741d99a65bb91554977f9b
ndroid/contacts/list/StrequentContactListAdapter.java
b9617ebc7aadaf66ec61306e0741c72474910295 17-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Displaying the pinned indexer header again

Change-Id: Ice25f2d7d643ea921e77cefe030cb69c9b7a6827
ndroid/contacts/widget/PinnedHeaderListView.java
58dd08283defcd5d8696e1c4485bb5f81a624fcc 17-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Making the aizy visibile on the initial data load

Change-Id: I0b0e8d480c273c4f72037a6f21fe429544b4c8df
ndroid/contacts/list/ContactEntryListFragment.java
8fc63efe0ec5252153416fbc313d163247ae5426 16-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing cursor leaks

Change-Id: I0cea0615134d92fe8569262099de4ab13d75e5ef
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/widget/CompositeCursorAdapter.java
b2257cfce7c9bbdb37e5fa9a2640ea76ce595e86 15-Jun-2010 Daniel Lehmann <lehmannd@google.com> Clean up header view. Speed up image loading by not spawning yet another async-task

Bug:2733187
Change-Id: Ibb59d9866af0b86e7dfbc89eecfec2b95091f889
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
ec486124286ab16faae07e548163f1029528e5aa 15-Jun-2010 The Android Open Source Project <initial-contribution@android.com> merge from open-source master

Change-Id: Ica186e494a0a2693a5498639448c36d17bb2959f
19316d09f5d74028aea7557d93354a57645d0406 15-Jun-2010 Jean-Baptiste Queru <jbq@google.com> Merge "Disabled verbose logging"
899df4a5a48e8a579ca842d303679975c3cef947 15-Jun-2010 Daniel Lehmann <lehmannd@google.com> A-Z scroller in Contact List

Change-Id: Iab421c26a54371e2cb543bcbe53c712b47f52d06
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAizyView.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/widget/IndexerListAdapter.java
173ffe1300afa6a88a7f0a924adade121e564274 15-Jun-2010 Daniel Lehmann <lehmannd@google.com> More work on modal field editors

Bug:2680726
Change-Id: I6685fd6d20358bc2f83b2b81294106e86db0fcee
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactFieldEditorActivity.java
ndroid/contacts/views/ContactSaveService.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ContactFieldEditorBaseFragment.java
ndroid/contacts/views/editor/ContactFieldEditorEmailFragment.java
c9625dea3fae0b656a77d971528b525ad9bda046 14-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Move vCard related codes to com.android.contacts.vcard."
f141cdf7d7bd3a8acb9bab373dc370da73273718 14-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Canceling running queries before starting new ones.

Change-Id: Icd7837cf44d7f33a6027961640205f23d0158a72
ndroid/contacts/list/ContactEntryListFragment.java
94d648151fd38445c59afd05a9e833dc3c5df565 11-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Showing "searching..." in contact search

Change-Id: I41d2fbda1f66e293b08da3e72eb854089dc36509
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DirectoryPartition.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
da4b6006b3d6c4e90dccf8cb87f56a6f2bbcddef 11-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Animating pinned headers

Change-Id: Ic5abe4d693ee7106ffc909069d69bb3ef46e57bc
ndroid/contacts/widget/IndexerListAdapter.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
fcfbe6a92a8a34b4a6ca784de02287647b903bb2 10-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Making primary search results appear before secondary

Change-Id: I36606fd699eb54214ac280c63c040bc021848b3b
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DirectoryPartition.java
1b918e58f4a3ae8d32af83f6f69bbf2de57a94f9 08-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Move vCard related codes to com.android.contacts.vcard.

Bug: 2733143
Change-Id: I35ddb7473a78131b21311e16583390f5f799c195
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ExportVCardActivity.java
ndroid/contacts/ImportProgressNotifier.java
ndroid/contacts/ImportRequest.java
ndroid/contacts/ImportRequestProcessor.java
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ImportVCardService.java
ndroid/contacts/SelectAccountActivity.java
ndroid/contacts/util/AccountSelectionUtil.java
ndroid/contacts/vcard/ExportVCardActivity.java
ndroid/contacts/vcard/ImportProgressNotifier.java
ndroid/contacts/vcard/ImportRequest.java
ndroid/contacts/vcard/ImportRequestProcessor.java
ndroid/contacts/vcard/ImportVCardActivity.java
ndroid/contacts/vcard/ImportVCardService.java
ndroid/contacts/vcard/SelectAccountActivity.java
eb4d1bf9868dfddd958d8f028e36a4d2da7a8731 09-Jun-2010 Dianne Hackborn <hackbod@google.com> Follow Fragment API change: framework now handles menus.

Change-Id: I1bb8d4616e2b09a9c7139d4f4f5a5267c55c96e9
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/editor/ContactEditorFragment.java
0f56b3eee5b6ac9a4f6f1fcbf5e1730c049402af 08-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Encapsulating all fields on DirectoryPartition

Change-Id: I903c720d0df1ef5bf46064f03a889389b31691fe
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DirectoryPartition.java
fe3f79046be7012349fe9cac0fa89c00945ce737 08-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Making Directory search UI work in the Goop mode

Change-Id: I5ed3909179b7f65a9defe3ab5b50ebe07521f9ca
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/widget/IndexerListAdapter.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
b7dc460c4216ad14ce13bebf8060d59b2e46954e 08-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an IllegalStateException in contact search activity

Change-Id: I1299961b1f34d7d342752a3c78fd73a20410a1cd
ndroid/contacts/widget/CompositeCursorAdapter.java
9d6f345bb376e68e2df40c691030402dd3d0cd86 08-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing search activity from crashing onStop

Change-Id: Id240a3e096f00b3ee5bdf61ae0256f66ba2cf23c
ndroid/contacts/list/ContactEntryListFragment.java
8314142636994e67c8c39aedfb7ac5b3f0029f47 08-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Making pinned headers tappable

Change-Id: Ib419c71eb515592ebd6872963ed6b943426cc0e6
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
d5061fe322880ee993ea18db331fbc1110ddc538 08-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Initial integration with Directory API

Change-Id: I121e1e3b5a365204ffdd736b00133fd97529719e
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/DirectoryPartition.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/ProviderStatusLoader.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/widget/CompositeCursorAdapter.java
ndroid/contacts/widget/IndexerListAdapter.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListDemoActivity.java
ndroid/contacts/widget/PinnedHeaderListView.java
0e9c4b51b0418c58eb8033021c6ce7edb7f1c156 07-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add error reason for OutOfMemoryError and make importer use it.

Change-Id: I4c61740c3bebae82cc180c6374c41fcc603e33cf
ndroid/contacts/ImportVCardActivity.java
cdef2b60aa87b1178033fdc964a3402386c03d7c 07-Jun-2010 Daniel Lehmann <lehmannd@google.com> Modal field editors

Bug:2680726
Change-Id: I167b02c50653abfa22ed72023993c9dd31f752a9
ndroid/contacts/Collapser.java
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditActivity.java
ndroid/contacts/activities/ContactEditorActivity.java
ndroid/contacts/activities/ContactFieldEditorActivity.java
ndroid/contacts/activities/TwoPaneActivity.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/views/ContactLoader.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailHeaderView.java
ndroid/contacts/views/detail/ContactDetailLoader.java
ndroid/contacts/views/edit/ContactEditFragment.java
ndroid/contacts/views/edit/ContactEditLoader.java
ndroid/contacts/views/editor/ContactEditorFragment.java
ndroid/contacts/views/editor/ContactEditorHeaderView.java
ndroid/contacts/views/editor/ContactFieldEditorBaseFragment.java
ndroid/contacts/views/editor/ContactFieldEditorEmailFragment.java
ef41f8866e8e7d52e04907f7282adcf5f4749f25 06-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactor ImportVCardService. Split the Service into several components.

Bug: 2733143
Change-Id: Iefcb0919d5c740f1ae8a63e5dc8095a39dbd0cd5
ndroid/contacts/ImportProgressNotifier.java
ndroid/contacts/ImportRequest.java
ndroid/contacts/ImportRequestProcessor.java
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ImportVCardService.java
915723665339c73c9bdebc7bf8ef56c414602c2c 06-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactoring again. Make importer handle ServiceConnection properly.

Bug: 2733143
Change-Id: I3189ca396da4d661a05530c02a3c46df6db24701
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ImportVCardService.java
476004be0c4907b462b3d699671d9e1cff1a7bd7 06-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make ImportVCardService aware of multiple requests from Activity and
unit test friendly.

This change works fine but is not sufficient enough. Need to be
refactored more.

Bug: 2733143
Change-Id: Icea90e68bb61591d67e03a6c22a5046c42e606b8
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ImportVCardService.java
49e168be624734306bcb0402d6813a0dfef8b752 05-Jun-2010 Christian Mehlmauer <FireFart@gmail.com> Disabled verbose logging

Change-Id: I22d4175a9ba233809ba56481d9bde234ff44dcd1
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/ui/QuickContactActivity.java
0fb96d685252e453ad179aa6e510e889a816dddd 03-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing obsolete API and fixing ArrayIndexOutOfBoundsException

Change-Id: I42c2b7352bf52b1fee6fbde23681d770860a6fce
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PostalAddressPickerFragment.java
ndroid/contacts/list/StrequentContactListFragment.java
bba62ac4a2d519be8e4896261d14b168fa49fbdf 03-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing createView -> onCreateView and making it return void

Change-Id: I6b5994f9fcae21d17e8027da96ba28ce13ab070e
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
969d578567c6929f36a72ef979ffa41ab9236787 03-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in Strequent contacts

Change-Id: Ie01164e6b8b84544c59028471ed7559ce4012dbf
ndroid/contacts/list/StrequentContactListAdapter.java
50bfc2a4f7ca8cdd54a18f97e055eb5f9bace9c0 03-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Reworking contacts list adapters for the new CompositeCursorAdapter API"
e124722daa8a4b31308d53e3f0457c3b66a20ae5 03-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Reworking contacts list adapters for the new CompositeCursorAdapter API

Also redesigning PinnedHeaderListAdapter

Change-Id: Ia4a2e7bb449fc82e1c3ac9b7a3f0c54a8e4d9d38
ndroid/contacts/ContactEntryListView.java
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/JoinContactLoader.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressPickerFragment.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/list/StrequentContactListFragment.java
ndroid/contacts/widget/IndexerListAdapter.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListDemoActivity.java
ndroid/contacts/widget/PinnedHeaderListView.java
35542e8f8f17d6f29dbc24ec7a6e7e50d0dfeaf8 02-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Tiny format fix.

Change-Id: I15efb05462d0df8f3a0fea8c44a1367e0f50f4b5
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ImportVCardService.java
f700c53259afc8f61dadfc4e9b375a13a59326cd 02-Jun-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make ImportVCardActivity cache vCard file into local data directory.

Bug: 2612502
Change-Id: I169bc481ec42ac97d48c91efbff6ad53df986008
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ImportVCardService.java
e358437074b1a6f5755ffb49909a121a2ef65615 02-Jun-2010 Dmitri Plotnikov <dplotnikov@google.com> Introducing CompositeCursorAdapter

Change-Id: Id3b33c0c4fe0cd21ff33c7439e23c95e1d970a34
ndroid/contacts/widget/CompositeCursorAdapter.java
c6c01d51f223f74c8c9382bf336e44b65a25e95d 24-May-2010 Nicolas Catania <niko@google.com> Merge "Cleaned up dialButtonPressed."
d66b647fd85c488b90e15944c130788635ddedcd 22-May-2010 Daisuke Miyakawa <dmiyakawa@google.com> Modify ImportVCardService so that it does not rely on a stale constructor.

We are not 100% sure whether this change is really correct though all tests are in green.

Related change: I16e487fa

Change-Id: I0a5aa1ea587c6b2d25ce90ba0a23bc14ea8a12f5
ndroid/contacts/ImportVCardService.java
e504f6dbb39c923cf361b6f53c8c47d40e7ebd15 21-May-2010 Nicolas Catania <niko@google.com> Cleaned up dialButtonPressed.

Made the hard button match the behaviour of the soft button.

In dialButtonPressed:
Moved the comment in the method commen.
Added couple of comments.

Removed the sendflash local parameter, in the case the dial string
is empty we never finish.

Intents are created in block they are used (flash and regular dial)
Added helpers to biuld regular/VM/flash intents.

tested:
On passion:
Last dialed number works even in an add call scenario.
Regular dial works.

On sholes:
Regular dial works.
Last dialed number works when not in call.
Flash is sent when trying to add a call.

Change-Id: I736b108aef90b87f043e68604ffb9b1adbc03f96
ndroid/contacts/TwelveKeyDialer.java
78e7296c07b16d05dc5af722e17e619d68d72444 20-May-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make Contacts app use static library of vCard."
ceb01955dfa7fd4bf95a6b9521ad90b1604b2e55 20-May-2010 Dianne Hackborn <hackbod@google.com> Update to follow fragment APIs.

Change-Id: I921f28b3d6e6a4894b121efae5369107f2bb30f9
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
38328377d2e852daa7cd265043d22a8e6679a625 20-May-2010 Daniel Lehmann <lehmannd@google.com> Move comments to make them in visible by default in Eclipse

Change-Id: Ie3d4ee87f04a3d83ce99a76bba874102f74965ad
ndroid/contacts/views/edit/ContactEditFragment.java
eaa3507bcd1dfba66cb349919963e493dcc4927a 18-May-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make Contacts app use static library of vCard.

See also I435e1057

Bug: 2689523
Change-Id: I1fdd3bd609688d712eebfbc227a4ed3348e72240
ndroid/contacts/ExportVCardActivity.java
ndroid/contacts/ImportVCardService.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
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/JoinContactLoader.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/ProviderStatusLoader.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailLoader.java
ndroid/contacts/views/edit/ContactEditFragment.java
ndroid/contacts/views/edit/ContactEditLoader.java
9c3f337422f5147220d85c0779daf6c10c4e96f7 17-May-2010 Daniel Lehmann <lehmannd@google.com> Remove instance hacks, now that findFragmentById works

Change-Id: Id31aa717299a575ed8612b197f72e71bab508174
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditActivity.java
ndroid/contacts/activities/TwoPaneActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/edit/ContactEditFragment.java
d00e309f1a0d24d153930a1aae05a9e960f83c46 15-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Initial integration of search into the two-pane activity"
fda092b7d54e9c709ec759cb0b922010dee4daa6 15-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Initial integration of search into the two-pane activity

Change-Id: I86277648716e7408ff65282c07a5d0a4f0b7d183
ndroid/contacts/activities/TwoPaneActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
4d1fc85a1449bc7362e325f503a3eea8647eb105 15-May-2010 Daniel Lehmann <lehmannd@google.com> Merge "Only show populated fields and have an Add button instead"
bb556954e29ae0700b729f128d8cd09ecdd91ee3 15-May-2010 Daniel Lehmann <lehmannd@google.com> Only show populated fields and have an Add button instead

Bug: 2680699
Change-Id: I42d27ce9df4a604daaf70a2715f4c2cf0095cfcb
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
fe42e55dfc483b69c8a7831c16fbdbc5ab19929e 14-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Breaking search UI out of the contact list fragment

Change-Id: I6d0dbdccaf6a55b380984710989fe8a1f674d3fd
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/widget/SearchEditText.java
884e393af339ba1357dd1aea4c8e821396c214b9 14-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Cleaning up the implementation of Intents.SEARCH_SUGGESTION_CLICKED

Change-Id: Ib29aec1eb31bee61c594e3fd9d745ff073358bd7
ndroid/contacts/CallContactActivity.java
ndroid/contacts/PhoneDisambigDialog.java
ndroid/contacts/list/CallOrSmsInitiator.java
ndroid/contacts/list/ContactsIntentResolver.java
1ce1e7cf261994e46e6fe85ed4d445241ad55f16 14-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Refactoring contact list mode resolution.

Also, removing tons of obsolete code.

Change-Id: Ib661fae4f7568e18bb98d5f5e85d1ba75dc32cdb
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsSearchManager.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/ContactsRequest.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressPickerFragment.java
92a2b031b84973fcf6b455830aa381644a834946 13-May-2010 Dianne Hackborn <hackbod@google.com> Merge "Update to match fragment APIs."
6d2f27f5a8b1ccee22bb2e630d5160b69af7c10c 21-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Add SelectAccountActivity and make vCard importer use it.

Change-Id: Id7b39c82b506e90775bd4e0fada0045c11fccfd1
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/SelectAccountActivity.java
84df2b6fc59ad185a6fdc4f46f636e7783e5f1ae 13-May-2010 Dianne Hackborn <hackbod@google.com> Update to match fragment APIs.

Change-Id: I25ed185741b1dd16532216110f4610d9082dbc12
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/MultiplePhonePickerFragment.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/edit/ContactEditFragment.java
b7a56f694a8fa3bead4f840c1afa764571e03a19 13-May-2010 Daniel Lehmann <lehmannd@google.com> Added a list of TODOs so that these don't get lost later

Bug: 2579760
Change-Id: I4283f40b598bb503d52429eece3db20bb80f406e
ndroid/contacts/views/edit/ContactEditFragment.java
5a03880a8e05de20f74d1621e5903a9c529397e3 13-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Making UI.LIST_STARRED_ACTION and UI.LIST_FREQUENT_ACTION work with loaders/fragments.

Change-Id: I14dd9466068f6a5768494b6befd9ee374fb49e6c
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/list/StrequentContactListFragment.java
dd56f01fb6fd313e9286139bc4e8dfe8e9ecfed2 13-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Making UI.LIST_CONTACTS_WITH_PHONES_ACTION work with loaders/fragments.

Change-Id: If0929f2a06487ac60ca9632c6cb7d1ae3a59e5a3
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
792a9eacaf73abb29a7ea2020f4ea63368d83258 12-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Making UI.LIST_ALL_CONTACTS_ACTION work with loaders/fragments.

Change-Id: If529dc8294439b6b2d2ef91cbea95dc7b45859fc
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
4b295cd1eda3db41decc8100413e942890fbcd17 12-May-2010 Daniel Lehmann <lehmannd@google.com> Merge "Implemented all missing functionality from Editor-Fragment (minus Statehandling)"
37b775bec3119213007dd020113e9939722a90a6 12-May-2010 Daniel Lehmann <lehmannd@google.com> Implemented all missing functionality from Editor-Fragment (minus Statehandling)

Bug: 2579760
Change-Id: Ia4c6a1daa29a369ea0a6aa329841a8c357d3c847
ndroid/contacts/activities/ContactEditActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/edit/ContactEditFragment.java
38fb9c7fdfd99f143113634c548139407c234df3 12-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Multipicker is now running in the loader/fragment pattern."
95530d97f7761df95a85380f5f03b302a241b2a8 12-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Multipicker is now running in the loader/fragment pattern.

Search and menu are TBD.

Change-Id: I9373d832b0352c247ef7b0a557099585c514bdb3
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/MultiplePhoneExtraAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
ndroid/contacts/list/MultiplePhonePickerFragment.java
ndroid/contacts/list/MultiplePhonePickerItemView.java
ndroid/contacts/list/MultiplePhoneSelection.java
ndroid/contacts/list/OnMultiplePhoneNumberPickerActionListener.java
ndroid/contacts/list/PhoneNumberListAdapter.java
25a0282e968ebcdec6510bdb766ffba79b6fb8c4 12-May-2010 Daniel Lehmann <lehmannd@google.com> Changed fragments so that they can be used in Xml. Made demo 2-pane activity working

Bug: 2579760

Change-Id: I1d499643efd5911aa1387bfdd97b7b973c4a929a
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditActivity.java
ndroid/contacts/activities/TwoPaneActivity.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/edit/ContactEditFragment.java
aeb7846f5da15c000ab77960797a598511acfbd6 21-Feb-2010 David Sobreira Marques <dpsmarques@gmail.com> Issue 2407: Show confirmation dialog before clearing call log.

Signed-off-by: David Sobreira Marques <dpsmarques@gmail.com>
Change-Id: I9c89eef6c4c940406e1238810f13959c41c07908
ndroid/contacts/RecentCallsListActivity.java
e4d32d92b10c1c1ce89c7a3ee4111a030e6afcf9 11-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Join activity is converted to loaders/fragments

Change-Id: I3d02fac52daffa5e0921a05fcad6932bc94e7274
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/JoinContactLoader.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
1db578ecef6e10faca76ea05a3e176b97de0c8a5 11-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Making DefaultContactBrowserListFragment auto-configured"
9716d05319f62719019496ee7a97488c2ab9a9a8 11-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Making DefaultContactBrowserListFragment auto-configured

Change-Id: I0d200a04e0c6a525997ae7fea25b95c54de17bc3
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
18f104fa8c167a510b2cca3c15a43833c9a54c7c 08-May-2010 Daniel Lehmann <lehmannd@google.com> Refactor Contact-Editor and Contact-Viewer.

Bug:2579760

Change-Id: Id61cc6fbc2b4def72df012cca3ac3c0185b583bb
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/activities/ContactEditActivity.java
ndroid/contacts/views/detail/ContactDetailFragment.java
ndroid/contacts/views/detail/ContactDetailLoader.java
ndroid/contacts/views/detail/ContactLoader.java
ndroid/contacts/views/detail/ContactPresenter.java
ndroid/contacts/views/edit/ContactEditFragment.java
ndroid/contacts/views/edit/ContactEditLoader.java
8b15a725a3ff28354616f61791a12372cc513fe3 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing position adjustment for contextual menu

Change-Id: Ifecccc9451a210876fb67ab2cf7f708f13bad1e8
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
c28390b65183a2e1bf85f381ba27bf846706c04a 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Now supporting legacy postal address picker in the Loader/Fragment solution.

Change-Id: I7cbb9dc455966b0f5d5e3537596410f6216c9fe0
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/LegacyPostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressPickerFragment.java
a3569b2e2c9eed2c09449ec8ed64909337462f14 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Now supporting legacy phone number picker in the Loader/Fragment solution.

Change-Id: Id4e46eb8a4b2b5b2f722a98375d49acbf6cc69da
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/LegacyPhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
413772711054c9fca8bf0c22bc81f613c883ae7e 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Now supporting legacy contact picker in the Loader/Fragment solution.

(Except search)

Change-Id: Ia36f286dc3009f0a388be2802d97ee296d74d1e8
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/LegacyContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
1540674a23a2ac0277a5aca3fa4ed41a6e1b74c3 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Clean-up. Removing some code that is no longer needed.

As the Loader/Fragment solution is now mostly working,
we can remove temporary dependencies on the activity
that we have been maintaining during the refactoring.

Change-Id: I092d99cb174e3bb5c27fd78af2d4a4356e05de68
ndroid/contacts/ContactsApplicationController.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactListFragment.java
4b4681dbdedf60c5828ed7a6990097528df635f2 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Bringing back contacts display preferences.

Cleaning up some life-cycle management issues.

Change-Id: Ifd29b898e46eb5bb713d65327d80cbf7aa562933
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressPickerFragment.java
ndroid/contacts/list/StrequentContactListFragment.java
c9bf155851484c49bcb1bced7cb7e88d46c72558 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing save state management for the contact list.

Interestingly enough, onRestoreSavedInstance is NOT called
during the onRestart() sequence!

Change-Id: I1b58f369c4ed03d3d778137d2e02162c047fc1e4
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
12def9de851b8803b95038694563770104306864 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Transferred handling of provider status from activity to fragment.

Not very happy with the design. It would probably be a good
idea to separate provider status handling into a class of
its own.

Change-Id: I18a6ec89620cf2561b3d8549d8bd328cb8cdb0bf
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ProviderStatusLoader.java
68e32a3e3248a36f90e43e4f970ebe0196e74e43 07-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Configuring empty list text for Loader/Fragment solution

Change-Id: I157a296e5fefeb6bdf5ffab9ebdc3883665c367a
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/StrequentContactListFragment.java
d820cdbefa159bdf4c281ac8102805fe9a165379 06-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Postal address picker now works with Loaders and Fragments.

(except search)

Change-Id: Ib7f20270a71a5234d505696e76e1f97f659eef22
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/OnPostalAddressPickerActionListener.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/PostalAddressListAdapter.java
ndroid/contacts/list/PostalAddressPickerFragment.java
02935722ce2fcc3bd839e3571a08b8b79d70b8ad 06-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Making call/sms shortcuts work with Loaders and Fragments.

Change-Id: Ie88fb17e0e533e8868c68f8e74d609df17310e35
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/ShortcutIntentBuilder.java
ndroid/contacts/util/Constants.java
8a7831944232fd01740492b39bc67d746213b82b 06-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Making contact shortcuts work again (except new contact).

Also turning shortcut creation into a background task.

Change-Id: I9f36bb9c824bce519a4852b728f480a036c42bb0
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/OnContactPickerActionListener.java
ndroid/contacts/list/ShortcutIntentBuilder.java
b993022be971190de0d375b4ff75812299d0b2ac 06-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Restoring some of the phone number picker with Loaders and Fragments

Also, adding support for pictures and section headers in
the phone picker.

Change-Id: Icc86442c6b45a942998204f2d6e8e3a5aff70de0
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/OnPhoneNumberPickerActionListener.java
ndroid/contacts/list/PhoneNumberListAdapter.java
ndroid/contacts/list/PhoneNumberPickerFragment.java
ndroid/contacts/list/StrequentContactListFragment.java
97c281fd4b6a9724f79cfd7dbaf4b4b07300c53c 06-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving phonetic name into a separate line

Change-Id: If5c28df5ac865322d736342f3bb45e7c9ca6cc7f
ndroid/contacts/list/ContactListItemView.java
7e6d63b52bb694bd71bef9d2b6b17d9ad27b5fb3 06-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in PinnedHeaderListView

Change-Id: I4f0227edf9a21c1019f306303b4a6f133e38ab9b
ndroid/contacts/widget/PinnedHeaderListView.java
b6c7c6f8feddc476f84e28289fe9491327db1788 05-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Contact picker restored to some extent

Change-Id: Ib3b5f099dd479a73c944918c8e88e85633c375af
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
7c5286ed8ba0d7fbe3683b560f69b3a2d4ff1e2a 05-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Bringing Call button back to Strequent view

Change-Id: I5281f6aa3d866a514b918b2add8eff6caa4b0762
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/PhoneDisambigDialog.java
ndroid/contacts/list/CallOrSmsInitiator.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/list/StrequentContactListFragment.java
238d9847d8f2ace658fb7337c8847a2088ddc9d1 04-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Restoring Strequents in Contacts

Call button will come back in the next CL.

Change-Id: I98b1991f7ac4cd12a252090634874ef90551e96f
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/DefaultContactBrowseListFragment.java
ndroid/contacts/list/DefaultContactListAdapter.java
ndroid/contacts/list/StrequentContactListAdapter.java
ndroid/contacts/list/StrequentContactListFragment.java
8e7a5a7cbe3056347613eb58ae144b79ae5b4aee 04-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Showing contact count above the contact list

Change-Id: I5eb7632660254aa176129a01c1db490941ff521a
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/widget/PinnedHeaderListView.java
beec212d48046b4a51671934609fce19131b100c 04-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Pinned header optimizations and fixes

Change-Id: I4a53d55f18dc7b4e21518f8c4c653a7ecde8470e
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
1a848b1f6ab34d9cfe90ed13f20bb9b5131246d0 03-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Attempting to fix the pinned header in contacts.

Partial - work in progress.

Change-Id: I8df0115df84e86be878f1b1b6462a6eb9380863f
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
82eceeb6cc7ec85af5dd6878e64da640071290a8 03-May-2010 Daniel Lehmann <lehmannd@google.com> Merge "Allow overwriting "All Contacts" by a custom text (e.g. "All Friends") Bug:2116002"
e44b043f8a49c0974bd2f705f98ac3277aaf1b67 01-May-2010 Dmitri Plotnikov <dplotnikov@google.com> (cont) Now using loaders and LoaderManagingFragment

The change is partial and for now Favorites and
lots of other things are broken.

Change-Id: I1eb4f692e2d427473b179a3b3b00ef5233507f67
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ContactListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/widget/PinnedHeaderListView.java
6340038524b0b11cfdc07c553e1f5669812b48d1 30-Apr-2010 Daniel Lehmann <lehmannd@google.com> Allow overwriting "All Contacts" by a custom text (e.g. "All Friends")
Bug:2116002

Change-Id: Idfc43ffc26855cbe862e8e5de73e0529ab74f0ed
ndroid/contacts/ui/ContactsPreferencesActivity.java
ndroid/contacts/util/LocalizedNameResolver.java
b6170ca7cf30013559a3cc012400f416e0cef978 30-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Now using loaders and LoaderManagingFragment

The change is partial and for now Favorites and
lots of other things are broken.

Change-Id: I8dc6104e499c094ea344f4ecd0819386150a8b0c
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactItemListAdapter.java
fc06bd55e31fc8b97dd10a9ec336cea786199b10 28-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving list state management from Activity to Fragment

Change-Id: I80b68149b1615c844092d609c248b870665d868a
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
42d1c837a9aaf52ff8569ea3aabae0ea446f7fc7 28-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving auto-dismissal of soft keyboard from Activity to Fragment

Change-Id: I40d8ccb0332aa71c8465a2398afd868b9a7920aa
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
240d4aafba6f968317e9c2d84503168364c27788 28-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> No longer routing unsolicited input through contact list

Change-Id: Ia6f54a0d7db83e546c7d86608a65fcecd6093b58
ndroid/contacts/ContactsListActivity.java
e3fbfd99842607a0c208d0a930878bb54bb91ded 28-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving search UI from ContactsListActivity to the Fragment

Change-Id: I98f811fb178f060376c04fe2bc4037ec9f8e193a
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/SearchEditText.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ndroid/contacts/widget/SearchEditText.java
3a78b1dc7abdc6fee6bca246f83e8b3fefb11c5c 28-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving PhotoLoader from the activity to the fragment

Change-Id: I8a4c3a193bce8e5fcb2cacbd77482488ea916134
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
502741df555dc7cf59a10885272d432940ae35ad 28-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing context menu handling from ContactsListActivity

Change-Id: I5c04b77f7062c97bc61876d9d192343fb9b913c9
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/widget/ContextMenuAdapter.java
416b569901ce4c577c1f76c3f29496d1adab29e1 28-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Introducing a fragment for contact picker

Change-Id: I8dbf956c97b945d31ccb1b3e81a2c36e81bd10e2
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactBrowseListContextMenuAdapter.java
ndroid/contacts/list/ContactBrowseListFragment.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactPickerFragment.java
ndroid/contacts/list/LightContactBrowser.java
ndroid/contacts/list/LightContactBrowserContextMenuAdapter.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ndroid/contacts/list/OnContactPickerActionListener.java
50ae321da4b7178f9d477bf5516eebda9c0a5182 27-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Removed result forwarding from the contact browser

Change-Id: I177c80ff4b030b1dd7d8638de62104c09f4ab073
ndroid/contacts/ContactsListActivity.java
1323d69c40649914ae2195088573a20cc35da86e 27-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Delegating context menu handling

Change-Id: I4fa407f92e7f0b30215084b9b8c05596e3862b07
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/DefaultContactListFragment.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/LightContactBrowser.java
ndroid/contacts/list/LightContactBrowserContextMenuAdapter.java
ndroid/contacts/list/MultiplePhonePickerFragment.java
ndroid/contacts/list/OnContactBrowserActionListener.java
ndroid/contacts/widget/ContextMenuAdapter.java
eeac4dc8dccb20466669525f16dc58fa593a3483 27-Apr-2010 Daniel Lehmann <lehmannd@google.com> First draft of a fully working ViewGroupAnimator. Tweaked Contact-Editor to use it.
Save focus in More/Less button

Change-Id: I68993f4bc42a3454527832c304f1db48c9b7e1c8
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
ndroid/contacts/util/ViewGroupAnimator.java
b9fe03d7059d7c66d02fad6bd9bd1b5a1b863734 13-Apr-2010 Fred Quintana <fredq@google.com> move favorites and my contacts group handling to the
provider and sync adapter

Change-Id: Ib05ecb9347f6470d2b5e1bb440407585044c820c
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/util/AccountSelectionUtil.java
732f65236e7f804941e84757c077a84eb11eab16 27-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Introducing LightContactBrowser

This is a fragment that represents the traditional
Android contact list.

Change-Id: Idd6c454f1d992bd87df518a2e6823c096508ede9
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/LightContactBrowser.java
ndroid/contacts/list/OnContactBrowserActionListener.java
59fb48e7e6a37f26901ad5a4996947dcd25a73d9 27-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Controller becomes Fragment and Configuration disappears.

Change-Id: I432b16f8b617765e770a8b2be34632c10d5d913d
ndroid/contacts/ContactsApplicationController.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactEntryListConfiguration.java
ndroid/contacts/list/ContactEntryListController.java
ndroid/contacts/list/ContactEntryListFragment.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactListConfiguration.java
ndroid/contacts/list/DefaultContactListController.java
ndroid/contacts/list/DefaultContactListFragment.java
ndroid/contacts/list/JoinContactListConfiguration.java
ndroid/contacts/list/JoinContactListFragment.java
ndroid/contacts/list/MultiplePhonePickerConfiguration.java
ndroid/contacts/list/MultiplePhonePickerFragment.java
aebce3655e931c47d9036d46f1e2e7faee1534fb 24-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Getting rid of contact list item view cache.

Also, separating multipicker views from regular views.

Change-Id: I3b7639eb641d1d87e30ef810492a5c43a662a50b
ndroid/contacts/ContactListItemView.java
ndroid/contacts/ContactNameHighlightingAnimation.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ContactListItemView.java
ndroid/contacts/list/MultiplePhoneExtraAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
ndroid/contacts/list/MultiplePhonePickerItemView.java
ndroid/contacts/ui/widget/DontPressWithParentImageView.java
fda2edd3a6dc8dbdb2ae21e674f57ef3bd28f262 24-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Breaking name highlighting animation out of ContactsListActivity

Change-Id: I6b08100e20d86f12bd04a88aa513e832df3608fe
ndroid/contacts/ContactEntryListView.java
ndroid/contacts/ContactNameHighlightingAnimation.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/TextHighlightingAnimation.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
ndroid/contacts/widget/TextHighlightingAnimation.java
ndroid/contacts/widget/TextWithHighlighting.java
ndroid/contacts/widget/TextWithHighlightingFactory.java
caf498bd71e2ab4b6771cfa17453dd827041f238 23-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> ContactListActivity is no longer a ListActivity

Change-Id: Iffc1abb88829598e060cc004795b111583a8abab
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactEntryListConfiguration.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactListConfiguration.java
ndroid/contacts/list/JoinContactListConfiguration.java
ndroid/contacts/list/MainContactListConfiguration.java
ndroid/contacts/list/MainContactListController.java
ndroid/contacts/list/MultiplePhonePickerConfiguration.java
8700d8c24d2ea228f1e111b4231fe4a64f2e7efa 23-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Making PinnedHeaderListView more self-contained.

Basically clearing the related logic out of
the ContactsListActivity.

Also introducing a separate configuration and a separate
controller for the main contact list.

Change-Id: Icc327272ed7daa9716e8d49ac7c3f4d6a05b7ca9
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/PinnedHeaderListView.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListConfiguration.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/MainContactListConfiguration.java
ndroid/contacts/list/MainContactListController.java
ndroid/contacts/list/PinnedHeaderListAdapter.java
ndroid/contacts/widget/PinnedHeaderListView.java
6e2009d58fdcf098cab033729d4a3b2444c2181c 23-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Introducing ContactsApplicationController

Also, breaking out JoinContactListAdapter

Change-Id: If37410ec5d15612a772c0ad2e946df6e91339b0d
ndroid/contacts/ContactsApplicationController.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListConfiguration.java
ndroid/contacts/list/ContactEntryListController.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactListConfiguration.java
ndroid/contacts/list/DefaultContactListController.java
ndroid/contacts/list/JoinContactListAdapter.java
ndroid/contacts/list/JoinContactListConfiguration.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
ndroid/contacts/list/MultiplePhonePickerConfiguration.java
69a6c3a1bf4f97996c06e45b60e0fda41219559d 22-Apr-2010 Daniel Lehmann <lehmannd@google.com> am 7675e12b: Add a new intent type that allows opening the Contacts app in its last state. Also fix some broken comments.
ac0f783adb82ee8056e742fae4994e848e82ea3d 22-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> (Re)introducing ContactEntryListConfiguration

Change-Id: Ibddd2d9e76dc2a1bf8259b1f7768d883437b1a5e
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactEntryListAdapter.java
ndroid/contacts/list/ContactEntryListConfiguration.java
ndroid/contacts/list/ContactEntryListController.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/DefaultContactListConfiguration.java
0906ee326a5553a224eb7b004536f35b340bdcd3 22-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming ContactListConfiguration to ContactsIntentResolver

Change-Id: I143c577772eab157e8a48767e672b349e747b40b
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/ContactsIntentResolver.java
ndroid/contacts/list/config/ContactListConfiguration.java
43a979ef2e402112359e4e648e4a4fa9982202e0 22-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Updated licenses

Change-Id: Id6d3bb8881cf60bceffc4fcc42dcf69f37d34e8e
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
54d716f3ac9969d3126b878250d41f6fef472a47 22-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Introducing CompositeListAdapter and SingleItemAdapter

Change-Id: I37fba4dad2e4a6fdbc07c6cb4956b1e7d0cbc101
ndroid/contacts/widget/CompositeListAdapter.java
ndroid/contacts/widget/SingleItemAdapter.java
7675e12b55f9492bf0f6062811f2a0ed030dc1cf 22-Apr-2010 Daniel Lehmann <lehmannd@google.com> Add a new intent type that allows opening the Contacts app in its last state.
Also fix some broken comments.

Bug: 2615649
Change-Id: I65e1033b64cab38fbfb0c74e104dce382b4a2a20
ndroid/contacts/DialtactsActivity.java
223cc1ae94dc2facd359769eb16a70339bfdd863 22-Apr-2010 Daniel Lehmann <lehmannd@google.com> Merge "Refactor to coupler/presenter pattern. Moved framework classes to correct packages"
575c02d1479645be90e907777df1ee9c20006a77 21-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Breaking out the Multi-Picker into a separate activity."
e8ae9acbde772c94fd7d50b3f65bd3b1278c338b 21-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Breaking out the Multi-Picker into a separate activity.

Continuing the "nuke" part of the nuke-and-rebuild
process for ContactsListActivity. At this stage the code
will look worse than before, but hopefully will remain
fully functional.

Bear with us - we are in the middle of a major refactoring.

Change-Id: Idad9fa2e589dce0bcd3f62b9c7d5bf22fea6c5e1
ndroid/contacts/ContactListItemView.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/MultiplePhonePickerActivity.java
ndroid/contacts/list/ContactItemListAdapter.java
ndroid/contacts/list/MultiplePhoneExtraAdapter.java
ndroid/contacts/list/MultiplePhonePickerAdapter.java
ndroid/contacts/list/MultiplePhoneSelection.java
e67193692c62582a6003bb15b31468c8c00d6ca6 21-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Modify ImportVcardService so that it uses the new vCard structure.

Change-Id: I2b5c3ef997695afce1069c69ee0542d3d86afad7
ndroid/contacts/ImportVCardService.java
3ef3b1df171868b46bd170130ad60c69651baeae 21-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Breaking ContactsSearchActivity out of ContactsListActivity.

Change-Id: I804e89465fb4c04da7b59153298f8c42d7df23ba
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsSearchActivity.java
807a0fe5e54980b1cd8e97590d5b465ca9d6dea5 20-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Exploding ContactsListActivity.

Extracting the list adapter into a separate class.
This creates lots of dependencies explicit, so many
fields and methods are becoming public. This is
strictly temporary. All of those public fields
will go away as part of the refactoring.

Change-Id: I06d419d65a44872d46b1355e9148ace4bf0f84b5
ndroid/contacts/ContactListEmptyView.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/list/ContactItemListAdapter.java
eb17b74d4679f11c44475d41c830abded4c49a60 20-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Introducing contacts configuration object."
6178cb47846e7efc9c245a9b9ba93032a0038921 20-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Introducing contacts configuration object.

Physically moving code from ContactsListActivity to the
new object as the next step toward full refactoring of
the ContactsListActivity.


Change-Id: Ic169ea53274151c863e2f28df5e545abdf01885c
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/list/config/ContactListConfiguration.java
292ffd83a7c72baece51710d4daa57a474640c94 20-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make vCard exporter use getVCardTypeFromString().

Change-Id: I2867a0387945a22154545153a6d6544c809d8877
ndroid/contacts/ExportVCardActivity.java
c2687c3c38d8fb5f34ad6d8fb5c33e16f335183c 20-Apr-2010 Daniel Lehmann <lehmannd@google.com> Refactor to coupler/presenter pattern. Moved framework classes to correct packages

Bug:2579760
Change-Id: Ia0c475e55830aa2d8b13cdb2685fc0981b6f6ade
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/mvcframework/CursorLoader.java
ndroid/contacts/mvcframework/DialogManager.java
ndroid/contacts/mvcframework/Loader.java
ndroid/contacts/mvcframework/LoaderActivity.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/util/DialogManager.java
ndroid/contacts/views/detail/ContactDetailView.java
ndroid/contacts/views/detail/ContactLoader.java
ndroid/contacts/views/detail/ContactPresenter.java
31ec0b51ac4d508f8727608b98d0bf916f2b20b9 19-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> AllIntents - a test application for contact list.

Bug: 2601157

Change-Id: Iff4b45f89d4d09405b0ca991b941722370ae3424
ndroid/contacts/ContactsListActivity.java
186bc3a0174ae6bab5b5fa74216eeee1161672bf 19-Apr-2010 Daniel Lehmann <lehmannd@google.com> Merge "Integrate ContactHeaderWidget loading into ContactLoader to save queries. Remove old Activity."
8e5a8bca113db71959920c6d6576487a5a66efee 19-Apr-2010 Daniel Lehmann <lehmannd@google.com> Merge "Speedup query by using a more narrow View. Change the Loader tests to use a Mock-ContentProvider to not change any real data"
d3e0cdb35e398249cfbe9ccf6dde589ca7face88 19-Apr-2010 Daniel Lehmann <lehmannd@google.com> Integrate ContactHeaderWidget loading into ContactLoader to save queries. Remove old Activity.

Bug:2579760
Change-Id: Ie1e6c9249c1f9550da2f6e2d3951a9b78d7e11db
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/views/detail/ContactDetailView.java
ndroid/contacts/views/detail/ContactLoader.java
89dada883a7f499122ffd782149c6b49a6b27d74 19-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make vCard importer use new structure.

Change-Id: I8617c3be4592d0ce3cce71f180c26d162d3f39fd
ndroid/contacts/ImportVCardService.java
74a2dc5dd353aa724f3b4bcfc4694f15c4d0ff73 16-Apr-2010 Daniel Lehmann <lehmannd@google.com> Speedup query by using a more narrow View. Change the Loader tests to use a Mock-ContentProvider to not change any real data

Change-Id: Ia87a53038249c8739cf66fc3a77686a1132441c3
ndroid/contacts/views/detail/ContactLoader.java
13e242b1e9a462acffc3c079326cc31dbc8ee5ab 16-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make ImportVCardService use new structure.

Change-Id: I03e8ad44e7893958b556c52e81851949d4576f86
ndroid/contacts/ImportVCardService.java
6266cc70c3e05c231e80997c2c97daf20298761a 16-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> am 639e96ee: Fixing breakage in legacy contact pickers.
639e96ee195a291a7e3a71badfaca73241001e73 15-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing breakage in legacy contact pickers.

Bug: 2599582
Change-Id: I1abe4841dcde6ceaaa424654d2578af58258fb28
ndroid/contacts/ContactsListActivity.java
f21bf27c13dacec9b4ed74cba9046a64948e97fb 13-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Refactor vCard importer so that it uses Service during the actual import.

This is for makeing the importer torelate various troubles around Activity using Thread.
Screen orientation breaks the Activity while the import is on its way, and the
regenerated Activity cannot see the status of the previous import.

With using Service, now we have to let vCard importer re-entrant toward multiple import request.
I confirmed the newly added code works fine, but we may have bugs around them.

One significant bug is that (again) we cannot import a big vCard via Uri whose permission is
temporarily guaranteed by its provider (e.g. Email's AttachmentProvider).

Bug: 2523624
Bug: 2158329
Bug: 2572275
Change-Id: I961aecc0848176bdbcab6527a25f60352d957ee0
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ImportVCardService.java
ndroid/contacts/ProgressShower.java
27f1bc8b5687dbfd6542026293d68950d4555eca 14-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Beginnings of a unit test for ContactsListActivity.

Change-Id: I4cfc83d79b13f7ffad31120534ee0287d59254aa
ndroid/contacts/ContactsListActivity.java
1316b13d41e0ca252236df5692a69020a471cd4e 14-Apr-2010 Daniel Lehmann <lehmannd@google.com> Write tests for ContactLoader. Re-added support for legacy style (donut) ContactUris

Change-Id: If20497bff840055c923a91b9cfcd61d22454d49e
ndroid/contacts/views/detail/ContactLoader.java
c3a00085193e474c69ff0f455dd5d6086ff72e69 13-Apr-2010 Daniel Lehmann <lehmannd@google.com> Some refactorings to MVC

Bug:2579760
Change-Id: Ie07f9a1077f7b3d744477a2deed90c79737eb7a6
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/views/detail/ContactDetailView.java
cbcc44983dc84f25d43e45f25021019233a4e2ef 13-Apr-2010 Daniel Lehmann <lehmannd@google.com> Update to new MVC framework

Change-Id: I792037f910de24b30f5b33e1b3f789c69a854ff5
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/mvcframework/CursorLoader.java
ndroid/contacts/mvcframework/Loader.java
ndroid/contacts/mvcframework/LoaderActivity.java
ndroid/contacts/views/detail/ContactLoader.java
ba9b51f603bc6477d86595dc7ced63d849da84ac 13-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> am 2585921d: Merge "Fixing search in direct dial/message shortcut creation" into froyo
2585921d429a83d927314ac66e10887f1cb44fc4 12-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing search in direct dial/message shortcut creation" into froyo
54f4c02f21fc601a62ffdbe9d8f6aa7c9bf78564 09-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> am 6ea750cf: Make OnCancelListener call finish() in stead of just calling dismiss().
26cda1a38eb348cf4e7d17a711d420207c66d45d 09-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Breaking out handling of empty message in Contacts

The empty message will now update itself.
More work is needed to turn it into proper MVC.
For now, just breaking it out into a separate view.

Change-Id: I48f319f78eb2d4ed89185b48082bbba96344f6c3
ndroid/contacts/ContactListEmptyView.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
564f3c6d324484402c16dc16ee5f76e9db77e5ca 09-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing search in direct dial/message shortcut creation

Bug: 2579548
Change-Id: I8ffa0eff20d5c9867ed58d7150cd48464f25c7ce
ndroid/contacts/ContactsListActivity.java
4cd94419d615e5513849516dfcbf0ce4cd08ecd0 09-Apr-2010 Daniel Lehmann <lehmannd@google.com> Break up view-contact-activity into smaller pieces so that they can be better recombined. Also first import of temporary mvc-framework classes that should later go into the framework.
Bug:2579760

Change-Id: I865b6194fbd28abb415e9d54622b91d719288204
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/activities/ContactDetailActivity.java
ndroid/contacts/mvcframework/CursorLoader.java
ndroid/contacts/mvcframework/DialogManager.java
ndroid/contacts/mvcframework/Loader.java
ndroid/contacts/ui/DialogManager.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/views/detail/ContactDetailView.java
ndroid/contacts/views/detail/ContactLoader.java
df5e05fb93a6bd4b2299dceb7217cfc757b5054e 08-Apr-2010 Bai Tao <michaelbai@google.com> Add MODE_PICK_MULTIPLE_PHONES mode which can be launched by
ACTION_GET_MULTIPLE_PHONES
a. Adds PhoneNumbersAdapter to handle the phone numbers don't
belong to any contacts.
b. UserSelection is added to handle the initial selection and
the user's change.
c. Supports the screen rotation.

The below 2 issues haven't been resolved, and need the decision
from the team.
a. There is no phone will be shown if the filtering text is empty
which make the user unable to select phone from all contacts in
search mode.
c. There is no title in search mode, the user don't know how many
phones has been selected.

Change-Id: Ieb50cf61ed895a1901a9b15ef8f8b26fcb37a48e
ndroid/contacts/ContactListItemView.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsSearchManager.java
39ee8b684998718cdaa65057e982ec3445cca6a7 08-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make vCard importer use new structure.

Bug: 2576738
Change-Id: Ie87b762e5c4c3de32b806fa7b9f5d9d6c221c245
ndroid/contacts/ImportVCardActivity.java
6ea750cf2f58023ee3e7a5081b94e8da2603083d 08-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make OnCancelListener call finish() in stead of just calling dismiss().

Bug: 2578627
Change-Id: I71e4f318710c60958240cebb35b4a1a065638e32
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/util/AccountSelectionUtil.java
501b7eac6f85c4100fbd1b00d7c7841fe6472e7c 08-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Splitting off the Join Contact mode.

This is not a strategic refactoring, just a step
toward splitting Contacts List into multiple
classes.

Change-Id: I6ec5472ef31e87f62d7d62e31b4f413627a9b1f8
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JoinContactActivity.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/EditContactActivity.java
dbf0c8d1e7d2e49d0012b9853bc032202a07c070 07-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> am 8cd49472: Preventing a crash on rotation of the Display Options activity
8cd494729329a6ea59aec4a0e66f35340ecbc904 07-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing a crash on rotation of the Display Options activity

The crash occurs if you rotate the Display Options activity
while it is saving. The exception thrown simply tells us
that the dialog is already gone. Swallowing this exception
is benign.

It is a very common monkey crash.

Bug: 2138584
Change-Id: I367f7ee487700c24a4958e65ad957299ab91074c
ndroid/contacts/ui/ContactsPreferencesActivity.java
dd595aef33626a82530167db6b4045a68ac3ed2c 07-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> am 4ed3bc4c: Fixing visibility of label/data/snippet in contact item view.
4ed3bc4c68045e7e7d9aae8bcd6208fd2ba4ee46 07-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing visibility of label/data/snippet in contact item view.

These fields would sometimes be made invisible, but
not restored back to visible when needed.

Bug: 2573102
Change-Id: I088096310be1cd53afa5d2160d2b1ea0b6f433e7
ndroid/contacts/ContactListItemView.java
94c70ac5e5c8c261e962ef96b4b7974e25927fd9 06-Apr-2010 Daniel Lehmann <lehmannd@google.com> Fix the comment formatting

Change-Id: I4717ca36523e8e61fb5215f76a2e5ba59f5829a2
ndroid/contacts/ui/DialogManager.java
7e91428b4c39aa40ace1a627bf236634f5e2391f 06-Apr-2010 Daniel Lehmann <lehmannd@google.com> Use standard Android mechanisms (showDialog, onCreateDialog) for Dialog handling. Makes dialogs persistent after orientation change
Bug:1362446

Change-Id: Ib62a1f6c01adc09447caf38762b202c80317871a
ndroid/contacts/ui/DialogManager.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/GenericEditorView.java
35581c86548b4fe84e790034473c5c02986b874b 06-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> am 4a261c84: Fixing NPE in phone disambig dialog.
d766f81435e9d2ed2597bb024220f1f56ea74399 06-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make vCard importer use DEFAULT_IMPORT_CHARSET.

Bug: 2572064
Change-Id: Iea0e74bf289fed6a4d37e591beef0d1964c240f4
ndroid/contacts/ImportVCardActivity.java
4a261c84770691214cdf009f0793311382d3c0e5 06-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in phone disambig dialog.

Bug: 2569645
Change-Id: I520cd8c602ca5de3e63d372a6826a34fc97c0dbe
ndroid/contacts/PhoneDisambigDialog.java
c4e4995be52859809227badc7ddee5e8979d1ee5 05-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make ImportVCardActivity check null of mHandler, which happens when onDestroy() is called during import.

Bug: 2566873
Change-Id: I01d0c6dbd36daf05d6521c75d6052e35586c94ce
ndroid/contacts/ImportVCardActivity.java
ee010c0210f869158e9da147986d65de7b65fab9 03-Apr-2010 Nicolas Catania <niko@google.com> When the activity is destroyed, make sure any background thread is cancelled.

There was a race condition when the activity was destroyed when the background
thread was still running.
Before we release the handler, cancel any running thread, wait for it to
actually exit before purging the handler.
This code should be rewritten to use AsyncTask instead of raw threads
in my opinion.

Tested: I tried to import +100 vcard and make the app exit and it did not crash
however the current bug will show under high load. Need to wait for a monkey run
to confirm it is fixed.

Bug:2517391

Change-Id: I37e7619f6b93a8faa7da4506caffb9ed40e4f844
ndroid/contacts/ImportVCardActivity.java
6448da7f4bf80a2702b1e1cc0680ecd3fb46dc20 01-Apr-2010 Daisuke Miyakawa <dmiyakawa@google.com> Let ImportVCardActivity choose an account if multiple account exist.
Remove VCardActivity, which does nothing effective.
Remove getReopenableUri(), since this change the method unnecessary.

Bug: 2528512
Bug: 2568427
Change-Id: I1ffb4171fefaad1ddc7406fe5447876d4c647610
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/VCardActivity.java
ndroid/contacts/util/AccountSelectionUtil.java
bbd03c02507cadd13b38f1035ce236469eeea27f 31-Mar-2010 Martin Hibdon <mah@android.com> Cherry-pick 78bc8a3d70c65973fed80ee5cb628f7aa21e14d0 into
the Froyo branch.
ndroid/contacts/model/ExchangeSource.java
5ecd315cbd9e9421cbff0a2692a391156450c454 02-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing NPE in contact photo loader" into froyo
feb77f1ee1173141395a964577193735b35bc3b5 02-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Absorbing extra key events on contact search." into froyo
92dfa11fe98d453b7aaa7c3c1516b187c60c106c 02-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact photo loader

Bug: 2566919
Change-Id: I8711ce801ca2b80658bcc669f03e3c3d2c28b3bb
ndroid/contacts/ContactPhotoLoader.java
7a51b14cb70381e38f85fe2acad14a0ad0c2c37c 02-Apr-2010 Fred Quintana <fredq@google.com> Merge "revert the stripping of System Group: from the names of google system groups" into froyo
95020ca857e5355e970181d661eb6019eafefc86 02-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Absorbing extra key events on contact search.

When contact search is started from a keyboard,
we start a search activity, but subsequent key events
are still coming to the original activity and
it just keeps launching new search activities.

Discussed this with Dianne. The only available solution
in FroYo is to swallow the extra events.

This CL does just that.

Bug: 2565998

Change-Id: Ib9318ad4832e950172af5a3999194bc14321938b
ndroid/contacts/ContactsListActivity.java
9f26ce5718f08fa96f2bc0cbdc27831c9942b06a 01-Apr-2010 Fred Quintana <fredq@google.com> revert the stripping of System Group:
from the names of google system groups

Change-Id: Ifbcd4b15738631e2062a92da7513b3376f83dba3
http://b/issue?id=2558197
ndroid/contacts/model/GoogleSource.java
ffadc8789ddab7849aa869c6bf1186d36db49d3a 01-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Saving ALL state when contact editor is evicted" into froyo
489faa9fd0b99e7f999492a26e0be7f920052460 01-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing photo cache clearing on cursor change

Bug: 2562872
Change-Id: I923c92cda498f9073e99f9463bb30ebade3516b7
ndroid/contacts/ContactsListActivity.java
84a4eee9fe5871b8da646c6dd498b11e5fce92a7 01-Apr-2010 Dmitri Plotnikov <dplotnikov@google.com> Saving ALL state when contact editor is evicted

We failed to save three of the fields in onSaveInstanceState
As a result we would be
1) unable to attach a photo to a contact
2) get an out-of-memory situation if a sync is running at the same time
3) not be able to join a contact manually if the process is interrupted

Bug: 2558867
Change-Id: I28dd605e82c12b611e9919170d6ba5d17442b8fc
ndroid/contacts/ui/EditContactActivity.java
0e98b9f14177e37937c8a834f8ff2f01e414a609 30-Mar-2010 Daisuke Miyakawa <dmiyakawa@google.com> Force vCard importer copy vCard as a temporary local file in order to
avoid some troubles around Content Uri which cannot be scanned more
than once.

This is possibly just a temporal workaround. Do not rely on this
caching logic.

Bug: 2528512
Change-Id: Id0129a861b07078b544f52dce0267945c907b260
ndroid/contacts/ImportVCardActivity.java
cdf961b15b22c03ed7dc853501a9b5f723280f88 31-Mar-2010 Daniel Lehmann <lehmannd@google.com> Fix a regression with lookupKeys that contain special characters
Bug:2561233

Change-Id: Id11839aa837be0735f380792b2007160aa765405
ndroid/contacts/ViewContactActivity.java
6013973b1556e216c53d2bee29831c5cac21cb1e 31-Mar-2010 Fred Quintana <fredq@google.com> some changes due to an API review
- make EntityIterator extend Iterator and thus not throw a
RemoteException, instead converting it into a RuntimeException.
- rename ActiveSyncInfo to SyncInfo
- change getActiveSync to getCurrentSync
- remove the accessors in SyncInfo and instead make the final
fields publicly accessible

Change-Id: Id67bc22b34f3c0d8bf59a70c38c2e4622dd83e29
http://b/issue?id=2553539
http://b/issue?id=2553541
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/ui/ContactsPreferencesActivity.java
f3113e3eea023a9abe77d4e95944690c0b9d7adf 31-Mar-2010 Daniel Lehmann <lehmannd@google.com> Merge "Small modifications to speedup ViewContactActivity Bug:2546767 - Use query parameter instead of sql string concatenation - Try to use the ContactID that is passed in the Intent; fallback to lookup key if it is wrong (saves up to 2 queries) - Initialize the newEntities list directly with the correct length" into froyo
4f87c89e949432aebccce6f24280d7fb2d5f5f15 31-Mar-2010 Daniel Lehmann <lehmannd@google.com> Small modifications to speedup ViewContactActivity
Bug:2546767
- Use query parameter instead of sql string concatenation
- Try to use the ContactID that is passed in the Intent; fallback to lookup key if it is wrong (saves up to 2 queries)
- Initialize the newEntities list directly with the correct length

Change-Id: Iab271f9b30a10fb23a50cd9feba831c72cfd994f
ndroid/contacts/ViewContactActivity.java
a544d8af18fe340b29bce9e7368405b876456be9 31-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Optimizing contact list

Instead of inflating the views from XML, we
now create views in Java. Only necessary views
are created and layout is simplified.

Bug: 2534598
Change-Id: I7881f7519289c74a591c2a47992bbcda84168e4e
ndroid/contacts/ContactListItemView.java
ndroid/contacts/ContactsListActivity.java
d8b0a05f88099a734b75ed6b4628660feb00445f 26-Mar-2010 Daniel Lehmann <lehmannd@google.com> Don't merge numbers if they only differ after a semicolon
Bug:2432347

Change-Id: Ie62f36a29ae76287265f5ec19fc5507c0d368adf
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
b369c499456175337b9fe7a2aa4a8d0b7b8a597a 25-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Clearing photo cache on cursor change

Bug: 2539327
Change-Id: I8173490a3d40c73a23f5c4be2faa53ce7a84c1b4
ndroid/contacts/ContactPhotoLoader.java
ndroid/contacts/ContactsListActivity.java
fd8015f37dd69c27aee9e43ad409cfb714d658cd 25-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Reflecting the rename of System Group: My Contacts"
cc17912485cdf0f999c506e29885e8b8dfbcf49c 25-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Reflecting the rename of System Group: My Contacts

Bug: 2534587
Change-Id: Ia14ed88f5d8012a0ed60be53367edff63aa756dc
ndroid/contacts/model/GoogleSource.java
6d63f8faf8d95ad13bbabbbac51d542acbf7dca7 24-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Avoid the flick based on the change of CallLogProvider."
44299986375d1722f4d0dd2afd14fe5b509e6967 24-Mar-2010 Bai Tao <michaelbai@google.com> Avoid the flick based on the change of CallLogProvider.

Change-Id: Ib4132a238aca5dabf10fd329c299f12a7e1e5bc9
ndroid/contacts/RecentCallsListActivity.java
15a194aaec67bbe626f134a71b18eb0eaf539360 24-Mar-2010 Daniel Lehmann <lehmannd@google.com> Promote Position to label (instead of data) if Company name is empty
Bug:2534607

Change-Id: I5e888d6896aa8ad56a56efd5526d90b8afb01278
ndroid/contacts/ViewContactActivity.java
655236cbe9d660735713924cdcbbdf0038727f23 24-Mar-2010 Brad Fitzpatrick <bradfitz@android.com> Merge "Update explanation in comments."
7c8561d1e6206bb291bb627ccdec921efba70ff9 24-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Follow-up on preventing QC from hiding soft keyboard.

- Making focus work just as before the fix, ie header is not focusable any more
- Making footer properly disappear before the track itself

Change-Id: I47f2cd72c7d1fe14d723de6a67293d2c66e2e06d
ndroid/contacts/ui/QuickContactWindow.java
a0624488e88533056de84e2aea8017ff3746fbee 24-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Preventing QuickContact from hiding soft keyboard"
1b28a0a7ab81e6cc946c40b74c152f654bd863ce 24-Mar-2010 Brad Fitzpatrick <bradfitz@android.com> Update explanation in comments.

Change-Id: I2c1ee846a12492d86d779310eacb239618a59b70
ndroid/contacts/ViewContactActivity.java
23bc9b72b81fb76136720554a0633f1400a200ca 24-Mar-2010 Brad Fitzpatrick <bradfitz@android.com> Hopefully fix frequently-reported ViewContactActivity ANR.

See background in bug 2539603.

BUG=2539603

Change-Id: I1392e8767a6174048c59a782076663772a3402d1
ndroid/contacts/ViewContactActivity.java
ad3bd440b1eeac4bdc3f427dcfaeefdf1059dcb5 24-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing QuickContact from hiding soft keyboard

Thanks, Dianne, for the suggestion.

Bug: 2520397
Change-Id: Ia33e89fa22dfb68188a3db24d1c6067d15102817
ndroid/contacts/ui/QuickContactWindow.java
4e9be7cc1c5683080261bc941f35f670188e81dd 24-Mar-2010 Daniel Lehmann <lehmannd@google.com> Merge "New rule for the fields "organization" and "nickname": If they merely duplicate the title, don't show them Bug:2534647"
350ba6f6de87e245c3e300bb81348116d0c30ca5 24-Mar-2010 Daniel Lehmann <lehmannd@google.com> New rule for the fields "organization" and "nickname": If they merely duplicate the title, don't show them
Bug:2534647

Change-Id: I65882a7b626265cc310547f3947cec61be4c11be
ndroid/contacts/ViewContactActivity.java
d128adcab23a433752de82f05f426ef22ad2dd56 24-Mar-2010 Bai Tao <michaelbai@google.com> Support launch QuickContactActivity from upgraded shortcut

bug: 2535107
Change-Id: I7d7aa33e600c885180f1c8443d4e79a382785855
ndroid/contacts/ui/QuickContactActivity.java
207d4f6811c2b6b2df79069e16d366bd3e08c2a6 24-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fit-and-finish. Redoing the title for contact search results.

Bug: 2534618

Change-Id: If00dd28dfcdc5596e6b6cb8a5690f5c0382200de
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/SearchResultsActivity.java
5c5d71a231a2709e698652b7a3b811dc7f959c28 23-Mar-2010 Daniel Lehmann <lehmannd@google.com> Merge "When editing contacts, automatically expand "More" if data has been entered Bug:2534580"
3122da4be743517f04b6f7159bd39f89f87563ce 23-Mar-2010 Daniel Lehmann <lehmannd@google.com> When editing contacts, automatically expand "More" if data has been entered
Bug:2534580

Change-Id: Ic56fc755299f5da4d824e38f3a38f9e5b0bab0ef
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
5ebd9cf83d0659a7c5e666d13040f8d07edf1517 19-Mar-2010 Bai Tao <michaelbai@google.com> Check the sync status while there is no contacts to show

Change-Id: I2fd074a748ea297b2f41e9ea8fa809a84fd751e6
ndroid/contacts/ContactsListActivity.java
20df5026c6039347b08a2beddbaee3886d50b58e 20-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Avoid showing empty call log when activity is paused"
6559aed20248135b8f20487ffd061e8571d9dbc2 20-Mar-2010 Bai Tao <michaelbai@google.com> Avoid showing empty call log when activity is paused

Change-Id: I480444933af797fc0dda43745d197b0691bc786b
ndroid/contacts/RecentCallsListActivity.java
437063a5fca0624d20464c12c354e13393b8d371 19-Mar-2010 Daniel Lehmann <lehmannd@google.com> Fix encoding of Uri for multi-vcard sending

Change-Id: I365449365d0a3aade17ccf3b3ed038dc7827257b
ndroid/contacts/ContactsListActivity.java
82dc5b62747baf5b1400cdf5272aa19078dcbe06 19-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Add help text when user creates the shortcut but there is no contact."
16da96c0afa71c20105b999fa52065c18fba88c6 19-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "b/2499526 Call PhoneNumberFormatter function when show phone numbers of call log in the detail view"
bc38e1f55df13a17b73d1d51c97aa966cc6e9561 19-Mar-2010 Bai Tao <michaelbai@google.com> Add help text when user creates the shortcut but there is no contact.

bug: 2139262
Change-Id: I04e8da5424f11e1e834e3bab6ea1b4c51b37b385
ndroid/contacts/ContactsListActivity.java
bf35bf0728f08c2aa11a9b8aab043662e54d3da4 18-Mar-2010 Daniel Lehmann <lehmannd@google.com> Merge "Do not show an extra confirmation step when sharing lots of contacts Bug:2524537"
74d69d1c451688d73876392a91cae3349179447d 18-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing aggregation mode for inserted contacts

Change-Id: I716d742c72607c84e382b0c4baf3e2bea757d7c8
ndroid/contacts/model/EntityDelta.java
42fbe78919b62eb9e8ea0e72be2d77324b3fde1e 18-Mar-2010 Daniel Lehmann <lehmannd@google.com> Do not show an extra confirmation step when sharing lots of contacts
Bug:2524537

Change-Id: I55250f1da6208f2f6d16eb3a42ef854fa5396d68
ndroid/contacts/ContactsListActivity.java
d188bb3f7907de5ed1e9c1fa7e8301d242e0aa34 17-Mar-2010 Fred Quintana <fredq@google.com> Merge "fix a crash when adding a group back to the sync set in the contacts display groups UI"
268ed36b3d8be6deca5a316f2534dc00aa951d50 17-Mar-2010 Fred Quintana <fredq@google.com> fix a crash when adding a group back to the sync set
in the contacts display groups UI

Change-Id: I9a24b02701628bf8d7495a6734e35a9a4731029e
http://b/issue?id=2522758
ndroid/contacts/ui/ContactsPreferencesActivity.java
22faa2a80b1fdd353052d807cf3056b5eab9b2b4 17-Mar-2010 Chih-Chung Chang <chihchung@google.com> Save contacts photo in the same directory as Camera.

Change-Id: I5f4a68e01343b6be0e7d4cf8e330d02408c78699
ndroid/contacts/ui/EditContactActivity.java
0aa25b961b87df529bcd31ef002cca4e7c71caae 17-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing highlighting of names with suffixes

Bug: 2517678
Change-Id: Id25a4b86696c511ea1a0df49e607e710e2458e65
ndroid/contacts/TextHighlightingAnimation.java
4405e69bd1192f7ff68825c1bad1a6790107918c 16-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing bad cursor access in Direct Dial Shortcut

Bug: 2512044
Change-Id: I7cc8e921ddfe34cafbccb5eb0530d9d7ab6e9ccf
ndroid/contacts/ContactsListActivity.java
ed71e4ebb532856e55d67e17e2aadcaa526800aa 16-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in "pick or create new contact"

Bug: 2513826
Change-Id: I258da57feef78e3f30ee8372dba6caed81adc76d
ndroid/contacts/ContactsListActivity.java
6985dd8f96bc086be68498ace6ea848408bdee1a 16-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact editor

Bug: 2517377
Change-Id: I6ee53b075cb2946885c29ac498832f7f9aea820c
ndroid/contacts/ui/EditContactActivity.java
489399674e43dbb7365f56058c3c1a41a55eb3c7 16-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling aggregation of new contacts

When the contact is created on the phone, don't aggregate
immediately. In the future, will show aggregation suggestions
after saving the contact.

Bug: 2480793
Change-Id: I9db1299d939ad93eaa2b9bd00a5b61cac153ed6b
ndroid/contacts/model/EntityDelta.java
0de2a46f57b2b7f0896c3260cc926586fb381fa2 16-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in raw contact sorting

Bug: 2513827
Change-Id: I92e263d8d258ab49d4b513e8acd0586354af7c9d
ndroid/contacts/ui/EditContactActivity.java
b4d69eb43b350b9043fc68e5a69d8cbc841ce61a 16-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing provider status observer

It needs to be unregistered onPause and reregistered onResume

Change-Id: I18f2fe0d013c560e92298ba7634e1dacc2cd7e93
ndroid/contacts/ContactsListActivity.java
3b73d8b49e07b93b80a4f363a40c0680377f5225 13-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing contact upgrade under low storage conditions.

Bug: 2498528
Change-Id: I2c85b0cbd4c7b804e61957695b803e22f995b405
ndroid/contacts/ContactsListActivity.java
67205edbef303f3e12cb6f9b46086f4dd0706606 16-Mar-2010 Bai Tao <michaelbai@google.com> Fix NPE caused by the selected entry is not valid when make a phone call

Change-Id: Ifc974f43be4e58ca69f150a29d4b7e9a0670f08f
ndroid/contacts/ViewContactActivity.java
38ce75cc0aa40ffaf6c35b83c4d3d166e024a1ca 16-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixed NPE in adding a phone number to an existing contact from call log"
76514bc1f35c031736ccaf1ff59edae49030181c 16-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixed NPE in adding a phone number to an existing contact from call log

Change-Id: Icb3b31e4dff9595c48dd374a98731df66a07b182
ndroid/contacts/ui/EditContactActivity.java
bb54a9ecb2ac7803849f1246761671498dcee3b3 15-Mar-2010 Jeff Hamilton <jham@android.com> Merge "Don't try to delete a contact if the URI is null."
3cf386810ee2edfc19291bfb1444c41ff8865d8c 15-Mar-2010 Jeff Hamilton <jham@android.com> Don't try to delete a contact if the URI is null.

Bug: 2502840
Change-Id: I3fe31364ea1ff679a6af0b0ba15ce98e61d5d5fd
ndroid/contacts/ContactsListActivity.java
cebe835d42e187b1ab6e73495374d23f49a3888f 15-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Passing non-null class loader to readParcelable

Bug: 2512038
Change-Id: I5c1e20f1fb40e81949c3c88e7f3210d11fcb31f0
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/model/EntityDelta.java
177c77fac98d559cb9d13fe244ea8d2f3d67f566 09-Mar-2010 Sang-il, Lee <gendoh@google.com> b/2499526 Call PhoneNumberFormatter function when show phone numbers of call log in the detail view

Change-Id: I530efcf77a7fc3941837a51819b1a03beb25cf19
ndroid/contacts/CallDetailActivity.java
b0ab270ade33594b56db05e7c3e6f3db7e536e98 13-Mar-2010 Bai Tao <michaelbai@google.com> Fix the recent call list flicker

Change-Id: I277ef95c9d3da9ee46b3e51ee61388d717ac86eb
ndroid/contacts/RecentCallsListActivity.java
6876712341200bb12d3127ed4e148d6975108295 12-Mar-2010 Daniel Lehmann <lehmannd@google.com> Fix a long line

Change-Id: Iee0fd9c7328211f55598625d70ee916ac27d04d0
ndroid/contacts/ImportVCardActivity.java
61f6cf749a628ccd98eaa0066deeaf8539505dc3 12-Mar-2010 Daniel Lehmann <lehmannd@google.com> Merge changes Ie617b76f,I83128ba7

* changes:
Fix creation of Uri if the lookup key has characters that are not allowed in a Uri
Create a single VCard file for several contacts Bug:2501468
cbf7595cf1c1bdb0921f7079a066ae6f55e97d2a 12-Mar-2010 Daniel Lehmann <lehmannd@google.com> Fix creation of Uri if the lookup key has characters that are not allowed in a Uri

Change-Id: Ie617b76fdb800b1b8877b435dabe37008f03a3bb
ndroid/contacts/ViewContactActivity.java
bc5c776de32644a9a1d586a4af07b091a95008c5 12-Mar-2010 Daniel Lehmann <lehmannd@google.com> Create a single VCard file for several contacts
Bug:2501468

Change-Id: I83128ba7f2cf120ec5816a2914b1e9501de526d9
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ImportVCardActivity.java
a307b774d5a7433c68947d33ef84a3a5b6687b5b 12-Mar-2010 David Brown <dab@google.com> Add a tiny TODO comment about duplicated code.

Change-Id: I0a1a28a1f83ff0845ca4b4fdf176c8918d6d35a5
ndroid/contacts/SpecialCharSequenceMgr.java
381f1749b5d297c2245c6aeb03969136beda9050 12-Mar-2010 Nicolas Catania <niko@google.com> Merge "Fixed crash Unable to add window"
2cacc55964e737078f982e19dcda74439eabb932 10-Mar-2010 Nicolas Catania <niko@google.com> Fixed crash Unable to add window

Renamed onStop to onPause. onStop is not guaranteed to be called,
which is probably why we have some extra code duplication in the
finalize() method.

Added a new onDestroy to clean up all the pending callbacks.
At this stage, there is no window anymore and we should not
call showDialog.

Release the Handler in onDestroy.
Not doing so has been the source of memory leaks in the past.

Bug: 2501845
Change-Id: I35125fda1b53a6996b933056bafe2f0c04aea80a
ndroid/contacts/ImportVCardActivity.java
107736c545322d658402c52168d4275794052d6f 12-Mar-2010 Bai Tao <michaelbai@google.com> Don't show the buddy's offline status in Contacts

Bug: 2164303
Change-Id: Ida1e417b2f4654a5b018b4215f4fa445754a0a06
ndroid/contacts/ContactPresenceIconUtil.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
d0037fd88702b53eb53c26ef76ca58c7bce7f6ab 11-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Addressing concurrency issues in EditContactActivity

Bug: 2494582
Bug: 2502892
Change-Id: I57986c53d040aa27415bda9888919c9571590f20
ndroid/contacts/ui/EditContactActivity.java
9b75f74cd796543e6e88984984f19fd0c2cf9f38 11-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Merge "Handle notifications for apps on sd"
06c65cae71bbe03efbdd5ea8c1fe236646daf996 11-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Will no longer stop photo loading onPause()

When Quick Contact comes up, the activity is being paused, but
it is still visible and may need to load photos.

Bug: 2502532
Change-Id: Iea415c5a3a27e688ff800cf8821b707b68f6b39b
ndroid/contacts/ContactsListActivity.java
e23c9e1380c1489901c95d34c6974d1848120416 10-Mar-2010 Suchi Amalapurapu <asuchitra@google.com> Handle notifications for apps on sd

Change-Id: I91b631ec9377b996b40594c4930243b868fa1ac6
ndroid/contacts/model/Sources.java
2b708957a5cbf020cbf729c8e9959fecf7c14d5b 11-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing behavior of the CALL button while picking a phone from list.

Bug: 2496475
Change-Id: Ib9d69b7521559f6f9835c794461342e16868f7a5
ndroid/contacts/ContactsListActivity.java
d88311271495498be4849820af430210e99c45bb 10-Mar-2010 Virgil King <virgilking@google.com> Fix handling of ACTION_DIAL tel: URIs including '+' characters

Use getSchemeSpecificPart() instead of substring() to extract phone numbers from tel: URIs to handle encoded characters properly

Bug: 2369658
Change-Id: Id31d41ebf0ccc0aa414e9a64a3e4d95047cf8aa7
ndroid/contacts/TwelveKeyDialer.java
6c776bcfa3bde9b5a94dddac8f6ebde1f358a796 10-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in Contacts when using the DEL key

Steps to repro:

1. Open contacts
2. Hit search
3. Type something
4. Use DPAD to select the "Search more contacts"
5. Hit the DEL button on the keyboard

Bug: 2498804
Change-Id: Idd7ec89189878f105d58a22ce77d112a15cdaff0
ndroid/contacts/ContactsListActivity.java
5d809433e85ae4755e1d62a5f7aa772b4af04b78 10-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in contact search.

Also, removing interstitial text when loading contacts.

Bug: 2504029

Change-Id: I0596e87f4bc1117bf610d5d1f764825dd1124bdf
ndroid/contacts/ContactsListActivity.java
10a71f3300d7d6387a6de9a05be69f18b02c9421 10-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> A shot at fixing bug in parceling of EntitySet

We'll need to keep watching for this bug, because I could
not reproduce it. The fix is just the best guess after
and armchair investigation.

Bug: 2498937
Change-Id: Ic42cecc5ce79504e645bd07fb80d3ac0f53b3bed
ndroid/contacts/model/EntitySet.java
2032ac32d2401504aafa0d290b9a384559789335 10-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing a concurrency issue in insert new contact

Bug: 2494578
Change-Id: Iee71342d053c440320e19521f4d4b6dff96e48c3
ndroid/contacts/ui/EditContactActivity.java
b5b6535dcaefd3d07906b4aca408c2f72f9f6b30 10-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing initial message displayed in Contacts.

Bug: 2501713
Change-Id: I20cdc2907caf06ba272f645cd95036bfe1072b5f
ndroid/contacts/ContactsListActivity.java
7fa5bb3948c58e1b539bd12d8a9ab9977024dc1d 10-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing order of contact editors for CJK locales

Bug: 2498855
Change-Id: Idcacb05ad29a5898dc8a5626a90294a145c6eb57
ndroid/contacts/model/FallbackSource.java
cfd8f96d42c25c524ff2a64f261f201a9b08fbf2 10-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in Contact Preferences

Bug: 2497173
Change-Id: I47d816c151294bb657804a27b2fca7761f39d940
ndroid/contacts/ui/ContactsPreferencesActivity.java
92d77d1d08294d1ee52759ddf6501e12d3931cb5 10-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Do not show title in car mode."
f55f17b14f24febe98922ac3716764c5b5756902 09-Mar-2010 Chih-Chung Chang <chihchung@google.com> Merge "Fix 2498025: OOM while attaching picture taken from camera to new contact."
1e349d136d0162ce82a2d51b8a3724972e20bd7c 09-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing a resource loading issue.

Bug: 2500266
Change-Id: I3ae726c20cf222fa19d4b2fdbd18c961f4004504
ndroid/contacts/model/Sources.java
bd0f7bae5b55d5a5586947ec5760f787c2d9dc38 09-Mar-2010 Chih-Chung Chang <chihchung@google.com> Fix 2498025: OOM while attaching picture taken from camera to new contact.

Put files taken by camera into a "com.android.contacts.icon" directory on
sdcard and use MediaScanner to add the files into the media database.

Change-Id: I1cec096c039e399f10ce41982257795c0a1673f8
ndroid/contacts/ui/EditContactActivity.java
d0bfafcf73c55a7f35fe9c5ae186b0ccf9659f74 02-Mar-2010 Bernd Holzhey <holzhey@google.com> Do not show title in car mode.

Do not show title in car mode to save real-estate and avoid displaying
application name for the dialer.

Change-Id: I1de93e082dc2090781ee121bfcbebd5808b0d9ea
ndroid/contacts/TwelveKeyDialer.java
98fd6501712867508a15fca067820e02fc69037e 09-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Contacts UI that warns the user that the current locale is changing

Basically, a "Please wait..." warning.

Bug: 2476633
Change-Id: I5fde15883b8891562e4e2fe13ebeeaf531021ced
ndroid/contacts/ContactsListActivity.java
ab45284c422b427fa1117bac97f3b7377d0f526a 09-Mar-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Remove unnecessary Japanese indexer."
6d261c74f61af84c3c9831848eb33b9a89dac192 09-Mar-2010 Daniel Lehmann <lehmannd@google.com> Fixed formatting and removed logging of previous commit
Bug:2448065

Change-Id: I6158b61fd128ff295e7c0aa730f15fb7627a38b4
ndroid/contacts/ImportVCardActivity.java
abd3fbfb7768db29db69bf6ebfac1eb868ce3f53 09-Mar-2010 Daniel Lehmann <lehmannd@google.com> Merge "Show contact after creation via bluetooth Bug: 2448065"
ef61b42be97cb486f4c263366e5a9726d1166446 09-Mar-2010 Daniel Lehmann <lehmannd@google.com> Add a "Cancel" Button to the Bulk-Export-Confirm message
Bug:2498202

Change-Id: I52455600f2b0b8e32e6aedb581313c7d15c0fcdf
ndroid/contacts/ContactsListActivity.java
8ab400c7295287a723ff3d38681c856e1ea1ddc3 09-Mar-2010 Daisuke Miyakawa <dmiyakawa@google.com> Remove unnecessary Japanese indexer.

Now we have general indexer also available in ja locale. I'd like to remove this stale indexer.

Change-Id: Ic0f29dde42f5bd3376c4b727f8e21a964e00f864
ndroid/contacts/JapaneseContactListIndexer.java
2e80051e34ca181587c7a5407ccdb6f10aa1c31c 09-Mar-2010 Daniel Lehmann <lehmannd@google.com> Show contact after creation via bluetooth
Bug: 2448065

Change-Id: I4339e2161b4ef54e566380d5235d6c0e0217c82d
ndroid/contacts/ImportVCardActivity.java
3dd365f695ab3540bc636e0d726e3f57a80c6ce5 08-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Proper ordering of names in the contact editor for China and Korea.

Change-Id: Ie21d48fe40dd631dbcd3055c0c66da499252a899
ndroid/contacts/model/FallbackSource.java
89e67f8e671d881c5a34d59896a5d210b0d47a45 08-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Displaying phonetic name when available.

Change-Id: Ia9293fdc19b1b22ad3b1366ee1e2850199739664
ndroid/contacts/ContactsListActivity.java
32904f58ea5b9a675554a50b9c85db47a54f397a 08-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Added Context to inflate... methods used by EditContactActivity.

Change-Id: Ie481a8f9bb7b3b9cae56e7f7ba69ea349623c720
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/ExternalSource.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
6315eee6b01bff3d4a526c167e981ce4ca7bcde9 06-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing list adapter concurrency in Contacts Display Options

Bug: 2353600
Change-Id: I7b109899375e17ecab61a1ccc1c08e674ef0d376
ndroid/contacts/ui/ContactsPreferencesActivity.java
23da3b4783712487fc0b200595c615e6245b3c22 06-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Making sort order and display order options invisible in CJK countries.

Bug: 2459551
Change-Id: Iad9c71e6ac086b725ad36d28c38a37cb1c93b61c
ndroid/contacts/ui/ContactsPreferences.java
ndroid/contacts/ui/ContactsPreferencesActivity.java
3f5686e993e15a84a9d3e962e36ce53117bd4ef7 05-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Making phone number disambig dialog more verbose, showing phone type.

Bug: 2212826
Change-Id: Id0c14872c4126d55adab57c576ff079dfe738bc1
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/PhoneDisambigDialog.java
903239ff9ed5b070fbb4268c264ec063936c7a53 05-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing cache reset in GroupingListAdapter (Call Log)

Bug: 2479978
Change-Id: I70a17d13cedbd8986cd6dca2b218c7180dc17470
ndroid/contacts/GroupingListAdapter.java
ndroid/contacts/RecentCallsListActivity.java
e287d61e31e682c52222423c5a1750aa1b7ebc55 05-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an NPE in QuickContact

Bug: 2473868
Change-Id: I2106333299321585a8f41fac793df58ea39ff899
ndroid/contacts/ui/QuickContactWindow.java
8e6451bdffc01a3e8ecfa71ede85ddac6612a2c9 04-Mar-2010 Daniel Lehmann <lehmannd@google.com> Count the line "Create new contact"
Bug: 2479489

Change-Id: Idfc3b32350d22bc82674c20d25a492550180d97d
ndroid/contacts/ContactsListActivity.java
d8cadae7914e1edefdb317e98da35c152a5db933 04-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Making temp filename more unique to avoid cross-app collisions.

Change-Id: I030fd6d9f489f45826350fe4619a6d88868388d8
ndroid/contacts/ui/EditContactActivity.java
35e20bf60df0a1e655516036e0eb94a94b8114aa 04-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Making contact list focusable even when filtering is disabled.

The track ball should still be working in that case.

Change-Id: Iea88f20badee00a9de9e401a2d0218e1a99f984c
ndroid/contacts/ContactsListActivity.java
8e24b4036150efd45a2b73bbf1e5ea8574d28db3 04-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding an option to take a picture directly from Contacts app

Bug: 2480342
Change-Id: I4702e4177e524ff14962e81bd7749768920bd99a
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ui/EditContactActivity.java
46e1696260158689269ff82c9b0fe98c4a01c215 04-Mar-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make ImportVCardActivity accept Uri so that it can get vCard via Uri.

Bug: 2475007
ndroid/contacts/ImportVCardActivity.java
7b5bca9312cdfa289cc89ec1618094391327dbb8 03-Mar-2010 Dmitri Plotnikov <dplotnikov@google.com> Fix for NPE in ContactsListActivity

Bug: 2481454
Change-Id: Ie5c20245bf7c0a15068d340758636000922ce697
ndroid/contacts/ContactsListActivity.java
55e86ddfee11600498e94d071923f74545c01d5c 02-Mar-2010 David Brown <dab@google.com> Merge "FIX 2478164 -- Can't add a second call via dialpad"
dc1dfe2a21bc8afcc33778163398769957ac0afd 01-Mar-2010 David Brown <dab@google.com> FIX 2478164 -- Can't add a second call via dialpad

Fix a logic bug in updateDialAndDeleteButtonEnabledState() for GSM phones.

Bug: 2478164

Tested on Passion:
- Phone idle, no digits entered
==> Dial button recalls previous dialed number
- Phone idle, after typing some digits
==> Dial button dials the number you typed
- Phone in use, select "add call", no digits entered
==> Dial button recalls previous number
- Phone in use, add call, after typing some digits
==> Dial button adds a 2nd call with the number you typed
ndroid/contacts/TwelveKeyDialer.java
dd42181365a8b1df0869c633cc8f3c915cf2d3b2 01-Mar-2010 Daniel Lehmann <lehmannd@google.com> Added confirmation message to clear call log
Bug: 1447515

Change-Id: If8b591c070e164ca3aa0c0bcf7d0bce09befa01f
ndroid/contacts/RecentCallsListActivity.java
d5935248ad268ea93d366dc9df1e7f7e84d13f1e 27-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Set focus to field being edited after changing type Bug: 1382329"
02e28f9e6683c074de4198c63afbcabe3b34a99f 27-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing monkey bug 2473875 in contacts on Sapphire

The app would crash if you selected the "Search for more contacts" item
and hit the green button.

Bug: 2473875
Change-Id: I23245152eb9bd3ed15e71ba26a8dac7fb514db4f
ndroid/contacts/ContactsListActivity.java
abdbfc3918f227b6a0e07ba7230de969bbb77d3d 27-Feb-2010 Daniel Lehmann <lehmannd@google.com> Set focus to field being edited after changing type
Bug: 1382329

Change-Id: Ie0a885175f0dcbddaa9f15f676a118d2cf6d32ad
ndroid/contacts/ui/widget/GenericEditorView.java
833ed143183f3da72a9d28c304cc57d0451c8a4c 27-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixing issue with phone number pickers: it was returning the wrong data type"
da5fd9039bd303f5e4634a31ed9a00d58d679b39 26-Feb-2010 Daniel Lehmann <lehmannd@google.com> Converted lists with a maximum of one entry into single-item-lists. Also made "Notes" and "Nicknames" single-item-list because that is what GMail expects.
Bug: 2472403

Change-Id: I4dd767fb6cf1112e57a6343a14a7ab6303daaeae
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/ui/widget/KindSectionView.java
0476c68aa8b414643fdbd03cf97e58d950ca5075 26-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing issue with phone number pickers: it was returning the wrong data type

As promised, I am fixing it in "no time"

Bug: 2470555
Change-Id: Ic86c67c009ee4c5eb4ac5b5c1c81ce24d50cae62
ndroid/contacts/ContactsListActivity.java
469c07accaf4efb0596568312821e2147c092800 26-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Show the first 100 lines of a note (showed only the first 10 lines before) Bug: 2472544"
e182e6c0cf0e90a53672f88d331108915e6ed31a 26-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Reflecting the rename of contact search snippet fields.

Change-Id: I71b4dd29f5410662537919b98b238b927a36f8c6
ndroid/contacts/ContactsListActivity.java
0e32201c143ee18d5650c2fad5adfc4f65ed370b 26-Feb-2010 Daniel Lehmann <lehmannd@google.com> Show the first 100 lines of a note (showed only the first 10 lines before)
Bug: 2472544

Change-Id: I8508ec3848809b3f805048dbb9cc015d1c3ff9df
ndroid/contacts/ViewContactActivity.java
f3ee899e1897e143cec01ce26d81030b352083eb 26-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the "add contact from call log" flow involving search.

Bug: 2310010
Change-Id: I31bd5a62e47a23d2c2236205967a5fd7e891a1e6
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsSearchManager.java
558f463c8104013eb0327f8958654956cd187531 25-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "FIX: Must show organization even if "position" is empty; FIX: Split nicknames into separate list (was combined with organizations and resulted in wrong sort order). Bug: 2421235"
3f52bef77a588c714ec7c2968836673259f4005f 25-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding contact search snippets to the basic search UI

Bug: 2447965
Change-Id: I86455eabcc5153ace2eef9dd8afa5b5dc4da849d
ndroid/contacts/ContactsListActivity.java
e12f8a93469f4a041633d154cf94553c26788c5f 25-Feb-2010 Daniel Lehmann <lehmannd@google.com> FIX: Must show organization even if "position" is empty; FIX: Split nicknames into separate list (was combined with organizations and resulted in wrong sort order).
Bug: 2421235

Change-Id: I2cd2ecedc4c0ae05e916ecbdc912eb7715e41fee
ndroid/contacts/ViewContactActivity.java
4b045d44c53d16539e6b4b2f9e15204951f4aa84 24-Feb-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make Contacts share concacts using vCard."
5b59e3dd05c2991a4df29e8b865cfb06235aa4c7 10-Feb-2010 Daisuke Miyakawa <dmiyakawa@google.com> Make Contacts share concacts using vCard.

Bug: 2144645
ndroid/contacts/ContactsListActivity.java
51cc641af661ad010915d65ca949c77ea17f152a 24-Feb-2010 Daniel Lehmann <lehmannd@google.com> Removed superfluous OK button (The individual settings already confirm the dialog by themselves)

Change-Id: Id5628ed8ef970b3ebac46c9480289cccce05b081
ndroid/contacts/ui/ContactsPreferencesActivity.java
6ed2e1913c0b3fd475f8c52b55574bec5745d7fa 23-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an exception in postal address picker by disabling filtering (for now)

Change-Id: Icfe89c6c67159e8137b2e97210e69fbaa5b26e55
ndroid/contacts/ContactsListActivity.java
0781c47cbadc678b6534ca0fbf46a8ce214ac6d2 23-Feb-2010 Daisuke Miyakawa <dmiyakawa@google.com> Treat NPE: ignore directories which return null toward listFiles().

Bug: 2460741
ndroid/contacts/ImportVCardActivity.java
8e86b75681659ce124e89f73d0410efe39025d11 23-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Next pass over the contact search UI.

- Search is now a separate activity
- Search bar has animations to make it slide in from the top
- New search plate resources
- Showing a magnifying glass on the right hand side of the search field
- Showing pictures and QuickContact in search result UI
- Search UI now start with no results instead of all visible contacts
- Translucent background for search UI when no filter specified
- Search can now be launched from most activities in the app
- Allowing search in pickers

Bug: 2447965
Change-Id: Ie35ce6df5e850d9c9380a25ed3970e114e9d6929
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactOptionsActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsSearchManager.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/SearchEditText.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/ContactsPreferencesActivity.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/ShowOrCreateActivity.java
381c90991bd2816f7ec3664c08ac14bf0bb7c603 23-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Fixed: Make items selectable via track ball Fixed: Set correct item in display order dialog"
861eff4c626d67d4f98437193191c5296fa45bc0 23-Feb-2010 Daniel Lehmann <lehmannd@google.com> Fixed: Make items selectable via track ball
Fixed: Set correct item in display order dialog

Change-Id: I040b33f782224a226a59687e23b0a479f1887c74
ndroid/contacts/ContactOptionsActivity.java
ndroid/contacts/ui/ContactsPreferencesActivity.java
3340985ac00660e5ebabad798b072008d15ec214 21-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing excessive resource use when a bogus contact photo id is encountered.

ContactPhotoLoader would repeatedly attempt to load a missing
photo when the photo ID was invalid.

Change-Id: Ibb19a5ce6cad65d1d48bd06ca8e00ec85eee6b5a
ndroid/contacts/ContactPhotoLoader.java
2758a1df34acae008139cf858c94f8fbaa5f4bde 17-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing broken build.

Change-Id: I50f3702c17cdbacd2ede33a53fac829a1b1ef02b
ndroid/contacts/ContactsListActivity.java
00113e88b9dbf52fdb82c592aff1c4695e907a19 17-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the contacts indexer for UNICODE and last-name-first sorting.

This change may temporarily adversely affect the indexing in Japan.
If needed, I will take care of that in a separate CL.

Bug: 2407129
Change-Id: I2d96dab771243f68646edc49f0200d02e8c28bd9
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsSectionIndexer.java
e8643853bd1d988b3038a0bc17f0e8dcb6ad189e 17-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Redesign of contact photo loading.

Change-Id: Ib0814a789229c8355fbd67162679f4618ee75875
ndroid/contacts/ContactPhotoLoader.java
ndroid/contacts/ContactsListActivity.java
daa64ec141c192a0c664bf70bfe37bbbd6ce4e91 15-Feb-2010 Daisuke Miyakawa <dmiyakawa@google.com> Temporal work-around for the issue 2373553 and 2373557.
Note that this work-around does not work fine when any of contacts names start from some symbols like "~",
which cannot be solved easily without modifying icu delta binary file. But this works fine in usual cases
and nice enough for dogfooding.

Bug: 2373557
Bug: 2373553
ndroid/contacts/JapaneseContactListIndexer.java
605d02f1e67ac6ccedd9bac3b4f4be073e7593f8 13-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Making pinned section headers to not be displayed in contacts when there are no regular section headers

Change-Id: I6170648486a0bfa66044439a89dd39fad9df5a60
ndroid/contacts/ContactsListActivity.java
ddbba1f1921489ad23339835ee9178adc4c9ac10 12-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Temporary fix for the issue in Contacts that makes the wrong photo to be shown.

The issue appears to have something to do with extensive
concurrency going on there. For now I am just shrinking
the thread pool to one thread and that seems to be addressing
the problem. Next step will be to redesign the photo loading.

Bug: 2441230
Change-Id: I829bf11c4dd9699719fe556223669d477ebdbfc1
ndroid/contacts/ContactsListActivity.java
1e0faef6094c2e300d967c15b02c72a8ac7d961e 11-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE in Join contacts

Change-Id: Ic8720c0de4dd57dfada69c70e0a9ee68ebb5c995
ndroid/contacts/ContactsListActivity.java
47f1e1988bca3071017290bf538e927c0535e03b 11-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Adding a pinned section header to the contacts A-Z list"
2e77a1f33689d477428c8ce6fa7bf66c4de5e6b1 11-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding a pinned section header to the contacts A-Z list

Note: the bottom fading edge on the list is disappearing,
but only for a short while. I have discussed with the
framework folks adding a bit of API to keep the bottom
fading edge without the top.

Bug: 2436865

Change-Id: I71443ac89c83822cade5d2d16467f12c61a14570
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/FocusRequestingListView.java
ndroid/contacts/PinnedHeaderListView.java
4e67d8aa87bd02eed51c7d120e0a4c2e8a433580 11-Feb-2010 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Support vcard share: receiving a vcf file in contacts activity"
61096f4ed5c3e31d71d45f8763c5b402caa79073 11-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing an NPE caused by contact list initialization logic.

Bug: 2436884
Change-Id: Id615384b8da08146b587fca920f6ad99981c8351
ndroid/contacts/ContactsListActivity.java
24fc763c442204b55402864ec909e3989bd0b4fd 04-Dec-2009 Lixin Yue <L.X.Yue@motorola.com> Support vcard share: receiving a vcf file in contacts activity

Automatically accept and import a vcard into contacts, after receiving ACTION_VIEW intent
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/VCardActivity.java
ndroid/contacts/util/AccountSelectionUtil.java
db3d143dba9a0a9e3fb4cb57f27e619fee98e845 10-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> First batch of UI changes for the new Contacts Search.

Change-Id: I625eae64dfb34ea2be8758f845197303c34a4581
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/SearchEditText.java
607189f2a56878cc9f35168d1fb487709b9351ac 05-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing CursorIndexOutOfBoundsException in call log UI

Bug: 2419501
Change-Id: I98bc08f60555d4d46685a95fa802d7c501737abb
ndroid/contacts/GroupingListAdapter.java
1ea45f2fa000d6f35b3b2918d4d22dc5aa7b8f4f 05-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Minor UI tweaks in contacts preferences UI.

Change-Id: I28f2d3bf49e20a80c493c79dbcee906793f9f4f0
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ui/ContactsPreferencesActivity.java
ndroid/contacts/ui/DisplayGroupsActivity.java
a741d6135d58f2ab75b8c39cca4d914378240a37 02-Feb-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for "collapsibility" to the call log

Please note the optimizations for handling long call logs.

There is a change from the previous patch set: we now
break out from a group a bounced call if it is the latest
call in the group.

Bug: 2325659

Change-Id: I92e7dc25c2240f15f174391bf7b955c2596dbe30
ndroid/contacts/GroupingListAdapter.java
ndroid/contacts/RecentCallsListActivity.java
052c5c693db8cb5df1c6811448651a2b331bca16 30-Jan-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Adding support for display and sort order preferences."
daa2d5c232d03c4280acadb9b3a18a2328ddcb74 30-Jan-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for display and sort order preferences.

Bug: 2267198
Change-Id: I8153287896b03d798de163ea231b6ae2360cd6dc
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/TextHighlightingAnimation.java
ndroid/contacts/ui/ContactsPreferences.java
ndroid/contacts/ui/DisplayGroupsActivity.java
c3be69eeaf83e2bcc34821ca67a76d911e256331 14-Jan-2010 Nicolas Catania <niko@google.com> Uses the CallLogAsync class to lookup the last dialed number.

On resume an async lookup is started to find the last dialed number.
On completion the callback stores the number in a new member, mLastNumberDialed.

Renamed updateDialAndDeleteButtonStateEnabledAttr to updateDialAndDeleteButtonEnabledState.

Bug:2227429
ndroid/contacts/TwelveKeyDialer.java
998763d9d3c601ed2f88814d48b7c57c58defac2 14-Jan-2010 Nicolas Catania <niko@google.com> Renamed placeCall to dialButtonPressed.

placeCall does not always place calls so I think the name does not fit.

When we build the call intent, stop adding the number right away, if
number is null, I am not sure what the behavior will be. Instead we add
the tel uri only when we know that the number is not null/empty or when
it is a flash (empty string).

Added branch to insert the last dial number (need one more CL).

In onKeyUp, simplified the logic.

Bug:2227429
ndroid/contacts/TwelveKeyDialer.java
1055d0b63ff0eda2c0dd7a0c0e37d5cda6fbce9a 18-Jan-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the logic for assigning a name to a contact after a manual join.

Was: same as during automatic join.
Now: always favor the contact you started with. Ignore the name of
the contact that is being joined in.

Bug: 2164422
Change-Id: Iaf36351413541d7b9d715eef3535aa4292b61915
ndroid/contacts/ui/EditContactActivity.java
941b76f48d4c434cb9f7a67319627e2cef7b785b 19-Jan-2010 Nicolas Catania <niko@google.com> Fix bug in the test to check if the digits area is empty.
ndroid/contacts/TwelveKeyDialer.java
34fe5ca86dcd5a707ea5ff55d751e16e74968cd6 15-Jan-2010 Niko Catania <niko@google.com> Merge "Standardized the way we test if some digits are present."
be8821e264297bfc8f401d384b2e33474dacd4e9 15-Jan-2010 Nicolas Catania <niko@google.com> Standardized the way we test if some digits are present.
ndroid/contacts/TwelveKeyDialer.java
dfb1982d16fd6bae677f99143eb1448bfd22b3e2 15-Jan-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing icon on the "collapse" button in contact name editor

Bug: 2370412
Change-Id: Ia92c7eeb5038d34be458a5e5489dc9924a191271
ndroid/contacts/ui/widget/GenericEditorView.java
e3dd6812f8d78eb91c2415192f0130030e0c0eb3 07-Jan-2010 Daisuke Miyakawa <dmiyakawa@google.com> Uncomment JapaneseContactListIndexer, using SORT_KEY_PRIMARY.

This change seems incomplete; it seems all contacts with only ascii text
become in front of contact list, which is different from the behavior
in Donut.

But anyway, the class basically works fine with SORT_KEY_PRIMARY.

Bug: 2075641
ndroid/contacts/ContactsListActivity.java
382120a707eaa29accf5336bf6ff070145f5d298 04-Jan-2010 Niko Catania <niko@google.com> am 88adab6d: am 43d67b07: Merge "Extract the full telephone number from the tel: URL." into eclair-mr2

Merge commit '88adab6debb6cdbd93cdf10b564f6a36d26731b5'

* commit '88adab6debb6cdbd93cdf10b564f6a36d26731b5':
Extract the full telephone number from the tel: URL.
43d67b0762c31a0af9ed92336803b25aed7b1f06 04-Jan-2010 Niko Catania <niko@google.com> Merge "Extract the full telephone number from the tel: URL." into eclair-mr2
827762dd85fea80780bc0e8c3c34c439fb48f37d 23-Dec-2009 Jeff Sharkey <jsharkey@android.com> Always dial primary phone instead of ambiguous contact.

Fixes http://b/2270960
ndroid/contacts/ViewContactActivity.java
f3ea225f847f2a80decee89be81c6540e4d0fa0a 21-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I56e83543

* changes:
Switching to the new sort key on Contacts
ae4f42ec3a53665ca98d2d379f57f6626535e1dd 09-Dec-2009 Jeff Sharkey <jsharkey@android.com> Switch to using new Intent API for target rectangles.

Depends on change that deprecates EXTRA_TARGET_RECT. Also
add validation to QuickContact parameters.
ndroid/contacts/ui/QuickContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
4fd0c1a1fd87a7cee873f5a97abaee6069d7b5a0 21-Dec-2009 Dmitri Plotnikov <dplotnikov@google.com> Switching to the new sort key on Contacts

Change-Id: I56e83543ccc535b70427f6abc9b0d581c1034fa7
ndroid/contacts/ContactsListActivity.java
effb7ff73e41bffdad6264b6370d3bfe467b6b33 17-Dec-2009 Jeff Hamilton <jham@android.com> Cleanup a doc link.
ndroid/contacts/ContactsUtils.java
b5ff51925ad0a4efa67a7d63e849cb341d34100c 17-Dec-2009 Jeff Hamilton <jham@android.com> am c89ebea4: am 1bf258e4: Update to accomodate IM unbundling.

Merge commit 'c89ebea404a8274ad8c66ef88fa4779436a5e258'

* commit 'c89ebea404a8274ad8c66ef88fa4779436a5e258':
Update to accomodate IM unbundling.
ef667b82f6d642d2ec19ed6899aac5f5c7a18d58 09-Dec-2009 Jeff Sharkey <jsharkey@android.com> Ignore framework exceptions when dismissing dialogs.

Fixes http://b/2314228
ndroid/contacts/ui/EditContactActivity.java
1bf258e4a6b3f2ea1c5494f16cfc414994508ca8 15-Dec-2009 Jeff Hamilton <jham@android.com> Update to accomodate IM unbundling.
ndroid/contacts/ContactsUtils.java
4183f881b8a538d4dc0b4ea8321ca29aa48ad7e1 15-Dec-2009 Makoto Onuki <omakoto@google.com> Fix for bug 2326800. Make "More" on ContactEditorView visible again.

The problem was that:
- When the view is shown setSecondaryVisible() is called twice
- On the first call mSecondary has no children, so mSecondaryHeader is made GONE
- On the second call is has children, but as we didn't change the header's visibility, it remains GONE.
ndroid/contacts/ui/widget/ContactEditorView.java
d297e465c35a1d918923d3fa2ce97211fb665d1d 11-Dec-2009 Makoto Onuki <omakoto@google.com> am 4b23c891: am d6ccc719: Add websites to quick contact, and make sure the map icon and the website icon appear at the end of the list.

Merge commit '4b23c8917210aff4373bf98f40fafdccb0b4ba46'

* commit '4b23c8917210aff4373bf98f40fafdccb0b4ba46':
Add websites to quick contact, and make sure the map icon and the website icon appear at the end of the list.
d6ccc7195e8e27e716cce4fdcefdef7ac1775201 10-Dec-2009 Makoto Onuki <omakoto@google.com> Add websites to quick contact, and make sure the map icon and the website icon appear at the end of the list.

Fixes b/2272320.
ndroid/contacts/ui/QuickContactWindow.java
f8c631bbe0fb2024f9fe8c44ff0c0d29e030a05d 10-Dec-2009 Fred Quintana <fredq@google.com> am 7f2cbae2: am 8579e25f: changed to use the new EntityIterator interface

Merge commit '7f2cbae25f2d913ec047e0d614939e6d714ae9ce'

* commit '7f2cbae25f2d913ec047e0d614939e6d714ae9ce':
changed to use the new EntityIterator interface
8579e25faeedbb1d00ee295da4c74e45bd782573 07-Dec-2009 Fred Quintana <fredq@google.com> changed to use the new EntityIterator interface
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/ui/DisplayGroupsActivity.java
ndroid/contacts/ui/QuickContactWindow.java
ndroid/contacts/ui/ShowOrCreateActivity.java
ndroid/contacts/util/NotifyingAsyncQueryHandler.java
43094f62f186ebae4491675de9c230563cde6a8f 08-Dec-2009 Nicolas Catania <niko@google.com> Extract the full telephone number from the tel: URL.

Previously to extract the number from the dial intent data
we used the Uri class. This does not work very well be cause
dial string can contain character that are special in a Uri context.
For instance '#' in a dial string is a interpreted as a Uri fragment.

To work around that issue, we extract the dial string by flattening
the Uri into a string and skip the 'tel:' scheme.

Bug:2282423
ndroid/contacts/TwelveKeyDialer.java
be0f4db214b3b4bb251ef26135116152854182b9 08-Dec-2009 Jeff Sharkey <jsharkey@android.com> am 5f81f82d: am 373f2c68: am eb6f9c08: Merge change I0ad3fc43 into eclair

Merge commit '5f81f82ddf8c14b86ce6e5721638d2a09f0b39ae'

* commit '5f81f82ddf8c14b86ce6e5721638d2a09f0b39ae':
Avoid IAE by only dismissing dialog when still attached.
373f2c68131fada39948ecc4c1dd9770b5d0e856 07-Dec-2009 Jeff Sharkey <jsharkey@android.com> am eb6f9c08: Merge change I0ad3fc43 into eclair

Merge commit 'eb6f9c0824ed739ad4fbfeef19ac1b54553a0914' into eclair-mr2

* commit 'eb6f9c0824ed739ad4fbfeef19ac1b54553a0914':
Avoid IAE by only dismissing dialog when still attached.
eb6f9c0824ed739ad4fbfeef19ac1b54553a0914 07-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I0ad3fc43 into eclair

* changes:
Avoid IAE by only dismissing dialog when still attached.
d87cb89d2e504c2b994f92b8d4ec954e6b58590a 04-Dec-2009 Jeff Sharkey <jsharkey@android.com> am ec00f0d5: am 1a254304: am 1e576092: Merge change Ifb15e7fe into eclair

Merge commit 'ec00f0d5d28949b622014fc8e329a43cc2aa2e70'

* commit 'ec00f0d5d28949b622014fc8e329a43cc2aa2e70':
Make call log requeries use background thread.
4e2dc1e52ee0463ec158acd67e946d0857604de8 04-Dec-2009 Romain Guy <romainguy@android.com> am 1b55d095: am ae6b5883: am 26fbb58c: Add QuickContact badge around contacts shortcuts.

Merge commit '1b55d095d97bf2713eb92ced1d4542f8db396822'

* commit '1b55d095d97bf2713eb92ced1d4542f8db396822':
Add QuickContact badge around contacts shortcuts.
1a25430478e57784ce2babe12c9b6d6fcaea32e2 03-Dec-2009 Jeff Sharkey <jsharkey@android.com> am 1e576092: Merge change Ifb15e7fe into eclair

Merge commit '1e576092a606b1fc497138b0042cb376cbe9d486' into eclair-mr2

* commit '1e576092a606b1fc497138b0042cb376cbe9d486':
Make call log requeries use background thread.
1e576092a606b1fc497138b0042cb376cbe9d486 03-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ifb15e7fe into eclair

* changes:
Make call log requeries use background thread.
ae6b5883b034be1cea0d616278ea9793886c32dd 03-Dec-2009 Romain Guy <romainguy@android.com> am 26fbb58c: Add QuickContact badge around contacts shortcuts.

Merge commit '26fbb58c2d697a3c11e520ff237667e16ed8cf3b' into eclair-mr2

* commit '26fbb58c2d697a3c11e520ff237667e16ed8cf3b':
Add QuickContact badge around contacts shortcuts.
26fbb58c2d697a3c11e520ff237667e16ed8cf3b 03-Dec-2009 Romain Guy <romainguy@android.com> Add QuickContact badge around contacts shortcuts.

Change-Id: I0757abbc118979917bc7d3ecb64103a9cdd4da00
ndroid/contacts/ContactsListActivity.java
de23dfdd0b779e001b397ed9b39653297063431f 03-Dec-2009 Joe Onorato <joeo@android.com> am 66db5497: am 89d5b32c: am 75e84518: Make QuickContactActivity look at the sourceBounds property of Intent as well.

Merge commit '66db5497fd899ae215436fed055cd10e9a5a799d'

* commit '66db5497fd899ae215436fed055cd10e9a5a799d':
Make QuickContactActivity look at the sourceBounds property of Intent as well.
aa6631e4fbef3282c0810a6c1bcfa10aabf3ee24 03-Dec-2009 Romain Guy <romainguy@android.com> am a7466fc0: am ee052b04: resolved conflicts for merge of 2bbeffbe to eclair-mr2

Merge commit 'a7466fc08668e7b8c0b6f932e06188da678480b8'

* commit 'a7466fc08668e7b8c0b6f932e06188da678480b8':
Make Home contacts shortcut bring up the quick contact window.
89d5b32c6f5fe3ff5733b4a62c66dd2d6e590a65 03-Dec-2009 Joe Onorato <joeo@android.com> am 75e84518: Make QuickContactActivity look at the sourceBounds property of Intent as well.

Merge commit '75e84518dd097e5fe8bacad5fa24aca0f1dedd43' into eclair-mr2

* commit '75e84518dd097e5fe8bacad5fa24aca0f1dedd43':
Make QuickContactActivity look at the sourceBounds property of Intent as well.
75e84518dd097e5fe8bacad5fa24aca0f1dedd43 03-Dec-2009 Joe Onorato <joeo@android.com> Make QuickContactActivity look at the sourceBounds property of Intent as well.
ndroid/contacts/ui/QuickContactActivity.java
c93e6d51678d6de80c2f21e3bfb0664444396099 03-Dec-2009 Nicolas Catania <niko@google.com> am dc4e068c: am 2fc629bd: Merge change I905e7621 into eclair-mr2

Merge commit 'dc4e068c0aa3f993d8f18a0fbc4c77af5820bce6'

* commit 'dc4e068c0aa3f993d8f18a0fbc4c77af5820bce6':
Dialpad uses the new HapticFeedback class.
bbca55a6010890500640c128de021e76520dd617 03-Dec-2009 Daisuke Miyakawa <dmiyakawa@google.com> am c2369d0c: am c1d3e0e9: Merge change I2d66a983 into eclair-mr2

Merge commit 'c2369d0c16c32e1c221a3a168c6e3b3018106b3f'

* commit 'c2369d0c16c32e1c221a3a168c6e3b3018106b3f':
Make Contacts app refresh cached EditFields when Locale is changed, and
ee052b0436476b7221859d090303ffec1d46d23b 03-Dec-2009 Romain Guy <romainguy@android.com> resolved conflicts for merge of 2bbeffbe to eclair-mr2
2bbeffbea42406c75d1a1564896c95a2ac31e5e7 03-Dec-2009 Romain Guy <romainguy@android.com> Make Home contacts shortcut bring up the quick contact window.

Change-Id: I9cb20b9c7d77dc29a08019554f746089665403f5
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ui/QuickContactWindow.java
2fc629bd6ac5c27a5610553d3f54eadf20516224 02-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I905e7621 into eclair-mr2

* changes:
Dialpad uses the new HapticFeedback class.
c1d3e0e9139a47645aedfd9fe6704d7621f5ef12 02-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I2d66a983 into eclair-mr2

* changes:
Make Contacts app refresh cached EditFields when Locale is changed, and change the display order of elements of StructuredName and StructuredPostal in accordance with the current locale.
9023b859c0809868ac874c8ede0b7012623cfbdd 02-Dec-2009 Neel Parekh <neel@google.com> am 9b1085dc: am 96e7cee6: Merge change Ie6dfae04 into eclair-mr2

Merge commit '9b1085dc2fb6ad2e493b941f283c558e18d2d91d'

* commit '9b1085dc2fb6ad2e493b941f283c558e18d2d91d':
Fix title for creating a new contact.
0d354d3abff6df07e0f9dbc9dbde422d96a7269f 01-Dec-2009 Jeff Sharkey <jsharkey@android.com> Make call log requeries use background thread.

Fixes http://b/2285268
ndroid/contacts/RecentCallsListActivity.java
96e7cee60fb87e9f7c14e7ee91febdbae1c31da8 01-Dec-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ie6dfae04 into eclair-mr2

* changes:
Fix title for creating a new contact.
0ad3fc4376502137bf5ba93f02919363e17a471f 01-Dec-2009 Jeff Sharkey <jsharkey@android.com> Avoid IAE by only dismissing dialog when still attached.

Fixes http://b/2138584
ndroid/contacts/ui/EditContactActivity.java
905e76215c70d39272d1696b7d46e484509e133d 01-Dec-2009 Nicolas Catania <niko@google.com> Dialpad uses the new HapticFeedback class.

The new HapticFeedback class sits on top of the os vibrator
and honor the haptic feedback on-off system setting.

HapticFeedback is part of the static lib in Phone which
contains common code between Phone and Contacts.

Bug:2261184
ndroid/contacts/TwelveKeyDialer.java
f4ac04628763d8df783768b86d5e7b162a9a3d38 24-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make Contacts app refresh cached EditFields when Locale is changed, and
change the display order of elements of StructuredName and StructuredPostal
in accordance with the current locale.

Especially in Japan, the way how to display name and postal addresses is
different from US's. For example, "Family Middle Given" is usual in Japan,
while "Given Middle Family" is usual in US and perhaps the other countries.

Internal issue number: 2275764
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/Sources.java
73ed42a214e649a3594fe3fef73ee92d4f45cb82 26-Nov-2009 Makoto Onuki <omakoto@google.com> am d874b130: am 4cbb29a4: EditContactActivity: Save and restore the visibility of EditTexts/secondary section across Activity\'s lifecycle.

Merge commit 'd874b130f497411091a66dd65deba034cab160b3'

* commit 'd874b130f497411091a66dd65deba034cab160b3':
EditContactActivity: Save and restore the visibility of EditTexts/secondary section across Activity's lifecycle.
4cbb29a41b5cfec61b6b785794878cce4c00b445 12-Nov-2009 Makoto Onuki <omakoto@google.com> EditContactActivity: Save and restore the visibility of EditTexts/secondary section across Activity's lifecycle.

Fixes b/2198110.
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
a4a485f3b40e70acc22fa8ffcfafae4be2dbf507 20-Nov-2009 Makoto Onuki <omakoto@google.com> am d36ef65b: am 7a70738a: ViewContactActivity: Don\'t show "No additional info..." while we\'re still loading data.

Merge commit 'd36ef65b1cde7289f7f8c46fb7c2ee874b9712a2'

* commit 'd36ef65b1cde7289f7f8c46fb7c2ee874b9712a2':
ViewContactActivity: Don't show "No additional info..." while we're still loading data.
e6dfae0485a42dc697e64daa8d35143c15d6bf1c 20-Nov-2009 Neel Parekh <neel@google.com> Fix title for creating a new contact.

Bug: 2209363
ndroid/contacts/ui/EditContactActivity.java
7a70738a3cd3a2519f504ff35607eb543a06d134 19-Nov-2009 Makoto Onuki <omakoto@google.com> ViewContactActivity: Don't show "No additional info..." while we're still loading data.

Fixes b/2195805.
ndroid/contacts/ViewContactActivity.java
41e9430b188f615fe8b8412e66319cc2d47685b1 19-Nov-2009 Jeff Sharkey <jsharkey@android.com> am 67e52c54: am 16c364a5: Parse organization and notes from intent extras.

Merge commit '67e52c54903cbcc59451ce519c7f530cdeeac4bd'

* commit '67e52c54903cbcc59451ce519c7f530cdeeac4bd':
Parse organization and notes from intent extras.
5b80a65dc82e51fc748252566ee434c1b6a5802d 19-Nov-2009 Neel Parekh <neel@google.com> am eeb2ebad: am b1590e17: Move IM to the "more" section.

Merge commit 'eeb2ebadebdb5bc898b8bc3c2eeced3808c76613'

* commit 'eeb2ebadebdb5bc898b8bc3c2eeced3808c76613':
Move IM to the "more" section.
16c364a557d619a0396ed35249478dcf2c1ffba5 12-Nov-2009 Jeff Sharkey <jsharkey@android.com> Parse organization and notes from intent extras.

Fixes http://b/2256272
ndroid/contacts/model/EntityModifier.java
b1590e172e3d4e7bafb478926f4ff8834bef973d 19-Nov-2009 Neel Parekh <neel@google.com> Move IM to the "more" section.

Bug: 2267141
ndroid/contacts/model/FallbackSource.java
71ce956c11cbb002c6c0b39ab2232e304daf380b 18-Nov-2009 Dan Egnor <egnor@google.com> am 999ee6e8: am af953427: Merge change I7c66eb48 into eclair-mr2

Merge commit '999ee6e88a1f70904ab578e5d70f23ff0dead561'

* commit '999ee6e88a1f70904ab578e5d70f23ff0dead561':
Remove an unused and inconvenient import statement.
af953427e532ea03464f4d08f17ec9ebafb85834 18-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I7c66eb48 into eclair-mr2

* changes:
Remove an unused and inconvenient import statement.
7c66eb480f18c71e2e4dac320fb35886dc1b1f0d 18-Nov-2009 Dan Egnor <egnor@google.com> Remove an unused and inconvenient import statement.
ndroid/contacts/SplitAggregateView.java
9be78fe086eb8cbb7ad947e8c28eaa1114bfcc8a 18-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 4d92ba6f: am de31a7a6: Make ImportVCardActivity.java adapt to refactored vCard code. Must be submitted after the change I11526e6c.

Merge commit '4d92ba6ff22def99d1054c3e27191f72d9d2b9cf'

* commit '4d92ba6ff22def99d1054c3e27191f72d9d2b9cf':
Make ImportVCardActivity.java adapt to refactored vCard code.
de31a7a65820c8a8075797e66ab22a133f942b85 17-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make ImportVCardActivity.java adapt to refactored vCard code.
Must be submitted after the change I11526e6c.

Internal issue number: 2195990
ndroid/contacts/ImportVCardActivity.java
cafb8af16aa2a66070f95c7e07ef6d17507c27be 16-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 03429ef5: am fec783e0: Rename class names. Must be applied with the change Iecf85b40.

Merge commit '03429ef5ddaf3af3bfd7d06befb3ea38231dab16'

* commit '03429ef5ddaf3af3bfd7d06befb3ea38231dab16':
Rename class names. Must be applied with the change Iecf85b40.
fec783e012a568e3b0a2c6e220b4bf742f89d983 16-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> Rename class names. Must be applied with the change Iecf85b40.

Internal issue number: 2195990
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ProgressShower.java
fb1465971fb75eb7efc5267ab441174f49dd890b 12-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> am ea328ed7: am 373da77b: am 56150748: Revert "Use scan mode introduced in VCardParser."

Merge commit 'ea328ed71447227160f98ab4aaa344f08c6dc7ab'

* commit 'ea328ed71447227160f98ab4aaa344f08c6dc7ab':
Revert "Use scan mode introduced in VCardParser."
96ef76171e26b225cf35663fb8c0ee18ab15b6c9 12-Nov-2009 Jean-Michel Trivi <jmtrivi@google.com> am 4a7b8678: am 1016604c: am dd44f8c8: Fix bug 2239212 "Dial pad has no sound" The DTMF stream volume is tied to the in-call volume. In the dialer outside of a call, the user has no way to change the touch tone volume. If (s)he lowered the incall volume all the way do

Merge commit '4a7b8678d04b8eaff79f544b990492c27bbbc736'

* commit '4a7b8678d04b8eaff79f544b990492c27bbbc736':
Fix bug 2239212 "Dial pad has no sound"
373da77b6974f2cf3fb0c69c1225df55ef7d526d 12-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 56150748: Revert "Use scan mode introduced in VCardParser."

Merge commit '5615074876e324863accc8d68ebe567c0041bda5' into eclair-mr2

* commit '5615074876e324863accc8d68ebe567c0041bda5':
Revert "Use scan mode introduced in VCardParser."
1016604cc4989de5361aac75b05e861be1d24d5d 12-Nov-2009 Jean-Michel Trivi <jmtrivi@google.com> am dd44f8c8: Fix bug 2239212 "Dial pad has no sound" The DTMF stream volume is tied to the in-call volume. In the dialer outside of a call, the user has no way to change the touch tone volume. If (s)he lowered the incall volume all the way down, the user will usually

Merge commit 'dd44f8c8d1dac0cf137a160b6ba9f3ca42f65600' into eclair-mr2

* commit 'dd44f8c8d1dac0cf137a160b6ba9f3ca42f65600':
Fix bug 2239212 "Dial pad has no sound"
5615074876e324863accc8d68ebe567c0041bda5 11-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> Revert "Use scan mode introduced in VCardParser."

This reverts commit 51f6f77ef0fb1e16be9d19009252ced701e19f75.

Found that the change above is NOT related to the issue 2245363 and break the build.

Dr.NO: Hiroshi

Internal issue number: 2245363
ndroid/contacts/ImportVCardActivity.java
ee455d5cc87fcad55e52c3c720aaf341b2dd7114 11-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I428a6432 into eclair

* changes:
Use scan mode introduced in VCardParser.
5cf440fd8ea17ccd5ee68390a7773164064758f6 11-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> am f6be3cf8: am eb175d68: Merge change I07725a2b into eclair-mr2

Merge commit 'f6be3cf846d32c3423ff0e0815cd65dabaf9dd9b'

* commit 'f6be3cf846d32c3423ff0e0815cd65dabaf9dd9b':
Fix vCard exporter so that it does not throw NPE during export (though the exception is rarely seen).
51f6f77ef0fb1e16be9d19009252ced701e19f75 10-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> Use scan mode introduced in VCardParser.

This change must be merged after the change I5d30aa18 being submitted.

Internal issue number: 2245363

Dr.NO: Hiroshi
ndroid/contacts/ImportVCardActivity.java
eb175d688ad9e25f1ef126e838f86c96a14e6b02 11-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I07725a2b into eclair-mr2

* changes:
Fix vCard exporter so that it does not throw NPE during export (though the exception is rarely seen).
76315a2d0b73d75f755ae07e5f9f7cff2c8827f6 11-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix vCard exporter so that it does not throw NPE during export (though the exception is rarely seen).

This issue is similar to what I saw in ImportVCardActivity, in which Thread starts before the
dialog is created. By changing the order of method calls, this change should be fixed.

Internal issue number: 2251391
ndroid/contacts/ExportVCardActivity.java
967ae0149668130398d355c92f0df4903328ebed 10-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 92d9ac71: am e40bdce6: Use scan mode introduced in VCardParser.

Merge commit '92d9ac71d351045fd4ecf586b8ab82dc8f86da61'

* commit '92d9ac71d351045fd4ecf586b8ab82dc8f86da61':
Use scan mode introduced in VCardParser.
e40bdce6169488d8701db0b1878ae400730aa370 10-Nov-2009 Daisuke Miyakawa <dmiyakawa@google.com> Use scan mode introduced in VCardParser.

Internal issue number: 2245363
ndroid/contacts/ImportVCardActivity.java
dd44f8c8d1dac0cf137a160b6ba9f3ca42f65600 10-Nov-2009 Jean-Michel Trivi <jmtrivi@google.com> Fix bug 2239212 "Dial pad has no sound"
The DTMF stream volume is tied to the in-call volume. In the dialer
outside of a call, the user has no way to change the touch tone
volume. If (s)he lowered the incall volume all the way down,
the user will usually complain that the dial pad has no sound,
and if they maxed it out, they'll complain it's too loud.
This change causes the tones to use the media volume, outside of
a call only, and to change the media volume when the user presses
the hardware volume keys.
This gives us both the advantage of keeping the incall behavior consistent
with the existing behavior (AFAIK there are no complaints regarding
in call DTMF volume), but offers the user control over the volume
in the dialer before/after a call.
ndroid/contacts/TwelveKeyDialer.java
683abab8fc6e7b620ea6ecb46e915e8685da2a24 10-Nov-2009 Makoto Onuki <omakoto@google.com> am f65adf01: am 4455e5a1: Merge change I8693b0d9 into eclair-mr2

Merge commit 'f65adf01254de4beb381ad5bba86bee2c142c512'

* commit 'f65adf01254de4beb381ad5bba86bee2c142c512':
EditContactActivity: Restore focus when the screen rotates.
4b722a93f1ecdeb2890fb7e5db4c22794bccfdcd 02-Nov-2009 Makoto Onuki <omakoto@google.com> EditContactActivity: Restore focus when the screen rotates.

Assign unique but consistent IDs to the EditText on EditContactActivity, so that focus is restored when we recreate the activity.
Also assign IDs to other views, such as GenericEditorView as well. This will be used to restore views' visibility.

This fixes b/2151340.

Also, set focus at the new EditText when you add a new field by clicking on the "+" button.

This fixes b/2223543.
ndroid/contacts/model/Editor.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/ui/DisplayGroupsActivity.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/ViewIdGenerator.java
ndroid/contacts/ui/widget/BaseContactEditorView.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
ndroid/contacts/ui/widget/PhotoEditorView.java
ndroid/contacts/ui/widget/ReadOnlyContactEditorView.java
2c0dfff57ea96027210fd4c807a4cee8cf560c4b 04-Nov-2009 Jeff Sharkey <jsharkey@android.com> am 39979a3f: am cc31341a: am e040876b: Avoid offering "share" for restricted-only contacts.

Merge commit '39979a3f121f01d2ec431202388b773a27d5f5a4'

* commit '39979a3f121f01d2ec431202388b773a27d5f5a4':
Avoid offering "share" for restricted-only contacts.
cc31341abd08df772b7946a026d2ee8dfa5310db 04-Nov-2009 Jeff Sharkey <jsharkey@android.com> am e040876b: Avoid offering "share" for restricted-only contacts.

Merge commit 'e040876b306dfc2e161f080f53e32dd96bc873bd' into eclair-mr2

* commit 'e040876b306dfc2e161f080f53e32dd96bc873bd':
Avoid offering "share" for restricted-only contacts.
e040876b306dfc2e161f080f53e32dd96bc873bd 03-Nov-2009 Jeff Sharkey <jsharkey@android.com> Avoid offering "share" for restricted-only contacts.

Fixes http://b/2223256
ndroid/contacts/ViewContactActivity.java
daef2baaa4427c7b1a1dd5e29f36d0c4ee25469b 03-Nov-2009 Evan Millar <emillar@google.com> am e65a2b13: am 07b7db66: Merge change I10483b6b into eclair-mr2

Merge commit 'e65a2b13a26bf28f877ecc55634553b54c9f664e'

* commit 'e65a2b13a26bf28f877ecc55634553b54c9f664e':
Scale contact shortcut icons to correct size.
07b7db663268bc6d6c6feb4de4a576f600597cd6 03-Nov-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I10483b6b into eclair-mr2

* changes:
Scale contact shortcut icons to correct size.
d196542276fed65ed3d4e2dead09caeecdb6af67 03-Nov-2009 Evan Millar <emillar@google.com> Scale contact shortcut icons to correct size.

Fixes http://b/issue?id=2163538
ndroid/contacts/ContactsListActivity.java
81db5b2163b121bef56bc27c528e318b6cef3021 03-Nov-2009 Nicolas Catania <niko@google.com> am 859865c9: am 4e700d6f: Merge change Ie2d91013 into eclair-mr2

Merge commit '859865c90920f0c2a3eb84abdc78e148b79a8e2d'

* commit '859865c90920f0c2a3eb84abdc78e148b79a8e2d':
Remove duplicate ButtonGridLayout class.
8fd1a86f1b9ab4f5636795a761a0bc98b19bcf03 02-Nov-2009 Nicolas Catania <niko@google.com> Remove duplicate ButtonGridLayout class.

Uses the one from the shared phone static lib.
ndroid/contacts/ButtonGridLayout.java
f9eb1998b5bb81e839c6d0030fcb7f01c9711532 02-Nov-2009 Jeff Sharkey <jsharkey@android.com> am f30824f8: am dbeb965d: Avoid NPE in isEmpty() when no EditFields defined.

Merge commit 'f30824f8700823fe3a8fe01609a9ec4c129109df'

* commit 'f30824f8700823fe3a8fe01609a9ec4c129109df':
Avoid NPE in isEmpty() when no EditFields defined.
93640fa2b864d83ce15d22f349144972765647a3 30-Oct-2009 Jeff Sharkey <jsharkey@android.com> Avoid NPE in isEmpty() when no EditFields defined.

Fixes http://b/2226220
ndroid/contacts/model/EntityModifier.java
dbeb965d19a3c03e78cd54d9fbe7337b4fbb06f2 30-Oct-2009 Jeff Sharkey <jsharkey@android.com> Avoid NPE in isEmpty() when no EditFields defined.

Fixes http://b/2226220
ndroid/contacts/model/EntityModifier.java
2344217a1bb89de32f65507b7446ff64a299d4de 30-Oct-2009 Jeff Sharkey <jsharkey@android.com> am b1c26a68: am ecccd188: am 306f903f: Merge change I994fc479 into eclair

Merge commit 'b1c26a68860a73e2cbfd2f44cf9dad47a38b1c35'

* commit 'b1c26a68860a73e2cbfd2f44cf9dad47a38b1c35':
Send RESULT_CANCELED when missing, return legacy Uris.
04b8a8bf1aadeb6c2c5d32b0f2d047bf3781d25c 30-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 60a1c8ed: am ce6e5f52: am 5bd82f69: When reparenting, prefer GROUP_ROW_ID but allow fallback.

Merge commit '60a1c8ed886ce6daf3ac20e660b46d49cb53db1a'

* commit '60a1c8ed886ce6daf3ac20e660b46d49cb53db1a':
When reparenting, prefer GROUP_ROW_ID but allow fallback.
c76daab3c14c46099620d68f1ccf5b1d0bdba5b7 30-Oct-2009 Evan Millar <emillar@google.com> am 19b1e8b2: am 64ef8f7b: am 7f9ca285: Fix bug http://b/issue?id=2208177

Merge commit '19b1e8b26583edf7d8b96e050b7a11107d55741c'

* commit '19b1e8b26583edf7d8b96e050b7a11107d55741c':
Fix bug http://b/issue?id=2208177
ecccd188e5927e17cb5d4b4b0bf9c09e64275ac1 30-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 306f903f: Merge change I994fc479 into eclair

Merge commit '306f903ffb9aa39bb3833fa052f24a37dfed2a4f' into eclair-mr2

* commit '306f903ffb9aa39bb3833fa052f24a37dfed2a4f':
Send RESULT_CANCELED when missing, return legacy Uris.
ce6e5f529274665c50fc7339366a8b58749464f4 30-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 5bd82f69: When reparenting, prefer GROUP_ROW_ID but allow fallback.

Merge commit '5bd82f693788c39c2b2225ac49b38cb8be5d1d18' into eclair-mr2

* commit '5bd82f693788c39c2b2225ac49b38cb8be5d1d18':
When reparenting, prefer GROUP_ROW_ID but allow fallback.
64ef8f7b226e01c5cf347e24fc97f0d75242e169 30-Oct-2009 Evan Millar <emillar@google.com> am 7f9ca285: Fix bug http://b/issue?id=2208177

Merge commit '7f9ca2853d936ea0bdcf61cb7f9fb28c8669f681' into eclair-mr2

* commit '7f9ca2853d936ea0bdcf61cb7f9fb28c8669f681':
Fix bug http://b/issue?id=2208177
306f903ffb9aa39bb3833fa052f24a37dfed2a4f 30-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I994fc479 into eclair

* changes:
Send RESULT_CANCELED when missing, return legacy Uris.
e82043c7a2e319ce24215606fee8e50cccd1b167 28-Oct-2009 Jeff Sharkey <jsharkey@android.com> Send RESULT_CANCELED when missing, return legacy Uris.

When no contact was persisted (for example a save that has
been trimmed to a no-op) we return RESULT_CANCELED.

When an Intent like ACTION_INSERT requests a legacy Uri we
correctly return a legacy Uri instead of lookup-style.

Fixes http://b/2219805 and http://b/2219813
ndroid/contacts/ui/EditContactActivity.java
ccbc9cdcd85700ba336e4d6a97772f96fae180f7 30-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 9bd39896: am 2508e96e: Merge change I46befc3c into eclair-mr2

Merge commit '9bd39896ee94d18a4629d90153e3650ea640d322'

* commit '9bd39896ee94d18a4629d90153e3650ea640d322':
Consolidate Contacts code.
2508e96e7dd380568022cac86c0411212cde40ab 30-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I46befc3c into eclair-mr2

* changes:
Consolidate Contacts code.
5bd82f693788c39c2b2225ac49b38cb8be5d1d18 28-Oct-2009 Jeff Sharkey <jsharkey@android.com> When reparenting, prefer GROUP_ROW_ID but allow fallback.

When a GROUP_SOURCE_ID is the only value provided, usually
while a sync is still going on, allow it to remain when a
valid ROW_ID is present. Fixes http://b/2222283
ndroid/contacts/model/EntityDelta.java
7f9ca2853d936ea0bdcf61cb7f9fb28c8669f681 29-Oct-2009 Evan Millar <emillar@google.com> Fix bug http://b/issue?id=2208177

Use a subclass of ListView that explicitly requests focus after the
first time it is layed out.
ndroid/contacts/FocusRequestingListView.java
e2d572a3ada10c684dcd02a9103c65acd998b1e6 29-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am e3c0fec5: am cf94b9e2: Fixing legacy contact picker.

Merge commit 'e3c0fec596ccca0c8b154e11ada078566583b1f4'

* commit 'e3c0fec596ccca0c8b154e11ada078566583b1f4':
Fixing legacy contact picker.
cf94b9e22c56085a241b26fe976547bef185f523 28-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing legacy contact picker.

Also removing photos from legacy pickers, where we cannot show photos anyway.

Bug: http://b/2222348
Change-Id: Id199032254ac34747782a1d871f66a8b1adcae9f
ndroid/contacts/ContactsListActivity.java
46befc3c110616a775b03fdb51778037900f457e 28-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Consolidate Contacts code.

As per the issue 2217164, I roughly looked over how the variable "phoneNumber" is treaded in Eclair, and found the code around it looked a little flaky.

I believe this change does not make Contacts code easier to read, while there's no malicious regression.

Internal issue number: 2217164
ndroid/contacts/ContactsUtils.java
ndroid/contacts/PhoneDisambigDialog.java
e940880dae3674808ba24cd68d281333e9b1f979 27-Oct-2009 Evan Millar <emillar@google.com> am 8ea27333: am 951fa9c0: Make website item in Contact Card linked.

Merge commit '8ea2733356513969028e72bcf7b327f459381613'

* commit '8ea2733356513969028e72bcf7b327f459381613':
Make website item in Contact Card linked.
951fa9c0c55ba87d18b92a77e4d1d8091b29d7c9 26-Oct-2009 Evan Millar <emillar@google.com> Make website item in Contact Card linked.
ndroid/contacts/ViewContactActivity.java
6f1a089dd2a7c87decccdbe17433623177a42e7b 22-Oct-2009 Nicolas Catania <niko@google.com> am 7ac49872: am 970324a6: am 11cd6176: Merge change I7a26b27a into eclair

Merge commit '7ac49872d1f56aa1ca742356d7a900ab914db433'

* commit '7ac49872d1f56aa1ca742356d7a900ab914db433':
Fixed the contact's dialer layout.
970324a6fe1409f245cd96d86e2d28d44c01a16e 22-Oct-2009 Nicolas Catania <niko@google.com> am 11cd6176: Merge change I7a26b27a into eclair

Merge commit '11cd6176c9f3dd07be303ac42238b76a1b53b32b' into eclair-mr2

* commit '11cd6176c9f3dd07be303ac42238b76a1b53b32b':
Fixed the contact's dialer layout.
7a26b27ac17ae88fe6f53ed8574f999724302127 20-Oct-2009 Nicolas Catania <niko@google.com> Fixed the contact's dialer layout.

Currently the bottom row is clipped on WVGA-800.
Changes were made to fix the emergency dialer
that needed to be applied to the contact dialer.

Now, the contact dialer uses the same ButtonGridLayout
class which aligns the button at the bottom of the view.
This way we can control the spacing between the last row and
the 'torpedo' accurately.
The rest of the white space is distributed amongst the element
using layout_weight="1".

Tested on VGA, WVGA-854, WVGA-800

Bug:2198341
ndroid/contacts/ButtonGridLayout.java
d9a017875d13cc8f8fd690248d6419dd48f34194 17-Oct-2009 Paul Berman <paul.berman@motorola.com> am dacfee34: am 614e5784: am dbdcde26: Allow TwelveKeyDialer call button to send empty flash for CDMA

Merge commit 'dacfee344e42f9063ac03564d10fac7144851474'

* commit 'dacfee344e42f9063ac03564d10fac7144851474':
Allow TwelveKeyDialer call button to send empty flash for CDMA
614e578441b94f133a642f2fc45cf3f59fc31122 17-Oct-2009 Paul Berman <paul.berman@motorola.com> am dbdcde26: Allow TwelveKeyDialer call button to send empty flash for CDMA

Merge commit 'dbdcde2645f2ba0306b0f3fa08354cddf18a758b' into eclair-mr2

* commit 'dbdcde2645f2ba0306b0f3fa08354cddf18a758b':
Allow TwelveKeyDialer call button to send empty flash for CDMA
d6f6038c8170e87fdd0e2a608d2e6035b42ac700 16-Oct-2009 Makoto Onuki <omakoto@google.com> am a6d13126: am c710b0e7: Dedupe same entries in the fasttrack action list.

Merge commit 'a6d13126daeee53d5859f6d33a475afee32dc390'

* commit 'a6d13126daeee53d5859f6d33a475afee32dc390':
Dedupe same entries in the fasttrack action list.
c710b0e7a7932288763d7e3d08a882ac188303a8 14-Oct-2009 Makoto Onuki <omakoto@google.com> Dedupe same entries in the fasttrack action list.

Fixes b/2159633.
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
dbdcde2645f2ba0306b0f3fa08354cddf18a758b 09-Oct-2009 Paul Berman <paul.berman@motorola.com> Allow TwelveKeyDialer call button to send empty flash for CDMA

Currently the TwelveKeyDialer does not allow the user to press the green
call button if the dial text is empty. However, in CDMA when we place a
3-way call in some network infrastructures, you need to send an empty
Flash command to the network before adding the call. The user is accustomed to
pressing the call button in order to do this. Therefore here we make the
changes in TwelveKeyDialer.java required to handle that keypress and send the
blank flash.

Bug: 2179060
Change-Id: Ib8d05459cac708f9dc216412103c1a324d747ecb
ndroid/contacts/TwelveKeyDialer.java
4be8a3dfd1f9cfdff85f75d88bfc46f7182f328c 16-Oct-2009 Evan Millar <emillar@google.com> am 074d4f9f: am d30dc674: Fix monkey crasher (bug http://b/issue?id=2190035 and http://b/issue?id=2190875)

Merge commit '074d4f9f76375570ef2b4fef3d61d79d26775d9b'

* commit '074d4f9f76375570ef2b4fef3d61d79d26775d9b':
Fix monkey crasher (bug http://b/issue?id=2190035 and http://b/issue?id=2190875)
d30dc6745769e28dd8c4f86f44f529041d793e1f 16-Oct-2009 Evan Millar <emillar@google.com> Fix monkey crasher (bug http://b/issue?id=2190035 and http://b/issue?id=2190875)
ndroid/contacts/ContactsListActivity.java
e58bf746b6a5ee957ee5a512801ad7210a270a17 15-Oct-2009 Evan Millar <emillar@google.com> am 10a53f76: am db72832a: am aff62dc1: Fix off by one bug in favorites list call button.

Merge commit '10a53f7632d4954e54c3f5f6b68f692572fe468e'

* commit '10a53f7632d4954e54c3f5f6b68f692572fe468e':
Fix off by one bug in favorites list call button.
db72832a3c15f0d3b3a79c6b77fec0c1eef08e58 15-Oct-2009 Evan Millar <emillar@google.com> am aff62dc1: Fix off by one bug in favorites list call button.

Merge commit 'aff62dc1b044372007d9170290b247b3cf121cfe' into eclair-mr2

* commit 'aff62dc1b044372007d9170290b247b3cf121cfe':
Fix off by one bug in favorites list call button.
aff62dc1b044372007d9170290b247b3cf121cfe 15-Oct-2009 Evan Millar <emillar@google.com> Fix off by one bug in favorites list call button.

bc_triaged bug: http://b/issue?id=2179352
Dr. No: Tim Sullivan
ndroid/contacts/ContactsListActivity.java
d1dfb5441ced53151c0582455a92355b7f02c59a 14-Oct-2009 Jeff Sharkey <jsharkey@android.com> am c3f36826: am ce69c659: am 02599216: Remove vertical and colored bars from editors.

Merge commit 'c3f368267d35e5608472e75dcfe9d9a82a8563e8'

* commit 'c3f368267d35e5608472e75dcfe9d9a82a8563e8':
Remove vertical and colored bars from editors.
ce69c659e060e7e1585cb0095907c51e60c9816b 14-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 02599216: Remove vertical and colored bars from editors.

Merge commit '02599216bc39ca58754d5f3731a02dfd3d112964' into eclair-mr2

* commit '02599216bc39ca58754d5f3731a02dfd3d112964':
Remove vertical and colored bars from editors.
b426e567320cb3da02a0d2fec5af425710b35ed7 14-Oct-2009 Jeff Sharkey <jsharkey@android.com> am d4d53628: am 3fbeea48: am 7bec22d9: Merge change I43723de2 into eclair

Merge commit 'd4d53628bfe432b44afa339e4b89661a10247536'

* commit 'd4d53628bfe432b44afa339e4b89661a10247536':
Avoid setting checked state when dismissing FastTrack.
f98ef95a524c7846cb7a43fd78390511d9114379 14-Oct-2009 Jeff Hamilton <jham@android.com> am dd1f3c73: am 44d99c67: am 4bef56bd: Show phones and email addresses for read-only contacts.

Merge commit 'dd1f3c7322b6bec394f9124246436f57abf4b441'

* commit 'dd1f3c7322b6bec394f9124246436f57abf4b441':
Show phones and email addresses for read-only contacts.
ec2fbbce5d6744dce030835563b50785f322416a 14-Oct-2009 Nicolas Catania <niko@google.com> am 9a6fac91: am a6ecc0ed: Merge change Ieb30191a into eclair-mr2

Merge commit '9a6fac910027165ae6c7ac9770cb8d86fc327a98'

* commit '9a6fac910027165ae6c7ac9770cb8d86fc327a98':
In landscape mode, set the type of digit area to PHONE.
14b764926444f1b77cece1f059dc73656caac633 14-Oct-2009 Evan Millar <emillar@google.com> am e5847edf: am 0641d14c: am 0c035143: Clear bitmap cache in onResume() to make sure photos are fresh.

Merge commit 'e5847edf2514f0ad2798a2e99aad001cccf2491b'

* commit 'e5847edf2514f0ad2798a2e99aad001cccf2491b':
Clear bitmap cache in onResume() to make sure photos are fresh.
02599216bc39ca58754d5f3731a02dfd3d112964 14-Oct-2009 Jeff Sharkey <jsharkey@android.com> Remove vertical and colored bars from editors.

Fixes http://b/2186076
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/ReadOnlyContactEditorView.java
79b0159bfcf4a5cd1e83b1871e2fb8010413b423 13-Oct-2009 android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> resolved conflicts for merge of f6925aae to master (skipped res/values-es-rUS/strings.xml)
25fc2758c0b3c2967f10bdd5123a6c5519f8abd7 13-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 0289efad: am 37164a25: am 4c82d3b7: Handle external sources that request both social and detail.

Merge commit '0289efad24ec666b9f24cc24ab9cd1d2c459d8d9'

* commit '0289efad24ec666b9f24cc24ab9cd1d2c459d8d9':
Handle external sources that request both social and detail.
e8286189a66e11d1790c62fa4a39123fc95f0375 13-Oct-2009 Evan Millar <emillar@google.com> am 3f9aaee0: am c9b077c2: am 31e197bf: Merge change I3ee009e6 into eclair

Merge commit '3f9aaee0ce89885bafc5581fa18db657113522b1'

* commit '3f9aaee0ce89885bafc5581fa18db657113522b1':
Make shortcut icons adjust to hdpi display.
3289c2fccc79b0ebb0cf6551fceda90eab1ac179 13-Oct-2009 Jeff Sharkey <jsharkey@android.com> am a695b7d6: am 166ab1cb: am e31dac84: Trim edit fields that don\'t contain printable values.

Merge commit 'a695b7d693e6d67258f1b0804d2d2fc53646aa8a'

* commit 'a695b7d693e6d67258f1b0804d2d2fc53646aa8a':
Trim edit fields that don't contain printable values.
3a4b22040c366a32a87139c84acf6d9926f80b73 13-Oct-2009 Jeff Sharkey <jsharkey@android.com> am e6a946e7: am 10c3834b: am b7da2d0f: Allow omission of RES_PACKAGE for status attributions.

Merge commit 'e6a946e75a52e0fb8ee0e16a3a8687e843ee9a61'

* commit 'e6a946e75a52e0fb8ee0e16a3a8687e843ee9a61':
Allow omission of RES_PACKAGE for status attributions.
d07fa6840b817e3fda1cdc79e72026da7ff15344 13-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> am bfff1a29: am 5a08181f: Merge change Icf3aa797 into eclair-mr2

Merge commit 'bfff1a29c4af92c6999abb67d21db0eab2d722f3'

* commit 'bfff1a29c4af92c6999abb67d21db0eab2d722f3':
Clean-up ImportVCardActivity and ExportVCardActivity
a87c53a531fffa1e5029c4cb1e7378cc285c3543 13-Oct-2009 Evan Millar <emillar@google.com> am 1b51d759: am becfee4a: Don\'t show a call button in the favorites list if the contact doesn\'t have a phone number

Merge commit '1b51d7594cb52dd255cce7a6552f220aa0c41be3'

* commit '1b51d7594cb52dd255cce7a6552f220aa0c41be3':
Don't show a call button in the favorites list if the contact doesn't have a phone number
a5b8f824967e8814deed557d9e773bb577933fdb 13-Oct-2009 Evan Millar <emillar@google.com> am c28624ee: am 65c8cf18: am 43455184: Handle IM entries with missing protocol field.

Merge commit 'c28624ee2c856c7fed3e45e69550be0ff1452216'

* commit 'c28624ee2c856c7fed3e45e69550be0ff1452216':
Handle IM entries with missing protocol field.
6d59eed4e004f8fc89bc3d055d207951b955f517 13-Oct-2009 Jeff Sharkey <jsharkey@android.com> am e071fbce: am a37c8e89: am cee3b66d: Omit attribution icon in medium FastTrack.

Merge commit 'e071fbce8072f9d127f171d5d4900d3b65939b5e'

* commit 'e071fbce8072f9d127f171d5d4900d3b65939b5e':
Omit attribution icon in medium FastTrack.
f95928f74fd784d6212985dad006450be6951462 13-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 6b256004: am 8161085e: am 71737051: Ignore transient rows during re-parenting.

Merge commit '6b25600405fb37645b7da608029fbf3470a93104'

* commit '6b25600405fb37645b7da608029fbf3470a93104':
Ignore transient rows during re-parenting.
84b2132b7043fcf83675f07f24fbc6fb964d2f78 13-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 085cde2a: am 5858728f: am 4c129c92: Increment tries as we reparent to avoid looping.

Merge commit '085cde2aad73394739dbe98cf2517c5a9691ba57'

* commit '085cde2aad73394739dbe98cf2517c5a9691ba57':
Increment tries as we reparent to avoid looping.
2c49d866752e39e7c5a3c839000a9caee5b3984a 13-Oct-2009 Jeff Hamilton <jham@android.com> am 9dd267d4: am 9b241b1b: am 54b3e1fc: Merge change Ibc1b1f7d into eclair

Merge commit '9dd267d438edf2858ab8cb85e117c359d2538517'

* commit '9dd267d438edf2858ab8cb85e117c359d2538517':
Follow up changes from review of Ib2afc992.
3fbeea48f19ac5e758d6b19ad6d6462155f2ff58 12-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 7bec22d9: Merge change I43723de2 into eclair

Merge commit '7bec22d9cb610827b4c5f5fcbc1678e1344a2637' into eclair-mr2

* commit '7bec22d9cb610827b4c5f5fcbc1678e1344a2637':
Avoid setting checked state when dismissing FastTrack.
7bec22d9cb610827b4c5f5fcbc1678e1344a2637 12-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I43723de2 into eclair

* changes:
Avoid setting checked state when dismissing FastTrack.
da4e4832cf1b3789201d00f9970bd0b43d775366 12-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I1cde5dd0 into eclair

* changes:
In landscape mode, set the type of digit area to PHONE[do not merge].
b6f4531596adbefae445d7d40572ea88559324ed 12-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am fb06cb5e: am 40332ac1: am 406ae422: [Issue 2174171] Fixing Join Contact UI title.

Merge commit 'fb06cb5ef80380601bb419fbfa5b29f570fcc5ff'

* commit 'fb06cb5ef80380601bb419fbfa5b29f570fcc5ff':
[Issue 2174171] Fixing Join Contact UI title.
b9a03a9812a62bd99fcf7ef92c0e32cf9d9fb8d8 12-Oct-2009 Neel Parekh <neel@google.com> am 4e9227b6: am 9bef412e: am 0011e710: Fix clicking on the total contacts header item.

Merge commit '4e9227b6519b3885ebc872312037214470762bc3'

* commit '4e9227b6519b3885ebc872312037214470762bc3':
Fix clicking on the total contacts header item.
8a3a2bc02c8bc3e5994316b3fc30d6c0e504b7f3 12-Oct-2009 Evan Millar <emillar@google.com> am 81cd4bb1: am d2e6989a: am 2a5a27a0: Fix bc_triaged http://b/issue?id=2155790

Merge commit '81cd4bb17eae14f284ed10cb4ea3ad86e2337e97'

* commit '81cd4bb17eae14f284ed10cb4ea3ad86e2337e97':
Fix bc_triaged http://b/issue?id=2155790
7ce2a33f19d2dabd8bc0d19358a1be79174832cf 12-Oct-2009 Tadashi G. Takaoka <takaoka@google.com> am 1a900930: am 35fb5ef3: am 41449696: Merge change Ia961aa60 into eclair

Merge commit '1a900930b3865c8315f3686a1db09b8cee7c726e'

* commit '1a900930b3865c8315f3686a1db09b8cee7c726e':
Contacts: fixed custom label handling in GenericEditorView.
717118f4ada522656e5cd7fb7531f35489fb4fe2 12-Oct-2009 Evan Millar <emillar@google.com> am d5e916da: am f278917d: am eb0d6997: Merge change I362ca992 into eclair

Merge commit 'd5e916da16717d6b1df16fd00b3324379d00e5f5'

* commit 'd5e916da16717d6b1df16fd00b3324379d00e5f5':
Show message if contact has no data to show.
c284b3d1c3f00b939529496a88d825a34f122df1 12-Oct-2009 Jeff Hamilton <jham@android.com> am c9e3ded3: am 3abac16d: am 1fb6275a: Updates to the edit contact UI.

Merge commit 'c9e3ded3a8cddd07c3c788caa5c458e9de10acb0'

* commit 'c9e3ded3a8cddd07c3c788caa5c458e9de10acb0':
Updates to the edit contact UI.
734be27ff46e05696b7130abaf4db537c13d1c2a 12-Oct-2009 Costin Manolache <costin@google.com> am da5ea21c: am 96435b22: am 76c9ec4b: Part of Bug 2163087 fix - NPE if the main thread is removing the reference.

Merge commit 'da5ea21c3cbedb4d9ba079c253220c5c6b576f51'

* commit 'da5ea21c3cbedb4d9ba079c253220c5c6b576f51':
Part of Bug 2163087 fix - NPE if the main thread is removing the reference.
b66fe5c0ea8388967ebcd68be1cb1a60425d9a40 12-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am 9d8c358c: am cdf93193: am 8debb14b: [Issue 2166752] Properly displaying phone numbers containing letters

Merge commit '9d8c358caca739810c387d0f383aa37c0a87328a'

* commit '9d8c358caca739810c387d0f383aa37c0a87328a':
[Issue 2166752] Properly displaying phone numbers containing letters
44d99c673b63472e5f855588b313b46840165a64 12-Oct-2009 Jeff Hamilton <jham@android.com> am 4bef56bd: Show phones and email addresses for read-only contacts.

Merge commit '4bef56bdbde4c6bd439ed2d528d4b99974359e18' into eclair-mr2

* commit '4bef56bdbde4c6bd439ed2d528d4b99974359e18':
Show phones and email addresses for read-only contacts.
4bef56bdbde4c6bd439ed2d528d4b99974359e18 11-Oct-2009 Jeff Hamilton <jham@android.com> Show phones and email addresses for read-only contacts.

Bug: 2180041
Change-Id: I686e5413bb3de4c9373da177673c485581c87bb9
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/BaseContactEditorView.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/ReadOnlyContactEditorView.java
beb8eb721817e3b9efc8f822a487e57d050a0b8f 12-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 8984f6a6: am 36ef0608: am d1037fdb: Merge change I9a8a3d9d into eclair

Merge commit '8984f6a61a289f38e122889863903fbeb0d3e37f'

* commit '8984f6a61a289f38e122889863903fbeb0d3e37f':
Fix FastTrack recycling consistency issues, shadows.
b757617ab5e1397aa63db1cf40dd2abfa012cc44 12-Oct-2009 Evan Millar <emillar@google.com> am d4aecbec: am a03fb550: am 3075f6a4: Display empty text when there are no contacts visible.

Merge commit 'd4aecbec8b0dc1f8ca0f6d4170f09dd5852c06b5'

* commit 'd4aecbec8b0dc1f8ca0f6d4170f09dd5852c06b5':
Display empty text when there are no contacts visible.
51b36a5d26ad4d25658d34ac3b314ae9b4057599 12-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 21e30960: am 3d9a3209: am 685fdd50: Merge change I23d84a63 into eclair

Merge commit '21e30960e500b4d2eac5f35eb232e363f0739da4'

* commit '21e30960e500b4d2eac5f35eb232e363f0739da4':
Include Google Talk presence, even when missing Im rows.
a41a5a8b6d0797c36f9b9f82511f09a52e2f2293 12-Oct-2009 Costin Manolache <costin@google.com> am 25bb7b4e: am 4bd352d5: am c759ffbc: Merge change I740cfdad into eclair

Merge commit '25bb7b4eb0351b7fab4eb1469182d7b3d2833b30'

* commit '25bb7b4eb0351b7fab4eb1469182d7b3d2833b30':
Use a thread pool to fetch images. Bug 2163087.
9752d40c8f325a02ad60a9d2f24c50d827a7891f 12-Oct-2009 Megha Joshi <mjoshi@google.com> am e4ad1251: Prevents empty focus contacts without photo from being created.

Merge commit 'e4ad125110d1a9bc5e9cc50097953f7af3c85c67'

* commit 'e4ad125110d1a9bc5e9cc50097953f7af3c85c67':
Prevents empty focus contacts without photo from being created.
901f85684e8213cedccb329912881233d38480fe 09-Oct-2009 Nicolas Catania <niko@google.com> In landscape mode, set the type of digit area to PHONE[do not merge].

Backport from Ieb30191ace8a0d62adec4feaca8f81df7ac4e71b

Previously we blindely set the EditText to NULL to prevent the IME
keyboard to pop up in portrait mode. The issue is that in landscape
mode, the keyboard is not in numlock mode which is a pb on devices
where the 1st line is not made of numbers.

Bug: 2180808
ndroid/contacts/TwelveKeyDialer.java
3282a8e080a27fe8e404ab7eb946c0285992bf09 12-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am 62ccda12: am 55aac855: am 8577fee2: Merge change I517b266a into eclair

Merge commit '62ccda12556fc25b6ad1138fc159646eb45c371b'

* commit '62ccda12556fc25b6ad1138fc159646eb45c371b':
[Issue 2165144] Fixing managed delete dialogs in ContactListActivity
3922ed396101b581d40d34ceb0ca4b974ef36a62 12-Oct-2009 Jeff Sharkey <jsharkey@android.com> am fecde67e: am 3abc38af: am 5cbf6f43: Exclude FastTrack window from recent apps.

Merge commit 'fecde67e685c95a0180e956ff3df478345fdfd99'

* commit 'fecde67e685c95a0180e956ff3df478345fdfd99':
Exclude FastTrack window from recent apps.
6149ce7c12f6648a9d4e7acdf6dcf0ec8b77e12e 12-Oct-2009 Neel Parekh <neel@google.com> am 13c29c6d: am 59afce1d: am cf1af9a1: Merge change I14fec660 into eclair

Merge commit '13c29c6df6f801de413bc25b73500a0b97ab1a72'

* commit '13c29c6df6f801de413bc25b73500a0b97ab1a72':
Fix NPE being thrown when starting the AttachImage activity.
9872e2ed31140a67e59fe9135076491a66c5f526 12-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 111c3077: am f62d58fc: Merge change I806ebb68 into eclair-mr2

Merge commit '111c307707e90f8807a0ffff19c3ea325235a276'

* commit '111c307707e90f8807a0ffff19c3ea325235a276':
Use VCardDataBuilder#cancel().
8d219e53691dab3b2b6b1a617609d706f5d8c209 12-Oct-2009 Fred Quintana <fredq@google.com> am 8ef0e202: am 5fbf1d61: am 8e55e0da: account manager api review changes

Merge commit '8ef0e202aa602fcb80878370c26bf5ec0aac76d2'

* commit '8ef0e202aa602fcb80878370c26bf5ec0aac76d2':
account manager api review changes
35f4f3fc536fd938b61d740a0c3b5414200ca9ec 12-Oct-2009 Nicolas Catania <niko@google.com> am 05dd65b1: am d7a3cd59: Merge change I3040fa30 into eclair

Merge commit '05dd65b1e86aa5f33fde5b3a197bdd392188f528'

* commit '05dd65b1e86aa5f33fde5b3a197bdd392188f528':
Taping the dialed number allows editing.
69a43dd691412eac89f18dcdec3a889589cb211f 12-Oct-2009 Megha Joshi <mjoshi@google.com> am c847b3d1: am c508bd8c: Fixes bug where delete option from Menu list is disabled in Contact view mode. Bug was caused by the count increment logic being removed in the next submitted change https://android-git.corp.google.com/w/?p=platform/packages/apps/Contacts.git

Merge commit 'c847b3d1c3141a5d1f440eaf7fb81f352cfa8e76'

* commit 'c847b3d1c3141a5d1f440eaf7fb81f352cfa8e76':
Fixes bug where delete option from Menu list is disabled in Contact view mode.
03fc960b1ca16dd1c84f35d01df9f053e6355512 12-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am 5b37d621: am f042df95: [Issue 2157935] Adding a confirmation dialog for contact split.

Merge commit '5b37d6210524a15b7bf6bc7238b774730a9e3584'

* commit '5b37d6210524a15b7bf6bc7238b774730a9e3584':
[Issue 2157935] Adding a confirmation dialog for contact split.
d0b3279c8eddcb9805c988d0c3d85113aec53367 12-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am e2461343: am b8594f27: [Issue 2161366] Changing strings for total number of contacts displayed

Merge commit 'e24613437df404d66c255ec544027b1ea9b9a0d1'

* commit 'e24613437df404d66c255ec544027b1ea9b9a0d1':
[Issue 2161366] Changing strings for total number of contacts displayed
066b600b255a21add92898e00d84f38cee36feaa 12-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 084607c3: am e1032fa1: Dismiss FastTrack only after calling startActivity().

Merge commit '084607c3d4c0ff993bb72a001091c412d3de1e92'

* commit '084607c3d4c0ff993bb72a001091c412d3de1e92':
Dismiss FastTrack only after calling startActivity().
45fabc185dc285db248da46848f29cad2eadda63 12-Oct-2009 Neel Parekh <neel@google.com> am 55472240: am 6c0f8cf8: Fix attaching image on "new contact" screen.

Merge commit '55472240fbad3cf0442c56b43f2bcdcd68be71c5'

* commit '55472240fbad3cf0442c56b43f2bcdcd68be71c5':
Fix attaching image on "new contact" screen.
aa1e2df670171d17fd9b19331bcfc5d96b80da29 12-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am be7496af: am f3bd80a2: [Issue 2153296] Updating contact list section headers

Merge commit 'be7496af07952273a64e811c32d5428a4c292441'

* commit 'be7496af07952273a64e811c32d5428a4c292441':
[Issue 2153296] Updating contact list section headers
0be9cea392d59105695028c6cc8a0c8056dcc0d9 12-Oct-2009 Evan Millar <emillar@google.com> am 01268494: am 2fb3db55: Fix bug http://b/issue?id=2160189

Merge commit '0126849448632811e16729187da4dfa004878d66'

* commit '0126849448632811e16729187da4dfa004878d66':
Fix bug http://b/issue?id=2160189
f2abdf32bd7231a0ca6fb43883c09a909c334db2 12-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 5bc8b5ae: Fix ImportVCardActivity so that NPE will never occur during import.

Merge commit '5bc8b5ae64650e1a62d0b676b34c3f150631c951'

* commit '5bc8b5ae64650e1a62d0b676b34c3f150631c951':
Fix ImportVCardActivity so that NPE will never occur during import.
43723de2edc3bb084dffffc452bcec976e44008e 12-Oct-2009 Jeff Sharkey <jsharkey@android.com> Avoid setting checked state when dismissing FastTrack.

Fixes http://b/2180222
ndroid/contacts/ui/QuickContactWindow.java
a6ecc0edf8db5fca95e3d4b10e384f4c7ea55025 09-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ieb30191a into eclair-mr2

* changes:
In landscape mode, set the type of digit area to PHONE.
0641d14c3b275069a062a2dc260fa4a6faa67416 09-Oct-2009 Evan Millar <emillar@google.com> am 0c035143: Clear bitmap cache in onResume() to make sure photos are fresh.

Merge commit '0c035143ed4dee093bbfa3b8bdcda2ddf3fdb528' into eclair-mr2

* commit '0c035143ed4dee093bbfa3b8bdcda2ddf3fdb528':
Clear bitmap cache in onResume() to make sure photos are fresh.
0c035143ed4dee093bbfa3b8bdcda2ddf3fdb528 09-Oct-2009 Evan Millar <emillar@google.com> Clear bitmap cache in onResume() to make sure photos are fresh.

bc_triaged bug: http://b/issue?id=2177238
Dr. No: Tim Sullivan
ndroid/contacts/ContactsListActivity.java
eb30191ace8a0d62adec4feaca8f81df7ac4e71b 09-Oct-2009 Nicolas Catania <niko@google.com> In landscape mode, set the type of digit area to PHONE.

Previously we blindely set the EditText to NULL to prevent the IME
keyboard to pop up in portrait mode. The issue is that in landscape
mode, the keyboard is not in numlock mode which is a pb on devices
where the 1st line is not made of numbers.

Bug: 2167203
ndroid/contacts/TwelveKeyDialer.java
a8c8fd19314c2b1dd72a00ec922b98cff911b943 09-Oct-2009 Jeff Hamilton <jham@android.com> am dbb924c4: Merge change I700622d9 into eclair

Merge commit 'dbb924c493b8fffd8f7f0d2172953ba5c2b2c7a5' into eclair-mr2

* commit 'dbb924c493b8fffd8f7f0d2172953ba5c2b2c7a5':
Fix up photo editing, and few other tweaks to contact editing.
dbb924c493b8fffd8f7f0d2172953ba5c2b2c7a5 09-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I700622d9 into eclair

* changes:
Fix up photo editing, and few other tweaks to contact editing.
753b74fd68a610cc30d1c7aa851aba58983ac566 09-Oct-2009 Jeff Hamilton <jham@android.com> Fix up photo editing, and few other tweaks to contact editing.

- When tapping a photo you're given a choice to replace, remove, or use as primary
- Fix an issue where the secondary group would show when it shouldn't
- Tweak the size of the color bar per Chris
- Format phone numbers when typing them
- Fix a display issue with contacts that didn't fill the height of the screen
- If a contact is read-only and doesn't have a photo don't offer the option to add one

Bugs: 2163109 & 2163519
Change-Id: I700622d9dfdbcaa81e5b577fd5b2a38d708374aa
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/PhotoEditorView.java
37164a25e91e8f233237043975dd86c639863a6e 09-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 4c82d3b7: Handle external sources that request both social and detail.

Merge commit '4c82d3b7323b498e2a21daf94505daf0cd32d212' into eclair-mr2

* commit '4c82d3b7323b498e2a21daf94505daf0cd32d212':
Handle external sources that request both social and detail.
c9b077c2d06607ae9e835a978e550fc68b1cfc6f 09-Oct-2009 Evan Millar <emillar@google.com> am 31e197bf: Merge change I3ee009e6 into eclair

Merge commit '31e197bfdb4f94099c632dc89245b3b4711eb3cb' into eclair-mr2

* commit '31e197bfdb4f94099c632dc89245b3b4711eb3cb':
Make shortcut icons adjust to hdpi display.
166ab1cb67d923429d05372f1ed3a81aae9bed94 09-Oct-2009 Jeff Sharkey <jsharkey@android.com> am e31dac84: Trim edit fields that don\'t contain printable values.

Merge commit 'e31dac84479a4c7b356edfc062a447cdfb5efc69' into eclair-mr2

* commit 'e31dac84479a4c7b356edfc062a447cdfb5efc69':
Trim edit fields that don't contain printable values.
10c3834b4f745c235b8e1a37994b22ccd5bea767 09-Oct-2009 Jeff Sharkey <jsharkey@android.com> am b7da2d0f: Allow omission of RES_PACKAGE for status attributions.

Merge commit 'b7da2d0f30e012f786686bedea065af01f20a4e2' into eclair-mr2

* commit 'b7da2d0f30e012f786686bedea065af01f20a4e2':
Allow omission of RES_PACKAGE for status attributions.
4c82d3b7323b498e2a21daf94505daf0cd32d212 09-Oct-2009 Jeff Sharkey <jsharkey@android.com> Handle external sources that request both social and detail.

When a source requests social summary, allow them to still
provide a fallback detail value when no social summary is
available. (Otherwise the data row would be invisible.)

Partially fixes http://b/2176892
ndroid/contacts/model/ExternalSource.java
31e197bfdb4f94099c632dc89245b3b4711eb3cb 09-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I3ee009e6 into eclair

* changes:
Make shortcut icons adjust to hdpi display.
401d1b554df1359453c3295fe69516c82cfad2c9 08-Oct-2009 Evan Millar <emillar@google.com> Make shortcut icons adjust to hdpi display.

bc_triaged bug: http://b/issue?id=2171333

Change-Id: I3ee009e6469c0472f21a1cf82875a8419c39f59a
ndroid/contacts/ContactsListActivity.java
5a08181f18799248f21935bf7fca5124f86f7127 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Icf3aa797 into eclair-mr2

* changes:
Clean-up ImportVCardActivity and ExportVCardActivity
e31dac84479a4c7b356edfc062a447cdfb5efc69 08-Oct-2009 Jeff Sharkey <jsharkey@android.com> Trim edit fields that don't contain printable values.

When persisting edit changes, trim data rows that have no
printable characters. Also wrote unit tests for new method
and building of IM intents to check Uri escaping.

Fixes http://b/2173811
ndroid/contacts/ContactsUtils.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/ui/widget/GenericEditorView.java
3e92f3e26c05d3909e0f090ef6e0591a8358ba99 08-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Clean-up ImportVCardActivity and ExportVCardActivity

- Pull "mVCardReadThread.start()" out of getter method, which is confusing.
- Add extra description to each file about "one-shot Activity".
ndroid/contacts/ExportVCardActivity.java
ndroid/contacts/ImportVCardActivity.java
b7da2d0f30e012f786686bedea065af01f20a4e2 08-Oct-2009 Jeff Sharkey <jsharkey@android.com> Allow omission of RES_PACKAGE for status attributions.

FastTrack was being overly cautious about attribution labels
coming from third-party sources. When no RES_PACKAGE is
defined, we now fall back to using the local package instead
of completely dropping the attribution line.

Fixes http://b/2175531
ndroid/contacts/util/DataStatus.java
becfee4a12643678bca26a79ed44fa06eea7cfd9 07-Oct-2009 Evan Millar <emillar@google.com> Don't show a call button in the favorites list if the contact doesn't have a phone number

Fixes bug http://b/issue?id=2151489
ndroid/contacts/ContactsListActivity.java
65c8cf18585dc4fd39523c345f5168959b5fc3da 08-Oct-2009 Evan Millar <emillar@google.com> am 43455184: Handle IM entries with missing protocol field.

Merge commit '434551849d279bd24ca132ba4102b0d55823f59e' into eclair-mr2

* commit '434551849d279bd24ca132ba4102b0d55823f59e':
Handle IM entries with missing protocol field.
a37c8e891b4354264acf5ab0403613849448ea73 08-Oct-2009 Jeff Sharkey <jsharkey@android.com> am cee3b66d: Omit attribution icon in medium FastTrack.

Merge commit 'cee3b66d58693707d08639b81be2c3ee2120ce6f' into eclair-mr2

* commit 'cee3b66d58693707d08639b81be2c3ee2120ce6f':
Omit attribution icon in medium FastTrack.
434551849d279bd24ca132ba4102b0d55823f59e 08-Oct-2009 Evan Millar <emillar@google.com> Handle IM entries with missing protocol field.

Fix bc_triaged bug http://b/issue?id=2174637
Dr. No approval from Tim Sullivan

Change-Id: Ia91c39e91a54e3c58ec94d1c5064a9572519f036
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ui/QuickContactWindow.java
cee3b66d58693707d08639b81be2c3ee2120ce6f 08-Oct-2009 Jeff Sharkey <jsharkey@android.com> Omit attribution icon in medium FastTrack.

Fixes http://b/2175531
ndroid/contacts/ui/QuickContactWindow.java
2db67f796d642b71a6f0accee45dcedd1e646961 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I652a8d7b into eclair

* changes:
Fix ImportVCardActivity so that NPE will never occur during import.
8161085e3fb543b3849aad2262ed2975efc98f99 08-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 71737051: Ignore transient rows during re-parenting.

Merge commit '7173705177c421e0b2a3bc4579b2f8910a38a668' into eclair-mr2

* commit '7173705177c421e0b2a3bc4579b2f8910a38a668':
Ignore transient rows during re-parenting.
7173705177c421e0b2a3bc4579b2f8910a38a668 07-Oct-2009 Jeff Sharkey <jsharkey@android.com> Ignore transient rows during re-parenting.

When editing, we create template rows such as StructuredName
and Photo, which may be trimmed before persisting if they
remain empty. When a background change occurs and we need
to re-parent the users changes, we didn't handle this
special case, and treated these trimmed rows as inserts,
which triggered the reported missing MIME-type exception.

This change watches for "transient" rows that didn't exist
previously, but were inserted and then deleted during the
process of editing. When encountered, they are ignored
during re-parenting, instead of turning into inserts.

Added a unit test to verify correct behavior, and also wrote
values-level verification for the existing unit tests.

Fixes http://b/2167925
ndroid/contacts/model/EntityDelta.java
5858728f96d80ea6042912ad763067d6c0326fb3 08-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 4c129c92: Increment tries as we reparent to avoid looping.

Merge commit '4c129c92cb8f7f4d2a1f5dcf69a7564d5c88fd9f' into eclair-mr2

* commit '4c129c92cb8f7f4d2a1f5dcf69a7564d5c88fd9f':
Increment tries as we reparent to avoid looping.
4c129c92cb8f7f4d2a1f5dcf69a7564d5c88fd9f 07-Oct-2009 Jeff Sharkey <jsharkey@android.com> Increment tries as we reparent to avoid looping.

Fixes http://b/2173452
ndroid/contacts/ui/EditContactActivity.java
9b241b1b1b3ac0600cac084021f431b1b09f9944 08-Oct-2009 Jeff Hamilton <jham@android.com> am 54b3e1fc: Merge change Ibc1b1f7d into eclair

Merge commit '54b3e1fce63c8f7233fff8ea6279ddd1a8982d9d' into eclair-mr2

* commit '54b3e1fce63c8f7233fff8ea6279ddd1a8982d9d':
Follow up changes from review of Ib2afc992.
54b3e1fce63c8f7233fff8ea6279ddd1a8982d9d 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ibc1b1f7d into eclair

* changes:
Follow up changes from review of Ib2afc992.
652a8d7b159ea159205a617ee43712bfbcc40def 03-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix ImportVCardActivity so that NPE will never occur during import.

The NPE occurs only when the importing thread exits before the progress dialog is shown.
In theory (and in practice), this is rare, but anyway, this is a bug.

-----IMPORTANT-----

This change is cherry-picked from the latest build to the eclair.
Please see the description in the issue bellow.

-------------------

Internal issue number: 2164280
ndroid/contacts/ImportVCardActivity.java
40332ac121bf94d7384f705a862bdc44a529e424 08-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am 406ae422: [Issue 2174171] Fixing Join Contact UI title.

Merge commit '406ae42275eda1661aecc9afe088b654aac2193d' into eclair-mr2

* commit '406ae42275eda1661aecc9afe088b654aac2193d':
[Issue 2174171] Fixing Join Contact UI title.
406ae42275eda1661aecc9afe088b654aac2193d 08-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2174171] Fixing Join Contact UI title.

The title should read: "Select the contact you want to join with John Doe"

Change-Id: Iec1f41ce97e251635048f91020410cc1981cffbb
ndroid/contacts/ContactsListActivity.java
9bef412eff75cb8f4d4e8b0b0d2861ce0a52cf80 08-Oct-2009 Neel Parekh <neel@google.com> am 0011e710: Fix clicking on the total contacts header item.

Merge commit '0011e710967a0545b1a5a519eb61f34dcb9db1cb' into eclair-mr2

* commit '0011e710967a0545b1a5a519eb61f34dcb9db1cb':
Fix clicking on the total contacts header item.
0011e710967a0545b1a5a519eb61f34dcb9db1cb 07-Oct-2009 Neel Parekh <neel@google.com> Fix clicking on the total contacts header item.

Bug: 2160378
ndroid/contacts/ContactsListActivity.java
d2e6989a54d403930e5139026744c7e548bdf85b 08-Oct-2009 Evan Millar <emillar@google.com> am 2a5a27a0: Fix bc_triaged http://b/issue?id=2155790

Merge commit '2a5a27a05085c2e9d3884860970e2c56295de8c9' into eclair-mr2

* commit '2a5a27a05085c2e9d3884860970e2c56295de8c9':
Fix bc_triaged http://b/issue?id=2155790
2a5a27a05085c2e9d3884860970e2c56295de8c9 08-Oct-2009 Evan Millar <emillar@google.com> Fix bc_triaged http://b/issue?id=2155790

Dr.No approval from Tim Sullivan

Change-Id: I893d40499303accbf675c7e7e2e5873b4800b052
ndroid/contacts/ContactsListActivity.java
35fb5ef3f5b58e1e412754599dd321ca74784d9b 08-Oct-2009 Tadashi G. Takaoka <takaoka@google.com> am 41449696: Merge change Ia961aa60 into eclair

Merge commit '4144969616439687e30d1beec041e6dee951bb37' into eclair-mr2

* commit '4144969616439687e30d1beec041e6dee951bb37':
Contacts: fixed custom label handling in GenericEditorView.
4144969616439687e30d1beec041e6dee951bb37 08-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ia961aa60 into eclair

* changes:
Contacts: fixed custom label handling in GenericEditorView.
f278917d95d8a72bcd6342dd2f591644f0c627a1 07-Oct-2009 Evan Millar <emillar@google.com> am eb0d6997: Merge change I362ca992 into eclair

Merge commit 'eb0d69972dd7b77e3f43146ea5134c7953036ff4' into eclair-mr2

* commit 'eb0d69972dd7b77e3f43146ea5134c7953036ff4':
Show message if contact has no data to show.
eb0d69972dd7b77e3f43146ea5134c7953036ff4 07-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I362ca992 into eclair

* changes:
Show message if contact has no data to show.
a961aa605d4bd6c83e138c3d61517d6c7a84d697 07-Oct-2009 Tadashi G. Takaoka <takaoka@google.com> Contacts: fixed custom label handling in GenericEditorView.

Internal Bug: http://b/2173080
ndroid/contacts/ui/widget/GenericEditorView.java
33dcae7b81a7a5283cfc5a404c715fe134a5d2cb 07-Oct-2009 Jeff Hamilton <jham@android.com> Follow up changes from review of Ib2afc992.

- Fixed some minor issues in the editor comparator
- Fixed some issues with phone local contacts

Change-Id: Ibc1b1f7d23aa33f899eaa4c0a21fde59284b6f4a
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
3abac16daad864a65cc33414af407c4e8a46e0d2 07-Oct-2009 Jeff Hamilton <jham@android.com> am 1fb6275a: Updates to the edit contact UI.

Merge commit '1fb6275a57318261cb6dba511954cb754cd17fa2' into eclair-mr2

* commit '1fb6275a57318261cb6dba511954cb754cd17fa2':
Updates to the edit contact UI.
1fb6275a57318261cb6dba511954cb754cd17fa2 07-Oct-2009 Jeff Hamilton <jham@android.com> Updates to the edit contact UI.

- Updated account colors and color layout
- Updated display in read-only mode
- Clearer strings to identify accounts
- Sort the contacts to edit so read-only ones
always are at the bottom.

Fixes 2163539 and a good portion of 2163519.

Change-Id: Ib2afc992a8623f2a253d2a52a0b5c50ee866e5d8
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/ExternalSource.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
cdeea9491165f758e6be735015e7fa7b93963c28 07-Oct-2009 Evan Millar <emillar@google.com> Show message if contact has no data to show.

Fixes bc_triaged bug http://b/issue?id=2170901

Dr.NO approval from Tim Sullivan

Change-Id: I362ca992c3a97792fbc2d76fc3bcf4178bfefcd5
ndroid/contacts/ViewContactActivity.java
96435b228fb4746a75c65c88e041f71412a7b8e0 07-Oct-2009 Costin Manolache <costin@google.com> am 76c9ec4b: Part of Bug 2163087 fix - NPE if the main thread is removing the reference.

Merge commit '76c9ec4bab499989f6e8f7448d228687b235d58c' into eclair-mr2

* commit '76c9ec4bab499989f6e8f7448d228687b235d58c':
Part of Bug 2163087 fix - NPE if the main thread is removing the reference.
cdf931931403b5f8569676f1416b463a9bb0ff17 07-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am 8debb14b: [Issue 2166752] Properly displaying phone numbers containing letters

Merge commit '8debb14bd3593bcc505bb0da29bc8239dadc6553' into eclair-mr2

* commit '8debb14bd3593bcc505bb0da29bc8239dadc6553':
[Issue 2166752] Properly displaying phone numbers containing letters
76c9ec4bab499989f6e8f7448d228687b235d58c 07-Oct-2009 Costin Manolache <costin@google.com> Part of Bug 2163087 fix - NPE if the main thread is removing the reference.
ndroid/contacts/ContactsListActivity.java
8debb14bd3593bcc505bb0da29bc8239dadc6553 07-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2166752] Properly displaying phone numbers containing letters

Change-Id: Ia2d815925d672d46f0269e926438c3dc8739006b
ndroid/contacts/ViewContactActivity.java
36ef0608702cfdc4f331646611c5e8616db19666 07-Oct-2009 Jeff Sharkey <jsharkey@android.com> am d1037fdb: Merge change I9a8a3d9d into eclair

Merge commit 'd1037fdbfd72209d179214dd6151e6425d4a267f' into eclair-mr2

* commit 'd1037fdbfd72209d179214dd6151e6425d4a267f':
Fix FastTrack recycling consistency issues, shadows.
d1037fdbfd72209d179214dd6151e6425d4a267f 07-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I9a8a3d9d into eclair

* changes:
Fix FastTrack recycling consistency issues, shadows.
a03fb550fb660600956f4bc18b1d0991885dee55 07-Oct-2009 Evan Millar <emillar@google.com> am 3075f6a4: Display empty text when there are no contacts visible.

Merge commit '3075f6a408768cac749edb786feac71afa7d7b64' into eclair-mr2

* commit '3075f6a408768cac749edb786feac71afa7d7b64':
Display empty text when there are no contacts visible.
3075f6a408768cac749edb786feac71afa7d7b64 06-Oct-2009 Evan Millar <emillar@google.com> Display empty text when there are no contacts visible.

-bc triaged bug: http://b/issue?id=2162934

Change-Id: I331918d70282bb2e123da22bc940168c41406326
ndroid/contacts/ContactsListActivity.java
9a8a3d9d0b424e579ac146bec49257ea01d221d8 05-Oct-2009 Jeff Sharkey <jsharkey@android.com> Fix FastTrack recycling consistency issues, shadows.

When FastTrack is displayed and a configuration change
occurs, we tear down and recreate the host Activity, but in
the process moveTaskToBack(), which means the next trigger
will show a stale track and rectangle.

This change dismisses the track in onPause() to reduce risk
of bringing back a stale track. It also introduces a new
mDismissed flag to catch any race conditions where the track
is dismissed before showInternal() is called.

When requested a show() and already visible, instead of
ignoring, I'm calling dismissInternal() to replace the track
with the updated request. I'm also using query tokens to
ignore query results from stale show() requests.

This change also fixes padding in the large FT format when
no photo is available. It also fixes shadow behind track
to remove sharp vertical edges visible during animations.

Also clears "make default" checkbox between recycles and
fixes an issue where icons for preferred apps remained after
the user selects "always use" from intent disambig list.

Fixes http://b/2163611 and http://b/2164119
ndroid/contacts/ui/QuickContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
e4ad125110d1a9bc5e9cc50097953f7af3c85c67 05-Oct-2009 Megha Joshi <mjoshi@google.com> Prevents empty focus contacts without photo from being created.

Bug: 2133257
Dr No: TS
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/ui/widget/PhotoEditorView.java
3d9a3209a940c18efc7b69bbbeaff09745b9adcc 06-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 685fdd50: Merge change I23d84a63 into eclair

Merge commit '685fdd508523225bcb52a862c530b3cd6dd30cb0' into eclair-mr2

* commit '685fdd508523225bcb52a862c530b3cd6dd30cb0':
Include Google Talk presence, even when missing Im rows.
685fdd508523225bcb52a862c530b3cd6dd30cb0 06-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I23d84a63 into eclair

* changes:
Include Google Talk presence, even when missing Im rows.
4bd352d5103d74cfdc269fe2faa846a9f8901993 06-Oct-2009 Costin Manolache <costin@google.com> am c759ffbc: Merge change I740cfdad into eclair

Merge commit 'c759ffbcc1564b81b9715835bd6b63c293dd6b8f' into eclair-mr2

* commit 'c759ffbcc1564b81b9715835bd6b63c293dd6b8f':
Use a thread pool to fetch images. Bug 2163087.
c759ffbcc1564b81b9715835bd6b63c293dd6b8f 06-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I740cfdad into eclair

* changes:
Use a thread pool to fetch images. Bug 2163087.
624ddc3cce02e3d9216e87564766fd86e814675d 02-Oct-2009 Jeff Sharkey <jsharkey@android.com> Include Google Talk presence, even when missing Im rows.

When inserting Google Talk presence updates, we match on
both Im and Email rows. This change adds presence "dots"
to individual Im rows, and creates in-memory Im rows when
Email entries have presence.

This loads status details through a second query and holds
back building UI until both queries finish. This change
also generalizes logic for building Im intents borrowed
from FastTrack code.

This change also fixes a regression that was dropping third-
party data rows. The second-query approach above allows us
to remove a large chunk of code that was using old API.

Fixes http://b/2161796
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/ExternalSource.java
ndroid/contacts/ui/QuickContactWindow.java
ndroid/contacts/util/DataStatus.java
740cfdad67e1c3ea82e4aba9b8e0fd199dcc19e9 06-Oct-2009 Costin Manolache <costin@google.com> Use a thread pool to fetch images. Bug 2163087.
ndroid/contacts/ContactsListActivity.java
0b9d552c49816637b7dc82404b26db6c096c3770 06-Oct-2009 Megha Joshi <mjoshi@google.com> am d40d7f06: Merge change I6238c621 into eclair

Merge commit 'd40d7f06ba0d87d2c1e78f382ce78c3c8a25fbfc' into eclair-mr2

* commit 'd40d7f06ba0d87d2c1e78f382ce78c3c8a25fbfc':
Prevents empty focus contacts without photo from being created.
d40d7f06ba0d87d2c1e78f382ce78c3c8a25fbfc 06-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I6238c621 into eclair

* changes:
Prevents empty focus contacts without photo from being created.
e86b928be36bb3e7136796ad519e736325d1d2b1 05-Oct-2009 Megha Joshi <mjoshi@google.com> Prevents empty focus contacts without photo from being created.

Bug: 2133257
Dr No: TS
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/ui/widget/PhotoEditorView.java
36497c0babab9144e7b500e1b3e370c80181117f 06-Oct-2009 Evan Millar <emillar@google.com> resolved conflicts for merge of cf22feef to master
55aac8551f6d9c5085f373210e0a6bd9f159e56b 06-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am 8577fee2: Merge change I517b266a into eclair

Merge commit '8577fee2a6ba9ba6d4aac635c85ff6034dfcca45' into eclair-mr2

* commit '8577fee2a6ba9ba6d4aac635c85ff6034dfcca45':
[Issue 2165144] Fixing managed delete dialogs in ContactListActivity
8577fee2a6ba9ba6d4aac635c85ff6034dfcca45 06-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I517b266a into eclair

* changes:
[Issue 2165144] Fixing managed delete dialogs in ContactListActivity
26c5aa2558f235c1e4e410c795e62cb42b1f2066 06-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2165144] Fixing managed delete dialogs in ContactListActivity

Since these dialogs are managed, they are not actually destroyed after the first
use, but reused. These dialogs were initialized with the URI of the first
contact we were deleting. On subsequent calls, they were reused and tried to
delete the same contact.

Change-Id: I517b266a96fe72268c8dfbc7fe3f84fa366d7a23
ndroid/contacts/ContactsListActivity.java
3abc38af577f5ee3c75c51ec759276751ac90c14 06-Oct-2009 Jeff Sharkey <jsharkey@android.com> am 5cbf6f43: Exclude FastTrack window from recent apps.

Merge commit '5cbf6f43dadda66630a2bdb7a744b62f1cef507d' into eclair-mr2

* commit '5cbf6f43dadda66630a2bdb7a744b62f1cef507d':
Exclude FastTrack window from recent apps.
5cbf6f43dadda66630a2bdb7a744b62f1cef507d 02-Oct-2009 Jeff Sharkey <jsharkey@android.com> Exclude FastTrack window from recent apps.

Fixes http://b/2163542
ndroid/contacts/ui/QuickContactActivity.java
59afce1d545349adffc30978b73ad34096608998 06-Oct-2009 Neel Parekh <neel@google.com> am cf1af9a1: Merge change I14fec660 into eclair

Merge commit 'cf1af9a1c72ac1c47c4cc76120352b75731dfa2d' into eclair-mr2

* commit 'cf1af9a1c72ac1c47c4cc76120352b75731dfa2d':
Fix NPE being thrown when starting the AttachImage activity.
cf1af9a1c72ac1c47c4cc76120352b75731dfa2d 06-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I14fec660 into eclair

* changes:
Fix NPE being thrown when starting the AttachImage activity.
b30b045e25c2c563539dc852e848a59c7879487d 05-Oct-2009 Neel Parekh <neel@google.com> Fix NPE being thrown when starting the AttachImage activity.

Bug: 2164613
ndroid/contacts/AttachImage.java
f62d58fc3d3a45d206186c7e3090d354b2a7e6e5 05-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I806ebb68 into eclair-mr2

* changes:
Use VCardDataBuilder#cancel().
806ebb684b3c12cc89fde35f4d476d22376e7c36 05-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Use VCardDataBuilder#cancel().

Internal Issue number: 2158261
ndroid/contacts/ImportVCardActivity.java
5fbf1d613c135e0949710f864fa07049b0c74219 05-Oct-2009 Fred Quintana <fredq@google.com> am 8e55e0da: account manager api review changes

Merge commit '8e55e0daa3967dbfdada4a42bec51a0435bc3384' into eclair-mr2

* commit '8e55e0daa3967dbfdada4a42bec51a0435bc3384':
account manager api review changes
8e55e0daa3967dbfdada4a42bec51a0435bc3384 03-Oct-2009 Fred Quintana <fredq@google.com> account manager api review changes
ndroid/contacts/model/Sources.java
05dd65b1e86aa5f33fde5b3a197bdd392188f528 05-Oct-2009 Nicolas Catania <niko@google.com> am d7a3cd59: Merge change I3040fa30 into eclair

Merge commit 'd7a3cd594c29d2cce161dce76bf22970a2184a96' into eclair-mr2

* commit 'd7a3cd594c29d2cce161dce76bf22970a2184a96':
Taping the dialed number allows editing.
c847b3d1c3141a5d1f440eaf7fb81f352cfa8e76 05-Oct-2009 Megha Joshi <mjoshi@google.com> am c508bd8c: Fixes bug where delete option from Menu list is disabled in Contact view mode. Bug was caused by the count increment logic being removed in the next submitted change https://android-git.corp.google.com/w/?p=platform/packages/apps/Contacts.git;a=commit;h=d

Merge commit 'c508bd8c0d697bd7e8cf62e025ef32f3f2169d9a' into eclair-mr2

* commit 'c508bd8c0d697bd7e8cf62e025ef32f3f2169d9a':
Fixes bug where delete option from Menu list is disabled in Contact view mode.
5b37d6210524a15b7bf6bc7238b774730a9e3584 05-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am f042df95: [Issue 2157935] Adding a confirmation dialog for contact split.

Merge commit 'f042df95fa3d3e0560ceec93c4c66e2d3f6f3224' into eclair-mr2

* commit 'f042df95fa3d3e0560ceec93c4c66e2d3f6f3224':
[Issue 2157935] Adding a confirmation dialog for contact split.
e24613437df404d66c255ec544027b1ea9b9a0d1 05-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am b8594f27: [Issue 2161366] Changing strings for total number of contacts displayed

Merge commit 'b8594f275a415a92255172251cadd78f16bdf01a' into eclair-mr2

* commit 'b8594f275a415a92255172251cadd78f16bdf01a':
[Issue 2161366] Changing strings for total number of contacts displayed
084607c3d4c0ff993bb72a001091c412d3de1e92 05-Oct-2009 Jeff Sharkey <jsharkey@android.com> am e1032fa1: Dismiss FastTrack only after calling startActivity().

Merge commit 'e1032fa194fbb9117b511e17f9cac60d61fd11f1' into eclair-mr2

* commit 'e1032fa194fbb9117b511e17f9cac60d61fd11f1':
Dismiss FastTrack only after calling startActivity().
55472240fbad3cf0442c56b43f2bcdcd68be71c5 05-Oct-2009 Neel Parekh <neel@google.com> am 6c0f8cf8: Fix attaching image on "new contact" screen.

Merge commit '6c0f8cf83c2959332e2d883c211144a4b87444a0' into eclair-mr2

* commit '6c0f8cf83c2959332e2d883c211144a4b87444a0':
Fix attaching image on "new contact" screen.
be7496af07952273a64e811c32d5428a4c292441 05-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> am f3bd80a2: [Issue 2153296] Updating contact list section headers

Merge commit 'f3bd80a2fcf72871eec957cc59cdae5a54fb0285' into eclair-mr2

* commit 'f3bd80a2fcf72871eec957cc59cdae5a54fb0285':
[Issue 2153296] Updating contact list section headers
0126849448632811e16729187da4dfa004878d66 05-Oct-2009 Evan Millar <emillar@google.com> am 2fb3db55: Fix bug http://b/issue?id=2160189

Merge commit '2fb3db55d68ff8a8d9cf8e329de3ec8687d5ff29' into eclair-mr2

* commit '2fb3db55d68ff8a8d9cf8e329de3ec8687d5ff29':
Fix bug http://b/issue?id=2160189
Make ExporterVCardActivity appropriately cope with orientation change.
d7a3cd594c29d2cce161dce76bf22970a2184a96 03-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I3040fa30 into eclair

* changes:
Taping the dialed number allows editing.
c508bd8c0d697bd7e8cf62e025ef32f3f2169d9a 02-Oct-2009 Megha Joshi <mjoshi@google.com> Fixes bug where delete option from Menu list is disabled in Contact view mode.
Bug was caused by the count increment logic being removed in the next submitted change
https://android-git.corp.google.com/w/?p=platform/packages/apps/Contacts.git;a=commit;h=df18120ed2c37a45eb47e39c4da0c8e3b6eb335c
Disabled menu was removed in some other subsequent change, so adding dialog for the case when writable contacts = 0.

Changes delete contact bebavior in EditContactActivity to be same
ViewContactActivity.

Updates dialog message for readonly contact deletion.

bug 2161222
Dr No : TS
Reviewed By: dplotnikov, timsullivan
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/EditContactActivity.java
f042df95fa3d3e0560ceec93c4c66e2d3f6f3224 03-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2157935] Adding a confirmation dialog for contact split.

Also renaming the menu button to "Separate"
Also making the menu button only visible for aggregate contacts

Bug discussed with and approved by Tim.

Change-Id: Ie6950b2779c37a1694e01e5ca5ef819ae3d850b5
ndroid/contacts/ui/EditContactActivity.java
5bc8b5ae64650e1a62d0b676b34c3f150631c951 03-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix ImportVCardActivity so that NPE will never occur during import.

The NPE occurs only when the importing thread exits before the progress dialog is shown.
In theory (and in practice), this is rare, but anyway, this is a bug.

Internal issue number: 2164280
ndroid/contacts/ImportVCardActivity.java
b8594f275a415a92255172251cadd78f16bdf01a 03-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2161366] Changing strings for total number of contacts displayed

Approved by Tim.

Change-Id: I43bf6d71193f0d6315b3c06a2da8824f01f102d7
ndroid/contacts/ContactsListActivity.java
e1032fa194fbb9117b511e17f9cac60d61fd11f1 02-Oct-2009 Jeff Sharkey <jsharkey@android.com> Dismiss FastTrack only after calling startActivity().

When launching towards an existing task where the target
activity is already at the top of that task, we triggered
a check in ActivityManager that requires the caller to be
in the foreground. Before this change, we dismissed the
dialog before calling startActivity(), meaning that in
this case the user action would result in a no-op.

Fixes http://b/2162031
ndroid/contacts/ui/QuickContactWindow.java
6c0f8cf83c2959332e2d883c211144a4b87444a0 02-Oct-2009 Neel Parekh <neel@google.com> Fix attaching image on "new contact" screen.

Bug: 2161910
Dr. NO: TS
ndroid/contacts/ui/EditContactActivity.java
3040fa308c481fdc9ebba8c158ba051df1eac766 01-Oct-2009 Nicolas Catania <niko@google.com> Taping the dialed number allows editing.

Previously, taping the dialed number used to dial the number.
Now if non-empty, a cursor shows up at the tap location.
The user can then use the dialpad to delete/insert new numbers.

The previous version of the selectors that drive the number background
has been moved to the non finger drawable because they show the right
background when focused.
In touch mode, the background does not change when focused.

Bug:2160189
ndroid/contacts/TwelveKeyDialer.java
f3bd80a2fcf72871eec957cc59cdae5a54fb0285 02-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2153296] Updating contact list section headers

Also fixing the menu icon for split

Change-Id: Ic6cffb2760273c89dfa0d60d1ba5307316390b68
ndroid/contacts/ContactsListActivity.java
2fb3db55d68ff8a8d9cf8e329de3ec8687d5ff29 01-Oct-2009 Evan Millar <emillar@google.com> Fix bug http://b/issue?id=2160189

Change-Id: I99f3aa5c159e999a2d2bd4526a4540e68af90d1d
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
ced8b4ac7054937e72deb47359eeb8d212539e98 01-Oct-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make ExporterVCardActivity appropriately cope with orientation change.

This was done when this class was VCardExporter and at that time the class
was not a separated Activity, but this time, ExporterVCardActivity itself
has to cope with that, but I forgot to modify it so.

Internal issue number: 2137469
ndroid/contacts/ExportVCardActivity.java
5297c6af41f3fd2f08cff5b84105af4efd1ab79f 01-Oct-2009 Jeff Hamilton <jham@android.com> New edit UI, now without tabs.

Make ExternalSource derive from FallbackSource
and add photo and name to the list of sources
since they're not optional.

Change-Id: I043db076a001a711e56dd6e5e6ee32c4c0c9477a
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/ExternalSource.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
735e8b11d8e370f24e9b8ac5329a1985c879bbf2 30-Sep-2009 Jeff Sharkey <jsharkey@android.com> Single query with social, IM rows, heavy recycling, large.

Moved to a single query when showing FastTrack, instead of
previous three. This change also limits photos so we only
request when needed for large mode, and even then only the
super-primary photo. Helps fix http://b/2134623

New query also brings in new social status API along with
attribution lines, fixing http://b/2149038

Change also adds any IM rows under contact, or treats
Email entries with presence as Google Talk IM rows, which
fixes http://b/2087402

When selecting chiclet icons, prefer a specific set of
built-in platform and system apps. This does /not/ replace
the system intent dialog to actually select an app when
there are multiple matches. Fixes http://b/2139517

Heavy recycling strategies for preserving layouts. This
uses a ActivityManager trick to keep FastTrack pre-warmed
behind any other tasks. It also recycles inflated chiclets
between showings. With these and other optimizations, we
now show 60% faster. Fixes http://b/2134623

Implements large FastTrack layout, fixing http://b/2126683

Switched import/export icons to correct DPI, corrected HDPI
FastTrack shadow asset, and fixed dialog launching logic in
ContactsListView.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/ExternalSource.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/QuickContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
ndroid/contacts/util/Constants.java
160e9dac355d20375601483ff58f5a273e1e192d 01-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> Refreshing view contact based on the result of editing

Specifically, when edit does joins, new contacts and deletes, the lookup key can change beyond recognition.

Change-Id: I6f8ec24ecaf3d1e80f765a5fa9e4fd3d371bf62c
ndroid/contacts/ViewContactActivity.java
5ac1056218bbaed2e4fb9ffffdbd14cdd46285c6 01-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> Moving join contact functionality to the Contact Edit screen.

Change-Id: I1630e909be3283d7274d093e8c86a8ee142d8afc
ndroid/contacts/ui/EditContactActivity.java
512f4c18a4c14f73faa2396455b94beead940d4f 01-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I511ba352 into eclair

* changes:
Remove tabs, join, and aggregate badge from ViewContactActivity
60d19a75d3cc28a0ff5ca2b875109b6236fe02a5 01-Oct-2009 Fred Quintana <fredq@google.com> show events in the UI
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
df18120ed2c37a45eb47e39c4da0c8e3b6eb335c 01-Oct-2009 Evan Millar <emillar@google.com> Remove tabs, join, and aggregate badge from ViewContactActivity

Change-Id: I511ba352d6c9f155aa66c14123e1e90e9d530ec5
ndroid/contacts/ReverseZOrderLinearLayout.java
ndroid/contacts/ViewContactActivity.java
8c732964e6cea4f2ef481b07b00e9ddd18abca2e 01-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I2a7e4e10 into eclair

* changes:
Make secondary edit entries unvisible if no data kind for it.
0d0ab34639f8c509ff845a9ff0c85a1cdb9e4441 01-Oct-2009 Evan Millar <emillar@google.com> FastTrack->QuickContact

Change-Id: I9376e6ffa2e804ba4a3b60465344b058064eb098
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ui/FastTrackActivity.java
ndroid/contacts/ui/FastTrackWindow.java
ndroid/contacts/ui/QuickContactActivity.java
ndroid/contacts/ui/QuickContactWindow.java
ndroid/contacts/ui/widget/CheckableImageView.java
da13492d62c87ca53f706bc476efd3caf47dd0af 01-Oct-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I30d0cce2 into eclair

* changes:
Add ContactsContract.CALLER_IS_SYNCADAPTER query parameter to the ContentProviderOperation which updates group display/should_sync values.
d5afd8a1103d5a8f7a18f52f521ad1dae6c3d592 22-Sep-2009 Megha Joshi <mjoshi@google.com> Disable delete for read only contacts such as facebook contacts.
Fixes bug 2121909.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
384277a8921247495b2b954e7b2437d748c4fcf2 01-Oct-2009 Dmitri Plotnikov <dplotnikov@google.com> Moving contact split functionality to contact Edit

Change-Id: I1172406d9eaed9b996d0376ff23413c8d7848d06
ndroid/contacts/model/EntitySet.java
ndroid/contacts/ui/EditContactActivity.java
272fe8298ac9e9fc4bb3a81b45a0e4639d5b1ef8 30-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Make secondary edit entries unvisible if no data kind for it.

Internal Bug: 2151377
ndroid/contacts/ui/widget/ContactEditorView.java
30d0cce2c82a54e8c8d91b88271d16ee993f2f03 01-Oct-2009 Megha Joshi <mjoshi@google.com> Add ContactsContract.CALLER_IS_SYNCADAPTER query parameter to the
ContentProviderOperation which updates group display/should_sync values.

Partly fixes 2093578
ndroid/contacts/ui/DisplayGroupsActivity.java
bdd3e5839d516aac510fc923d047de69ba0a5976 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I6f9a7185 into eclair

* changes:
Fix the number off by one when typing in the contact list.
d44bbd84b8371303fddd4a6b8b7cab093b43dc22 30-Sep-2009 Neel Parekh <neel@google.com> Fix the number off by one when typing in the contact list.

Bug: 2157000
ndroid/contacts/ContactsListActivity.java
3c91b8ae8730e73cb8a4b99c2b1de59011dad00b 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I6d074325 into eclair

* changes:
Add FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET Intent flag to each of the intents launched from fasttrack window.
36a108edd1c1e17eb84759dce248917e134d830c 30-Sep-2009 Megha Joshi <mjoshi@google.com> Add FLAG_ACTIVITY_CLEAR_WHEN_TASK_RESET Intent flag to each of
the intents launched from fasttrack window.

Fixes bug 2137624
ndroid/contacts/ui/FastTrackWindow.java
c30e11cc31b419d67999db2e3ccbc7ef351d7140 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I1ad6f4ae into eclair

* changes:
Use soft uris in ViewContactActivity and ContactOptionsActivity.
6a61a1aeae85a92deff237a2aadc687062d0ca49 29-Sep-2009 Evan Millar <emillar@google.com> Use soft uris in ViewContactActivity and ContactOptionsActivity.

Change-Id: I1ad6f4aef27dec2007aaea05ba289a4b9fe3939a
ndroid/contacts/ContactOptionsActivity.java
ndroid/contacts/ViewContactActivity.java
0803a7079507e8be756febe36bb46bfb5531f564 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Iaa0c610a into eclair

* changes:
Hookup building the contact header widget from deltas.
7370d42daae201f63093c4b4e84301af70af6ce9 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I0bb240dc into eclair

* changes:
Fix a sample code commented out, complying with the new vCard implementation.
43f50aa28ca823531b6e19dba555db026c04c8d7 30-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix a sample code commented out, complying with the new vCard implementation.
ndroid/contacts/ExportVCardActivity.java
47673e82f210e3b2d38d49652726b51770e71230 22-Sep-2009 Neel Parekh <neel@google.com> Hookup building the contact header widget from deltas.

Bug: 2126659
ndroid/contacts/model/Editor.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
20e07edacad4a696956bd55c9459ea869ee2f45b 30-Sep-2009 Evan Millar <emillar@google.com> Adjust to FasttrackBadgeWidget->QuickContactBadge name change.

Change-Id: If4d85018dfe4488d46a0eed748314b5d448d2494
ndroid/contacts/ContactsListActivity.java
3696632638d1cb142d47f2a13d219cecb40e2f8c 30-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix error message shown when there's no vCard in SD card.

Internal Issue number: 2155357
ndroid/contacts/ImportVCardActivity.java
78ad85e5e51f2e05ae4142324c98fae9f137eb37 29-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Revert "Hide contact context from fast track window in the contacts view"

This reverts commit f493b768816f245ccf593953a743996e1a54055a.

Internal Bug: 2138745
ndroid/contacts/ContactsListActivity.java
1306a67d7c7da6b73ef73b4ffc71f07bb78db2e9 30-Sep-2009 Jeff Hamilton <jham@android.com> Don't pass the query parameter in if the calling package is null.

The provider would read the string "null" and always refuse restricted access.

Change-Id: I1a592c2284ada8ab3c41bc71e510bd4ec7fd05d8
ndroid/contacts/ContactsListActivity.java
3fb6f9a7e061b34a0cb29298c15c0f1c4838ca15 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I386dd954 into eclair

* changes:
Remove GAIA string
61d58bdf80b3a66fe9afc0777e903d4c3059d6b5 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ibb6bf6b8 into eclair

* changes:
Minor cosmetic cleanups.
7bf296f1d3a7e0bc4d1f47241a5de66454a13403 30-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2097049] Adding a collapsed "Show all contacts" item to the join suggestion list

Change-Id: I7cf12800b942720d00229d6c61ba6180f4cd87d4
ndroid/contacts/ContactsListActivity.java
bb6bf6b85c6132e79bedadc322ec1beeb5836bad 30-Sep-2009 Nicolas Catania <niko@google.com> Minor cosmetic cleanups.
ndroid/contacts/ButtonGridLayout.java
386dd954869544581f8825148ac41ed15d465ab2 30-Sep-2009 Costin Manolache <costin@google.com> Remove GAIA string
ndroid/contacts/model/GoogleSource.java
c9d8f5626230c9a034df315e09f3cab10cd3f267 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ic0c20625 into eclair

* changes:
Don't hightlight call button in lists.
2da3ee5adb99df903339bd6b6b4812bd34f9cac7 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I53f94fc2 into eclair

* changes:
Tweaked the dialer screen to match the designer's PPL.
a5cfca3f998fb6c646092aa8b6ff9c8f13b8a781 30-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2097049] Updating the header of contact join screen - new icon and text

Change-Id: Ib780fba650dad0e070eabce497dde3ffa75661f5
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
4f56df3c7fd35bd268f24a2e0404f18a451a5a56 30-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Added source label name to account name hsection.

Internal Bug: 2154925
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/EditContactActivity.java
b4a7298b882999372b9a44415c1387ee49fba323 29-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Make tab widget contain account name text view to avoid animation glitch

Internal Bug: 2153912
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/EditContactActivity.java
03a00e6fee304af3451f02903e7f7538475b6d2c 30-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Iefb766ce into eclair

* changes:
[Issue 2155068] Fixing the selection clause for legacy API request in EditContactActivity
c055074f0e2417108d1161550c609fe4dc8b4533 30-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2155068] Fixing the selection clause for legacy API request in EditContactActivity

Change-Id: Iefb766ce73baf707cfd74f66627cf8fc4fb70249
ndroid/contacts/ui/EditContactActivity.java
de37a8db58613ba6183c3c2b5987dcf9e16e9e22 29-Sep-2009 Evan Millar <emillar@google.com> Restrict data shown in picker based on calling activity.

Change-Id: I07be295b05f272c268019817732f6d98953bc3fd
ndroid/contacts/ContactsListActivity.java
d0610ca54e4f9df59ac652c206c2daaba1b2d3dd 29-Sep-2009 Neel Parekh <neel@google.com> Make total contacts header more like a separator.
ndroid/contacts/ContactsListActivity.java
e6b5b3e60dd06c316745d4d9d9ced241a743b6a4 29-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2149076] More wording cleanup on contacts Display Options

Change-Id: I8ec4e7ab63387fffa6f32063776176e8dbcff600
ndroid/contacts/ui/DisplayGroupsActivity.java
3f1694e47e3b9db19ab77fa9956a5500e6df94eb 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I394867d3 into eclair

* changes:
Cancel the selection and move the cursor pass the wait/pause symbol.
53f94fc219ba44e72e8b82e565b4bb13323c83b4 29-Sep-2009 Nicolas Catania <niko@google.com> Tweaked the dialer screen to match the designer's PPL.

Created a layout-long-finger version of the dialpad for wvga devices.
For these devices, the buttons are taller than for hvga and
the margin around the elements are also different.

Extracted the bar with the 3 buttons in a separate file that gets
included in both portrait and landscape modes.

Simplified the ButtonGridLayout. Now runs 6% faster (3 runs w/ traceview).
I hardcoded the size of the button grid because the number of columns was
already hardcoded, so why not fix everything?
Use some member to cache the calculation made during onMeasure to be reused
in onLayout.

Tested on dream and sh.... in portrait and landscape modes.

Bug:2104523
ndroid/contacts/ButtonGridLayout.java
0020b6ad8c40f976d18e69ac1d37a1bf94e8b5fb 29-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Fix Contacts app so that it is able to use import feature!!!
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/util/AccountSelectionUtil.java
251d63102b1e8056d96e1bb277a4c3640d1944a3 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ice18ecc3 into eclair

* changes:
Fix collapsing to do fuzzy phone number matching.
57a26d500989bd1ff95f015457deae90a78964fa 29-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Do not show "star" in contact editor.

Internal Bug: 2147622
ndroid/contacts/ui/EditContactActivity.java
adb0f8ceafcf7c3e48a14c4432726465c97c7729 29-Sep-2009 Evan Millar <emillar@google.com> Fix collapsing to do fuzzy phone number matching.

-Also use Collapser to collapse the numbers shown in the context menu
from the A-Z list.

Fixes http://b/issue?id=2047514 and http://b/issue?id=2144616

Change-Id: Ice18ecc306c2f30fd1525418bc9f7408c4435a50
ndroid/contacts/Collapser.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/PhoneDisambigDialog.java
ndroid/contacts/ViewContactActivity.java
57d27da940983fba40d8e3a6d8b99a57b48419ea 29-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2097049] Adding a header to Contact Join UI

Also fixing this bug:
java.lang.RuntimeException: Unable to stop activity {com.android.contacts/com.android.contacts.ContactsListActivity$JoinContactActivity}: java.lang.IllegalStateException: get field slot from row 0 col -1 failed

Change-Id: I74025ee687944282ea9fea945ce281e9a00f6fdc
ndroid/contacts/ContactsListActivity.java
9108dad3165459347a52684d91594bf7aca42339 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ibcade31c into eclair

* changes:
[Issue 2147295] Only showing visible contacts in contact Join UI
7edbd0c3bf15db0c3a601b02f95a4cd473ec4a97 29-Sep-2009 Nicolas Catania <niko@google.com> Cancel the selection and move the cursor pass the wait/pause symbol.

When a selection is active and a special wait/pause charater is inserted,
it should replace the selection (currently done) but is should also
deselect the resulting area and move back to cursor positioned after
the inserted wait/pause character.

Bug:2150657
ndroid/contacts/TwelveKeyDialer.java
dbba46dc6f04029e29d4a473f3b60b5a20befded 29-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2147295] Only showing visible contacts in contact Join UI

Change-Id: Ibcade31cdba388e9f3053662e2650c680fdb6806
ndroid/contacts/ContactsListActivity.java
3649fd86996bb8051ea0239863b3db3c0ccc3a92 29-Sep-2009 Jeff Sharkey <jsharkey@android.com> Remove TYPE_CUSTOM from EAS source.

Helps fix http://b/2127721
ndroid/contacts/model/ExchangeSource.java
ae8e5769a19aecb877406b0df251e7bff5c3e398 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I60a8f5d0 into eclair

* changes:
Disable labels, fields and add button for readonly contacts in edit contact view.
99b1db73e9db33aa76883a7f60feafbc38e2860a 28-Sep-2009 Jeff Sharkey <jsharkey@android.com> Invalidate sources cache when accounts change.

This change listens for AccountManager changes, such as
when an account is added. Fixes http://b/2115977
ndroid/contacts/model/Sources.java
2148e6bd088c5c82ee01d78a9f854e8be85cc81c 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I3aaf0497 into eclair

* changes:
Show a header containing the total number of contacts.
0b95e125dc1a3d45e774433506fcf7b09b5339be 29-Sep-2009 Neel Parekh <neel@google.com> Show a header containing the total number of contacts.

Bug: 2138779
ndroid/contacts/ContactsListActivity.java
92525ff51e2cb06531447a7dcde5e22334669c8e 27-Sep-2009 Megha Joshi <mjoshi@google.com> Disable labels, fields and add button for readonly
contacts in edit contact view.

Fixes 2139627.
ndroid/contacts/model/Editor.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
ndroid/contacts/ui/widget/PhotoEditorView.java
930493194bb31878c529f0f630d8854d4eb38727 28-Sep-2009 Jeff Sharkey <jsharkey@android.com> Use separate API when sending vCard through ACTION_SEND.

Fixes http://b/2138790
ndroid/contacts/ViewContactActivity.java
33aa1c6b1bc7e134f499bd7d2c9051c4f7da2992 27-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Contacts: added source account name to view/edit activity.

Internal Bug: 2129158
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/EditContactActivity.java
5b8358984f413d682dd89a9862bf306e5c1a159c 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change I778df15f into eclair

* changes:
Create a title on long press in view contact
e22b53437835a904780682a2b97a67928c58db22 29-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change Ifcd23efc into eclair

* changes:
Prevents empty contacts from being saved.
d2fdb9095e0009408b89e24048154ea7a8a14413 27-Sep-2009 Megha Joshi <mjoshi@google.com> Prevents empty contacts from being saved.

Fixes 2128988
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/GoogleSource.java
d5e520a171aa4a2ac313f83d8a6b8d27be746308 28-Sep-2009 Vasu Nori <vnori@google.com> display text "no matching contacts found" if none found while searching contacts
ndroid/contacts/ContactsListActivity.java
a8fb68a7e7dad22e6f5f5dacc18fe18566e8d1f0 26-Sep-2009 Neel Parekh <neel@google.com> Create a title on long press in view contact

Bug: 2138724
ndroid/contacts/ViewContactActivity.java
0bec3b9bd74f295f4a6e3279e849404fb022e753 25-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Several changes included...

- Suppress RuntimeException reported in the issue 2145361
-- Ask the parent Activity to show messages.
- Make vCard exporter a separated Activity.
-- There's no need to do this any more, but looks cleaner and easier to
understand the behavior.
- Make error messages from vCard composer translatable.
- Stop using showDialog() when it is not appropriate.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ExportVCardActivity.java
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/VCardExporter.java
ndroid/contacts/util/AccountSelectionUtil.java
56045d4a248f82ab0ca3ba2d9df2d3c2aeb4b075 28-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Renaming Presence and Presence-related columns.

Change-Id: If5bfe3d88203cc1dabd81a65ca96e81be193ce71
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ui/FastTrackWindow.java
d63a9602ee06cdd276ef40309cc047c9c4b57a53 25-Sep-2009 Nicolas Catania <niko@google.com> Disable the call icon in the logs for private and unknown numbers.

We cannot callback private numbers (ie number with a caller id blocked)
so we need to disable the call icon.
Same for Unknown ones (e.g private number on GSM shows as unknown).

Added a test to make sure call icon is not visible on the right entries.

Bug:2144575
ndroid/contacts/RecentCallsListActivity.java
9cd812451931df221d39f69169b11a958c070713 27-Sep-2009 Evan Millar <emillar@google.com> Save show sources/hide sources on orientation change.`

Change-Id: Ib5a58b09f13de9ddd4be048788228928fd591f53
ndroid/contacts/ViewContactActivity.java
ff04a274243b75bec818c4678733551e86e0a6a4 27-Sep-2009 Evan Millar <emillar@google.com> Fix http://b/issue?id=2098463

Change-Id: I04d4da9dfc70a16c547efd4c4331dd910788e9e4
ndroid/contacts/ViewContactActivity.java
fd81f43182b4645bfaebfb7d5b10ad5ae341ed9a 23-Sep-2009 Evan Millar <emillar@google.com> Adjust to ContactHeaderWidget api changes.

Change-Id: I34d77fa00421951cef0dc62d33982be6aa06b644
ndroid/contacts/ui/EditContactActivity.java
9893cfe05a915db0378052c47981250f85a3ae19 26-Sep-2009 Jeff Sharkey <jsharkey@android.com> Rewrite display groups to persist changes in transaction.

In a previous change we relied on now-removed query
parameters to delay visibility updates until forced through
a specific update. This would leave the contacts list in
a stale state when the user left the Activity through
non-typical methods, such as notification or home key.

This change keeps all user edits in memory, reusing code
from our edit UI, and persisting them in as a single
transaction when finished. This also adds a button bar
to help confirm or revert changes. Fixes http://b/2075275

In addition, this change cleans up inefficient code where
we had been previously joining together up to 3 cursors for
each account to match a given UI spec.
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/ui/DisplayGroupsActivity.java
7cd9cfc6f700be3d7c54045e6669c072a5fb8eeb 24-Sep-2009 Neel Parekh <neel@google.com> Don't hightlight call button in lists.

Bug: 2138709
ndroid/contacts/ui/widget/DontPressWithParentImageView.java
212453d3cb8f82313729b0e95e481cb1c06724ac 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26096 into eclair

* changes:
Try to do an update before inserting.
4b749db9a27a49f61cca28f9bbac529c7b1257e3 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27134 into eclair

* changes:
Make sure we don't get an Out of bounds exception when getting a section.
939963647fbcce9bb57ebe5e299629060393bdfd 26-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 27102 into eclair

* changes:
- fix a crash that happens when reparenting a change - fix a bug wher to Longs are compared using == instead of equals
d458983e6293b6fa07b85f8e2a5fc317021e954e 25-Sep-2009 Fred Quintana <fredq@google.com> - fix a crash that happens when reparenting a change
- fix a bug wher to Longs are compared using == instead of equals
ndroid/contacts/model/EntityDelta.java
33a1f51c59d76c76e53c890f041448b4aea35f5a 25-Sep-2009 Neel Parekh <neel@google.com> Make sure we don't get an Out of bounds exception when getting a section.
ndroid/contacts/ContactsListActivity.java
2e1b8afd3ad0a30ab5bb56d5310a2a7c7bc6d653 24-Sep-2009 Evan Millar <emillar@google.com> Show sources / Hide sources UI in the view card.

Change-Id: Iee14c66c0b9b065403778c6b8e4cb1273a02ee65
ndroid/contacts/ReverseZOrderLinearLayout.java
ndroid/contacts/ViewContactActivity.java
a6ff67e83082c7953d3b70181549ff4cabce2eba 25-Sep-2009 Fred Quintana <fredq@google.com> don't delete photo rows that have an empty photo
ndroid/contacts/model/EntityModifier.java
8dae2943fb510e5ffd12111e312c31c272e6bc79 25-Sep-2009 Neel Parekh <neel@google.com> Fix divider showing up in contacts list
ndroid/contacts/ContactsListActivity.java
2ad90a3f2367c256d958cfee6881e6409ac37707 21-Sep-2009 Neel Parekh <neel@google.com> Try to do an update before inserting.
ndroid/contacts/AttachImage.java
ndroid/contacts/ContactsUtils.java
2a53badf9e15996e75584ecc81734a409b8b89e9 24-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make SDCard/SIM importer allows import into "phone-local" account.

Also make importer try to create "My Contacts" group if it does not exist in
the Google account.

Note that the code for the issue 2138187 is also added but temporaly commented out.
I agree this is not clean change, but please ignore these now.
I'll comment in them soon...

Internal issue number: 2141766
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/model/GoogleSource.java
cf22feefc9c022291d9c9fa6e70a59aef3552a78 25-Sep-2009 Evan Millar <emillar@google.com> Fix http://b/issue?id=2144841

Change-Id: I0955ceaeff76be5912e1add68d40b233d565b0d4
ndroid/contacts/ContactsListActivity.java
e02533748eeca6bd9e37926128495c3cb5503068 25-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26787 into eclair

* changes:
Fixes DisplayGroups to not show sync options for account types that don't support sync.
846351cb2c581952cf737b1d7c9ca9efb2b2d219 25-Sep-2009 Evan Millar <emillar@google.com> Fix http://b/issue?id=2144841

Change-Id: I0955ceaeff76be5912e1add68d40b233d565b0d4
ndroid/contacts/ContactsListActivity.java
2918828320cdf1fa1b551407e8b7ef669ed03ded 25-Sep-2009 Megha Joshi <mjoshi@google.com> Fixes DisplayGroups to not show sync options for account types
that don't support sync.

Bug: 2126681

Conflicts:

src/com/android/contacts/ui/DisplayGroupsActivity.java
ndroid/contacts/ui/DisplayGroupsActivity.java
7e1690ae43dc2cf310031e75a78b6d372adb7c0c 24-Sep-2009 android-build SharedAccount <android-build@sekiwake.mtv.corp.google.com> Revert "clear PHOTO column instead of deleting the row for focus"

This reverts commit a3c1b8beda9a79727690889647fdb9f234c760eb, as per Fred.
ndroid/contacts/model/EntityModifier.java
f493b768816f245ccf593953a743996e1a54055a 24-Sep-2009 Neel Parekh <neel@google.com> Hide contact context from fast track window in the contacts view
ndroid/contacts/ContactsListActivity.java
6b3711cd20ba214dd8a5fabfed450970da7a7b3d 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26858 into eclair

* changes:
Changed the 'dialer' string to 'phone' in the tab and app name.
08832404d96360ac386a98fd977e45fde936ec30 24-Sep-2009 Nicolas Catania <niko@google.com> Changed the 'dialer' string to 'phone' in the tab and app name.

The new UI design uses phone instead of dialer.
Need to go to the localization team to update all languages.

Bug 2104523
ndroid/contacts/DialtactsActivity.java
e58453425f2be4d9731bc178827fc73059b1b927 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26772 into eclair

* changes:
Fixes the issue about fasttrack window not being dismissed on tapping just outside it.
064a0a819bc833b4ddacf6f14266d0c57318ce88 24-Sep-2009 Megha Joshi <mjoshi@google.com> Change display order of account name, account type in create
contact under account dialog.

Fixes bug 2139498
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ui/EditContactActivity.java
22678e774a90943c33be27853ca42f9b8bb73d07 24-Sep-2009 Jeff Sharkey <jsharkey@android.com> Delay updating of Contacts.IN_VISIBLE_GROUP until finished.

To help prevent ANRs, this change take advantage of new
query parameters that delay updating until explicitly
requested. When the user finishes changing groups and
presses back, we show a progress dialog while we force a
single visible update pass in the background.

Fixes http://b/2075275
ndroid/contacts/ui/DisplayGroupsActivity.java
edb54bc2bc74a2c6be8e51dfdd0f1ac26ffcf3e0 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26813 into eclair

* changes:
Compare rawContactIds using actual number value.
e09266e133fb6cf870d24e9c971d70d28a261833 24-Sep-2009 Jeff Sharkey <jsharkey@android.com> Compare rawContactIds using actual number value.
ndroid/contacts/model/EntitySet.java
7979833d80750c70d49ba3e8ba923d31dc50b617 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26710 into eclair

* changes:
Delay the type value change until the custom value is correct.
54c69bbd8517c3414402bec9191bb9fb823c6d44 24-Sep-2009 Jeff Sharkey <jsharkey@android.com> Bring back EAS assistant name editor.
ndroid/contacts/model/ExchangeSource.java
7790880eafe196682452721d1ae0805fa71ec536 24-Sep-2009 Megha Joshi <mjoshi@google.com> Fixes the issue about fasttrack window not being
dismissed on tapping just outside it.

Bug: 2093519
ndroid/contacts/ui/FastTrackWindow.java
d5c5ed7b8586632c5a1f739014f0b6a80504d2b2 24-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2139542] Making sure a contact cannot be joined with itself.

Change-Id: If1a8ab01941e2017ed7532a61607c4ce09793e14
ndroid/contacts/ContactsListActivity.java
2a8cef0eefdee8b8e6345851e304b609ae21dd2e 24-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing the issue where empty contacts could not be joined

Basically if you did not have any _displayable_ items on a contact,
you could not merge it with another contact.

Change-Id: I58807cc25390bce4edb5fb0870641920281571f9
ndroid/contacts/ViewContactActivity.java
adedd75b1900c4c794a9e5702d9f43bdba4cea7c 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26655 into eclair

* changes:
clear PHOTO column instead of deleting the row for focus
99cb7b433caee77384aa3074a32a42e513a84e80 24-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Delay the type value change until the custom value is correct.

Also make createCustomDialog() private, as
- This method is used only by createLableDialog()
- This method heavily depends on the state of private instances (mKind, mType),
so I thought external objects should not touch this method directly.

Internal issue number: 1752454
ndroid/contacts/ui/widget/GenericEditorView.java
c7f7fe66d24291d72c2f4324c72fe40a525ae6d2 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26641 into eclair

* changes:
Change the haptic feedback from a duration to a pattern.
8cd3192e9e77348a6c01f4bc2d7191235d739335 24-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26264 into eclair

* changes:
Assoicates make primary logic with the remember this choice checkbox in fasttrack window.
3ef91edb750cee8c7843a0702134bec90b8baef4 23-Sep-2009 Jeff Sharkey <jsharkey@android.com> Populate default types for nickname and website.

Fixes http://b/2138153
ndroid/contacts/model/FallbackSource.java
a6168001516d8f6ae3e95289af25fd1c3088e3d7 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26666 into eclair

* changes:
Suppress showDialog() if the Activity is finishing().
7c6ef47d51236ad7cb35cae2c8af785dc27df8c8 22-Sep-2009 Megha Joshi <mjoshi@google.com> Assoicates make primary logic with the remember this choice checkbox
in fasttrack window.

Fixes bug 2072454
ndroid/contacts/ui/FastTrackWindow.java
a3c1b8beda9a79727690889647fdb9f234c760eb 23-Sep-2009 Fred Quintana <fredq@google.com> clear PHOTO column instead of deleting the row for focus
ndroid/contacts/model/EntityModifier.java
3bf0eb4512f8d8da1fabf6d71da2961bb8f2eb31 23-Sep-2009 Jeff Sharkey <jsharkey@android.com> Only allow 1 organization for EAS contacts.

Fixes http://b/2139188
ndroid/contacts/model/ExchangeSource.java
d56ac37b23c3d6fb7999a46b8999ee9b40779be5 23-Sep-2009 Jeff Sharkey <jsharkey@android.com> Avoid OOB exception when editing contacts.

Fixes http://b/2140908
ndroid/contacts/ui/EditContactActivity.java
4bd77861f391473bbead6934a209be2cd54686da 23-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Suppress showDialog() if the Activity is finishing().

Internal issue number: 2133273
ndroid/contacts/ImportVCardActivity.java
4c0704a054288f2a19e4818d51410e02489aa319 23-Sep-2009 Nicolas Catania <niko@google.com> Change the haptic feedback from a duration to a pattern.

The pattern is a platform config parameter.

Removed config_dialer_key_vibrate_duration, it is not needed.
Bug 2139025
ndroid/contacts/TwelveKeyDialer.java
cc27053c0f38fbdfd75c54fd5bcb70085c8ddc2f 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26614 into eclair

* changes:
Make Contacts app not allow users to create empty label for TYPE_CUSTOM field.
daedeb0b1428718e12f411007a8141b8c4e10d9c 23-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make Contacts app not allow users to create empty label for TYPE_CUSTOM field.

Internal issue number: 1752454
ndroid/contacts/ui/widget/GenericEditorView.java
8eecbe6173d0fca25edc5b93dd3bb1612657ddf7 23-Sep-2009 Vasu Nori <vnori@google.com> Avoid NPE if host is null, e.g. for "custom" IM protocol.
ndroid/contacts/ViewContactActivity.java
2aa7684d34ca8dd947344cebeea983234d9c28f3 23-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26584 into eclair

* changes:
Turns the create contact dialog into a Activity managed dialog to fix window leak. Fixes bug 2133210.
fdaff6483a518c179f9a1af5d91dbdd88dc926b4 23-Sep-2009 Megha Joshi <mjoshi@google.com> Turns the create contact dialog into a Activity managed
dialog to fix window leak.
Fixes bug 2133210.
ndroid/contacts/ui/ShowOrCreateActivity.java
88d00c2450a0a16bf1dd35e9f3c9ba843a97ec62 23-Sep-2009 Jeff Sharkey <jsharkey@android.com> Hook up logic for re-parenting of user edits, unit tests.

When persisting edits, we assert that RawContacts.VERSION
has remained consistent. When this check fails, it usually
means that a server change has changed the underlying data,
and instead of dropping user edits, we "re-parent" their
changes after re-reading the base data.

This change finishes up the re-parenting logic to run over
an entire EntitySet, and also has a nice pile of unit tests
to verify behavior. Fixes http://b/2115136
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/ui/EditContactActivity.java
2e6148fe7d8a3e724d8a8f10780d7e5571780279 23-Sep-2009 Jeff Sharkey <jsharkey@android.com> Use specific columns when building IM strings.

Fixes http://b/2138429
ndroid/contacts/model/FallbackSource.java
ec63f908762dd05d47561f2bebf402c97d6ab833 23-Sep-2009 Megha Joshi <mjoshi@google.com> Check for selected contact row not null in onSavedInstanceState()

Fixes bug 2129469

Conflicts:

src/com/android/contacts/ViewContactActivity.java
ndroid/contacts/ViewContactActivity.java
47edff11274d01c26a0d7ac39ccf76bce3298a6f 23-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2099417] Contact list now shows presence dots

Change-Id: I2d8fb3af86a2e11d3c6d53c7b9e66efcf96038d5
ndroid/contacts/ContactsListActivity.java
039a2aabee31d054b4f14a7f2e1cfa5ffd2be93d 23-Sep-2009 Evan Millar <emillar@google.com> Check for null cursor

Change-Id: I2d59b92684f67103098fd78b3e78727b9319deb5
ndroid/contacts/ContactsListActivity.java
cc87fb963e7ff7fa3234587e70657d3acfb1ed01 23-Sep-2009 Evan Millar <emillar@google.com> Remove the aggregate icon when it ceases to be an aggregate.

Change-Id: I157f95525b1b5f4d7e18aa91f0b93b80514b33be
ndroid/contacts/ViewContactActivity.java
450b88f0d5161e68ef67494e3021aa21311cc9b7 22-Sep-2009 Neel Parekh <neel@google.com> Show header to user when fields were hidden since they were read-only.

Bug: 2121692
ndroid/contacts/ui/widget/ContactEditorView.java
16d6b342bcedb2bc047788eae248eb70cf94a458 22-Sep-2009 Jeff Sharkey <jsharkey@android.com> Set readOnly flag based on SyncAdapterType.
ndroid/contacts/model/Sources.java
51514db2341d8e9fddb588249d084021a1d50dc2 22-Sep-2009 Evan Millar <emillar@google.com> Do a better job at removing tabs code.

This fixes some bugs that I introduced a couple of hours ago in
https://android-git.corp.google.com/g/#change,26299. Mainly, edit didn't
work.

Change-Id: I8484a454ce1e5866d981000f97959a3534ea12f2
ndroid/contacts/ViewContactActivity.java
b751e1dc68a8941f77c6252f3e0facf4adc61ad5 22-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make VCardExporter stop appropriately when onStop() is called.

Internal issue number: 2121692
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/VCardExporter.java
cea5758bde365a22ff5054d06c534695d0702a33 22-Sep-2009 Evan Millar <emillar@google.com> Add protective code for http://b/issue?id=2135578

-I couldn't repro this bug, so I just added protection against it.

Change-Id: I350602b403c39c407c3c54f39a2d44dc3e5ec317
ndroid/contacts/ContactsListActivity.java
8586311c74eef25af360e05d2d7d67f7c5a92be1 21-Sep-2009 Evan Millar <emillar@google.com> Hide the tabs in view card.

Leaving the code in for now, in case we decide to bring it back at some
point.

Change-Id: I53fffb007cc2b90406f5dc77f552a94c346c15ef
ndroid/contacts/ViewContactActivity.java
32eda4a482fd379c686789cca87a404881280580 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26281 into eclair

* changes:
New text field to display the punched numbers.
ae6c2885f288840b17f3a58d184ae88c3aff67f2 22-Sep-2009 Jeff Sharkey <jsharkey@android.com> Remove obsolete string reference.
ndroid/contacts/ViewContactActivity.java
2694d015ea690a193ce64e4543278074c567d0a6 22-Sep-2009 Jeff Sharkey <jsharkey@android.com> Last attempt at getting chicklets right, ugh.
ndroid/contacts/ui/FastTrackWindow.java
41fe372b104fe53008e4b946a1e45212b00461f1 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26340 into eclair

* changes:
Update action chicklets in correct order.
6c750adc24f527ffe9fda35c1f211725277d90a3 22-Sep-2009 Jeff Sharkey <jsharkey@android.com> Update action chicklets in correct order.
ndroid/contacts/ui/FastTrackWindow.java
075458279d4510581493fc12286301996dded445 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26339 into eclair

* changes:
Split sources, partial inflation, third-party support.
ab066931efd4b6408b5f57026b421eb4a7934a39 21-Sep-2009 Jeff Sharkey <jsharkey@android.com> Split sources, partial inflation, third-party support.

This change splits HardCodedSources into separate classes
so they could borrow helpers from fallback. This also
finishes up FallbackSource so it handles all new types
supported by ContactsContract. The view inflaters now
handle showing all types, even if not supported as a choice
during edit. This approach also allows us to partially
inflate sources, speeding up view and FastTrack. Fixes
http://b/2116999 and http://b/2126675 and makes progress
towards fixing http://b/2134623

This change also fixes on-phone contacts, meaning we
always have fallback sources, fixing http://b/2119637 and
http://b/2123401

Repurpose code from StyleManager for Sources inflation of
third-party data sources, fixing http://b/2126691

Fix FastTrack chicklet bug so we uncheck when switching
between tabs. Since all types are in framework, we borrow
those strings here, and also clean up our descriptions for
translation.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/StyleManager.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/ExchangeSource.java
ndroid/contacts/model/ExternalSource.java
ndroid/contacts/model/FallbackSource.java
ndroid/contacts/model/GoogleSource.java
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/CheckableImageView.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/FastTrackActivity.java
ndroid/contacts/ui/FastTrackWindow.java
ndroid/contacts/ui/widget/CheckableImageView.java
30d61acd151c8c8d99ef28413799e79cfed68c78 22-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Suppress multiple finish() calls in ImportVCardActivity.

Related internal issue number: 2136137
ndroid/contacts/ImportVCardActivity.java
f2ba281f1d82077cf43e9ac5c4b863c829aa721d 22-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make onStop() call finish() so that ImportVCardActivity does not show ugly behavior
when a user changes the device's orientation (by sliding hardware keyboard, etc.).

Internal issue number: 2136137
ndroid/contacts/ImportVCardActivity.java
7d26de795f03c6de7b8801624f66341a25aaeb09 22-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2097207] Implementing filtering in the manual contact join UI.

Also fixing the issue where the lower section of this UI would get replaced with a
duplicate of the top section.

Also fixing a NPE in image loading in this UI.

Also simplifying the design by removing a custom query handler.

Change-Id: I261f0d93ba13ca717d382930119d294f6b32ec78
ndroid/contacts/ContactsListActivity.java
03eb1f4690db6af294037782d1e760e4d8b1ebfa 19-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Contacts: Correctly handle "call" click on serach suggest list.

In SEARCH_SUGGESTION_CLIKED action caused by "call" key, if the intent
data is "content://com.android.contacts/contacts/#", checking the
number of phone number the contact has, if the contact has only one
phone number then "call" it.

Internal Bug: 2126993
ndroid/contacts/ContactsListActivity.java
d3cab0b6bfeb0cb80884170c2d95d4571f595626 22-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26295 into eclair

* changes:
Don't CCO when picking from disambig list.
85b95b992ee370a363ef33e6e032f182885582dd 22-Sep-2009 Jeff Sharkey <jsharkey@android.com> Don't CCO when picking from disambig list.

Fixes http://b/2135189
ndroid/contacts/ui/FastTrackWindow.java
75993760f74e2895eca075b68a5b474c2e9dd927 22-Sep-2009 Nicolas Catania <niko@google.com> New text field to display the punched numbers.

The numbers are centered in the field.
The active background is used when non empty.
Added top and bottom margin.
The font used appear a bit small compare to the
design, need to come up with a textAppearance resource
to control it (future CL)

Tested on cdma and gsm phones.

Bug: 2104523
ndroid/contacts/TwelveKeyDialer.java
6e1e38e291f8b8f1330c9f20f96e7c5910282d34 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26177 into eclair

* changes:
Fix bug 2102658
f969069ea0a1a8d7cda02bc465f6979e2bc31024 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26041 into eclair

* changes:
Added backspace button.
d533c1aa59f38600e9477074722c6b286e3ecdd3 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26134 into eclair

* changes:
Add plus icon with text for Creating a new contact.
6621045507adb8484cc0b87e7093f65ed05fe478 21-Sep-2009 Evan Millar <emillar@google.com> Fix bug 2102658

-Also sneak in a UI touchup for call/text line padding.

Change-Id: Ia46aa7901518789247e9e64819c77ffbde7d2fe6
ndroid/contacts/ViewContactActivity.java
560c9c1b275c35ffb05ffd99bec83522d598332a 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26163 into eclair

* changes:
Fixing a bad query in contact split UI.
b902a462c26f843e98c66877ef9ab8fb4ea6e446 21-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing a bad query in contact split UI.

Change-Id: Ie26bd435133c181d95dd765e346366517fc90f91
ndroid/contacts/SplitAggregateView.java
73ec9e82258d426f42be5e4882ec900d642c6e69 21-Sep-2009 Megha Joshi <mjoshi@google.com> Add plus icon with text for Creating a new contact.

Fixes bug 1596967.
ndroid/contacts/ContactsListActivity.java
dc2c6a890b3558eddccc04dda64b6290d08f8a5f 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26115 into eclair

* changes:
Change to use depressed chiclet when showing diambig resolve list. Fixes bug # 2093651
192943b3ef21832f660399ae3541cba743c099a2 21-Sep-2009 Megha Joshi <mjoshi@google.com> Change to use depressed chiclet when showing diambig resolve list.
Fixes bug # 2093651
ndroid/contacts/ui/CheckableImageView.java
ndroid/contacts/ui/FastTrackWindow.java
a7e5a5b30c5f2da2df569b2792c9d17ff9f21603 20-Sep-2009 Nicolas Catania <niko@google.com> Added backspace button.

Deleted old unused resource (delete active, normal, pressed, selected).

Renamed 'backspace' instances to 'delete' for consistency.
Removed the linear layout that used to hold the digit and backspace.

Bug 2104523
ndroid/contacts/TwelveKeyDialer.java
2ab34013476f4311bff7ef189aabaf5c64a781f6 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26137 into eclair

* changes:
Contacts: Fixed to choose correct item in list, counting header in.
089a9fcbb5cbe10d4055bf10111ab1ad8f91b3bf 21-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 26146 into eclair

* changes:
Contacts: create device-local contacts when no Accounts configured.
9f176ec94846e94eb488a7124f1b0a14c002281f 21-Sep-2009 Brad Fitzpatrick <bradfitz@google.com> Contacts: create device-local contacts when no Accounts configured.

BUG=2065882
ndroid/contacts/ui/EditContactActivity.java
b25c13ec8b060cc74f91285929c4535adf4260f0 21-Sep-2009 Jeff Hamilton <jham@android.com> Stop using deprecated APIs.

Change-Id: I4c68f92bc21ca4b53b049f31deb9fc9480a790d5
ndroid/contacts/DialtactsActivity.java
57cf30f316b8013e172150d1ad0e197be6b46b87 21-Sep-2009 Tadashi G. Takaoka <takaoka@google.com> Contacts: Fixed to choose correct item in list, counting header in.

Internal Bug: 2123493
ndroid/contacts/ContactsListActivity.java
dfb8675794351b081644e3402fc24513833be14c 21-Sep-2009 Neel Parekh <neel@google.com> Show images while in picker mode, but disable fasttrack.
ndroid/contacts/ContactsListActivity.java
80bda0f77886be63433e9872bf369d189519a136 19-Sep-2009 Nicolas Catania <niko@google.com> Added the dial voicemail button.

Voicemail is disabled if the number cannot be accessed,
e.g no SIM card or insufficient privilege.

I left the functionality of long pressing '1' to
call the voicemail.

Bug: 2104523
ndroid/contacts/TwelveKeyDialer.java
4394bddde554fe77d35c6019748d09cf4698ac77 20-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25943 into eclair

* changes:
Fixed bug that wipes out the phone numbers in the call log.
9ee7f487379d9512ad0e60ffe4fb666d4293474c 20-Sep-2009 Nicolas Catania <niko@google.com> Fixed bug that wipes out the phone numbers in the call log.

Bug 2131204
ndroid/contacts/RecentCallsListActivity.java
6a826b85c3451e8b67a19f2c57ee793f3d95ef51 19-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25875 into eclair

* changes:
Add fast track window animations.
5112c127ad85add9aec4cf01e5a3596f06c97345 19-Sep-2009 Dianne Hackborn <hackbod@google.com> Add fast track window animations.

The enter animation works; the exit animation doesn't, because of the
associated with the activity. In theory I have a dummy animation
also associated with the activity to keep it around during the exit
animation, but this isn't working and I need to figure out why.

Change-Id: I1a3a3e4832e62080c35b4bc8f888bdc2d90528c8
ndroid/contacts/ui/FastTrackWindow.java
ee4eed1107a9823f536f5226409ed9342a7d474c 19-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Stop vCard import thread when Home is pressed or a hardware keyboard is slided by the user.

Internal issue id: 2132039
ndroid/contacts/ImportVCardActivity.java
4166343a1fc20edf028af971e3eaa827021e0e6f 19-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Switching to streamlined naming of contact Data columns.

Change-Id: If6ec42ad0b4b608f0d99053bdea7dcea2c74a7b8
ndroid/contacts/ContactsListActivity.java
1e189a89fab31da5853c797390a3add342932b49 19-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25770 into eclair

* changes:
New dial action button at the bottom of the dialer.
e076a41300f1989c8fac266ce7c15546cf56f460 19-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25809 into eclair

* changes:
Create group when it doesn't exist.
c79ef8ad66c899e01d4a0cf9f79dea0273d84c97 18-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Move account selection logic from ImportVCardActivity to ContactListActivity.

Making this change enables SimImport in Phone application utilize account selection
done in ContactListActivity.

This change also fixes internal window leak repored in the internal issue 2124725.

Issue:
Found that the screen freezes when a user slides a hardware keyboard during the import.
Will report it as another issue.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ImportVCardActivity.java
d4e87b6188dd12e0cd81e186f59e1d4de4ab3bf1 16-Sep-2009 Neel Parekh <neel@google.com> Create group when it doesn't exist.

Bug: 2096844
ndroid/contacts/model/HardCodedSources.java
156a26c4e88d6acfb0af3dda0726938722dff997 19-Sep-2009 Neel Parekh <neel@google.com> Fix the formatting for no favorites text.

Bug: 2102959
ndroid/contacts/ContactsListActivity.java
564bd9db4bc7297d7d368014d19a21ae7de784b2 19-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25602 into eclair

* changes:
Allow EditContactActivity to use a picker
ecdf6dca13f4a290ad97718d30e434a6f5a77e55 18-Sep-2009 Evan Millar <emillar@google.com> Bring in hi-res mini-tab and divider assets.

Also remove unused assets, and code related to the social stream.

Change-Id: Ic2288ea93b2a0ff3b70098ba0fda200cc215cb5d
ndroid/contacts/SocialStreamActivity.java
ndroid/contacts/ui/FastTrackWindow.java
dea164e10a4cd053aaa019731fc79f392fffd112 18-Sep-2009 Nicolas Catania <niko@google.com> New dial action button at the bottom of the dialer.

There is a new row of 3 buttons (voicemail, dial, backspace).
Currently only the dial button has been implemented.

In the new UI design the dial button should be visible even
on devices with a hard SEND button, therefore I changed the
resource that controls the display to true.

In the dialer, on resume, set the state_enabled attribute properly.

Bug: 2104523
ndroid/contacts/TwelveKeyDialer.java
be406ff7902e622021c702ada9720c0b93ac3af4 17-Sep-2009 Neel Parekh <neel@google.com> Allow EditContactActivity to use a picker

Few fixes... when creating a contact, it returns to the List. The list converts
the raw_contact into a contact and returns that (same as if you selected a contact).

Then changed AttachImage to use the new style of contacts.

Bug: 2092559
ndroid/contacts/AttachImage.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/ui/EditContactActivity.java
6164461a80cf46ecc4b9d4de21a8c2662d5ac220 18-Sep-2009 Jeff Sharkey <jsharkey@android.com> When parsing extras, use best type when none provided.

When the caller doesn't pass any type, use the best for the
selected ContactsSource, instead of TYPE_CUSTOM.

Indirectly helps http://b/2129074
ndroid/contacts/model/EntityModifier.java
e897162ceb2cfac45783f96d87ea500baf855c17 18-Sep-2009 Jeff Sharkey <jsharkey@android.com> SHOW_OR_CREATE to original behavior, new FastTrack API.

We had been overriding SHOW_OR_CREATE for awhile, but as
part of http://b/2087222 we added a separate API for
triggering FastTrack. This change returns SHOW_OR_CREATE to
its original behavior, and adds support for the new API.
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/ui/FastTrackActivity.java
ndroid/contacts/ui/FastTrackWindow.java
ndroid/contacts/ui/ShowOrCreateActivity.java
1e48d111c0366aef6e80e215d9341272bc246649 18-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Preventing pictures from blinking during contact sync.

We were clearing photo cache on every notification from the cursor. There is no reason to do so
and a good reason to not do so. We used to build a sparse array based on the cursor position,
which would have to be invalidated when the cursor re-queried. It's soft cache based on the photo
id, so it can be kept around across those reloads.

Change-Id: I3f7fdcabbbeb09983410f8d092f31647df8fd698
ndroid/contacts/ContactsListActivity.java
2e6ef32af057bbd3e0e556fc7611e45bae091e7d 18-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25183 into eclair

* changes:
Don't show account selection in Add Contact when no choices available.
ac86cde29640264b52a7003d1bbfdba3f3b179a9 18-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Split Contacts: cosmetic - cleaning up variable naming

Change-Id: I9e52a1c38b622e0fd426b4b9c98f7495a2ff28a9
ndroid/contacts/SplitAggregateView.java
e2b2f70264bd82791775d406454428c206b3b652 18-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Using new contacts API when creating a new live folder.

Change-Id: I84e7efd3f6a67502defd6279588e262e56bfa42f
ndroid/contacts/ContactsLiveFolders.java
4e3a04325a6bc85ee1dff5b0a63a686e664f2a88 15-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2125322] View Contact now supports legacy URIs in the intent

Change-Id: Ib22f8f42ab19727881e489343e704a16adbdabae
ndroid/contacts/ViewContactActivity.java
a9f7e4bd84bb2ada982cf1571f63a9d0910c26af 18-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25646 into eclair

* changes:
Make RecentCallsListActivity#formatPhoneNumber() ignore null or empty phone number.
ed72870e2d29a4f23c489b2cff0b44a15518b803 18-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make RecentCallsListActivity#formatPhoneNumber() ignore null or empty phone number.

Internal issue number: 1903662
ndroid/contacts/RecentCallsListActivity.java
999db91008dde002f9bca15799dc2eae7a191f04 18-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Rafrain entry.label made lower case.

internal issue number: 2114934
ndroid/contacts/ViewContactActivity.java
e2040782121253b984859b99983712ed2c25fb91 18-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25615 into eclair

* changes:
Fix an NPE in when returning to ViewContactActivity from EditContactActivity.
7759fb353ebe7fb507e6bcf0423a14623e7c0459 18-Sep-2009 Evan Millar <emillar@google.com> Fix an NPE in when returning to ViewContactActivity from EditContactActivity.

Fixes bug 2127843

Change-Id: I6e9ac54d7b726258e90c04be156d293c4bd1b9d8
ndroid/contacts/ViewContactActivity.java
78d3346fec08577d7ef4b8c0c7fdef9da47fb863 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25540 into eclair

* changes:
New dial numbers and backgrounds for the Contacts dialer.
5233dc7f53b81877f20db94c878beb9193847b39 16-Sep-2009 Brad Fitzpatrick <bradfitz@google.com> Don't show account selection in Add Contact when no choices available.

BUG=2084809
ndroid/contacts/ui/EditContactActivity.java
160b8a9f6de78161c78955291b8fa793329ea879 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25522 into eclair

* changes:
Second try at fixing replacement of a range of digits with a pause.
30a423c0490c80d6845e7abff74a2d43067251e0 17-Sep-2009 Evan Millar <emillar@google.com> GET_CONTENT expects an "item" type not a "dir" type.

Change-Id: Ic8ad117537b4f91d05ef83aba2cb03f1ad2b004a
ndroid/contacts/ContactsListActivity.java
6613abf6c117a771e51908ce94a2389b5d5b33ee 17-Sep-2009 Nicolas Catania <niko@google.com> New dial numbers and backgrounds for the Contacts dialer.

UI overhaul for the dialer in the contacts app.
This CL changes the buttons only.
We lost the voice mail symbol on the '1' button but
the functionality is still there. A separate button
for the VM will be added at the bottom in a separate CL.

Removed the old button assets and added new ones in
the new mdpi and hdpi directories.

Fixed ButtonGridLayout to put the right amount of vertical
padding between buttons.
Also fixed a small bug in the loop to measure each child (was
measuring child 0 instead of child i.

dialpad.xml, converted px to dp units.
Adjusted the size of the buttons and padding.

Bug: 2104523
ndroid/contacts/ButtonGridLayout.java
1e2d3a22ab6d0fa7657428c3ed58711fd2c5a821 17-Sep-2009 Eric Fischer <enf@google.com> Second try at fixing replacement of a range of digits with a pause.

It was still not working all the time, because the automatic number
formatter could change the buffer offsets in between the deletion of
the old digits and the insertion of the pause character. Do it as
a single operation so that nothing can happen in between.
ndroid/contacts/TwelveKeyDialer.java
c7ab59e212ce4b7d2b23143ebbdce2c0aedd1187 16-Sep-2009 Evan Millar <emillar@google.com> Fix http://b/issue?id=2085793

-Also fixes problems with the call button divider not disappearing when
the call button was gone.

-Also populates the typeList for the "fallback" source, for phone,
email, and postal DataKinds. The type lists are the unions of the focus
and exchange typeLists.

Change-Id: Idd68760d852e4accdcf3043007253e122bd5534b
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/model/HardCodedSources.java
3b1a35503f6ea58e14a3c466ffe2e3522b5e47c4 17-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25432 into eclair

* changes:
Finish up using Contract phone types for EAS.
e5ac076343e401ec1bafae74270273617017f863 17-Sep-2009 Jeff Sharkey <jsharkey@android.com> Finish up using Contract phone types for EAS.

Fixes http://b/2092744
ndroid/contacts/model/HardCodedSources.java
9625d4bb03876639ca4950390414c8863e405a99 16-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25294 into eclair

* changes:
Adjust to new ContactHeaderWidget api.
9b1a1247a29e6a3f402f785440a796d535d991ea 16-Sep-2009 Evan Millar <emillar@google.com> Adjust to new ContactHeaderWidget api.

Change-Id: Ia56c026d4fba16d4846e794229ec41611792ac4b
ndroid/contacts/ViewContactActivity.java
87ca9541eb355e90bf5b82230804621b9f640e55 16-Sep-2009 Neel Parekh <neel@google.com> Fix legacy support of viewing contacts in pick list

Bug: 2099535
ndroid/contacts/ContactsListActivity.java
53568154f21e0e6f676522247390c371873c778b 16-Sep-2009 Jeff Sharkey <jsharkey@android.com> Show unsynced groups clearly in separate item, don't annoy.

This change adds a new "More groups..." list item under the
expandable list for a data source when it has any unsynced
groups, making it more discoverable for users to bring back
unsynced groups. This fixes http://b/2084771

Also cleans up lingering issues so we show unsynced groups
from the correct accounts, and only prompt the user once
about removing "ungrouped." Fixes http://b/2114723
ndroid/contacts/ui/DisplayGroupsActivity.java
e50d64d1e9eb321735c94a15b1a20a59a19cc421 16-Sep-2009 Jeff Sharkey <jsharkey@android.com> Separate tab and state models, fix delete issues, dialogs.

Maintain a separate model for tabs and the underlying state
so that we hide tabs for RawContacts deleted during the
edit session. Also bail out when the last tab deleted.

Manage dialogs so we don't leak activities. Parse legacy
IM types. Fixes http://b/2122838
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/ui/EditContactActivity.java
75b20e006308672b9e9c2e39489cf3eae4ebf4bd 16-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25208 into eclair

* changes:
Use Account information if possible when importing some vCard file(s).
efbaac56d38802fbb90d9d06f4f921fde930bcb9 16-Sep-2009 Daisuke Miyakawa <dmiyakawa@google.com> Use Account information if possible when importing some vCard file(s).

internal issue: 2116216, 2102720
ndroid/contacts/ImportVCardActivity.java
89d34862e313f8b57f58475e7bb1840c9e5c48bf 16-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 25180 into eclair

* changes:
Prevent unstateful edits, empty trimming, INSERT edge cases.
7f86847eddbec5dff4d87ac9243d839593582e42 16-Sep-2009 Jeff Sharkey <jsharkey@android.com> Prevent unstateful edits, empty trimming, INSERT edge cases.

Monkeys found some edge cases that could perform actions
when editor was in an invalid state. Added validity checks
in about a dozen places to prevent. Fixes http://b/2121368
and http://b/2115921

Hook up trimming of extra empty fields that users have
left blank, including dropping of entire RawContact if no
valid fields remain. Also wrote a pile of unit tests to
verify behavior. Fixes http://b/2112915

Don't CCO when inserting bundles that use CharSequence
instead of Strings. Don't NPE when inserting bundles and
we encounter a DataKind that the chosen ContactsSource isn't
able to handle. Fixes http://b/2105737 and http://b/2118580

Insert bundles for INSERT_AND_EDIT cases where user chose
to edit an existing contact. Fixes http://b/2098856 and
http://b/1645578

Adopted new framework back key API from hackbod.
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/EditContactActivity.java
815bb3ba449a63716908dbdefd214a0c220965db 28-Aug-2009 Evan Millar <emillar@google.com> Use the new FasttrackBadgeWidget in the ContactsListActivity.

Change-Id: Ib75d6b861f06e1bb9db06f6416ca0ac46fa08363
ndroid/contacts/ContactsListActivity.java
a62e6db031a02bb04a57049839545e378d3b72c2 15-Sep-2009 Neel Parekh <neel@google.com> Fix the address coming from maps.

Bug: 2101939
ndroid/contacts/model/EntityModifier.java
f4455409e189176e78f93bc242955e8d05d3b7b5 15-Sep-2009 Neel Parekh <neel@google.com> Change the text if no favorites exist.

Bug: 2102959
ndroid/contacts/ContactsListActivity.java
242599a0f1ab23e2a46eff963484a70ec7981bef 15-Sep-2009 Dianne Hackborn <hackbod@google.com> Execute back key on key up.

Change-Id: Ic878e145f68f3a2b4e8167d4df0685c9d63462f2
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/SocialStreamActivity.java
5aaa36a1a3ee0e820c23f43a9c1429a8fd9a2b3b 14-Sep-2009 Neel Parekh <neel@google.com> Change the text to not include SIM if working on a CDMA phone

Bug: 2031065
ndroid/contacts/ContactsListActivity.java
803c2ed6eab08ff0a137a59c329eceac38099b7d 14-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24893 into eclair

* changes:
More call log and favorites list UI changes.
156546a4daa7461e745f5aa1bd2077c973ed367d 14-Sep-2009 Evan Millar <emillar@google.com> More call log and favorites list UI changes.

Change-Id: Ie108539f5d116898a82586ddce3ec99c95a5bb34
ndroid/contacts/ContactsListActivity.java
b77a6d9fcb489aa9aa794858f7715ed1a5b9319e 14-Sep-2009 Neel Parekh <neel@google.com> Change display groups "only phones" filter to checkbox

Bug: 2110776
ndroid/contacts/ui/DisplayGroupsActivity.java
0e3ff31c840c13e3d23a2db38c1d61aaa394acc3 11-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24701 into eclair

* changes:
Add call button to favorites, and move button to right side of call log.
250db2bbfbade27c5607719fb84bddbd7e1af70e 11-Sep-2009 Jeff Sharkey <jsharkey@android.com> Correctly check for empty state when leaving editor early.

Fixes http://b/2112520 and http://b/2114480
ndroid/contacts/ui/EditContactActivity.java
42c6f66075191b9a9099b1bd9009987826865ba1 11-Sep-2009 Evan Millar <emillar@google.com> Add call button to favorites, and move button to right side of call log.

Change-Id: I7445ceee5f7cd39b037feb80f04fb61153a6db02
ndroid/contacts/ContactsListActivity.java
40b34b98d7e8456d78b1982885323dd4d87e4fc8 11-Sep-2009 Jeff Sharkey <jsharkey@android.com> Bring positions back into photo setTag() for FT launching.

Earlier change had switched setTag() to store Photos._ID
values instead of list positions. This broke FastTrack
launching from lists.

This change adds a container class so both values happily
live in the same tag. Fixes http://b/2114632
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ui/FastTrackWindow.java
5231f475b806610b4c9a64369aae5144fa2ee01d 11-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24628 into eclair

* changes:
Fix an exception in Contacts when you select text backwards from the end.
7875e28ef8de870fff0e67ca3d8de02758136029 11-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2113852] Fixing mismatches between pictures and contacts

Change-Id: Iea49a8b995632753b71572105c8443f4a63ad6d7
ndroid/contacts/ContactsListActivity.java
686782e2c3de2b131595c64c12bf413df8c30460 11-Sep-2009 Eric Fischer <enf@google.com> Fix an exception in Contacts when you select text backwards from the end.

It was assuming that the end of the selection always came after or at the
start of the selection, and that therefore (start,end) was a safe range
to replace, but this is not actually the case when you select backwards --
in this case, the end comes before the start.

Bug 2087034
ndroid/contacts/TwelveKeyDialer.java
d35b3906a81e564011b2cee950e274afea3205d9 11-Sep-2009 Jeff Sharkey <jsharkey@android.com> Add StructuredPostal editor for EAS. Fixes http://b/2111725
ndroid/contacts/model/HardCodedSources.java
01f4cafd6a6a388e08408e906939105dacbf2c97 11-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 24599 into eclair

* changes:
[Issue 2112887] Fixing picture display in the manual contact join UI
6f8d46b5fb96c2bead1317aae93a73fc89b093ab 11-Sep-2009 Jeff Sharkey <jsharkey@android.com> Insert, update, delete photos. Trim empty fields.

Allow photo changes when the ContactsSource allows Photo
entries. This change also trims out any inserted or updated
fields that are now "empty" according to their respective
DataKind fields. Wrote unit tests for field trimming to
ensure wiping works. Fixes http://b/2050549
ndroid/contacts/model/Editor.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
ndroid/contacts/ui/widget/PhotoEditorView.java
8dbcd1ce80d7231e844ecd6310e352c99dd537b8 10-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2112887] Fixing picture display in the manual contact join UI

Change-Id: Ibf747091532b4c03fb29594d79c0156465437779
ndroid/contacts/ContactsListActivity.java
6fbf4e0bcd52f60cc80f317fe20510c67e9c00d7 10-Sep-2009 Evan Millar <emillar@google.com> Fix bug 2110011

Change-Id: Ib4aee767d11a8ae71d55815908e89c1097041f60
ndroid/contacts/ContactsListActivity.java
14fecb6de54a95e85846e4d30a66a7fe5beebce3 09-Sep-2009 Evan Millar <emillar@google.com> Show a disambig dialoge to choose a number when initiating a call on a contact.

This fixes 2098966

Change-Id: I6fd80a2fe25ab1b6d36d913cb96c7927939512b7
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/PhoneDisambigDialog.java
ndroid/contacts/ViewContactActivity.java
360aa68d9d1451290ff7448b2a6bffdede5cb9d0 10-Sep-2009 Jeff Hamilton <jham@android.com> Fix the hardcoded sources for Facebook. The fallback sources don't do what I thought they did.

Change-Id: I3383ac47b32b82f7b34acc114b0e9b61746a525e
ndroid/contacts/model/HardCodedSources.java
49d17b3e7692ae9442c342db236fa93d4a837c28 07-Sep-2009 Jeff Sharkey <jsharkey@android.com> Lookup uris, delete, aggregation rules, untyped, sharing.

ContactsListView: combined together various import/export
menus under single dialog, hiding SIM import when no ICC
present. Switched almost all cases to use soft "lookup"
uris, especially for pick and operation cases. Brought
back delete in long-press menu, and pick modes needed for
SHOW_OR_CREATE. These partially fix http://b/2096050 and
http://b/2096870 and http://b/2102632

ViewContactActivity: changed menus to inflate from XML,
added "Share" option to replace barcode. Confirmed that it
sends vCard through Gmail, other apps can match MIME-type
to begin appearing in picker. Changed EAS rules back to
untyped for Email and IM, which now allows use to use IM
type as protocol picker. Fixes http://b/2072731 and
http://b/2092744 and http://b/2088935

EditContactActivity: restructured editing to front-load all
version assertions, and perform as single batch to prepare
for reparenting. Correctly generate AggregationExceptions
using new API from dplotnikov, especially in cases where we
create multiple RawContacts from scratch. Unit tests to
verify exceptions built correctly for edge cases. Also
showing toast when saving failed. These changes were mostly
untracked, but fixes http://b/2099211

Various untracked NPE related to untyped HardCodedSources
and cleanup of "tel" "smsto" and SMS MIME-type constants.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/EntitySet.java
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/FastTrackWindow.java
ndroid/contacts/util/Constants.java
29d48e7bb03d5a75049cbbc7b9bd51a3001dcbb8 05-Sep-2009 Evan Millar <emillar@google.com> Show organization company and postion instead of "Organization" and position.

Fixes bug 2101949

Change-Id: Ia6c96eb05b95bac3a7510a8d9d9312bd2ac9209d
ndroid/contacts/model/HardCodedSources.java
320c34a674bcb3209ce8e7a22d58c17cd0259da2 04-Sep-2009 Evan Millar <emillar@google.com> Fix for bug 2100165.

Change-Id: Id147518259b94b1f398e538d0b7b509afd346006
ndroid/contacts/model/HardCodedSources.java
8487fed410beaeb86a1eed733dcc62a6cc36875b 07-Sep-2009 Eric Laurent <elaurent@google.com> Fix issue 1992233: DTMF tones on Sholes is really long.

Do not use a delayed message to define the DTMF tone duration. Use the duration parameter in ToneGenerator.startTone() instead. This garanties that the actual tone duration is independent from the filling level of the audio buffers when the tone starts.
ndroid/contacts/TwelveKeyDialer.java
0f0d55414e3952a674a1d95295116cda6ff000b6 08-Sep-2009 Jeff Hamilton <jham@android.com> Fix the display of social updates in the fast track, and the hard coded Facebook sources.

Change-Id: Ifbb429ad5714bdd78a5571c4adc575b74f928649
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/ui/FastTrackWindow.java
f40ccdf82bf8894aafebf6ede868c70ce2090897 05-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact aggregation exception API.
ndroid/contacts/ViewContactActivity.java
040dc15e905bfa5a5b367b0010488060ca69b942 04-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2099504] Bypassing contact split dialog when there are only two raw contacts in the aggregate
ndroid/contacts/ViewContactActivity.java
0306bbd6d81c66706eb190ce873201fe69eae8db 03-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Resetting URI before a contact lookup
ndroid/contacts/ViewContactActivity.java
99eafe7e9dc2bec101efebf525813bf64b750f72 03-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Switching to contact lookup URI in View Contact.

This also fixes UI update after contact split.
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/ViewContactActivity.java
4d1f1af410dfec28c45a2c30c82d9dc83a991f14 03-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> [Issue 2097203] Fixing a crash in manual contact join
ndroid/contacts/ContactsListActivity.java
985585b0557d277ee2ae3e8093cd577d0d1d59b1 03-Sep-2009 Jeff Sharkey <jsharkey@android.com> Correctly change aggregation mode in all cases, unit tests.

Fixed broken unit tests, and in the process corrected an
issue where we changed aggregation mode in some cases where
is wasn't needed. (When updating but no values change.)
ndroid/contacts/model/EntityDelta.java
83129f0b6da3ba50639bd6f9f4803e407298bd4b 03-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Showing a toast when a contact shortcut leads nowhere.

This is a temporary patch to prevent a crash. We need a better UI solution.
ndroid/contacts/ViewContactActivity.java
49714ee0ffc830f9bcd1116e74d61116dedd190f 03-Sep-2009 Evan Millar <emillar@google.com> Add Organization and Note kinds to Exchange viewing/editing

Also add placeholder "chat" string to show as label for exchange im
items.

Fixes bug 2072710 and 2092920

Change-Id: I5c3ba0c73160f93b6d06b5b6a2ca20a84f56da18
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/HardCodedSources.java
f19104cc70fba290e000c379e06fb16f1e021a0f 03-Sep-2009 Evan Millar <emillar@google.com> Add missing import. Fix the build.

Change-Id: I9ddf3cb6bf530c77fb89e0e2aa6505d6a52505c1
ndroid/contacts/ContactsUtils.java
2cd5100f4478627ff96a1c16dd96fedf26544d10 02-Sep-2009 Evan Millar <emillar@google.com> Fix http://b/issue?id=2086484 and http://b/issue?id=2087539

Change-Id: I392e52ac821a2eabd40c26024dbc587e6e63236f
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
11d628c52c16a18c0caf40df0ce43396e7592ffc 02-Sep-2009 Evan Millar <emillar@google.com> Use ContactsSource in View

Combine BaseContactCardActivity and ViewContactActivity, since
EditContactActivity isn't using it anyway.

Use Entity querying, and ContactsSource in ViewContactActivity.

Change-Id: Idc0fb4d5d4e2637f5a345461362d55d4bfcb6cf2
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/ui/EditContactActivity.java
3a243f26d69113eb61359c8a6ec8ca8c4a8ad5e3 03-Sep-2009 Jeff Sharkey <jsharkey@android.com> Specify editors for fallback StructuredName.

Fixes http://b/2096580
ndroid/contacts/model/HardCodedSources.java
3d53ce29692986b304951f903f0c7554444c7cb8 02-Sep-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing support for contact shortcuts.
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
ad40a919d318c7aa26f252d3f0fe541e2c44a211 01-Sep-2009 Jeff Sharkey <jsharkey@android.com> Older EAS types, new Email field, fix count and INSERT bugs.

The EAS sync-adapter isn't ready to handle type-less Email
and IM entries yet, so bring back the original strongly-
typed editors. Partially fixes http://b/2089080

Provide a second edit field for Email.DISPLAY_NAME when
editing EAS contacts. Partially fixes http://b/2092744

Correct count when determining canInsert() for fields that
have typeOverallMax constraints. Fixes http://b/2089132

Correctly build incoming StructuredName using existing
field, and check for empty fields to fix http://b/2078726
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/ui/EditContactActivity.java
6cdb9399267f136fb37106b2b18be727d91f7c30 01-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23475 into eclair

* changes:
Return appropriate URI for PICKER intents.
813e805c8f796cdc8e30330b828057bcb40e4ddd 01-Sep-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 23177 into eclair

* changes:
Refactor the way we track selected tab in ViewContactActivity.
c2d862e8ff8ae0d5f0d24995d588aca20be6a99a 31-Aug-2009 Evan Millar <emillar@google.com> Return appropriate URI for PICKER intents.

Based on under which authority the calling activity is asking, return
either a legacy style URI or new style URI as a result of a PICK
intent.

Change-Id: Icd7cf220c6355ff3fd14a5f9a39fc071aa7c0434
ndroid/contacts/ContactsListActivity.java
aad8848282f51d73ad308e9ad3ebcef592fa153f 30-Aug-2009 Jeff Sharkey <jsharkey@android.com> Expandable structured support, organize editors, much more.

Wrote expandable editor support, so that StructuredName and
StructuredPostal could be displayed compactly on smaller
screens, but still expanded to edit all possible fields.

Reorganized editors to directly inflate classes instead of
using ViewHolder pattern. This helps us prepare for focus
saving logic coming soon, and also required that each data
row have getViewId() to be uniquely identified.

When editing EAS contacts, don't use separate types for
"Email 1", "Email 2", etc, and instead use a single overall
limit on type-less values. (This is dependant on
http://b/2065904 being resolved.)

Defined fallback "on-phone" account separately to prevent
confusion with Google account, also limited the possible
data types that could be entered.

Suspend aggregation while persisting RawContacts updates
to prevent possible re-aggregation and user confusion when
returning to View activity. Also correctly generate
AggregationExceptions when inserting new RawContacts under
an existing aggregate. Fixes http://b/2087517

When inserting Google contacts, add GroupMembership for
"My Contacts" to help visibility, fixing http://b/2070479

Don't reprompt for account when rotating during INSERT,
fixing http://b/2084585 and hide editor until finished
with async loading. Ensure that specific rows exist so
we always have StructuredName to edit, and have waiting
Phone and Email fields for INSERT.

Used better method of creating generic ArrayList/HashMap.
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/StyleManager.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/Editor.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/DisplayGroupsActivity.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/FastTrackWindow.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/GenericEditorView.java
ndroid/contacts/ui/widget/KindSectionView.java
ndroid/contacts/ui/widget/PhotoEditorView.java
ndroid/contacts/ui/widget/ViewHolder.java
4908891ab62d8c8217fa499643ddefbae51c6961 30-Aug-2009 Jeff Sharkey <jsharkey@android.com> When dismissing Fast-Track, don't let touch fall through.

Instead of being NOT_TOUCH_MODAL and relying on the window
manager to mark ACTION_OUTSIDE touch events, detect the
events ourselves so we don't let them fall through to any
window behind us.

Also clean up some verbose logcat when loading resources.
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/ui/FastTrackWindow.java
db5d88c27a01e0141f35b6f45e8e0cc29e3550b3 28-Aug-2009 Evan Millar <emillar@google.com> Refactor the way we track selected tab in ViewContactActivity.

Change-Id: I68ca5a7d7ea3897f2d724f465787fb9c45ffc06f
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ViewContactActivity.java
1ea5592907110b50d514c8b4ba5bfa18f816071d 28-Aug-2009 Jeff Sharkey <jsharkey@android.com> Specific columns for Fast-Track, hide missing social, call.

Request explicit columns needed for Fast-Track, since "null"
projection no longer returns all needed columns. Hide the
medium header when no social snippet is present. Finally,
initiate a direct call instead of simply dialing.

Fixes http://b/2084086 and http://b/2072448
ndroid/contacts/ui/FastTrackWindow.java
4842df9f4c558ef1756ee4f75e7a5ad1f376ee90 27-Aug-2009 Evan Millar <emillar@google.com> Fix bug 2082102.

Clear image fetch handler messages in onFinish().

Change-Id: I6630ee4600a0479c03ca92698792eaea0eedab74
ndroid/contacts/ContactsListActivity.java
73714ff71b3955cca3d9f5c6424c333ae063da61 24-Aug-2009 Jeff Sharkey <jsharkey@android.com> Iteration on Fast-Track, new assets drop, account menu icon.

New asset drop for Fast-Track with new style disambig with
"set default" checkbox, will be hooked up soon. Cleanup of
legacy API references in some places.

Adjust action building to query against PackageManager,
which now brings in best-matching app icons. Previously
the data provider needed to supply icons. This solves the
case where people use third-party apps for SMS, etc.

We also use the ResolveInfo to populate the content
description for the track icons so that Fast-Track actions
use the system accessibility APIs.
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/FastTrackWindow.java
67a585358ca05b40693efdeb6f67f5c57270163a 27-Aug-2009 Evan Millar <emillar@google.com> New minitab assets.

Add new minitab assets, and fix z-ordering so the selcted tab is always
drawn on top, and it's drop shadows bleed over onto adjacent tabs.

Change-Id: I100e20411972285675de42f356c201326c0386f6
ndroid/contacts/TabStripView.java
07addc1f8a39bfbe9281b815fd0a841d42a9b1a0 26-Aug-2009 Evan Millar <emillar@google.com> Use new tab assets.

Also make the ContactsActivityList activity draw it's own list
separators, so that it can *not* draw the when an A-Z divider is
visible.

Change-Id: I0755a2cbcb57d646d770003844e394ac0de753ac
ndroid/contacts/ContactsListActivity.java
e54395e1f001c0af2b9f13c6cca5fc5f401d198f 26-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22754 into eclair

* changes:
Temporarily remove summary counts from display groups UI.
fe7ccd66c95109c2453222c0c031f32659325b94 26-Aug-2009 Jeff Sharkey <jsharkey@android.com> Temporarily remove summary counts from display groups UI.

The queries pulling these summary stats can be slow when
someone has thousands of contacts. Will add back later once
we have better, faster solution.
ndroid/contacts/ui/DisplayGroupsActivity.java
8c10807ed25f99872d98df3ab02e0dbbe187f8cb 24-Aug-2009 Daisuke Miyakawa <dmiyakawa@google.com> - Make Contacts app use new vCard handling codes
- Enable "multiple vCard selection"

Internal issue id: 2030674
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ProgressShower.java
ndroid/contacts/VCardExporter.java
f8ae4827c48c693887668dab53103185fa4ab969 25-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22311 into eclair

* changes:
Make the minitabs stretch to fit the available space.
56d2caa0d70eef9624725d35e2aa0cfd15309031 21-Aug-2009 Evan Millar <emillar@google.com> Make the minitabs stretch to fit the available space.

Change-Id: Ifd2b774b40e2831f4f2326c0fe9ebbb3e7d714d0
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/TabStripView.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/EditContactActivity.java
2414227641bee92147f158d95fd2710029bcb638 25-Aug-2009 Jeff Sharkey <jsharkey@android.com> Changed Fast-Track window flags so it avoids dim bug.

Fixes http://b/2077548
ndroid/contacts/ui/FastTrackWindow.java
d9798aefc844dd9ce29da085cb8ab7e769f63e75 25-Aug-2009 Jeff Sharkey <jsharkey@android.com> Fixed up intent MIME-types, add Accounts menu, clean unused.

Cleaned up <intent-filter> entries for INSERT_OR_EDIT and
EDIT to watch for more MIME-types after legacy change-over.

Finished clean-up from display groups by removing deprecated
edit sync groups UI, and unused menu. Changed
ContactsListActivity to use XML-based menus and added an
"Accounts" link that replaces the edit sync groups.

Finally, hooked up the INSERT case to read extras from any
incoming intents to help with SHOW_OR_CREATE intent testing.
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/ui/EditContactActivity.java
2409705fe0376549b276e27dd6582ada30d861b9 25-Aug-2009 Jeff Sharkey <jsharkey@android.com> Use new API for resolving Email addresses.

Also fix case where Fast-Track window would end up hanging
when the background query failed.
ndroid/contacts/ShowOrCreateActivity.java
0b4ad006c74c6fbb561cae94ac57ebd14522eeb9 23-Aug-2009 Jeff Sharkey <jsharkey@android.com> Use extra to exclude specific MIME-types for Fast-Track.

This is used so that the header widget can hide the profile
icon when launched while already looking at the profile.

Also fixes http://b/2058751
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
ndroid/contacts/ui/FastTrackWindow.java
170f775211dc7c682c7a0b509d6a73ffb9d1edb1 16-Aug-2009 Jeff Sharkey <jsharkey@android.com> Iteration on display groups UI, was neglected for awhile.

Switched to using Accounts metadata provided through
Sources cache. Also added long-press and menu item to serve
as our "edit sync groups" in the same UI.

Need to iterating to show all accounts regardless of group
existance, and persist DEFAULT_SHOULD_SYNC values.
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/DisplayGroupsActivity.java
ndroid/contacts/EdgeTriggerView.java
ndroid/contacts/SocialStreamActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/DisplayGroupsActivity.java
ndroid/contacts/ui/EditContactActivity.java
1cac9ff13e01a4df22ddde7424ddc7be7a8c528e 23-Aug-2009 Jeff Sharkey <jsharkey@android.com> Always re-read RawContacts._ID before editing.

In cases where the user hasn't selected a tab, and there is
no "All" tab present (a single RawContact), this code would
try reading details for the second tab that didn't exist.

This fixes http://b/2072410
ndroid/contacts/ViewContactActivity.java
8a79ceeb11542750dbe33c69fa0dc7765ab82306 20-Aug-2009 Evan Millar <emillar@google.com> Handle saving and communicating selected tab between View/Edit activities.

EditContactActivity now accepts intents with raw_contacts instead of
contacts. In addition it reports back which raw_contact was selected on
exit.

ViewContactActivity now saves and restores which raw_contact was
currently being viewed, and uses the raw_contact reported back from
EditContactActivity. The overall effect is when moving from View->Edit
or Edit->View the selected tab doesn't change.
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/ui/EditContactActivity.java
e05296673449dc6686c4fec4dd2e98ab47a78056 21-Aug-2009 Jeff Hamilton <jham@android.com> Merge goog/eclair-dev into goog/eclair
fb936a6999af73c43d5f9ce9545d26b2e4f234f4 21-Aug-2009 Jeff Hamilton <jham@android.com> Fix the build.
ndroid/contacts/ui/FastTrackWindow.java
58ceba775445a618f821ee49ca1fc82a47d19bab 20-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22020 into eclair-dev

* changes:
New minitab assets, and dithering fix.
b563c3b45364653a433ebe1f2d4dd676226558c0 20-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 22023 into eclair-dev

* changes:
Fixing the Split contact UI
6bb2be5ff1c616dfccc8dabc321fef5e61eef1c6 20-Aug-2009 Jeff Hamilton <jham@android.com> Add photos back to Favorites and others.
ndroid/contacts/ContactsListActivity.java
6698cf2a2f2b61679fe1c08916537d45ecdee9a7 20-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing the Split contact UI
ndroid/contacts/SplitAggregateView.java
7466091dda5593ae865cb79dfbd81f07a714f38c 20-Aug-2009 Evan Millar <emillar@google.com> New minitab assets, and dithering fix.

The dithering flag we were setting in the layout was being overriden. We
are now setting it directly on the StateListDrawable in code.
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ViewContactActivity.java
d0d776df188d4ce325b2cd48a3292e1b5fba9e48 20-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Upgrading Call Log and Call Detail views to the new API.
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/RecentCallsListActivity.java
b5f40208255bf1d326e70716d5916e463bec397e 20-Aug-2009 Jeff Hamilton <jham@android.com> Fix the source icons when viewing a contact.
ndroid/contacts/model/Sources.java
5d172057e5f5f4fc5c81e785f9d5b01e9eb13036 19-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21855 into eclair-dev

* changes:
Removing reference to MAX_SUGGESTIONS
d9a3168f605f58316a803599a75d556c41169550 30-Jul-2009 Li Zhe <jqc837@motorola.com> HSDPA (High-Speed Downlink Packet Access) Contacts IMEI and MEID

Use PhoneType instead of Network type for IMEI or MEID
- change SpecialCharSequenceMgr to use PhoneType for the displaying
IMEI for UMTS, MEID for CDMA
ndroid/contacts/SpecialCharSequenceMgr.java
ffcc63bf114cf29a33a8e9f8b8a3d41042bdbfa4 19-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing reference to MAX_SUGGESTIONS
ndroid/contacts/ContactsListActivity.java
76c67fce7bd4b042c2e552a3c54f4f16e9e8749c 07-Aug-2009 Evan Millar <emillar@google.com> Update minitab assets and behavior to match spec.
ndroid/contacts/NoDragHorizontalScrollView.java
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/TabStripView.java
3f0b7b87cd41b5a9cd631b6fcf29ea5025905e18 12-Aug-2009 Jeff Sharkey <jsharkey@android.com> Use AccountManager for details, handle INSERT cases.

Connected Sources to use AccountManager and inflate details
through registered sync adapters. Each ContactsSource now
has a "level" of inflation, since deeper levels aren't
always needed right away. Several places we're making
blocking calls into other processes that are tied to the UI
thread. (This would take a large effort to fix.)

Turned most background Edit activity operations into
WeakAsyncTask, which helps finish background tasks while
preventing leaked Contexts. This allows us to hold the UI
thread while saving, but release it just before ANR,
allowing the background operation to complete.

Enabled INSERT case, both from overall list and when already
editing an aggregate. Finally, cleaned up the manifest
intent-filters to directly match authorities.
ndroid/contacts/AsyncQueryHandler.java
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/DisplayGroupsActivity.java
ndroid/contacts/NotifyingAsyncQueryHandler.java
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/HardCodedSources.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/FastTrackWindow.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/util/EmptyService.java
ndroid/contacts/util/NotifyingAsyncQueryHandler.java
ndroid/contacts/util/WeakAsyncTask.java
88cf9e84ff1c355bba8c27462c8b2325d74fb714 18-Aug-2009 Jeff Hamilton <jham@android.com> Don't crash if an async photo load comes in after leaving the contacts list activity.
ndroid/contacts/ContactsListActivity.java
e766c77f6f6d7a6cb413825ca1f2e6c19d54b8c3 14-Aug-2009 David Brown <dab@google.com> do not merge: cherry-picked 0d4cf6265fcbba90a87a1165a800b697e737d847 from master
ndroid/contacts/TwelveKeyDialer.java
84293ad8b251ee53ffcf4e071a4693e791ee02d2 17-Aug-2009 Fred Quintana <fredq@google.com> accounts api change
ndroid/contacts/model/Sources.java
ea29150e683bf2a43d333140261f006d6cbe5182 17-Aug-2009 Fred Quintana <fredq@google.com> do not merge: cherrypicked 2811b3eaca1ac1cf27a7d63aa9f5c4ec7723ff59 from master branch
ndroid/contacts/ContactsGroupSyncSelector.java
38cf51fcf935499a1ad244e4c499efe24a7e1a13 16-Aug-2009 Fred Quintana <fredq@google.com> do not merge: cherrypicked 2811b3eaca1ac1cf27a7d63aa9f5c4ec7723ff59 from master branch
ndroid/contacts/ContactsGroupSyncSelector.java
3268a66fe369606cee0f46501044add2132034b1 14-Aug-2009 Jeff Hamilton <jham@android.com> Revert "add legacy accounts support"

This reverts commit 8f7fcfa58aee626318bd61ab9d08ba5d53b1c10a.
ndroid/contacts/ContactsGroupSyncSelector.java
b9be67ea24ae64582fb60c2f1f7f4689694b530b 14-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21231 into eclair-dev

* changes:
Remove reference to missing bindStatic() method.
451d20e53efcf0808136855fa44589f4c0e89993 14-Aug-2009 Jeff Sharkey <jsharkey@android.com> Remove reference to missing bindStatic() method.
ndroid/contacts/ui/EditContactActivity.java
8f7fcfa58aee626318bd61ab9d08ba5d53b1c10a 13-Aug-2009 Fred Quintana <fredq@google.com> add legacy accounts support
ndroid/contacts/ContactsGroupSyncSelector.java
5f4af705cef8c914d5875983900e5cf5a5524b68 11-Aug-2009 Evan Millar <emillar@google.com> Show tab icons in view activity.

-Add an asynchronous request api to Sources, to allow for
asynchronous binding of autheticator data to the Sources object. The old
getInstance() api has been changed to getPartialInstance(), as not all
clients of Sources need the authenticator data bound.

-BaseContactProvider uses Sources to get the source icons. This behavior
still needs to be added to EditContactActivity.
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/DisplayGroupsActivity.java
ndroid/contacts/NotifyingAsyncQueryHandler.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/FastTrackWindow.java
b44a17cf159c36e363eb9c3b53bb637768567814 13-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 21116 into eclair-dev

* changes:
Fix photo display in ContactsListActivity.
4bd930d37e0653172fb16b2618ae1297b32e35b3 13-Aug-2009 Evan Millar <emillar@google.com> Fix photo display in ContactsListActivity.
ndroid/contacts/ContactsListActivity.java
14409118083ccb4dbbdb807d8bbaed46aee395bb 12-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20978 into eclair-dev

* changes:
Fix Null pointer for exchange contacts IM
064fa8024fa3544e26839e3f0afdbbfde20fed8b 12-Aug-2009 Neel Parekh <neel@google.com> Fix Null pointer for exchange contacts IM
ndroid/contacts/ViewContactActivity.java
9dd962cdc87410ef8e9f9cfa720ae044ce66e36e 12-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing support for primary phone/email on Contact.
ndroid/contacts/ContactsListActivity.java
097b55ab423620a33159c420411cd6af3a0b686e 11-Aug-2009 Jeff Sharkey <jsharkey@android.com> Don't crash when showing contact with invalid photo.

Fixes http://b/2047492
ndroid/contacts/ui/widget/ContactEditorView.java
d4c41d5c553745fb1126e01334319f05f0808eb3 11-Aug-2009 Jeff Sharkey <jsharkey@android.com> Unique strings for labels and actions, SMS as alternate.

To prepare for strings in various languages, make unique
strings for each combination of "action" and EditType, for
example, "Call home" and "Email work" as unique strings.

Also added iconAltRes and actionAltRes to handle alternate
actions on data rows, such as SMS for phone numbers. These
changes allow Fast-Track to show correct labels.
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/FastTrackWindow.java
0b45a58fad48888fee36eb0edf50705e0aa00e30 11-Aug-2009 Jeff Sharkey <jsharkey@android.com> Connect photo and name editors, super primary dialog.

This change connects up the photo and display name editors
to show the values from the selected RawContact. This also
persists StructuredName.DISPLAY_NAME changes back.

Also connects up the long-press menu for selecting a
super-primary display name for an aggregate.
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
14f61ab769f6e178a540a7579e446a010fb836da 06-Aug-2009 Jeff Sharkey <jsharkey@android.com> Switch edit UI to tabs, TYPE_ASSERT for version, cleanup.

Integrated with the tabs and header widget built by
emillar, kept separate from BaseContactCardActivity since
I'm handling EDIT/INSERT intents differently. Added hooks
to pick primary photo/name from header.

Cleaned up the colorful testing UI, added padding to match
mocks, and initial pass at collapsed secondary area. Added
back menu items and confirmation toast.

Changed to new TYPE_ASSERT ContentProviderOperation for
asserting RawContacts.VERSION number during updates.
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityDiff.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/ViewHolder.java
861a61332cc5eb0725fb7978092efb4789fa58fb 11-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 20613 into eclair-dev

* changes:
Make small tweaks to view contact card.
ed4f47de16d91054b60ba615f8523fe1049604f6 11-Aug-2009 Fred Quintana <fredq@google.com> remove the table name specifications, which no longer work with the view changes
ndroid/contacts/model/EntityDelta.java
296758bc96378fc2734365a5993f9f7579260e02 08-Aug-2009 Evan Millar <emillar@google.com> Make small tweaks to view contact card.

-Fix bug in dialing a number from the view card.
-Update the primary number asset and positioning.
-Make the sms button unfocusable.
ndroid/contacts/ViewContactActivity.java
f86847ff1199b8232480a1ad4da95355a89e4f39 05-Aug-2009 Evan Millar <emillar@google.com> Improve focus handling around ScrollingTabWidget.

When focus enters the tab widget the focus will always be directed to
the last focused tab, instead of selecting the "best" tab.
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/ViewContactActivity.java
8832a647bd2a0d9f4b4881c988a6387b66ddd289 07-Aug-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing dependency on the contacts/#/raw_contacts directory
ndroid/contacts/BaseContactCardActivity.java
802b205ac677ffbde9aaf4fa3cfa9b94e8c98a44 04-Aug-2009 Jeff Sharkey <jsharkey@android.com> Bring back Fast-Track with yummy assets and animations.

Fast-Track had been quite neglected, so brought it back up
to speed with ContactsContract changes. Also rearranged
the Action launching logic to use ContactsSource.DataKind
for any icons and label generation. Wrote slide animation
that looks awesome.

Added Fast-Track triggering to normal contacts list, since
it has photos now. Also supports being launching in various
modes, which for now are three sizes.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/FastTrackWindow.java
3d07e6dc056f0d65ccea8e71bf543bdaad9fe0e0 05-Aug-2009 David Brown <dab@google.com> Dialer: add onscreen "Dial" button.

Add a new "Dial" button, below the keypad (in portrait) or below the
"digits" widget (in landscape). It does the exact same action as tapping
the digits widget, and its enabled/disabled state uses the exact same
logic that turns the digit widget green when it's OK to dial.

This is a partial fix for bug 1825144 (soft SEND/END keys in places other
than in-call),

The button has visibility GONE by default; it's enabled on a per-product
basis using a flag in config.xml. (To enable this on devices that need
it, I'll separately check in resource overlay files in those other
projects)

For now the Dial button is just a regular button, with no special layout
or artwork. (But bug 1993282 is open to cover any future visual design
tweaks we might need.)
ndroid/contacts/TwelveKeyDialer.java
279ec543b56200fe7554a29f78c7a1613a78ca47 05-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9668 into eclair-dev

* changes:
Single line phone/sms view list item.
1a13e9811b53a5cc6a9aece41b0c5d7bb88b8961 04-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9513 into eclair-dev

* changes:
Delta parceling, valid types bugfix, INSERT parsing.
15e514dd666ace13b10e8e0b540c07ab766cfe75 04-Aug-2009 Evan Millar <emillar@google.com> Single line phone/sms view list item.
ndroid/contacts/ViewContactActivity.java
f8af1da10d67c9f1849924227e238d1be1334298 04-Aug-2009 Android (Google) Code Review <android-gerrit@google.com> Merge change 9503 into eclair-dev

* changes:
Extracts the header code from BaseContactCardActivity
d046a039e41deab0635c3327cd40c3896e39acad 03-Aug-2009 Jeff Sharkey <jsharkey@android.com> Delta parceling, valid types bugfix, INSERT parsing.

Made EntityDelta and ValuesDelta directly Parcelable to
pass across configuration changes. Moved the re-parenting
code to separate EntityDelta.mergeAfter() method. Fixed
getValidTypes() bug that didn't handle typeOverallMax
in "unlimited" cases. Wrote INSERT parsing code to merge
incoming extras bundle into a new or existing EntityDelta,
also handles any source constraints.

Initial hook-up of edit UI to persist changed data, only
shows first Entity because not connected to tabs yet.
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/ViewHolder.java
1ea3bf7c29b80b9fa23567b04e48ce6fe4188097 30-Jul-2009 Evan Millar <emillar@google.com> Extracts the header code from BaseContactCardActivity

BaseContactCardActivity used to contain code for displaying the
contact card banner. As that is an element needed in other system
apps, it was extracted and made into a reusable widget in
com.android.internal.widget.
ndroid/contacts/BaseContactCardActivity.java
8d9767d79f9fe2a09ee6e981b1fede7e9863d62a 02-Aug-2009 Jeff Sharkey <jsharkey@android.com> Refactor "Augmented" to "Delta" to make meaning clearer.
ndroid/contacts/model/AugmentedEntity.java
ndroid/contacts/model/EntityDelta.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
07c2e41b5ce7abeb9dd14e5d700a8fb928723330 30-Jul-2009 Jeff Sharkey <jsharkey@android.com> Bulk of constraint enforcement code, "best" suggestions.

Wrote getValidTypes() which builds a list of EditTypes that
can be inserted given a AugmentedEntity state, which is our
mechanism for enforcing ContactsSource constraints. This
also drives canInsert(), which provides the enabled state
for our "add" buttons.

This change also reintroduces "suggested" types, used to
pick the default EditType for newly added entries. It picks
the first primary type that doesn't already appear, or
otherwise picks the last primary type. (This gives us a
nice "add" transition down the list of possible types.)

Finally, this change connects all of this logic into the
UI, picking available labels and enabling "add" according
to any constraints. Also wrote unit tests to verify the
above code is producing the expected results. These tests
exercise the backbone of our constraint-enforcement logic.
ndroid/contacts/model/AugmentedEntity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/ui/widget/ContactEditorView.java
e731d426eda3692402f3cecdc29421fcf7f1fb54 29-Jul-2009 Jeff Sharkey <jsharkey@android.com> Fixed VERSION check, persist changed values, IM changes.

Moved the buildDiff() VERSION assertion to the first
operation, since otherwise the value has already changed
when we reach it.

Added the few lines needed to start persisting any edited
data. Still need to write the back-off and retry when we
encounter a VERSION failure.

Cleaned up our hard-coded data types, added support for
StructuredPostal and IM editors. Standardized the EditText
flags for IME between the sources. Based on a pending
framework change, moved to using two fields for IM to mirror
how we handle TYPE values.
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ViewContactActivity.java
ndroid/contacts/model/AugmentedEntity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
feb8f8612e140f83d49deda256914643032bb3c9 02-Aug-2009 Jeff Sharkey <jsharkey@android.com> am 9be3f5b6: Handle full-disk exceptions when viewing call log.

Merge commit '9be3f5b6135b4b48f65f87f1a221c1ab5d5b4f89'

* commit '9be3f5b6135b4b48f65f87f1a221c1ab5d5b4f89':
Handle full-disk exceptions when viewing call log.
9be3f5b6135b4b48f65f87f1a221c1ab5d5b4f89 11-Jul-2009 Jeff Sharkey <jsharkey@android.com> Handle full-disk exceptions when viewing call log.

When the internal storage is full, resetNewCallsFlag() fails
and causes Contacts to crash. Since this method is called
whenever the tab is opened, it makes the call log
inaccessible to users. (We should always keep the phone in
a usable state, even when the disk is full.)

Because startUpdate() runs on a background thread, I'm
overriding the WorkerHandler used by AsyncQueryHandler to
wrap any calls in a try/catch block.

Also added a try/catch block around the code that updates
any missing contact details after a caller-ID query has
returned, which could also cause a crash when the user
switches to the call log tab.

Partially fixes http://b/issue?id=1966505
ndroid/contacts/RecentCallsListActivity.java
309e89f36aeca6d6a81e13ea95b7e4af6e491073 28-Jul-2009 Jeff Sharkey <jsharkey@android.com> Add AugmentedEntity.buildDiff() code, with unit tests.

Another step along the way to editing contacts, this change
implements building the ContentProviderOperations needed
to "diff" an existing Entity to match an edited state.

Most work is done by AugmentedValues.buildDiff(), which
builds the insert, update, or delete operation needed to
match its internal "after" state. AugmentedEntity builds
up the list of all operations from its direct values and
any children.

When changes are made, an "enforcement" action is added to
verify that the RawContacts.VERSION matches the "before"
Entity. If this test fails, someone else (probably a sync)
has touched the Contact, and our entire operation is rolled
back, allowing us to re-read the base Entity and retry.

This approach also handles inserting an entirely new
RawContact, which removes the need for separate create() and
save() methods in our edit UI.

Finally, two batches of unit tests have been added. The
first batch verifies the Parcel'ing of AugmentedEntity
objects, which is used across configuration changes, and
when applying changes over a re-read Entity. The second
batch verifies the expected ContentProviderOperations that
various buildDiff() calls should produce.
ndroid/contacts/model/AugmentedEntity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
2ae666ec99ae9318936a9326e5243987e4e1c586 22-Jul-2009 Jeff Sharkey <jsharkey@android.com> Checkpoint of new edit contact UI, work in progress.

This change introduces several new concepts which are
summarized below. One major change is a MMVC approach that
has two models: the structured Contacts data, and the
data-source constraints model. Another is augmenting an
Entity using a specific set of actions.

First, each data source is defined through a ContactsSource
that describe how it handles data, both for rendering and
editing cases, such as the Data.MIMETYPE it handles, what
types are allowed, and the fields required for editing. In
this change, ContactsSource objects for Google and Exchange
are hard-coded, but an initial XML version will need to be
finalized for supporting third-party apps that show custom
icons and strings.

Second, AugmentedEntity allows us to keep the edit changes
separate from the initial data and build a "diff" between
the current Entity state and the desired changes, which is
represented as a set of ContentProviderOperations. If the
data changed while the user was editing, we can easily swap
in the new Entity and apply the edits on top. In the worst
case, this may end up creating duplicated data, but won't
lose the users changes.

Finally, this change starts splitting the UI and modeling
code into different sub-packages. The UI is split into
multiple ViewHolders to mirror the structure on screen.

There are dozens of TODOs littered throughout the code,
which I'm following up on shortly. This is a checkpoint to
start a code review on the core structure.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/model/AugmentedEntity.java
ndroid/contacts/model/ContactsSource.java
ndroid/contacts/model/EntityDiff.java
ndroid/contacts/model/EntityModifier.java
ndroid/contacts/model/Sources.java
ndroid/contacts/ui/EditContactActivity.java
ndroid/contacts/ui/widget/ContactEditorView.java
ndroid/contacts/ui/widget/ViewHolder.java
7911ff5f130d956219ae8a393193769d82b3af83 22-Jul-2009 Evan Millar <emillar@google.com> First pass at tabbed contact viewing.

ScrollingTabWidget - This is a generic widget for displaying tab like
elements, that may not fit on the screen. The visual design for this
widget is still in flux.

BaseContactCardActivity - This is an abstract class that should be
extended by any Activity that displays information about a specific
contact and allows filtering on different RawContacts associated with
the contact. ViewContactActivity.java extends this class.
EditContactActivity will want to eventually. The abstract class
implements OnTabSelectionChangedListener and will get called on
onTabSelectionChanged() when a new tab is selected. This way the
activity can react to tab selection changes.

ViewContactActivity - This now extends BaseContactActivity.
ndroid/contacts/BaseContactCardActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/NoDragHorizontalScrollView.java
ndroid/contacts/ScrollingTabWidget.java
ndroid/contacts/StyleManager.java
ndroid/contacts/ViewContactActivity.java
508e778db6426c5940f717f50908b7440bb65ccc 31-Jul-2009 Jeff Sharkey <jsharkey@android.com> Fix build breakage from framework constant change.
ndroid/contacts/FastTrackWindow.java
a666a1344e1e57cebc8bac3979dfa151c36fdd7c 31-Jul-2009 Paul Berman <paul.berman@motorola.com> am 2dfe98ab: Revert CNAP change to fix more serious Contact List issue

Merge commit '2dfe98abcf9810e6d140e1e699fabc3b6e42a88a'

* commit '2dfe98abcf9810e6d140e1e699fabc3b6e42a88a':
Revert CNAP change to fix more serious Contact List issue
2dfe98abcf9810e6d140e1e699fabc3b6e42a88a 28-Jul-2009 Paul Berman <paul.berman@motorola.com> Revert CNAP change to fix more serious Contact List issue

This fix was originally made to handle a case where a CNAP name would
not be logged correctly. However this breaks a more serious scenario
where adding a contact, placing a call to that contact, and then deleting
that contact would still show the name of the old contact in the log,
which is incorrect. Therefore, reverting until a better fix can be found.
ndroid/contacts/RecentCallsListActivity.java
119b6ca76ea590a952c8c31fb0740d54ed181001 30-Jul-2009 Jeff Hamilton <jham@android.com> Fix the displaying of names in ViewContactActivity.

The cursor over the data items wasn't being reset to the before
first position before being iterated over to retrieve the data
rows.
ndroid/contacts/ViewContactActivity.java
903137768d56ca85d026c2f4b92e4ace6e068d3b 28-Jul-2009 Jeff Hamilton <jham@android.com> Switch back to the single 4 tab activity model.
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/DialerActivity.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/TwelveKeyDialer.java
e1cd6791d62fc1328b97034b0e07e592d94af175 28-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Contacts: renaming Aggregates to Contacts
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactOptionsActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/ViewContactActivity.java
39466593586d2d15fc2e9fa8f0d1cd39d35ea3d9 27-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Renaming Contacts to RawContacts
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/ViewContactActivity.java
d9efc87bd962a7878455421d6b186c713f0ad79d 17-Jul-2009 Eric Laurent <elaurent@google.com> Fix issue 1795088 Improve audio routing code

Initial commit for review.
ndroid/contacts/TwelveKeyDialer.java
c6ad3abd847682c07d52c97f04ae8a5885148a0b 22-Jul-2009 Jeff Sharkey <jsharkey@android.com> Refactored to StructuredPostal and RES_PACKAGE.

Matched framework change that refactored StructuredPostal
and RES_PACKAGE, also removal of Groups.PACKAGE_ID.
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/DisplayGroupsActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/SocialStreamActivity.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/ViewContactActivity.java
849ce43a750971de62e7bdd0e207146637c0b8cf 22-Jul-2009 Jeff Sharkey <jsharkey@android.com> Fixed groups NPE when creating or editing contact.

Depending on the device state, mGroups may have not been
populated. In this case, we ignore writing groups data.

This may cause data loss of group membership, so the
original bug has been repurposed to fix longer-term.

This fixes http://b/viewIssue?id=1975661
ndroid/contacts/EditContactActivity.java
c2a2a517be7faf7678d2bb1510ffaf52bd451794 10-Jun-2009 Reli Tal <w50406@motorola.com> apps/contacts: Pause and Wait changes

Allow Pause and Wait characters to be used within the dial string for
a phone number. This implementation is CDMA specific and uses DTMF
tones to play post dial characters.
ndroid/contacts/TwelveKeyDialer.java
bef6b7a3074d8506f68a70220647e7db1ad85b20 21-Jul-2009 David Brown <dab@google.com> am d5a1530f: Make the dialpad silent in "vibrate only" mode (bug 1984905).

Merge commit 'd5a1530f68c48075cd3df5c948b54ad34f059df1'

* commit 'd5a1530f68c48075cd3df5c948b54ad34f059df1':
Make the dialpad silent in "vibrate only" mode (bug 1984905).
d5a1530f68c48075cd3df5c948b54ad34f059df1 21-Jul-2009 David Brown <dab@google.com> Make the dialpad silent in "vibrate only" mode (bug 1984905).

This is a followup to https://android-git.corp.google.com/g/5438 (see bug
1839556) which made the dialpad silent if the phone was in "silent mode".

But "vibrate only" mode has a separate AudioManager constant:
RINGER_MODE_VIBRATE. I need to check for that too.
ndroid/contacts/TwelveKeyDialer.java
db5e62d4cfcaf71aee801689bb4329e45f1a2de7 18-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> Add VCardExporter functionality.

There is still no test. I'll work on cleaning up VCard related code in Eclair, so tests will be added at that time.

All configurations how file name is determined is configurable.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/VCardExporter.java
12402fef0ac6b9ec9e614aaeb3f0c28d96ef47bd 08-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> Add VCardExporter functionality.

There is still no test. I'll work on cleaning up VCard related code in Eclair, so tests will be added at that time.

All configurations how file name is determined is configurable.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/VCardExporter.java
dcc2a9efd735af120a963578138cac27c206dd8f 17-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> Make Contacts app use new VCard library

This depends on the change https://android-git.corp.google.com/g/#change,6736

Conflicts:
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/ProgressShower.java
48cf72be9daba8cc0fbe37666d68c2868eb34285 17-Jul-2009 Dmitri Plotnikov <dplotnikov@google.com> Removing references to Organization.TYPE_HOME
ndroid/contacts/ContactsUtils.java
ndroid/contacts/TypePrecedence.java
c29c7abc33dc1f22004bed11efc8bbd595b9f9c4 08-Jul-2009 David Brown <dab@google.com> Haptic feedback for the Dialer (bug 1940121).

It's enabled using a per-platform resource in config.xml (which for now is
"true" on all platforms.) But if enough users are annoyed by this, we
might eventually need to make it a user preference rather than a
per-platform resource.
ndroid/contacts/TwelveKeyDialer.java
4c0864dff21e4d193b7c26b73f10ba096e5f5009 15-Jul-2009 Evan Millar <emillar@google.com> Remove a local copy of a context object from StyleManager.

StyleManager was caching a context object received from the
instantiating object. This is bad, as it can lead to memory leaks. Now
all calls onto StyleManager that will need a context require the context
to be passed into the method.
ndroid/contacts/StyleManager.java
0bd6cb8e90c62558c8f8a2a863dc323f447d994c 15-Jul-2009 Evan Millar <emillar@google.com> Re-implements the group filtering intent, as supported previously.
ndroid/contacts/ContactsListActivity.java
9690cd4eccf9294a326a13a7e46dfdcd6ce7eff5 15-Jul-2009 Android (Google) Code Review <android-gerrit@google.com> am 085c288f: Merge change 6819 into donut

Merge commit '085c288f87389fd08295a941e568a56fd2f11a00'

* commit '085c288f87389fd08295a941e568a56fd2f11a00':
Use correct photo when building direct-dial shortcuts.
2c1cc83c08e82c5eb468f6f66253d74b45e84813 13-Jul-2009 Evan Millar <emillar@google.com> Adds photos to a-z list.

The implementation is meant to keep scrolling the list as smooth as
possible. Photo loading is only done once the list stops scrolling, at
which point, all visible photos are loaded and stuck in a cache.
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ViewContactActivity.java
b462fe3d6fce9489f16dc7f9f37b83ddcdbc2ce6 10-Jul-2009 Jeff Sharkey <jsharkey@android.com> Use correct photo when building direct-dial shortcuts.

Previously was using the Phones._ID value when building a
People.CONTENT_URI Uri. Fixed by using the Phones.PERSON_ID
value to build the Uri correctly.

Fixes http://b/issue?id=1910259
ndroid/contacts/ContactsListActivity.java
29a1cd84856b2ba2129ef10d92d57ad4d468bc00 02-Jul-2009 Tracy Pu <tracypu@motorola.com> Change hidden menu pop-up title to MEID for CDMA

- When user keys in *#06# through the dialpad, the pop-up screen title
will be IMEI on GSM network and MEID on CDMA network
- During a call, when user launches the dialpad through the in-call
option menu to add call, then, keys in *#06#, the pop-up screen title
will be IMEI on GSM network and MEID on CDMA network
ndroid/contacts/SpecialCharSequenceMgr.java
d5c5b9a8ec06b510066b8f814bda739a8fadcf7e 22-Jun-2009 Jeff Sharkey <jsharkey@android.com> Added new display groups UI from spec.

Instead of only displaying a single group, we allow the
user to toggle the visibility of all available groups, and
the backend provider takes care of the visibility logic to
keep our list-of-contacts cursor spiffy.

This UI has some limitations and is just a first revision,
for example you can't display contacts from a provider that
aren't part of a group, other than picking the gloal "all
contacts" option. Also, filtering to "only with phones" can
be confusing to users, need to iterate.

The group list is a custom ExpandableListAdapter that walks
the summary cursor, splitting each source package into its
own expandable group. There is some fancy work done so this
only requires one cursor, so it scales nicely.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/DisplayGroupsActivity.java
c900f81252273f79347bfe369ebd9965bc89d752 08-Jul-2009 Jean-Baptiste Queru <jbq@google.com> Merge branch 'donut'

* donut:
Add new searchSettingsDescription attribute for Contacts's searchable.
FIX 1839556 -- Silent mode not really silent
Reimport Japanese translations of Contacts strings.
Introduce support for CDMA caller name presentation (CNAP)
VCardImporter, VCardExporter
22f615fdd2136d1d1da0be160a43bd1a07955869 26-Jun-2009 David Brown <dab@google.com> FIX 1839556 -- Silent mode not really silent

Fix the dialer to not play touch tone sounds if the phone is in "silent mode".

Note we have to re-check for silent mode *every time* the user presses a
key, rather than just in onResume(), since the user can toggle silent mode
via ENDCALL-longpress (without actually leaving the current activity.)

TESTED:
- "Audible touch tones" preference off: no tones
- "Audible touch tones" preference on, silent mode off: tones play
- "Audible touch tones" preference on, silent mode ON: no tones
- Switch in and out of silent mode via ENDCALL-longpress, confirm change
takes effect immediately.
ndroid/contacts/TwelveKeyDialer.java
dd2b9f1cc7f386c8a965ecb0bed5e325f3ed9614 15-Jun-2009 David Krause <david.krause@motorola.com> Introduce support for CDMA caller name presentation (CNAP)

This is one small change for the Contacts app, intended to be integrated
with another set of changes for the Phone app.
ndroid/contacts/RecentCallsListActivity.java
72c50522229c0f22db4570ef45617c5ef1f7eaa6 08-Jul-2009 Daisuke Miyakawa <dmiyakawa@google.com> VCardImporter, VCardExporter
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ImportVCardActivity.java
ndroid/contacts/VCardImporter.java
7e3b844b452ae8bd37e056512bbbfe0e348391b9 02-Jul-2009 Evan Millar <emillar@google.com> Add synchronization to StyleManager.
ndroid/contacts/StyleManager.java
e49dfacf0b7b1c327b82bf1bef3c1d4c8c56c845 01-Jul-2009 Evan Millar <emillar@google.com> Adds the StyleManager class.

StyleManager provides APIs for the Contacts app to retrieve icons from
third party sync adapter packages to display in the Contacts UI.
StyleManager also keeps a Cache of the requested icons in memory.
ndroid/contacts/StyleManager.java
54a5c9f484ececf7d1ee0148ed6d36fde9c72cdc 24-Jun-2009 Evan Millar <emillar@google.com> Implements data collapsing in the contact card.

Provides a Collapsible interface that can implemented used by any class
whose data items can be collapsed upon one another. Also provides a
utility function for collapsing a list of items into a list of collapsed
items.

Uses this interface to collapse data items in the contact view card.
ViewEntrys with the same data, mimetype, intent action, auxIntent action
and action item are collapsed and shown as a single item. If the user
makes this item default, all data rows represented will be made primary,
and one will be chosen (arbitrarily) to be super primary.
ndroid/contacts/Collapser.java
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/TypePrecedence.java
ndroid/contacts/ViewContactActivity.java
ef038721e5921d05d4611b81b0e51d31f90dbf34 25-Jun-2009 Dmitri Plotnikov <dplotnikov@google.com> Initial cut of Contact Options UI.
ndroid/contacts/ContactOptionsActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/ViewContactActivity.java
06bd5a8726e8c0897f05726cf1f61cc04e88ee24 16-Jun-2009 Jeff Sharkey <jsharkey@android.com> Fix up constants that changed in framework contract.
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/SplitAggregateView.java
d7c4af2b932ffc65476fb1ac6d74feac74b48f3c 20-Jun-2009 Dmitri Plotnikov <dplotnikov@google.com> Two-partition list (Suggestions+A-Z list) for Join Contacts UI.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
0a40ffa7bb99577e950d6b6f25a994898be96615 19-Jun-2009 Evan Millar <emillar@google.com> Brings back ContactsListActivity back to feature parity with donut (with a couple exceptions).

The exceptions are:
-Groups have yet to be implemented.
-MODE_QUERY_PICK_TO_VIEW is still commented out. We
probably won't need to support it, but we'll leave it in until
we're sure.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
66ae69ff1a4da59a6c064b1cb2b340b8655cd5bd 18-Jun-2009 Dmitri Plotnikov <dplotnikov@google.com> Fixing a typo in a string reference.
ndroid/contacts/ViewContactActivity.java
49f705fdb1e45b02d78017cbb3fef89394bc219d 18-Jun-2009 Dmitri Plotnikov <dplotnikov@google.com> Initial cut of "Join contact" functionality in the UI
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
d09f75c6af93fade59a8f7738e545575898e6612 16-Jun-2009 Dmitri Plotnikov <dplotnikov@google.com> Changing to reflect simplified aggregation exception API.
ndroid/contacts/ViewContactActivity.java
f249bc61ee86750586d4d43be59c01dcc4c4875e 10-Jun-2009 Evan Millar <emillar@google.com> Gets list filtering and PICK actions working on the a-z list.

Intents with action "android.intent.action.PICK" should now work with
the following mimetypes:

vnd.android.cursor.dir/person_aggregate
vnd.android.cursor.dir/phone
vnd.android.cursor.dir/postal-address

List filtering works for the main a-z list and for the phone picking list.
ndroid/contacts/ContactsListActivity.java
b4491ee682340b7ad69f736449c11366d369289d 15-Jun-2009 Dmitri Plotnikov <dplotnikov@google.com> Initial cut of "Split Aggregate" UI.
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/SplitAggregateView.java
ndroid/contacts/ViewContactActivity.java
3926127faa6b3a4fabc90d5d6ba42b96a5f1d8e5 04-Jun-2009 Jeff Sharkey <jsharkey@android.com> Iteration on fast-track to show better data and disambig.

Finished up code that allows for disambiguation between
multiple contact methods under same mime-type. Per design,
the fast-track window expands to show all choices when there
are multiple available. For example, it shows a list
between "Home", "Work" and "Mobile" if an aggregate has
three phone numbers. Back key will first dismiss the
disambig list if shown, before dismissing the dialog.

Moved fast-track to use Rect target areas to be more
flexible, instead of splitting up into multiple variables.

Correctly measure the fast-track window now, instead of
relying on hard-coded constants. Now using the new query
path provided by SocialContract to provide single-line
social summary for a given aggregate, instead of using
hard-coded social string.

Added a third data query to pull display name for aggregate
along with most-present presence from provider. Changed
fast-track to make chicklets focusable for dpad navigation.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
7e4accfd39f8c88fbeb69c2d3926d6e6b9f5344d 08-Jun-2009 Evan Millar <emillar@google.com> Gets EditContactActivity back into a basic working state.

Editing of already existing values works. Adding new values, or new
contacts does not.

-Updated manifest to match the new
"vnd.android.cursor.item/person_aggregate" mimetype.
-Much of EditContactActivity is completely commented out now. In
particular anything to do with adding new contacts, editing current
values, or group management, has been gutted.
-Added endcodePredefinedImProtocol() and encodeCustomImProtocol() to
ContactsUtils.java
-Fixed a bug in star toggling in ViewContactActivity.
-ViewContactActivity now shows the display name from the StructuredName
data row instead of the copy in the aggregate table.
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/ViewContactActivity.java
3d00a7de732c51edad6a721d6df1b38fa52d3dc3 09-Jun-2009 Android (Google) Code Review <android-gerrit@google.com> am ebb55cd3: Merge change 3558 into donut

Merge commit 'ebb55cd34415b3db39cbefba700721e5c606d699'

* commit 'ebb55cd34415b3db39cbefba700721e5c606d699':
Fix the build
d2fd9619af31798d86e5a2187adeabc6b9607d6c 09-Jun-2009 Romain Guy <romainguy@android.com> Fix the build
ndroid/contacts/ContactsListActivity.java
45e0ed3e5ecfaacf35cdb22a0f8e53cb558cd23b 02-Jun-2009 Evan Millar <emillar@google.com> Adds photo display, and primary state editing to ViewContact.

Hooks up the contact thumbnail to the actual photo data instead of
always showing the placeholder image.

Imlements changing the "primary" state of phone number and emails.
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/ViewContactActivity.java
5c22c3b0707a08430a78e0dd6ee717bbe6b7caf9 29-May-2009 Evan Millar <emillar@google.com> Fix a bug that caused contact card viewing to crash.

The uri that was passed with the ACTION_VIEW intent was malformed.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
66388be1cbc0a6de6355e89b7521f6fee3c49f03 29-May-2009 Evan Millar <emillar@google.com> Get ViewContactActivity working at a basic level with ContactsProvider2.

With this change the ViewContactActivity is able to display the common
data types defined in ContactsContract. The intents associated with
clicking each item will not necessarily work, as the receiving apps
don't know about the schema changes yet.

Also removed links to ContactsContract.java and SocialContract.java
since those classes have been moved on android.providers and are
accessible without the hard links now.

Made a trivial chane to the fastrack UI by changing the scaleType of the
contact method images from fitCenter to centerInside.
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsUtils.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
ndroid/contacts/ViewContactActivity.java
ndroid/providers/contacts2/ContactsContract.java
ndroid/providers/contacts2/SocialContract.java
ed6c61343a6c1745fbd4e171f13aa3762bcd395f 27-May-2009 Dianne Hackborn <hackbod@google.com> am 333a615d: Implement call and SMS shortcuts.

Merge commit '333a615d1e6ced4560f4803510e673bae87d0ca2'

* commit '333a615d1e6ced4560f4803510e673bae87d0ca2':
Implement call and SMS shortcuts.
333a615d1e6ced4560f4803510e673bae87d0ca2 26-May-2009 Dianne Hackborn <hackbod@google.com> Implement call and SMS shortcuts.

This is basically the code from AnyCut integrated into the contacts app.
It doesn't yet let you change the shortcut name before it is added, but that
would be nice to do.
ndroid/contacts/ContactsListActivity.java
7988ed4772b650389896bfc6aab72cc6de56aa4f 22-May-2009 Romain Guy <romainguy@android.com> am c7cdf607: Add support for GESTURE_FILTERS to Contacts. By default ListView was choosing GESTURE_JUMP because the application enables text filtering dynamically.

Merge commit 'c7cdf60769f1d448dcd016cc1ae93d3fc2975238'

* commit 'c7cdf60769f1d448dcd016cc1ae93d3fc2975238':
Add support for GESTURE_FILTERS to Contacts. By default ListView was choosing GESTURE_JUMP because the application enables text filtering dynamically.
c7cdf60769f1d448dcd016cc1ae93d3fc2975238 22-May-2009 Romain Guy <romainguy@android.com> Add support for GESTURE_FILTERS to Contacts. By default ListView was choosing GESTURE_JUMP because the application enables text filtering dynamically.
ndroid/contacts/ContactsListActivity.java
cebb312bfa7e35bf5cfa62fcf0abbac67c43f606 22-May-2009 Daisuke Miyakawa <dmiyakawa@google.com> am 2991dd94: Hand merge from cupcake_dcm from donut, part 4.

Merge commit '2991dd9416cb019272e786415d6e0354feef115e'

* commit '2991dd9416cb019272e786415d6e0354feef115e':
Hand merge from cupcake_dcm from donut, part 4.
51ca54429e6715418d76859aa2fde61a9342c437 22-May-2009 Jeff Sharkey <jsharkey@android.com> Added ListView for fast-track resolution.
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/ShowOrCreateActivity.java
9bd858bdf35a854b22b2602bfbbf09a7b9edec18 21-May-2009 Jeff Sharkey <jsharkey@android.com> Moved fast-track to real window, summarize multiple track icons.

Moved fast-track away from using a PopupWindow (which expected a View
to get the parent Window IBinder), and instead are using our own
Window. This allows us to set custom parameters like dimming and
catching touches outside of our window area.

Removed FloatyListView since the fast-track no longer follows
ListView scrolling--instead outside touches dismiss the fast-track.

Changed fast-track handling of actionable contact methods to
summarize duplicate methods into one icon. Future plan is to "fold
out" the fast-track to resolve between multiple methods. Also
added notion of text-messaging as a separate action on a Phone item.

To prepare for duplicate resolution, we added the notion of a summary
column (from the data table) to each Mapping. We display the resolved
value to the user when they need to pick between duplicates. Changed
Mapping resolution to check for "common" package names first so that
phone numbers owned by other packages are all shown correctly with
generic icon.

Fixed so that pressing back button will always dismiss the fast-track
dialog when shown. (It now behaves the same regardless of where it's
being shown.)

Added status, presence, and profile action to fast-track. Changed
social stream so that tapping photo triggers fast-track, instead of
only using gesture approach.
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/SocialStreamActivity.java
80a193a54746b98eebfe6241c0544226e578df0b 21-May-2009 Jeff Sharkey <jsharkey@android.com> Added new assets for fast-track with arrows.
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
4618b2f323de462905c38a12a5aa9097e6defc8f 21-May-2009 Evan Millar <emillar@google.com> -Got the contacts list pointed at the new ContactsProvider2.

-Also added some rudimentary starred contacts support.

-Commented out most of the code in ContactsListActivity that dealt with
modes and filters. This will be brought back as we re-add that
functionality to the new app.
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsListActivity.java
549aa16d217741682827ba5c51da3bfc7c2679c0 21-May-2009 Jeff Sharkey <jsharkey@android.com> Moved fast-track to real window, summarize multiple track icons.

Moved fast-track away from using a PopupWindow (which expected a View
to get the parent Window IBinder), and instead are using our own
Window. This allows us to set custom parameters like dimming and
catching touches outside of our window area.

Removed FloatyListView since the fast-track no longer follows
ListView scrolling--instead outside touches dismiss the fast-track.

Changed fast-track handling of actionable contact methods to
summarize duplicate methods into one icon. Future plan is to "fold
out" the fast-track to resolve between multiple methods. Also
added notion of text-messaging as a separate action on a Phone item.

To prepare for duplicate resolution, we added the notion of a summary
column (from the data table) to each Mapping. We display the resolved
value to the user when they need to pick between duplicates. Changed
Mapping resolution to check for "common" package names first so that
phone numbers owned by other packages are all shown correctly with
generic icon.

Fixed so that pressing back button will always dismiss the fast-track
dialog when shown. (It now behaves the same regardless of where it's
being shown.)

Added status, presence, and profile action to fast-track. Changed
social stream so that tapping photo triggers fast-track, instead of
only using gesture approach.
ndroid/contacts/ContactsActivity.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/FloatyListView.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
05f158fc96b5f1c9199c15e680bfc323729d9c31 21-May-2009 Dmitri Plotnikov <dplotnikov@google.com> Layout cleanup.

New background for pictures.
Bubble background for replies.
Padding, font sizes, colors, underlining of links.
Removed divider between replies
Made bubble properly transparent and stretched.
ndroid/contacts/SocialStreamActivity.java
672cbe674556f6854ef0767fe86c86d9f45b0582 21-May-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding thumbnail and link.

Cutting corners for the sake of expedient prototyping.
ndroid/contacts/SocialStreamActivity.java
f0eb9f5bf9a037603e978bc8082423b8d0e9c26f 20-May-2009 Dmitri Plotnikov <dplotnikov@google.com> New layout for in-reply-to messages.
ndroid/contacts/SocialStreamActivity.java
9a41d43b55588900894a0732074c682e3d28a7e1 20-May-2009 Dmitri Plotnikov <dplotnikov@google.com> Minor layout updates.

Name and content now use the same size font.
ndroid/contacts/SocialStreamActivity.java
3c690ceb35b9935fedf9033021cfb80c069968b2 19-May-2009 Dmitri Plotnikov <dplotnikov@google.com> New social item layout. Using spannable.
ndroid/contacts/SocialStreamActivity.java
ecedf75feed95d30a48282a73a17fa38485e66bb 19-May-2009 Jeff Sharkey <jsharkey@android.com> Added text name and photo to fast-track dialog.
ndroid/contacts/FastTrackWindow.java
691266807ae12b65ad0151e74a48fab7c8ac84b6 19-May-2009 Jeff Sharkey <jsharkey@android.com> Fix wrong logic while looping over fast-track items.
ndroid/contacts/FastTrackWindow.java
8da253a3e3d98d8319c26a64feb6953650a7099d 19-May-2009 Jeff Sharkey <jsharkey@android.com> Fixed cursor constant that was causing crash.
ndroid/contacts/SocialStreamActivity.java
5ae1096cf5d4314f550dd9a340bcd87260ec983a 19-May-2009 Jeff Sharkey <jsharkey@android.com> Fixed ContactsContract constant from CL 1944.
ndroid/contacts/ShowOrCreateActivity.java
2991dd9416cb019272e786415d6e0354feef115e 19-May-2009 Daisuke Miyakawa <dmiyakawa@google.com> Hand merge from cupcake_dcm from donut, part 4.

Make Contacts app use vCard importer.
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/VCardImporter.java
e913e5ebd5f4410684df194ef46fa742b88b1d7d 19-May-2009 Jeff Sharkey <jsharkey@android.com> Remove reference to missing framework animation.
ndroid/contacts/FastTrackWindow.java
3f17759408b4cec77ab43ee76cc75805577ca34e 19-May-2009 Jeff Sharkey <jsharkey@android.com> Adopted SocialContract and first pass at fast-track.

Showing live data from SocialProvider through recently added
SocialContract constants, symlinked for now since the contract
isn't in the framework yet.

Added first pass at fast-track using edge-based triggering
from the social list. Wraps the ListView in a EdgeTriggerView
that watches for "pull" actions from a specific edge. Also adds
concept of a FloatyListView to keep a "floaty" window anchored
with respect to ListView scrolling.

The fast-track window summarizes contact methods based on
anyone system-wide who offers an icon for the mime-types. For
example, the testing app pushes app-specific contact methods
into the Data table, and then provides icons through its
RemoteViewsMapping XML resource.

Changed SHOW_OR_CREATE to accept Aggregate Uris and now shows
fast-track in cases where a single matching aggregate is found.

Abstracted AsyncQueryHandler to a QueryCompletedListener callback
interface to clean up code that uses it while still protecting
against leaked Contexts.
ndroid/contacts/AsyncQueryHandler.java
ndroid/contacts/EdgeTriggerView.java
ndroid/contacts/FastTrackWindow.java
ndroid/contacts/FloatyListView.java
ndroid/contacts/NotifyingAsyncQueryHandler.java
ndroid/contacts/ShowOrCreateActivity.java
ndroid/contacts/SocialStreamActivity.java
ndroid/providers/contacts2/ContactsContract.java
ndroid/providers/contacts2/SocialContract.java
3a0e259063162bf86e761e7e9c99936d499a2c3d 12-May-2009 Dmitri Plotnikov <dplotnikov@google.com> Renaming ActivityStream to SocialStream to avoid confusion with Android Activities.
ndroid/contacts/ActivityStreamActivity.java
ndroid/contacts/ContactsActivity.java
ndroid/contacts/SocialStreamActivity.java
3adeeff54f4a74d89bb3d796698b64377ff195b6 08-May-2009 Dmitri Plotnikov <dplotnikov@google.com> Adding alphabetical separators to the ContactList
ndroid/contacts/ContactsListActivity.java
06191cde59341a96dc57f394e0ae80b531a178a9 07-May-2009 Dmitri Plotnikov <dplotnikov@google.com> Placeholder for activity stream UI
ndroid/contacts/ActivityStreamActivity.java
ndroid/contacts/ContactsActivity.java
032bb36086d55529b59cbd6ea03d2f9b6cfe36af 07-May-2009 Dmitri Plotnikov <dplotnikov@google.com> Splitting Dialtacts activity into two: Dialer and Contacts
ndroid/contacts/ContactsActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/DialerActivity.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/TwelveKeyDialer.java
5d787945be8528bcec778b07f6c721a198ab4f54 30-Apr-2009 Fred Quintana <fredq@google.com> decouple SyncAdapter from ContentProvider
ndroid/contacts/ContactsListActivity.java
7f0a040a07adb98830dbe6c3fe3439f69e5f84b2 21-Apr-2009 Fred Quintana <fredq@google.com> adding concept of features to accounts
ndroid/contacts/ContactsGroupSyncSelector.java
0a6c34e87a77abe2ea69f673c040181722d46ae3 02-Apr-2009 Wink Saville <> Merge branch 'readonly-p4-master'
6618ff54e872766b3ae5be66d6004247e39f5ecd 02-Apr-2009 Wink Saville <> AI 144245: Fix merge conflict for megering in the CDMA changes in to master from donutburger.

Automated import of CL 144245
ndroid/contacts/SpecialCharSequenceMgr.java
3603ab0341a839d8845b7a24ea77cf9c6c54c8f6 02-Apr-2009 Alex Kennberg <> Merge branch 'readonly-p4-master'
fb0386a1dca6ad87e023634fabb450703926c4d9 02-Apr-2009 Alex Kennberg <> AI 144110: - Fix exception during contact creation.
- Record group membership during contact creation.
BUG=1751406

Automated import of CL 144110
ndroid/contacts/EditContactActivity.java
359eba9cc3bece8e24968adc47ab45af2b8775d6 02-Apr-2009 Wink Saville <> AI 144185: Integrate cdma into the main code base.

Automated import of CL 144185
ndroid/contacts/SpecialCharSequenceMgr.java
26c7e73820c44b6d1ec35abf9549b148952b6086 02-Apr-2009 Jeff Sharkey <jsharkey@android.com> Fixed some whitespace issues and removed unused intent-filter.
ndroid/contacts/ShowOrCreateActivity.java
45258c5b6badb9171b237d6f128862eb44e7226f 31-Mar-2009 Jeffrey Sharkey <> AI 143778: am: CL 143722 Correctly format phone numbers in call log, instead of leaving raw numbers.
Caches Editable and Locale values to minimize allocations, and caches formatted values along with other ContactInfo details. We need to be extremely careful with this change, as it impacts a performance-sensitive codepath: scrolling through the call log.
Original author: jsharkey
Merged from: //branches/cupcake/...

Automated import of CL 143778
ndroid/contacts/RecentCallsListActivity.java
03434669e9c522f0dbe763440b0af493862c83bb 31-Mar-2009 Jeffrey Sharkey <> AI 143798: am: CL 143778 am: CL 143722 Correctly format phone numbers in call log, instead of leaving raw numbers.
Caches Editable and Locale values to minimize allocations, and caches formatted values along with other ContactInfo details. We need to be extremely careful with this change, as it impacts a performance-sensitive codepath: scrolling through the call log.
Original author: jsharkey
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143798
ndroid/contacts/RecentCallsListActivity.java
c6d029a45cee85130c6793b5d8a4521feb5ee1bb 31-Mar-2009 Brad Fitzpatrick <> AI 143549: When filtering contacts, switch to the "Contacts" tab explicitly.
(Ignore the setting that they might've been on favorites previously.)
BUG=1745808

Automated import of CL 143549
ndroid/contacts/DialtactsActivity.java
87fc317b43f94653d7b1634855413e6a76790137 28-Mar-2009 Alex Kennberg <> AI 143424: - Add groups item to edit view and ability to select groups for the contact.
- Cleaned up groups code in contact view.
- Fix a couple of small IM bugs in contact view
BUG=1241747

Automated import of CL 143424
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/ViewContactActivity.java
715b32a93c9d574afa109fd05afe07c0801ed107 28-Mar-2009 Jeffrey Sharkey <> AI 143344: am: CL 143193 am: CL 142955 Send all contact method details for "Create barcode" intent.
This was regression from PF when we removed the list separator items when viewing contact.
Original author: jsharkey
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143344
ndroid/contacts/ViewContactActivity.java
c2158b7bcb6a4f6032f8e867aee74a0b92ee48ee 28-Mar-2009 Jeffrey Sharkey <> AI 143308: am: CL 143159 am: CL 142855 Fix SHOW_OR_CREATE intent to correctly handle duplicate E-mail or IM entries for a person.
Added a new WITH_EMAIL_OR_IM_FILTER_URI to find people with a given string as either an E-mail or IM address. This cleans up the original code, and lets us handle duplicates when there are multiple ContactMethod matches for a single person. (We don't get GROUP BY through the ContentProvider interface.)
In ContactsListActivity we don't show possibly-incorrect labels when in MODE_QUERY_PICK_TO_VIEW, as any labels and values would be identical. (The people appearing in that list are there because their ContactMethod matches the query.)
Original author: jsharkey
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143308
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ShowOrCreateActivity.java
11325c657ac836aa638fa7034d95b78a2d070d55 28-Mar-2009 Jeffrey Sharkey <> AI 143193: am: CL 142955 Send all contact method details for "Create barcode" intent.
This was regression from PF when we removed the list separator items when viewing contact.
Original author: jsharkey
Merged from: //branches/cupcake/...

Automated import of CL 143193
ndroid/contacts/ViewContactActivity.java
13f5741f67402e57ba069c4ef729e8fffcb5c2ca 27-Mar-2009 Jeffrey Sharkey <> AI 143159: am: CL 142855 Fix SHOW_OR_CREATE intent to correctly handle duplicate E-mail or IM entries for a person.
Added a new WITH_EMAIL_OR_IM_FILTER_URI to find people with a given string as either an E-mail or IM address. This cleans up the original code, and lets us handle duplicates when there are multiple ContactMethod matches for a single person. (We don't get GROUP BY through the ContentProvider interface.)
In ContactsListActivity we don't show possibly-incorrect labels when in MODE_QUERY_PICK_TO_VIEW, as any labels and values would be identical. (The people appearing in that list are there because their ContactMethod matches the query.)
Original author: jsharkey
Merged from: //branches/cupcake/...

Automated import of CL 143159
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ShowOrCreateActivity.java
4fa16ccf1198f3b739a617d0153c00f65979e808 27-Mar-2009 Evan Millar <> AI 143241: am: CL 142791 am: CL 142789 Fix ClassCastException (bug #1736120)
Original author: emillar
Merged from: //branches/cupcake/...
Original author: android-build
Merged from: //branches/donutburger/...

Automated import of CL 143241
ndroid/contacts/ContactsListActivity.java
bd7e123f9717de4c8728f3022fe093149526f2a4 27-Mar-2009 Alex Kennberg <> AI 143104: Add long press to groups in contact view activity, which takes the user to
edit activity.
BUG=1241747

Automated import of CL 143104
ndroid/contacts/ViewContactActivity.java
fff154d6152ac27bbf7410e2a226485a327c6ccc 26-Mar-2009 Evan Millar <> Automated import from //branches/donutburger/...@142791,142791
ndroid/contacts/ContactsListActivity.java
8bbe2f22f9431bfcb24761e755c31416a4efc55e 25-Mar-2009 Amith Yamasani <> Automated import from //branches/master/...@142031,142031
ndroid/contacts/CallDetailActivity.java
1dc7716c78b31a3d09fc1594f3a5f1b2010d34f6 25-Mar-2009 Amith Yamasani <> Automated import from //branches/donutburger/...@142030,142030
ndroid/contacts/CallDetailActivity.java
56f996e4480ff4654d4099d3739928468afdd935 25-Mar-2009 Evan Millar <> Automated import from //branches/master/...@141914,141914
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
76da87c4b17b0c2746cc0db4c63aa3b062381a97 25-Mar-2009 Evan Millar <> Automated import from //branches/donutburger/...@141911,141911
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
e62237819c9deb462ce80861c8e08432c9b53dbb 25-Mar-2009 Romain Guy <> Automated import from //branches/master/...@141834,141834
ndroid/contacts/ContactsListActivity.java
8350e5b53bb12e39ccc1a062d557a08ab01995a4 25-Mar-2009 Jeff Hamilton <> Automated import from //branches/master/...@141829,141829
ndroid/contacts/ViewContactActivity.java
23593692b713ad71b45535e51cfbf5c1f6919fa6 25-Mar-2009 Romain Guy <> Automated import from //branches/donutburger/...@141832,141832
ndroid/contacts/ContactsListActivity.java
7eeea67b2c763f93fbd386670d34a2cdded1a196 25-Mar-2009 Jeff Hamilton <> Automated import from //branches/donutburger/...@141826,141826
ndroid/contacts/ViewContactActivity.java
b124dc10bcc24052f6f4f9c2ea6b278f1638547b 25-Mar-2009 Jeff Hamilton <> Automated import from //branches/donutburger/...@141106,141106
ndroid/contacts/ContactsListActivity.java
a88f6ac1ab818ed8c4c30030b60ae72cfa9ed74a 25-Mar-2009 Jeff Hamilton <> Automated import from //branches/master/...@141107,141107
ndroid/contacts/ContactsListActivity.java
f46bc31fd33620aa6ef6b50fe24fd232488b9fbf 25-Mar-2009 Karl Rosaen <> Automated import from //branches/donutburger/...@140729,140729
ndroid/contacts/TwelveKeyDialer.java
151a08f117bf46c7db58bfa0146e98c8b4c9b3d6 25-Mar-2009 Karl Rosaen <> Automated import from //branches/master/...@140730,140730
ndroid/contacts/TwelveKeyDialer.java
4eb77b6f1c1a17ee51dca3773be85a0db5e2d02d 25-Mar-2009 Romain Guy <> Automated import from //branches/master/...@140651,140651
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsLiveFolders.java
8de29a3d041ca123ca4961f02822430d97486c22 25-Mar-2009 Romain Guy <> Automated import from //branches/donutburger/...@140648,140648
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsLiveFolders.java
cac191e8687294edd820ed7ea3d6f67b31d4bb44 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import //branches/master/...@140412
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
37a16acbcb44ecadf1b006c110e750ba9c5c621e 19-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@140373
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/ShowOrCreateActivity.java
3db4f2414ce8f3bc911b1108f1d56e82d177c9e3 13-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake_rel/...@138607
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/JapaneseContactListIndexer.java
e740e2e0631a32763d354d0c74c97f3e19231b52 11-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137873
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/EditContactActivity.java
1f6209618bfde026a07f0ceb48d0a9332670163c 09-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@137197
ndroid/contacts/DialtactsActivity.java
a10b15c524fb7a4385d1d8e915f689e3ffbc394f 06-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136620
ndroid/contacts/EditContactActivity.java
928ccbd88a6cb0e2c0459d5a5f2a52813bddde5a 05-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@136594
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/EditContactActivity.java
7aa0e4cb91c869108238733ca107d18ccb888df7 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid/contacts/AttachImage.java
ndroid/contacts/ButtonGridLayout.java
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsLiveFolders.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/SpecialCharSequenceMgr.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/ViewContactActivity.java
cefa28cded1cd8d1af1a27ee934aedc65394b8dd 04-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@135843
ndroid/contacts/AttachImage.java
ndroid/contacts/ButtonGridLayout.java
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsLiveFolders.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/SpecialCharSequenceMgr.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/ViewContactActivity.java
cfc3a14d5489784c1836ee3faefa14d31841fb2b 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@132589
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/RecentCallsListActivity.java
978e2baac11db50c09db4076ff75672250859773 03-Mar-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //depot/cupcake/@137055
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/RecentCallsListActivity.java
cec0436fe4ca83e224a325fd78c137cf4f992f44 20-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132569
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/RecentCallsListActivity.java
2be33e51dad853a8ca372bc5d625f76894429732 19-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@132276
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ViewContactActivity.java
3b024227b306a020209fc18505c453dd52a58901 13-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@131421
ndroid/contacts/EditContactActivity.java
ndroid/contacts/TwelveKeyDialer.java
42e29b7df797d9ce8f5db597ce39950a0cf67d43 11-Feb-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@130745
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/ViewContactActivity.java
42b987b7f0513c4a5df9f7c7083aba8936f2c845 22-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127436
ndroid/contacts/EditContactActivity.java
ndroid/contacts/ViewContactActivity.java
2ecd0f64520caf3f309b2ecfb05fbe4a8cea0d5c 20-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@127101
ndroid/contacts/ContactsListActivity.java
ad5ad71f153a2cc238d55c245b89f1c6d89071db 16-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@126645
ndroid/contacts/CallDetailActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/RecentCallsListActivity.java
9cb63a59a32905d4f3c7d0215d4b79d719ac8c46 10-Jan-2009 The Android Open Source Project <initial-contribution@android.com> auto import from //branches/cupcake/...@125939
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/TwelveKeyDialer.java
d9351704bab303a9459f57e8a32b7447a7ecf1b2 18-Dec-2008 The Android Open Source Project <initial-contribution@android.com> Code drop from //branches/cupcake/...@124589
ndroid/contacts/AlphabetIndexer.java
ndroid/contacts/AttachImage.java
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsLiveFolders.java
ndroid/contacts/ContactsPreferenceActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/FastScrollView.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/SpecialCharSequenceMgr.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/ViewContactActivity.java
5dc3b4f80f38c0d48601f66c2c0e551474a7f8ad 21-Oct-2008 The Android Open Source Project <initial-contribution@android.com> Initial Contribution
ndroid/contacts/AlphabetIndexer.java
ndroid/contacts/AttachImage.java
ndroid/contacts/ButtonGridLayout.java
ndroid/contacts/ContactEntryAdapter.java
ndroid/contacts/ContactsGroupSyncSelector.java
ndroid/contacts/ContactsListActivity.java
ndroid/contacts/ContactsPreferenceActivity.java
ndroid/contacts/DialtactsActivity.java
ndroid/contacts/EditContactActivity.java
ndroid/contacts/FastScrollView.java
ndroid/contacts/RecentCallsListActivity.java
ndroid/contacts/SpecialCharSequenceMgr.java
ndroid/contacts/TwelveKeyDialer.java
ndroid/contacts/ViewContactActivity.java