History log of /packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
7494e913d7bc044319ff143c02a6b1c108f66dd0 17-Mar-2016 Wenyi Wang <wenyiw@google.com> Hide "Blocked numbers" when user is secondary user

Bug 27706005

Change-Id: I18a62b10e72d437f036b9248b3beb824e64218e9
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
9d115f0e9222e0f4b95a1ef55085ba6bdd8eb3b4 12-Feb-2016 Wenyi Wang <wenyiw@google.com> Hide "Blocked numbers" menu in search and selection mode

Bug 27120737

Change-Id: I4168bb97a23e5ff0b2aabc065a1e2f964e864fa4
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
b49c527b2ac16a189dfa61f9cdecdcafbf61fcc2 12-Feb-2016 Wenyi Wang <wenyiw@google.com> Use blocked numbers UI in framework

Bug 27120737

Change-Id: I8380f8a9f753755c5ad3efd68332372ce80dea34
/packages/apps/Contacts/src/com/android/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)
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
5d7bb268bae15843e729ffafc01de0ec9677d7aa 30-Jan-2016 guanxiongliu <guanxiongliu@google.com> Stop Prompting user to add account when no account available
Bug:25161189

Change-Id: I2981d4363610baf0c879f34dc30d34c1c6850778
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
5c502763bb8962defbad528a54099da2e2f6feec 28-Jan-2016 Wenyi Wang <wenyiw@google.com> Use VERSION.CODENAME to check for N APIs

Bug: 26453530
Change-Id: I88ed37d83fa1c98982b229078001b498a52f890d
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
ed5202a2cc0b5916ed21f3afb3f2f19123eb028b 17-Nov-2015 Ricky Wai <rickywai@google.com> Make Contact app works can open work contacts

Bug: 25836833
Change-Id: Ic7151ad8341f48728fc95c68b9489410a6e35b3e
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
2f09e604bc8292015bb728b054032443dcbc69c6 28-Oct-2015 Wenyi Wang <wenyiw@google.com> Check if the handler is registered before showing "Export database files"

Change-Id: I528532d00b482c7eaf5f38ce5f877e0b6e8b2e57
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
6a1c15a636db5f2c54c0c79405337482608bb9f1 28-Sep-2015 Jay Shrauner <shrauner@google.com> Merge "Use TransactionSafeActivity" into ub-contactsdialer-a-dev
7712aef22da432331a67c710cfc18bce2c493887 25-Sep-2015 Jay Shrauner <shrauner@google.com> Use TransactionSafeActivity

Remove custom visibility tracking.

Bug:24294419
Change-Id: I554a1277aa3fa9575c93191b99b7e6b484596379
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
9379f4a2cbdf81bfbfc6cfc4559422df2ddc8513 25-Sep-2015 Wenyi Wang <wenyiw@google.com> Show ImportExportDialogFragment based on tabs

Bug: 19850584
Change-Id: I1997193366864bde12f83a722caaf186dda9d723
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
5b69125ca54b41429374041d73febd33af0dd596 25-Aug-2015 Jay Shrauner <shrauner@google.com> Fix NPE in shareSelectedContacts

Protect against null lookupUri's.

Bug:23306201
Change-Id: Iab1e6b08e0a596b999c6829b1afd8c5aa0dc81c7
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
9cfa24cbd952a027d8e0dea2b0f164820dd6ab8d 04-May-2015 Brian Attwell <brianattwell@google.com> Make FAB visible in onNewIntent

Bug: 20706976
Change-Id: I29e13345a6892630f148ac7c80989f5ef3ecb635
(cherry picked from commit 4d3e9d0ebf16d521b4376f46c3b366a68c9df4c4)
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
48cea17ce347d6ff9ab3a59b99ad63dde70ce9c3 03-Mar-2015 Brian Attwell <brianattwell@google.com> Don't allow entering selection from search mode

Bug: 19549465
Change-Id: Ie33a676f64e30e437ca712a24bab17830d4c7868
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
56bcc2fc455dcb434545fcdeb07c5f916dece847 13-Feb-2015 Brian Attwell <brianattwell@google.com> Revert "Revert "Implement Help&Feedback. P1/2""

This reverts commit fb49bad9a90dcec8a71dfaebb2810a9af82992ef.

Change-Id: I42af6fccc81895f17dfab2f24ab3fb87d1be59b8
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
fb49bad9a90dcec8a71dfaebb2810a9af82992ef 13-Feb-2015 Brian Attwell <brianattwell@google.com> Revert "Implement Help&Feedback. P1/2"

This reverts commit d0b4c6c3820fb64e868cc9aa1d4d8388a945ba9d.

Change-Id: Iacaa0e06e64c1ef43f229e0b906a1407331d7477
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
d0b4c6c3820fb64e868cc9aa1d4d8388a945ba9d 12-Feb-2015 Brian Attwell <brianattwell@google.com> Implement Help&Feedback. P1/2

Bug: 17377125
Change-Id: I111819543ff5fa5fd9786473ba9ff02c28353ee8
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
eda5c85e54ca3de71a9155df5f45fbf6911cb4a6 03-Feb-2015 Brian Attwell <brianattwell@google.com> Don't use hidden QuickContact APIs

Bug: 18777272
Change-Id: Ia3a1fe77223dfd67ff5c9d9c011253dbb7695b6a
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
962677f56389b2c12b452135673a85b6f6de7d05 26-Sep-2014 Brian Attwell <brianattwell@google.com> Switch fragment position in RTL

Bug: 17667723
Change-Id: If3705942e38d050bebbebd86a957b201e18e1782
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
d41ab8ace81a2e44f8b28aa8782679b9e9cca1b9 07-Aug-2014 Brian Attwell <brianattwell@google.com> Use custom ViewOutlineProvider to enable shadows

Bug: 16856049
Change-Id: I8f4c430437395e988e8bcbd5073444a902bab63f
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
5d22c41a997c88cf6e44b53a4a76617944f16e53 24-Jul-2014 Paul Soulos <psoulos@google.com> Remove ContactDetail code.

Bug: 16457366
Change-Id: I79367304bb7a0dfdc2b420580f8d8207ef602856
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
c9bb2179ab321461f88f54d49e9d41f2f6b19fe3 10-Jul-2014 Yorke Lee <yorkelee@google.com> Make ContactPreferences use SharedPreferences instead of System settings (2/5)

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

Change-Id: Ibaacc26619889e28db7b4b30ee37a00827dd48e4
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
70bf7bd1f6d17883e8e7a15679e4f51cd65a492e 09-Jul-2014 Brian Attwell <brianattwell@google.com> Show account prompt <=1 times in PeopleActivity

Bug: 16155251
Change-Id: Ib5efd3baeaad003e8e2cd4c39be29b10d051e564
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
31c7bf977e06fe3ed198cacf34d94b0a2c131a14 17-Jun-2014 Paul Soulos <psoulos@google.com> Fixes a Monkey NPE in PeopleActivity

Change-Id: Ifb9ee35a536bb4d83a3c1abe12640d073d2f23c5
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
6adbf1e7870e9de4ad203d334c8786ffca7d123d 31-May-2014 Brian Attwell <brianattwell@google.com> Unified search bar style, and new animation

Change-Id: I87516ceae4a5d64edb1febd50bd96b4f7471af67
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
2b9563d4c3aa7d3f57ab16ea4cb98cd9e588c50d 28-May-2014 Paul Soulos <psoulos@google.com> Uses a floating action button for adding new contact

Change-Id: I47cc26e857f7b3da8537bc52c8cb08b969af44b7
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
838671a4be907cf34b4a578cea3b911bbd700856 15-May-2014 Brian Attwell <brianattwell@google.com> Merge "Revert "Remove "Help" action from Contacts app""
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
af9bcfb4c182d53faaabf794efdef88b1f04a307 15-May-2014 Brian Attwell <brianattwell@google.com> Merge "Remove "Help" action from Contacts app"
f49a823175cd1201e30410977f33992749de0bb6 15-May-2014 Brian Attwell <brianattwell@google.com> Remove "Help" action from Contacts app

Change-Id: I75d6d756cbb119c6f42bbefe29c4010d919c375f
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
572290be359989402a546a75d7c6378913a4bb2d 16-Oct-2013 Yorke Lee <yorkelee@google.com> Fix People flash on tablets when collapsing QC card

Bug: 9370423
Change-Id: I6312563482e9ffe2bfc28c40b7f45ebfd9c43b49
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
32791d4f8d3d29d17cf35b77c294593cc6d28da1 12-Sep-2013 Paul Sliwowski <psliwowski@google.com> Fix stablity issue when PeopleActivity is trying to stop.

Bug: 9882272
Change-Id: I64a0322e20c20f822d9ae831c01abd8000bd6db9
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
3b6a6f6ac9dce6028248ed7a695ed2c76890add8 05-Sep-2013 Paul Sliwowski <psliwowski@google.com> Update colors in the people app.

Change-Id: I93194f75e83fd6dba95a7bc8aafa73432dac8353
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
e90783822d17ef7696d8ec09ebb3ddd6d1768986 18-Jun-2013 Chiao Cheng <chiaocheng@google.com> Fix scrollbar position for RTL.

Bug: 9338977
Change-Id: I65884152051ccb10a3362afd325b9ce77e400f20
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
d7b32b6f1293362d1ca186a99a2cc80791a291de 27-Dec-2012 Yorke Lee <yorkelee@google.com> Add fade in transition when switching tabs

Bug: 5105403
Change-Id: I3ca53af2abe864e6673516ca9c992fe9007fa5ec
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
b20ff0bdc379307dbc8337240fd35f8193f3100f 14-Dec-2012 Yorke Lee <yorkelee@google.com> Cleanup People settings UI

Bug: 7157015
Change-Id: Idc76de66fbfc2cb02f4b6b1bee2c74bd7d224b00
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
1aa192d46e978196178f6058321bbf99e0a37007 04-Dec-2012 Yorke Lee <yorkelee@google.com> Merge "Fix overdraw in PeopleActivity"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
a0233a048858f1593ea4924e9c5036f39aedbcdd 02-Nov-2012 Chiao Cheng <chiaocheng@google.com> Moving ContactListItemView and dependent classes.

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

Bug: 6993891
Change-Id: I3dfce84ad01932450dc09588c22903e7307d7da0
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
4e6ab81a987cb8c0cccb2d3ffee9ff09be44d567 31-May-2012 Chiao Cheng <chiaocheng@google.com> Revert "Make portrait action bar icons consistent with landscape."

This reverts commit a7a659f2f0facf51ea1c862213450e5789ed387a
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
e919fba55afc9887160a7522b00e885e7964e5d6 01-May-2012 Makoto Onuki <omakoto@google.com> Merge "Don't load provider status on the ui thread" into jb-dev
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
09d66a382d1f94618b52fec11ba54d9243a95a18 14-Apr-2012 Daniel Lehmann <lehmannd@google.com> Restore Focus after rotation if we are searching

Bug:6027055
Change-Id: I3b9e23ab115c303ac2a68d8ddba55a35e2c4ed01
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
6b6df4774a62ecdd85cc4bc5bb00fe1422a863a0 13-Apr-2012 Makoto Onuki <omakoto@google.com> Fix crash when a dead key is pressed

Bug 6328709

Change-Id: Ie2a2ddab60a53dcfbe446bb92e7987918d311f67
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
52aa32db432085ab2cd4864bd1edd1ef843da867 09-Mar-2012 Daniel Lehmann <lehmannd@google.com> Replace enum by int

Change-Id: I0d7aafa509f6d2747e78493b67dc65de52c9bb68
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
ae3a0458edf09207c9434e6fcd0ed2acbe70c7eb 05-Jan-2012 Josh Gargus <jjosh@google.com> Merge "Call correct number of frequently-called contact."
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
970454497bcc42e4d9dc5395b2c8ca2f95667893 28-Nov-2011 Katherine Kuan <katherinekuan@google.com> Don't use deprecated PagerAdapter methods

Bug: 5658993
Change-Id: I20b8fee09c5ea72de8e01d0ac4c66dfbef733951
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
2240ac03b18a42bcf4ecb95def4c515f5985c1b5 23-Nov-2011 Josh Gargus <jjosh@google.com> Merge "Fix visual glitch when no contacts/groups"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
477366ac89828fcf85a94d63b76cda754a85d2ce 18-Nov-2011 Katherine Kuan <katherinekuan@google.com> Allow import from SIM when there are no contacts

Bug: 5639533

Change-Id: I96903021d6ff04b9bb007204284475bb37960f9e
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
24ef97235f6945b40f36231c5efe6bad76a4ccbe 14-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Selecting "Add to my contacts" on tablet can show wrong contact" 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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
f321386bd77e0bfdf659275540b2edd0442090c9 01-Nov-2011 Makoto Onuki <omakoto@google.com> Merge "Use new "deferred fragments" feature on People" into ics-mr1
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
966cc74cb9cff62cf19d7870dd1e2e849de44424 20-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "Fix the double query issue on phone"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
33d64bae650e8e0ec45f1ad1f31c759c8a8704be 07-Oct-2011 Daniel Lehmann <lehmannd@google.com> Set type to filter to prevent spell-checker

Bug:5404735
Change-Id: I700a7f4ee7ba6a76d0b016e0a0fb9824c357c1af
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
7a330308196e8f75d6ec5e449a0dd28813cfc373 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make filter header clickable"
124e5cbea97366d4db1fa5ffe59efedd5913aded 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make filter header clickable

Bug: 5160689
Change-Id: If2f9435bf0090f8bfc138a45fe2c9c04eec08091
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
a359f29a8da2a3d1f4eaafaff1bb180d7980ea21 25-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use the older way to cope with onInvalidSelection()"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
f70053496b23f7e2163abc8c56279de36b826584 19-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix empty state layouts"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
06c3ca10faa9eeb96596b5bb724cc190bce81a28 11-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Remove STOPSHIP regarding hiding options menu"
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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
8b1fe76ff6d68b79427acfb4498bed0986a6518c 28-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Use new search pattern in People app"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
01358ef6f7e39a160c8df816108bf8c7d6fbecbb 20-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove "new group" button when there are no accounts"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
6d9befe1de956c50e31e4d1c22809fe9826f680c 17-Jul-2011 Makoto Onuki <omakoto@google.com> Add debug flag and debug log to PeopleActivity

Change-Id: Ib570aab76090e6b0f4fa649767cdfb7c2b0ccc66
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
a023ddd7788bc7cde35ca7bbeaf3edb99ff34441 14-Jul-2011 Makoto Onuki <omakoto@google.com> Remove unnecessary invalidateOptionsMenu() call...

when switching tabs.

Change-Id: Ifa1c70f58cf210621ffb1e0175707e0c6e9f6dfd
/packages/apps/Contacts/src/com/android/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"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
25f9b3dcefa76017598eb8d713187f6eaf3a7e44 13-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "People: Enable split action bar on 1-pane"
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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
adc1df97d7cb78bf3d9ec6effd8fbaf7391cc7a1 13-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "PeopleActivity: Swipe!"
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
9e095d2ffc4a94d2fb925d19df6db12bc2b1e124 08-Jul-2011 Frank Sposaro <sposaro@google.com> Added QuickContacts.

Change-Id: I0bf3b536da73c2f9862a958ff0275ef8404def4f
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
2c9eb83444a4569fb8279dbaf4c17ad83e368d72 09-Jul-2011 Daniel Lehmann <lehmannd@google.com> Merge "Rename tab "Contacts" to "All""
6e6c24190257fd77d99b4ab385501795537f6eff 09-Jul-2011 Daniel Lehmann <lehmannd@google.com> Rename tab "Contacts" to "All"

Bug:4983441
Change-Id: I14e2c1afe6e9d71e7f7837635886fe4b60d0c07f
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
e5d06f534d58baa27fe6b1091b9724f81fd258c9 07-Jul-2011 Frank Sposaro <sposaro@google.com> ContactTile column counts are now dynamically adjusted.

Bug: 4969044
Change-Id: I5185b93ea3e7720136c929ce4c8ab820d7b4dfc9
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
ee179470c986594ac8f8cbacb7bdddff332ecfc7 25-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add listener to "favorites" fragment.

Bug: 4948919
Change-Id: I43c0ef977cbb732d910091482d467228379b952f
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java
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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.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
/packages/apps/Contacts/src/com/android/contacts/activities/PeopleActivity.java