• Home
  • History
  • Annotate
  • only in /packages/apps/Contacts/src/com/android/contacts/activities/
History log of /packages/apps/Contacts/src/com/android/contacts/activities/
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
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
ontactSelectionActivity.java
eopleActivity.java
8b4da23c2cbf34ae392cb861362e1dc34fdd15eb 20-Nov-2012 Makoto Onuki <omakoto@google.com> Change content description for phone right tab from...

"favorites" to "favorites and all contacts".

Bug 7589043

Change-Id: I3daececb58c7eae64738ed1ed017f85b6bcd15a5
ialtactsActivity.java
e7f458d7af9e05745436a199fcee0c0976c448ed 06-Nov-2012 Chiao Cheng <chiaocheng@google.com> Change dial pad to show chooser onStart instead of onCreate.

This fixes the problem where the chooser is not shown when the dialpad is
started and pushed to recents before a call comes in. When the call comes
and dial pad is selected from recents, the dialpad is shown. Instead, we
should be showing the chooser so the user has the option of getting back
into the call.

Bug: 5761141
Change-Id: I315117c6607dbb71e5359cf98785591d20c21881
ialtactsActivity.java
4356dacabe800b704bfcd58b2a57430f2b28c63a 07-Aug-2012 Geobio Boo <geobio@google.com> Add landscape dialer for Contacts (Phone) app when in car dock.

Bug: 5566469
Change-Id: I080bd22b3983409e6432e1d78cb693135af9503c
ialtactsActivity.java
9e0aa86f7e158c1059cc308fd2eef640e6113d58 03-Aug-2012 Chiao Cheng <chiaocheng@google.com> Adjusting call log filter look and feel.

- Moved filter buttons into overflow menu.
- Added filter header to show users which results are displayed.

Change-Id: I496ecdde8bd235a2065198dffc4179db7012889c
ialtactsActivity.java
8f66599edb41726f620cffa25c68ba1f98955ccf 01-Aug-2012 Chiao Cheng <chiaocheng@google.com> Adding more call log filter buttons.

Adding missed, outgoing, incoming buttons to complement existing
voicemail button.

Change-Id: I43c2a5675783b8a32e4db45b39c64b5496f09e53
ialtactsActivity.java
e86da0a2e9aa28b92f208fb0786bef6c3e669b2d 20-Jul-2012 Santos Cordon <santoscordon@google.com> Merge "2+ voicemail notification sends user to call log."
9ae60417f9e189ecb1f86da9107ba02baae0659b 20-Jul-2012 Makoto Onuki <omakoto@google.com> Add hidden menu option to invoke contacts dump activity

Search for "debug debug!" on the poeple app will enable the debug menu option
which invokes the dump activity.

Bug 6813842

Change-Id: Id09ba988f54ab6a6ce1bf8c480980009da419d19
eopleActivity.java
81f86ce48ee118d160293536293f37453f354bfd 11-Jul-2012 Santos Cordon <santoscordon@google.com> 2+ voicemail notification sends user to call log.

When the user performs the action on the voicemail notification with 2+
voicemails, they were previously sent to the most recent tab in the
Contacts app. This change makes it so that the user is always sent to
the call log tab within the Contacts App.

Bug: 6675764
Change-Id: I1e111802e498f5010991d0c15b6d14dc25707195
ialtactsActivity.java
5e0ad83653469b0195b1c11b8fe77250d30c9899 04-Jul-2012 Chiao Cheng <chiaocheng@google.com> Merge "Removed dependency on private Bundle methods."
43111ef1fa21fa99e11165ad5501bc28d4b6029f 03-Jul-2012 Chiao Cheng <chiaocheng@google.com> Removed dependency on private Bundle methods.

Progress towards unbundling.

Change-Id: I4ee2380d2e9cf5e8ad75a6b0eca15a9dd566bd27
onPhoneActivity.java
078d08f5e497231cbe7fb520b5a4e42a398201a6 03-Jul-2012 Chiao Cheng <chiaocheng@google.com> Removed call to private AccessibilityManager.getInstance().

Moving towards unbundling.

Change-Id: I3e0e56d71abf7bb9a5f43286a8dc4a6a31230c44
ontactDetailActivity.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
ttachPhotoActivity.java
onfirmAddDetailActivity.java
ontactDetailActivity.java
ontactEditorAccountsChangedActivity.java
ontactEditorActivity.java
roupDetailActivity.java
eopleActivity.java
hotoSelectionActivity.java
0a8ad19ec756cf479572632e0e1ae5a53db85a77 21-Jun-2012 Chiao Cheng <chiaocheng@google.com> am 1edc792b: am 61414c2c: Fixed bug where contact photo did not scale up when cropped.

* commit '1edc792b6b1cbee8b3cd42480cb79ec4f984398c':
Fixed bug where contact photo did not scale up when cropped.
61414c2c4627ab588cc0f54eae5e0c5591f7d8d9 19-Jun-2012 Chiao Cheng <chiaocheng@google.com> Fixed bug where contact photo did not scale up when cropped.

- Added scaleUpIfNeeded extra to gallery intents.
- Consolidated gallery "extras" code into common utility method.

Bug: 6678247
Change-Id: I4c2b9fb2a88d203fe06303b470f0eb35a5cc6766
ttachPhotoActivity.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
ctionBarAdapter.java
ttachPhotoActivity.java
onfirmAddDetailActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
ontactSelectionActivity.java
ialtactsActivity.java
roupBrowserActivity.java
roupDetailActivity.java
roupEditorActivity.java
oinContactActivity.java
onPhoneActivity.java
eopleActivity.java
hotoSelectionActivity.java
howOrCreateActivity.java
3e435f0e724cb3e88efce15f760e59b9bc08f0d3 12-Jun-2012 Chiao Cheng <chiaocheng@google.com> Change usages of com.google.android to com.google.common.

The people app contains usages of both com.google.android and com.google.common.
Changing code to use the later guava library since it will be needed to unbundle
the app in the future.

Change-Id: I2700126e020166ea1bbbd87c40e77428efde41f3
ontactSelectionActivity.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
eopleActivity.java
4e6ab81a987cb8c0cccb2d3ffee9ff09be44d567 31-May-2012 Chiao Cheng <chiaocheng@google.com> Revert "Make portrait action bar icons consistent with landscape."

This reverts commit a7a659f2f0facf51ea1c862213450e5789ed387a
eopleActivity.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
eopleActivity.java
45ee872fe7be69c6b3f0c59167eecd11af467812 22-May-2012 Makoto Onuki <omakoto@google.com> Don't send view notification before showing quick contact

Instead, do this in the second load. This directly affects the quick contact
startup time.

Bug 6529921

Change-Id: Ief7bda9bd32cb4be0c86c4b79efb35da812721dc
ttachPhotoActivity.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
eopleActivity.java
1dec2e59e620434a01b27a52cdcf4d50e4524769 16-May-2012 Maurice Chu <mochu@google.com> Merge "Fixed contact detail animated transitions" into jb-dev
6e607d54ce08ebcc78d94963646a42605697f132 16-May-2012 Maurice Chu <mochu@google.com> Fixed contact detail animated transitions

When selecting different contacts on a tablet, the
animation is to set the contact details pane to white
and fade in the new contact details.

From quick contacts view (from Group or Favorites tab
and launcher screen shortcut), if quickcontact is opened
up and user touches the image, then when transitioning
back to the contact details, the contact details shows all
white and then transitions in the new contact details without
showing the previously selected contact details.

Bug: 6194409
Bug: 6324730
Change-Id: I5f56d46aef338b5d7a22e548548c42054656f381
eopleActivity.java
23f6049c362294386399e4cc10ca8d66c93050be 15-May-2012 Daniel Lehmann <lehmannd@google.com> Merge "Disable "Create new contact" when setting photo from gallery." into jb-dev
7f5220e23b37b76cf484b28c182a0c98749b59e2 14-May-2012 Maurice Chu <mochu@google.com> Changed tablet tabs to be a drop down spinner

The tabs in the action bar have been removed for the
tablet form factors and replaced with the action bar
drop down navigation list.

Also, this changes the list item padding in the browse
list on the 7" tablet to extend a little further on the
border to the contact detail panel in portrait mode, so
that more text of longer names can be seen.

Bug: 6426927
Change-Id: Ieced44f5241c3f4f71bdbd7818846e24076fb355
ctionBarAdapter.java
4a964d983b65871bcc08fe16baea8cf2e0994061 11-May-2012 Josh Gargus <jjosh@google.com> Disable "Create new contact" when setting photo from gallery.

Bug: 5288751
Change-Id: I8c2c56ca44b5bdca56b7b20a1dfe510ec08a76c3
ttachPhotoActivity.java
2bf6ba7c1ab0e29732c926ebe91b10f5df62fdd1 11-May-2012 Josh Gargus <jjosh@google.com> Merge "Gallery "Set Picture as" contact photo can create new contact." into jb-dev
64cdc91cae0e08b7d225cd60a91cfc4db85c915d 10-May-2012 Josh Gargus <jjosh@google.com> Gallery "Set Picture as" contact photo can create new contact.

Bug: 5288751
Change-Id: Ic587ae67501fe43e3c0fbb1abe5be34bb32df076
ontactSelectionActivity.java
2d4632c2eb7d2dc3bb94bf64c14c471aafa67b0f 10-May-2012 Maurice Chu <mochu@google.com> Fine-tuned enlarging of contact photos

When tapping a contact detail photo on any device, the
detail photo will attempt to expand as large as indicated
while still remaining fully on the screen and leaving some
space underneath to show the popup menu options.

If there is no photo, then there will be no expansion
although writable contacts will show a popup menu.

Bug: 6462711
Change-Id: I8f69a1c18dfa10ff0d02b9dbd3ba78043cc7eb4e
hotoSelectionActivity.java
0bdc4546eaf6c881c3996d653e10a25d4bb40120 08-May-2012 Daniel Lehmann <lehmannd@google.com> Merge "Fix for "Next" instead of Search showing up the first time" into jb-dev
b0d82d2703d66b3bd4fe8dc4208cdf6a09f2f4af 08-May-2012 Daniel Lehmann <lehmannd@google.com> Fix for "Next" instead of Search showing up the first time

Bug: 6399620
Change-Id: I8d6d7f4e75a18745d7127edde9ae3326220d4fcb
ctionBarAdapter.java
dc232d85208b9f285a03b0643677801dc312f44c 08-May-2012 Makoto Onuki <omakoto@google.com> Merge "Clarify AccountType.resPackageName/summaryResPackageName" into jb-dev
82a4f4408b74e193b43a12dc8e16c946a93bae4a 08-May-2012 Makoto Onuki <omakoto@google.com> Clarify AccountType.resPackageName/summaryResPackageName

Gave them clearer names and added javadoc.

And added a workaround for the fact that the view notification
service for the google account type is implemented in the sync
adapter, not in the authenticator.

This really needs further clean up.

Change-Id: I567656393fab30293c831fac802884dc84daf861
ontactEditorActivity.java
roupDetailActivity.java
f6476048c6c95f379816a517a0de0820a7b21bf5 08-May-2012 Josh Gargus <jjosh@google.com> Merge "Don't stash cropped photos in /sdcard/DCIM." into jb-dev
f0eb46a5d26a9b65a2d2cc3021a451a735ff1080 08-May-2012 Josh Gargus <jjosh@google.com> Merge "Prevent action-bar icons from changing while QuickContacts active." into jb-dev
ebc17929007ecf12f25b8e90023766e8a083d11e 05-May-2012 Josh Gargus <jjosh@google.com> Don't stash cropped photos in /sdcard/DCIM.

Every time we choose a new contact photo (either an existing one from
the gallery or a new one from the camera), we write the cropped image
/sdcard/DCIM. As a result, the cropped image (eventually) appears in
the gallery, is uploaded to G+, etc.

The new behavior is to write the cropped photo to a temp directory,
and to clear it when we're done with it.

Revert some of the changes from Ib7037a66; we still need to persist
properties in onSaveInstanceState() in case ContactEditorFragment is
killed while the user interacts with the camera/gallery.

Bug: 6423139
Change-Id: Icf8cb5b4824e3d8757ff483ef128527ac9132e72
ttachPhotoActivity.java
hotoSelectionActivity.java
d0414e5bd478444a9360c95258c267373f02554b 07-May-2012 Daniel Lehmann <lehmannd@google.com> Task jumping in contact details

When viewing contact details from a quick contact card, the contact
details appear in a two-pane UI, forming a sort of implicit Up
navigation. As a result, viewing contact details from another task is
in effect a task jump since the user may choose to navigate to other
contacts using the other pane of the UI.

Use the new shouldUpRecreateTask API in JB to determine whether the
trampoline from ContactDetailActivity to the two-pane People activity
should also include a task jump.

Bug:6449430

Change-Id: I90b86873a3a21022d52bb387d9adc5391c8d23ac
ontactDetailActivity.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
eopleActivity.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
eopleActivity.java
cae88c80de75d24359125051b60b0c3f00fcfdb1 03-May-2012 Makoto Onuki <omakoto@google.com> Merge "Close photo selection activity on config change" into jb-dev
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
eopleActivity.java
272122caf9adb8414451bb37f56db659dace1db5 03-May-2012 Makoto Onuki <omakoto@google.com> Close photo selection activity on config change

This activity doesn't handle orientation changes right. Let's just close it
on any configuration changes. This activity is kinda like a popup, so it
should be okay.

Now this activity handles all config changes by itself, so we can remove a lot
of things, such as onSaveInstanceState and PendingPhotoResult.

Bug 6236774

Change-Id: Ib7037a66d092c8d9a285224ea4cf70e7da8ff1b5
hotoSelectionActivity.java
552aa6f56cd3b561407a9b854b28daea06dc9c03 02-May-2012 Maurice Chu <mochu@google.com> Merge "Hide scrollbar in search mode when no contacts in Phone" into jb-dev
747cfd0a947ae1ab5fe23445d65f17555e43981e 01-May-2012 Maurice Chu <mochu@google.com> Hide scrollbar in search mode when no contacts in Phone

This hides the scrollbar when there are no contacts in search mode.

Some refactoring has been done to make it easier to tell what menus
are made visible for each of the Phone tabs and when in search mode.
Intents and onClick listeners have been moved to the
onCreateOptionsMenu since these do not change. Also, corrected the
test for isEmpty() in PhoneFavoriteMergedAdapter which allows the
message "No contacts" to show up when there are no contacts to list
under the Phone favorites tab.

Bug: 6036160
Change-Id: I43bbd1bd56b009736cc2a966a3ffb0ad6630792c
ialtactsActivity.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
eopleActivity.java
c983bdef6062c143b2460c788a1704f0e3203c8a 01-May-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Turn off DEBUG flag on Phone" into jb-dev
e919fba55afc9887160a7522b00e885e7964e5d6 01-May-2012 Makoto Onuki <omakoto@google.com> Merge "Don't load provider status on the ui thread" into jb-dev
8801e3585f8f440067679be31a32a38a5f1faa43 30-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Turn off DEBUG flag on Phone

.. and start using correct asset for split-action bar

Bug: 6201805
Change-Id: Ic7d40a050aeec1f55a40b82c1868505115038cac
ialtactsActivity.java
c2bd6138e19fdcf734843eb55c83d6ffe00e91da 28-Apr-2012 Makoto Onuki <omakoto@google.com> Don't load provider status on the ui thread

The provider status query isn't backed by the filesystem, so is usually pretty
fast, but still, we occasionally get ANRs.

We can't just use a loder to load it in the background, because as long as it's
fast, we *do* want to wait on the UI thread, as the status is needed to decide
whether we should show the "contacts unavailable" fragment.

Added a singleton watcher class that keeps track of the last known provider
status.

start() starts wathcing the status, and stop() stops it.

Once we get a provider status, getProviderStatus()/getProviderStatusData()
will return the last known status, unblocked. Until we get the first status,
they will block at most 1 second. If we can't get the status within this
timeout, it'll just return STATUS_UPGRADING, and the people app shows
"Contacts list is being updated."

Bug 6337646

Change-Id: I9bc34e7d43e8e4bd5e1a11898137e8422b689582
eopleActivity.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
ctionBarAdapter.java
eopleActivity.java
b7b9508fa2b3b4543d9c41fd986cecb3cd9a5c36 25-Apr-2012 Maurice Chu <mochu@google.com> Merge "Added help menu options to People app" into jb-dev
692d46364f2f0e32fd481b977c9e16832e70de5c 25-Apr-2012 Maurice Chu <mochu@google.com> Added help menu options to People app

This has been implemented with the idea to enable the creation of help
menu options in a standard way throughout the Android platform. One
particularly important feature is to hide the exact URL that is being
used to invoke the help pages via the browser via using vendor-specific
overlays of string resources.

Also, other standard context for the help like the preferred language and
app version code are incorporated automatically via the HelpUtils function.

Bug:6206323
Change-Id: I5a1fff4d99ac93d3a6aa05da91f465fad072cb8a
eopleActivity.java
ac71b5305d49614f5560519509fa41ce9276a3f7 24-Apr-2012 Makoto Onuki <omakoto@google.com> Support adding phone/email to readonly contacts

If the selected contact has no editable raw_contacts, create one on the
first editable account found, and add the data to it.

We'll reuse the "contact is readonly" mode if there's no editable accounts
on the system. We could improve the message, but if there's no editable
accounts we shouldn't show the contact picker in the first place, so I
didn't change the message. Let's fix the picker instead.

Tested:
(Previously supported casses)
- Add a phone number to an existing editable contact.
- Add a phone number to an existing local-only contact.

(Newly supported cases)
- Add a phone number to an existing read-only contact.
- Try to add a phone number to an existing read-only contact, but no
editable accounts are set up.

Bug 5462347

Change-Id: I55db01610cebb60d3830e8ec4ac6bf1a3dfdad88
onfirmAddDetailActivity.java
dd3dc56d035914f80147fd8fa100a849f9215a3d 25-Apr-2012 Daniel Lehmann <lehmannd@google.com> Remove Listener from ContactLoader as it is never used

Change-Id: Iee791ccd6ce1ebb8a81375e1d60f31fbb91bbb16
ttachPhotoActivity.java
a84cf9274905479f09eb01dd3e7c6fbc2c5c6145 24-Apr-2012 Makoto Onuki <omakoto@google.com> Tiny clean up for ConfirmAddDetailActivity

Also improved EntityDelta/EntityDeltaList.toString() and added a log
to buildDiff().

Change-Id: I1585467a0396cc6b1b6d5746ee8c02e217cc420a
onfirmAddDetailActivity.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
ontactDetailActivity.java
roupDetailActivity.java
eopleActivity.java
cda48e8c16fb638ebeea1627f5ef6c62c64677d6 24-Apr-2012 Josh Gargus <jjosh@google.com> Merge "Fix regression; once again we can apply Gallery photo to contact."
e5d3f897689c8ba0f275c7679c72eacb190ae9b8 11-Apr-2012 Josh Gargus <jjosh@google.com> Fix regression; once again we can apply Gallery photo to contact.

The changes to support hi-res photos in Ic0cabaa5 were not applied to
AttachPhotoActivity. This CL makes the analogous changes, and many other
cleanups besides.

In addition, applying the Gallery photo works even if the AttachPhotoActivity
is killed (eg: when selecting a contact, or when cropping the photo); this
didn't work even before the regression.

The save-contact Intent which invokes the ContactSaveService no longer
needs to specify a callback Activity (it is OK to pass null if you don't
care about getting a callback).

The subclasses of PhotoSelectionHandler have been significantly simplified,
partly by pushing common behavior to the superclass, and also by directly
accessing state in their outer class instead making their own copies.

ContactLoader.Result.getEntityDeltaList() is a new instance method that
replaces more verbose incantations.

New utility class, ContactPhotoUtils. Helps with compressing Bitmaps, and
generating temp-file names used when saving hi-res photos to a contact.

Bug: 6298601
Change-Id: I2fe90c33c9fa81716f263d82ed80c0d6f63c6a7e
ttachPhotoActivity.java
onfirmAddDetailActivity.java
hotoSelectionActivity.java
b1503df1acb03a43460b986f4b64153ccca46df1 24-Apr-2012 Maurice Chu <mochu@google.com> Merge "Added menu option to clear frequents in favorites tab of Phone and People"
2fc4de31fe2d6a261d3eeaff69ea944a5383003e 24-Apr-2012 Maurice Chu <mochu@google.com> Added menu option to clear frequents in favorites tab of Phone and People

The clear frequents menu option is only visible when there are items in
the frequently contacted list. When the user selects the menu option, a
confirmation dialog is shown to verify whether to actually clear frequents.

New ClearFrequentsDialog class created in a new com.android.contacts.dialog
package that is shared by both Phone and People apps to show the
confirmation dialog of whether to clear frequents.

Bug:5475575
Change-Id: I876d3fe15f16635570f3ecb7cd8ed2a19227e316
eopleActivity.java
ddb7f3025c3422f6b718dba501add97123143961 21-Apr-2012 Daniel Lehmann <lehmannd@google.com> Fix the reappearing fake action bar when returning to the Activity

Bug:6318623
Change-Id: Ifaaa29305764be93af5d34ee33cd08edfb15b3a0
ialtactsActivity.java
0da88d6359b1b8c7f4998d7f58a467ad65d40f84 17-Apr-2012 Daisuke Miyakawa <dmiyakawa@google.com> Improve Phone UI's horizontal swipe behavior

- fix an obvious bug in PhoneFavoriteFragment, with which sort-order and
display-order preserved by the "all" adapter are just ignored. Because
of that the whole "all-contacts" section has been loaded every time
when its View is recreated.
- stop creating two Adapters on PhoneFavoriteFragment#onCreateView(),
which will cause unnecessary reload of those adapters.
- use ViewPager#setOffsreenPageLimit(2) to keep all the three fragments
during user's interaction.

Bug: 6005454
Change-Id: I8769eeba7e5568afedea097b2d388c6ed93fcf40
ialtactsActivity.java
09d66a382d1f94618b52fec11ba54d9243a95a18 14-Apr-2012 Daniel Lehmann <lehmannd@google.com> Restore Focus after rotation if we are searching

Bug:6027055
Change-Id: I3b9e23ab115c303ac2a68d8ddba55a35e2c4ed01
ctionBarAdapter.java
eopleActivity.java
92985dbd0940c056a62b07d43f6d638be6492f5a 14-Apr-2012 Daniel Lehmann <lehmannd@google.com> Remove fake ActionBar while in search mode

Bug:6318623
Change-Id: I2392fafce400d7399cb578eb4ec549012d467b8b
ialtactsActivity.java
6b6df4774a62ecdd85cc4bc5bb00fe1422a863a0 13-Apr-2012 Makoto Onuki <omakoto@google.com> Fix crash when a dead key is pressed

Bug 6328709

Change-Id: Ie2a2ddab60a53dcfbe446bb92e7987918d311f67
eopleActivity.java
2f77c85543e6c497e63cd0e216b70e58c1d13ec3 31-Mar-2012 Daniel Lehmann <lehmannd@google.com> Various refactorings to prepare proper big picture loading

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

Bug:6202229

Change-Id: Ic8636d1b3349473163fb2424b5f74476fd435fb5
hotoSelectionActivity.java
6f5557e3dc3cd12182026bdfea17b15d4d9b7dfc 21-Mar-2012 Josh Gargus <jjosh@google.com> Improve frame-rate of quick-contact opening animation.

Fix consists of putting the quick-contact into a hardware layer for
the duration of the animation.

Rename AnimationUtils to SchedulingUtils to avoid conflict with
framework class of the same name.

Bug: 6000249
Change-Id: Ie627ddb947582b7860f5bd0de30484c1d1d4f428
hotoSelectionActivity.java
51f9c0f2f2923d14cced5096b40f017dd87b68d3 20-Mar-2012 Josh Gargus <jjosh@google.com> Fix jank when expanding photo in ContactDetailActivity.

The bug is caused as follows. Tapping the photo invokes a
PhotoSelectionActivity. When it initially sets the photo, a relayout
request is made, which causes a jank if the animation is already
underway.

Instead, we now wait for the layout before starting the animation.

Add new utility class with static doAfterLayout() method, since this
code was duplicated in a couple of places.

Bug: 6000382
Change-Id: Ic32a3db1f8c0be99fe0c160debede71f882c73e7
hotoSelectionActivity.java
547c91765f432ce34da0044e55f1cc0a5da2398e 09-Mar-2012 Daisuke Miyakawa <dmiyakawa@google.com> Move fake menu buttons to DialtactsActivity

Currenty fake menu buttons are in DialpadFragment, which requires the app
to render split ActionBars during users drag events. Because of that
we have a rendering problem around horizontal swipes (bug 6126934: Lots
of stutter in animations between Dialer tabs).

This change moves those buttons to DialtactsActivity and delay menu
creation until really necessary.

This change also introduces some verbose logs, to detect possible new
problems or bug 6041917.

Bug: 6041917
Bug: 6126934
Change-Id: Ic2d8d82461e6d1916f2309b775f47c47d310ad1a
ialtactsActivity.java
52aa32db432085ab2cd4864bd1edd1ef843da867 09-Mar-2012 Daniel Lehmann <lehmannd@google.com> Replace enum by int

Change-Id: I0d7aafa509f6d2747e78493b67dc65de52c9bb68
ctionBarAdapter.java
eopleActivity.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
eopleActivity.java
b641aa67f13044afef3dc1e9effbd23f7457fad6 24-Feb-2012 Josh Gargus <jjosh@google.com> Fix call-log auto-scroll-to-top behavior.

The auto-scroll-to-top behavior should only occur when displaying the
call-log immediately after a call finishes. It was happening too
often, but is now fixed.
Bug: 5421613
Bug: 4088575

Workaround for bug whereby the smooth-scroll to top is broken when
invoked immediately after setting the list position (as is done to set
the position to "5" so that the smooth-scroll doesn't traverse the
entire list).
Bug: 6086980

Change-Id: I8dcc6f2cf84935875697b2454ba602bed03b66c4
ialtactsActivity.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
ontactDetailActivity.java
eopleActivity.java
912fb78115280ddaa484696ddf853e12c865921f 28-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use setPressed() for better touch-down behavior"
e23a16e17a01859f249f25c119017879cd88dcb0 24-Feb-2012 Daniel Lehmann <lehmannd@google.com> Fixed some Lint warnings (and fixed some formattings).

This doesn't change functionality (didn't find anything broken here)

Bug:5964592

Change-Id: I7109c632096caafbf99434762dd1a690424058df
ransactionSafeActivity.java
e983608aa6141b960f705c01742112c56303398c 24-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Fix ActionBar showup problems with drag event.

This happened partly because of the bad combination of I95f25c8a36d099
and Ia6f377a720dac9, which is probably not relevant to bug 6041917 nor
bug 5965438, but *may* be related.

Change-Id: Ie462d1af22da13a2e3ead47bfe5fed9c2a277a71
ialtactsActivity.java
69827088e19e7e02930ca9e017d9933761a46728 14-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Use setPressed() for better touch-down behavior

After I59f472a9d864f4abcc4f692fef0a13f004348432, we are able to rely
on setPressed(true) for "touch-down" behavior.

- Rely on setPressed()
- stop overriding shouldDelayChildPressedState() for having system-wide
delay behavior.
- start sound on setPressed(true)

Bug: 5965380
Bug: 6007908
Bug: 5749440
Change-Id: I5dd440eee1d70992d0db7835c215053904ac3e20
ialtactsViewPager.java
e09037ea7447a512065e2407670a7753de57a20e 23-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> resolved conflicts for merge of f8bb328e to master

Change-Id: I95f25c8a36d0992d40f6927a3e059eff67bff4a6
f30723782e801deaf159aea2443e9507596ef11d 23-Feb-2012 Daniel Lehmann <lehmannd@google.com> Don't re-use the SaveMode in the group editor anymore.

As we only ever use SaveMode.CLOSE, I decided to remove this entirely.
We don't support re-loading at the moment, so it seems wrong to have
code in there that pretends to be able to do it.

Also I cleaned up some Eclipse warnings, so that the side-bar has fewer
yellow lines

Change-Id: I263b716c2edc98682bd5f5d1bc2b18ede15d7ced
roupEditorActivity.java
902170690532fceb9a3e13ad00f6aff00f95b10f 16-Feb-2012 Daisuke Miyakawa <dmiyakawa@google.com> Dialpad redesign.

TESTED:
- Launch Phone UI (previous tab: dialer)
-- Fake menu items should be available
-- Bottom half of the dial button should be clickable
- Launch Phone UI (previous tab: calllog, phone favorite)
-- Real ActionBar should be visible
- Swipe around three tabs.
-- ActionBar (and real menu buttons at the bottom) should be
visible except when dialer screen is settled down in the
screen. During horizontal swipes, ActionBar should look
persistent.
- Click three tabs at the top of screen
-- exactly same as "swipe around three tabs" case above.
- Go to search, and go back from the search (from three tabs)
-- ActionBar should appear/disappear appropriately.

AND, try the sequence above during a phone call, which will
expose DialpadChooser.

- With DialpadChooser, fake buttons should not appear; they should
appear when the user explicitly choose "add call" item.

KNOWN ISSUE:
- Do horizontal swipe from CallLog to Dialpad. Before the screen
settling down itself, start swipe from Dialpad to CallLog again.
-- Bottom ActionBar disappears during the migration (which is
unexpected), because there's no way for the app to determine
if the user is dragging the screen. The app wrongly detects
the case as ViewPager.SCROLL_STATE_IDLE. We won't get the second
ViewPager.SCROLL_STATE_DRAGGING event during the second swipe.

Bug: 6021918
Change-Id: Iaca971a195144a16f7853e3555375922ad54b81b
ialtactsActivity.java
c42ea4eca298419484444a57bfc2da2c83e7adb7 17-Feb-2012 Daniel Lehmann <lehmannd@google.com> Use pushed-state on "star"

On phone layouts, it is now a proper actionbar button (not custom anymore)
On tablet layouts, it is now an ImageView, so that we can center the icon

Bug:6008899

Change-Id: Ida56f959d129480e799fa8a4c477272e4de70eac
ontactDetailActivity.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
ontactDetailActivity.java
eopleActivity.java
499ea32aa25a6b209a7745ab47755b9c86fefaa0 24-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Use Constants class appropriately for sip/tel Uris.

Change-Id: I822634c6e0dc4ae6bd407639730763b658170f3b
ialtactsActivity.java
onPhoneActivity.java
e286c04b300feb9e4bdd13281a764103c1548323 27-Jan-2012 Josh Gargus <jjosh@google.com> Merge "Support for high-resolution contact photos."
e692e010ca02200087997280e7c239ebf94aa8f9 18-Jan-2012 Josh Gargus <jjosh@google.com> Support for high-resolution contact photos.

Rather than getting a bitmap directly from the gallery app, with
this change we create a temporary file and request that the photo
be stored there. This avoids running into bundle size limits when
passing large, uncompressed bitmaps back from the gallery.

After reading the photo out into the Contacts app, we use the
openAssetFile API to stream the large photo data into the
Contacts Provider. Note that we do this rather than having Gallery
write directly to the provider because we have no guarantee that
the Gallery (or substitute) app has WRITE_CONTACTS permission.

In the Contact Editor, the image is not permanently stored until
the contact is saved. This avoids needing special logic to handle
the case where the contact is newly-created.

Fix bug 5907233 en passant... the vestiges of some partially-
expunged code were causing the ContentEditorFragment to not
apply a selected photo.

Bug: 5786849
Bug: 5907233
Change-Id: Ic0cabaa50c08d6a9a0b730698c92f4092192438a
hotoSelectionActivity.java
986387f614628a83e8d690eedf9d0383c0c53da7 24-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Stop using call origin when a dial intent is used"
e82a24dd8201973fe79b9414d1583359a4847dcf 24-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Stop using call origin when a dial intent is used

"Call origin" was introduced in I7b88b245e82e, to have
the app remember which tab is chosen when user's making
a phone call.

When a dial intent is used by 3rd party app, the tab
selection is done automatically and thus we should not
use the mechanism because the user didn't make a choice.

TESTED:
incoming calls
-> go back to calllog

outgoing calls
- make a phone call from dialpad -> go back to dialpad
- make a phone call from favorite -> go back to favorite
- make a phone call from calllog -> go to calllog
- make a phone call from call detail -> go to calllog
- make a phone call from People UI -> go to calllog
- make a phone call from dialpad and launch Phone UI
again during the phone call
-> go to calllog (strictly, "undetermined")
- make a phone call from contact card (reached via
phone favorite) -> go to calllog
- make a phone call from favorite and add another
person to the phone call via in-call ui
-> go back to "favorite" (strictly, "undetermined")
- make a phone call from dialpad or favorite, bail out the
in-call UI. Have the recipient hang up the call.
Then have an incoming call again. Hang up the second phone
call.
-> go to calllog

new test for this fix:
- make a phone call per 3rd party's request
-> go to calllog

Bug: 5728105
Change-Id: I48f03de752917c13046da629d9871155bcde2b10
ialtactsActivity.java
ced983d7a816256d93fdea1f81e63e4598c18875 10-Jan-2012 Josh Gargus <jjosh@google.com> Better wording when choosing photo from PhotoSelectionActivity.

When there is already a photo for a contact, "Take photo" and
"Select photo from Gallery" don't sound as good as "Take new photo"
and "Select new photo from Gallery".

Bug: 5738108

Change-Id: I43e13774079695b0ecebc5d67576e2ea831706a0
hotoSelectionActivity.java
105639dcdbc38e14bb4a356c78d2423498e8e545 14-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Revert "Disable shouldDelayChildPressedState()"

This reverts commit 60919fb24a60093898900ce0ab46f1542cca9f64.
ialtactsViewPager.java
231a31c020482f1f7e1ad994fb13ebb582782274 13-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> am 91d8ff36: am 60919fb2: Disable shouldDelayChildPressedState()

* commit '91d8ff36ee778a816db02fdeeebfa7dfb0e40ada':
Disable shouldDelayChildPressedState()
60919fb24a60093898900ce0ab46f1542cca9f64 12-Jan-2012 Daisuke Miyakawa <dmiyakawa@google.com> Disable shouldDelayChildPressedState()

Bug: 5749722
Change-Id: I69f64372763a24599ed654fe99a760aaebc8ca18
ialtactsViewPager.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
ialtactsActivity.java
eopleActivity.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
ialtactsActivity.java
eopleActivity.java
3c877e33cb7fecc7a63af1cf3c25061d53811bf6 04-Jan-2012 Katherine Kuan <katherinekuan@google.com> Show search query in SearchView for incoming search intents

From the ContactsRequest, we extract the search query and set
it on the SearchView. However, when we update the action bar
to expand the search view, the query string gets cleared out.
Hence, set the query on the SearchView AFTER it has been
expanded.

Bug: 5790409
Change-Id: I4264cb75b8b4b23d4e97c2777a816cd49c2cb328
ctionBarAdapter.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
eopleActivity.java
1d5fdfb2cec7d082c007b5f7ede20be44c24dc1a 23-Nov-2011 Katherine Kuan <katherinekuan@google.com> Handle null display name in ConfirmAddDetailActivity

Previously we had Contacts.DISPLAY_NAME_PRIMARY + " = ? "
but sometimes the display name is null, so use "IS NULL"
in that case.

Bug: 5659658
Change-Id: I40221245003fc1748c41a465c617f849baa6508b
onfirmAddDetailActivity.java
bf012bc4b5b1975ef6dde89be4982afb7d171dc8 07-Dec-2011 Dave Santoro <dsantoro@google.com> Merge "Fix issues with photo selection on Prime."
14d2083c4c4c52b0d8b600a93c294af32cd6a826 03-Dec-2011 Dave Santoro <dsantoro@google.com> Fix issues with photo selection on Prime.

1. Per Marco's request, we no longer expand the photo in landscape
on phone.
2. Passing the full bitmap through the intent appears to be a no-no,
which was exposed in the "black-screen" behavior when clicking on
a default avatar photo on Prime. To handle that, we now retrieve
the photo from the default avatar resource if no URI is specified,
and we retrieve the bitmap for real photos through the photo
manager cache. To ensure performance, I've added a method to the
cache to force caching a given bitmap/byte[] for a photo URI.

Bug 5703659
Bug 5703700

Change-Id: I316f27c7ded575dd1bb00c0bb2e2c75917df1e19
hotoSelectionActivity.java
091034c2d4c3ea69fc63c2e9d0956a109a13e08e 02-Dec-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove visibility change listener in DialtactsActivity

Fragment already has that functionality.

Bug: 5684683
Change-Id: I3cc929704b1077fba872bf0dd2357164f72a2ffb
ialtactsActivity.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
eopleActivity.java
a8c327b2669103cc4d62059b17e09d743dbaeb47 29-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Make sure the "Add to Contact" flow shows up"
20928d63d0b1a0a31fe285fdf225b5b51e9e2dc0 28-Nov-2011 Dave Santoro <dsantoro@google.com> Merge "Allow adding/replacing a photo from contact card."
acd8e8ba4e8e3595a5d12b47b5972aff4a63e131 21-Oct-2011 Katherine Kuan <katherinekuan@google.com> Make sure the "Add to Contact" flow shows up

- For apps like Email and Messaging, make sure the
"Add to existing contact" dialog appears by tweaking
the intent keys.

- If those apps pass a name, only use it if the user
wants to create a new contact. Otherwise if we are going
to launch the "Add to existing contact" dialog,
don't use the name passed in because the existing
contact probably already has a name.

Bug: 5462733
Change-Id: I7d4453c0aa56f21474d3a6bd1d88fd2ff101e5cd
ontactSelectionActivity.java
howOrCreateActivity.java
726405324cd6806b185629db394fddf07a2b3b28 28-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Don't use deprecated PagerAdapter methods"
6fa7384a1a5576ace18159de61af91c8b7c34dc6 28-Sep-2011 Dave Santoro <dsantoro@google.com> Allow adding/replacing a photo from contact card.

This involves a large refactoring of the photo handling code that
previously lived in ContactEditorFragment. The bulk of that logic
has been extracted out into PhotoSelectionHandler and
PhotoSelectionActivity classes.

As part of this change, also removed the selection highlighting when
tapping on the current tab header in multi-tab views.

Bug 5294297
Bug 5379389

Change-Id: Ic929e4b4a730d91f768a34367bb76967228ded17
ttachPhotoActivity.java
ontactDetailActivity.java
hotoSelectionActivity.java
970454497bcc42e4d9dc5395b2c8ca2f95667893 28-Nov-2011 Katherine Kuan <katherinekuan@google.com> Don't use deprecated PagerAdapter methods

Bug: 5658993
Change-Id: I20b8fee09c5ea72de8e01d0ac4c66dfbef733951
eopleActivity.java
ecd392b81d65a5dd5511b2f96bbedfb5b8157ae7 12-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> SearchView on Join

We can have the small feature with some tweaks.

Right now ContctEntryListFragment is assuming that the first
directory in the fragment is the default directory, while on Join
screen the first one is "suggested contacts" directory. This change
modifies the implementation so that the fragment remove all directories
after the "default" directory intsead.

Also remove the code using MatrixCursor since we don't rely on it
anymore. This improves the performance of Join screen.

Change-Id: Ic232e09fb65bf72d19b069ce047e5a32dcb9f4ad
ontactSelectionActivity.java
oinContactActivity.java
2240ac03b18a42bcf4ecb95def4c515f5985c1b5 23-Nov-2011 Josh Gargus <jjosh@google.com> Merge "Fix visual glitch when no contacts/groups"
7c30236364c71618da4b266a61a77e9711aa23f1 22-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add "import/export" and "account" option to Phone UI

Bug: 5650226
Change-Id: I35f2fab7cf46f54b71dbc0f0ff8f1e6d32b2b272
ialtactsActivity.java
73bf0d21c5584f67d066a29b0812da60772c646a 22-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Expose "new contact" to split action bar"
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
eopleActivity.java
76b4deef35c7d00a75798323f92460ea54e4993e 21-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Expose "new contact" to split action bar

Because CallLog does something costly on onVisibilityChanged(),
the call should be done after the animation, while
onVisibilityChanged() for phone all tab should be called immediately
so that users can see the icon just after their swipe (same behavior
as People UI)

Also remove "new contact" menu from phone search. Now that we have
the 3rd tab containing all the contacts, we don't need the menu
on "search" screen (same behavior as Phone UI)

Remove invalidateOptionsMenu() call inside
CallLog#onVisibilityChanged() since the method should be called
by its parent Activity when needed.

Bug: 5650137
Change-Id: Ia6f377a720dac9aa4e3ae9e54394b9b2606bb2cf
ialtactsActivity.java
7cdbe5c0b11acb6128974f593b4ede86b01f95b2 22-Nov-2011 Katherine Kuan <katherinekuan@google.com> Remove titles in simple confirmation dialogs

Bug: 5476234
Change-Id: I7970c3378860e3521b55d248968a4710d8161c04
howOrCreateActivity.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
eopleActivity.java
01991a71e2c11fdcd125fb85490191a89b07e55d 21-Nov-2011 Katherine Kuan <katherinekuan@google.com> am 477366ac: Allow import from SIM when there are no contacts

* commit '477366ac89828fcf85a94d63b76cda754a85d2ce':
Allow import from SIM when there are no contacts
477366ac89828fcf85a94d63b76cda754a85d2ce 18-Nov-2011 Katherine Kuan <katherinekuan@google.com> Allow import from SIM when there are no contacts

Bug: 5639533

Change-Id: I96903021d6ff04b9bb007204284475bb37960f9e
eopleActivity.java
e1c007eeb40a40b21e60bb4c8a42e0affd9fcdd1 23-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make Phone UI show Sip addresse

Must be after I4729c87ecd11296599ed0313e8ad1f5aeabbd32b and
Ifbbfe9df3b9a560666d35ca78aeb07d513963195.

Bug: 5039627
Change-Id: If43911d5b828da6360b38bf386ab7ba52d7ca00a
ialtactsActivity.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
eopleActivity.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
eopleActivity.java
252159e0bb3ded376d34f67afd41da68356767e1 10-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix NPE in PeopleActivity with returning a null intent from editor" into ics-mr1
b2bc716bd811f1e76c299e83500820e54830b454 10-Nov-2011 Makoto Onuki <omakoto@google.com> Merge "Phone: Delay-create search fragment" into ics-mr1
d0cf37c2c9c5a1ff888bc3e853f6115467dae5b9 08-Nov-2011 Makoto Onuki <omakoto@google.com> Phone: Delay-create search fragment

In order to take full advantage of the new "fragment deferred start" feature.
Now we create the search fragment in the first onLayout call, which is after
all other fragments are created.

Bug 5550646

Change-Id: I2e3710fb4ea6ff4301309538dd58bdef5811bc8b
ialtactsActivity.java
e21b1670fc902f27a5580ac4bedd0d68a53a6c2f 09-Nov-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in PeopleActivity with returning a null intent from editor

Bug: 5592500
Change-Id: Iabbdc4c0422a58cfc557cbcd84a92d33c1b01ff6
ontactEditorActivity.java
82ddd2600f8c695f0f13349a4905d083b3a3b57f 09-Nov-2011 Daniel Lehmann <lehmannd@google.com> Merge "Disable search in legacy pickers for phone and contact" into ics-mr1
5c3a0a1440625fab859aab420cb08bc0276358a0 08-Nov-2011 Katherine Kuan <katherinekuan@google.com> Fix wrong contact being selected after editing (after a search)

- The problem is that after finding a contact via search
and editing that contact, we launch a VIEW intent to view
the contact. Then sometimes, that contact is not in the
current contact filter, so we may have to enter single contact
mode.

To avoid that, go back to the HC functionality of preserving
search mode. Now after editing, we return to the PeopleActivity
and preserve search mode if that's where we came from.
This was the relevant change from early ICS that is being
partially reverted:
Ibbaaccb03ac7961784dfa7b15c246b8d6f6489a4

The reason it was changed was to support viewing the contact
after editing a contact when the edit request came from a 3rd
party app. This still works with this change by adding
an intent extra in ContactEditorActivity.

- After the editing is done, only launch the VIEW intent
for the contact if we didn't come from the detail page for
that contact (on phone and tablet). We can just finish
the editor activity. This saves some time with setup / configuring
fragments because we don't have to resolve the VIEW intent
(i.e. On tablet, previously the VIEW intent launched the
ContactDetailActivity --> redirected to PeopleActivity -->
resolved intent to show the right contact.
Now we can just receive the onActivityResult and refresh
the page).

- Renamed ContactDetailActivity intent key to be consistent

Bug: 5542197
Change-Id: Ieaa9c147beeaa7c40f34fc1689858642b47fdbf9
ctionBarAdapter.java
ontactDetailActivity.java
ontactEditorActivity.java
roupDetailActivity.java
eopleActivity.java
d1af8adb1acc56f6c1709d38efe69be9497356a9 09-Nov-2011 Daniel Lehmann <lehmannd@google.com> Disable search in legacy pickers for phone and contact

- Also fixes the scrollbar in the phone legacy picker

Bug:5570791

Change-Id: I983fe441f455906cf2f610c8209d72c90a720f1b
ontactSelectionActivity.java
97f4d04fa102429260be8340bf6a01d1696867e0 07-Nov-2011 Adam Powell <adamp@google.com> Merge "Follow framework API changes." into ics-mr1
9bd59f27cc5ad318b4bb78fc0576604e57f0b7a6 07-Nov-2011 Adam Powell <adamp@google.com> Follow framework API changes.

The Fragment#setStartDeferred method has been removed in favor of the
new setUserVisibleHint method. Update Contacts code that was using the
previous API in progress.

Change-Id: I9800a2c01f5343e4e732fb4649004f492c28ee97
ialtactsActivity.java
eopleActivity.java
004a30319057436182d98e530fb424f185cd2ade 05-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Stop showing soft IME in picker screens

Bug: 5525571
Change-Id: Ie63ceb298a0a28be487444a8f3405f6e34ad110d
ontactSelectionActivity.java
f745c69c14eca19d9bb641ddf5f5af6209f05716 02-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Fix possible NPE on People" into ics-mr1
b2a23189be94c824eadae9d0f7c5d58a7ee12fd0 02-Nov-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix possible NPE on People

mContactListFilterController may become null if People app just
redirects Intents to somewhere else (like contacts detail page).

Bug: 5557277
Change-Id: I3b1859ec3cd8f85a9ced0c926f7335772b03f70c
eopleActivity.java
18e2b6f48045eebd802ff560420e1ad19b2e2da8 01-Nov-2011 Katherine Kuan <katherinekuan@google.com> Check activity state before showing phone disambig dialog

- This is a monkey bug on Crespo that happens often. The
monkey is likely tapping on a favorite contact in the Phone
app, which is trying to either dial the contact or
show a disambiguation dialog if the contact has multiple
phone numbers. There's an IllegalStateException with trying
to commit the dialog fragment transaction because the
saved state has already been called.

- After a PhoneNumberInteraction is started, a CursorLoader
is started, and when that returns, potentially we try to
commit a FragmentTransaction (showing the DialogFragment).

At this point, the activity may be long gone, so we need to
know if the activity has saved state or not. Hence,
we add a new base activity class (TransactionSafeActivity)
that keeps track of this information for us.

- The PhoneNumberInteractionTests still rely on passing in
a context to PhoneNumberInteraction (in order to check
that the queries and subsequent activities are correct),
but we typecast the static methods the app uses to
create these PhoneNumberInteraction objects.

Bug: 5132436
Change-Id: Id9d887bd55235b07133568a38d4922dc7fce24a7
ialtactsActivity.java
ransactionSafeActivity.java
f321386bd77e0bfdf659275540b2edd0442090c9 01-Nov-2011 Makoto Onuki <omakoto@google.com> Merge "Use new "deferred fragments" feature on People" into ics-mr1
fffd0feda20da3a58ebc5cf7f617c6f513e4564e 01-Nov-2011 Katherine Kuan <katherinekuan@google.com> Merge "Launch quick contacts after selecting frequent contact on tablet" into ics-mr1
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
eopleActivity.java
557984daeba92a4e36d6cd0eedf2fba0abfb24a1 29-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Defer phone search fragment" into ics-mr1
f03d074b31e33c48025e636862c9ea9d7c7da09c 29-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Delay SearchView preparation" into ics-mr1
36da3e799e4612edeaf6bf1bfea0800621c9b253 29-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Defer phone search fragment

Bug: 5534082
Change-Id: I2f604c63af8221c363a0ea8425d57f41e3a99c75
ialtactsActivity.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
eopleActivity.java
5a30a6d9aec74bf28b389b787ca5809bcb89822d 28-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Delay SearchView preparation

Bug: 5530471
Change-Id: I1fe143c3a32b75f0e1e313f403db7564be76ac14
ialtactsActivity.java
594dc44c34396fc4a3acbe9bed836648b0ad6b09 27-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix tablet picker layout.

Less risky fixes only. Bigger topics should be covered later.

- Make "Create New Contact" button look like bottom action bar
- Use blue color for join section header
- Fix misc padding

Bug: 5454797
Change-Id: I18069f5a4077a6625a64c8f9812d25092904a0e6
ontactSelectionActivity.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
eopleActivity.java
f36cb574ce36173d340304fa1164d530001db466 23-Oct-2011 Flavio Lerda <flerda@google.com> Merge "Remove CallLogActivity."
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
ialtactsActivity.java
eopleActivity.java
1c6f3817e9e889664d143ed5ea5147aca595dd21 18-Oct-2011 Flavio Lerda <flerda@google.com> Remove CallLogActivity.

CallLogActivity was only used by tests. Instead, extend
FragmentTestActivity to handle loading of an arbitrary fragment into it,
so that we can test the CallLogFragment within it.

So far, FragmentTestActivity was only used with a UI-less fragment,
which therefore did not need a placeholder for the fragment.

Bug: 5286366
Change-Id: I939d6fb212621345b8a1ba4ec1a3b1c56909ce50
allLogActivity.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
ctionBarAdapter.java
ontactSelectionActivity.java
ialtactsActivity.java
eopleActivity.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
ctionBarAdapter.java
eopleActivity.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
ialtactsActivity.java
eopleActivity.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
eopleActivity.java
a8729cdf778f9ca927b06afde685f7ac6b8c917f 12-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Introduce ActionBar in picker screens

This change focuses on phone screens. Tablet UI fix will be
done later.

- show SearchView on the action bar
- show "create new contact" as a menu on the split action bar
- keep "create new contact" button for tablet support.
- a few visual tweaks for phone

Also this removes "show all contacts" item in JoinContactActivity.
Now all contacts are shown by default.

Bug: 5394377
Change-Id: I82e59b374888d522c81cd4957cb3fde286b419f6
ontactSelectionActivity.java
oinContactActivity.java
142c471d39fe4e566c7051428b01cc3ded74d749 13-Oct-2011 Makoto Onuki <omakoto@google.com> Merge "Only show "add connection" button if relevant" into ics-mr0
9679e44ab946e3c822b7a733f1a998a5cbbfc2b5 13-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use "all contacts" icon for favorite tab

Bug: 5443416
Change-Id: Ibbad768ae88341ea1d0ef5d26285a2130bbc25d2
ialtactsActivity.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
ontactDetailActivity.java
eopleActivity.java
7e8372e5fe33ff7252c79b7de7d55b4885074c8c 12-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show previous tab after phone call in phone search

Previously we've shown calllog when users called from
phone search screen. Now this change navigates users to
each tab (phone, calllog, favorite) when phone is made
from phone search.

TESTED:
incoming calls
-> go back to calllog

outgoing calls
- make a phone call from dialpad -> go back to dialpad
- make a phone call from favorite -> go back to favorite
- make a phone call from calllog -> go to calllog
- make a phone call from call detail -> go to calllog
- make a phone call from People UI -> go to calllog
- make a phone call from dialpad and launch Phone UI
again during the phone call -> go to dialpad
(previous commit log says "go to calllog", but it looks
wrong)
- make a phone call from contact card (reached via
phone favorite) -> go to calllog
- make a phone call from dialpad or favorite, bail out the
in-call UI. Have the recipient hang up the call.
Then have an incoming call again. Hang up the second phone
call.
-> go to calllog

(new)
- make a phone call from search UI launched from dialpad
-> go to dialpad
- make a phone call from search UI launched from favorite
-> go to favorite

Bug: 5360106
Change-Id: I58f0e7160896bed5eae7d2bd8c7739712d6c681c
ialtactsActivity.java
5db4f136163675105813900b1f3f7da48bde97b6 10-Oct-2011 Daisuke Miyakawa <dmiyakawa@google.com> [Phone] Fix layout for phone favorite screen

- Have additional padding between headers
- Use blue color for filter header in phone favorite
- Have bigger texts for A-Z section header
- Have photos on left in "phone search" screen
- Add "New Contacts" menu in favorite screen

Because LayoutFilter isn't ready on Fragment#onAttach(),
we need to have initAdapters() on onCreateView(), which looks
strange. However it will need much work to move every layout
logic to PhoneFavoriteMergedAdapter, let's just have a TODO
for that.

Bug: 5432231
Change-Id: I19b0849a6ec1fd38bec259859753dab13b88cc12
ialtactsActivity.java
9b9104874ec0680ac60cb0527d127fc1c34bdb7e 30-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> [Phone] New phone favorite tab.

This change introduces yet another fragment for a special
"phone favorite + phone all" screen and uses it as Phone UI's
"Favorite" tab instead of using ContactTileListFragment.

The new fragment merges two adapters into one adapter called
PhoneFavoriteMergedAdapter. To keep layout consistency between
two adapters, the new adapter tweaks original Views on demand,
especially paddings for those Views.

Now that "favorite" screen contains "all phone" section, we should
treat previous "all phone" screen (PhoneNumberPickerFragment) as
"phone search" screen instead. To do that, this change also replaces
"ALL CONTACTS" strings/icons with "search" magnifying glass icons.
IME is now shown up upon the search button click again.

Bug: 5359840
Change-Id: I04cb2433882d74f1e826c02991a5a54c3be993ab
ialtactsActivity.java
33d64bae650e8e0ec45f1ad1f31c759c8a8704be 07-Oct-2011 Daniel Lehmann <lehmannd@google.com> Set type to filter to prevent spell-checker

Bug:5404735
Change-Id: I700a7f4ee7ba6a76d0b016e0a0fb9824c357c1af
eopleActivity.java
52d5545e61a2410df979eff4fc8f9f566b263799 29-Sep-2011 Dave Santoro <dsantoro@google.com> Merge "Avoid showing error if contact removed on save."
17c62974608af9b34908c4a14194d53fd89cca6f 27-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use CALL_ORIGIN flag

CALL_ORIGIN flag allows Phone app know where the phone call
request comes from.

TESTED:
incoming calls
-> go back to calllog

outgoing calls
- make a phone call from dialpad -> go back to dialpad
- make a phone call from favorite -> go back to favorite
- make a phone call from calllog -> go to calllog
- make a phone call from call detail -> go to calllog
- make a phone call from People UI -> go to calllog
- make a phone call from dialpad and launch Phone UI
again during the phone call -> go to calllog
- make a phone call from contact card (reached via
phone favorite) -> go to calllog
- make a phone call from favorite and add another
person to the phone call via in-call ui
-> go back to "favorite" (undetermined behavior actually)
- make a phone call from dialpad or favorite, bail out the
in-call UI. Have the recipient hang up the call.
Then have an incoming call again. Hang up the second phone
call.
-> go to calllog

Must be after I4d5f825f7d5109c6ff8c27b6e53a31ca9e6b832f

Bug: 5360106
Change-Id: I7b88b245e82e96e150937ee53029d397a28a9b2d
ialtactsActivity.java
36d24d7ede42a252c82c4aa783b2231c5e2eea79 26-Sep-2011 Dave Santoro <dsantoro@google.com> Avoid showing error if contact removed on save.

Because removing all data from a local contact can actually cause
the raw contact and contact to be deleted, we need to track that
case so that the caller does not consider the lack of a lookup
URI to be an error.

Also made "Me" header all-caps for no-profile case.

Bug 5346614
Bug 5354364

Change-Id: If1e1d67da9c14eb8782be05b2e39ece19b5ac026
ontactEditorActivity.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
ontactEditorAccountsChangedActivity.java
eopleActivity.java
0353a24d97cc0266eb9bf0ee6c7d6821aeb1896e 23-Sep-2011 Katherine Kuan <katherinekuan@google.com> New editor flow (for master)

- Added dialog-themed activity that pops up on new contact creation
in 3 cases with a variation of message when there are:
* 0 writable accounts on the device
* 1 writable account
* 2+ writable accounts

- The dialog is displayed whenever a new account is added
to the device or the default account has been removed

- Once an account selection has been made by the user,
we store it in SharedPreferences using ContactEditorUtils

- Slight restyling of the account list adapter

Bug: 5355671

Original CL: Ib3343a5aea972b366a9df41b9419ad9561c2243d

Change-Id: I46f4c5687a5b6eaa68b55a568f0d737ad80dfc5c
ontactEditorAccountsChangedActivity.java
2b3ee0f34801444c7d775ce747125459f69712bb 22-Sep-2011 Daniel Lehmann <lehmannd@google.com> Make third party sync adapters editable

- Already merged in factory rom branch under
https://android-git.corp.google.com/g/#/c/136996/
but marked as do not merge, so we submit it
here manually

Bug:3093621

Change-Id: If3bb34f7d29bea4bd873342232bea3c1a77bcd2a
onfirmAddDetailActivity.java
15586e733fe0500ffe336fcdc6eabdb35f996402 21-Sep-2011 Erik <epastern@google.com> b/5335419 Go up one level at a time

Change-Id: I5a6597896588a2ff8372b8b3877dc6f00abc074c
roupDetailActivity.java
28283074267fd565246b5561454ed385e5cb51f7 16-Sep-2011 Michael Jurka <mikejurka@google.com> Make the dialpad more responsive

Bug # 5339633

Change-Id: I090d8fe2b7f6eb786cf892615b43d9e5c4e34ccb
ialtactsViewPager.java
c5aa9ab7d6959a2eb911d7d1e92f027135ee6617 16-Sep-2011 Isaac Katzenelson <isaack@android.com> Merge "Fixed missing "No Contacts" message"
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
eopleActivity.java
e66b8d7609c5505dfdda7483ef1cfc18f6d074c7 15-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "New avatars"
ecfc26c3f9495f1a4efed69a1582ff2b0deb2c71 13-Sep-2011 Daniel Lehmann <lehmannd@google.com> New avatars

Bug:5074147

Change-Id: I583d22c63a7b617567c523efeed292ae1e2be7e4
ialtactsActivity.java
3dbae9a50def080a34d6afcca916d70aab0bdf75 15-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "[Phone] Don't use custom shared preferences"
9ed91a9539b6f685b63784cdc84ac41ad14fd988 13-Sep-2011 Makoto Onuki <omakoto@google.com> [Phone] Don't use custom shared preferences

Just use the app-wide default shared preferences, so that it'll read from the
cache rather than the filesystem.
The default shared preferences should be preloaded by
ContactsApplication.onCreate using a worker thread when Dialtacts needs it.

It was actually a strict mode violation causing something like > 100ms penalty,
but I assumed it was beacuse it was the first read and unavoidable.
I hadn't realized dialtacts had its own preferences.

I also fixed the social widget settings. Existing settings will all be
migrated.

Also fixed the log spew from SocialWidgetSettings.

Bug 5296990

Change-Id: Idb8e393ebfd6c77b14906ea4ee26dfd032da2770
ialtactsActivity.java
828ae4c929d3c7fe36a07a23f7da7998fd4bc8ab 14-Sep-2011 Katherine Kuan <katherinekuan@google.com> Merge "Use standardized no account screen on first launch"
fcfc522887202cbda6e7681ae4ec8f5252f23bac 13-Sep-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE with WeakReference to ProgressDialog in ConfirmAddDetailActivity

Bug: 5283463
Change-Id: I17a896ecbb8fb8b3f126ca917cd6499cf266d674
onfirmAddDetailActivity.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
eopleActivity.java
c90f95e63684363d10ffe5ef8f08f2159fb5bfc0 08-Sep-2011 Dave Santoro <dsantoro@google.com> Fix re-parenting for modifications to the profile.

Bug 5274218

Change-Id: Icbeed88032dcdab643aaa85216fb4363473cc80b
onfirmAddDetailActivity.java
413119e9d2e6170383bfe760d2658a34e382e201 08-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Replace tab texts with icons"
1ff189a390ce5011f729637baf248646560c1bc6 08-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Replace tab texts with icons

Also replaces existing "contact card" icons with ":D"

Bug: 5274359
Change-Id: I04b77bfdab17f4a2468e8ecde88fab7477c11e3f
ctionBarAdapter.java
320b310f646b2c542c6e1ea0c768f5c38539911e 08-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Make sure only People and Dialtacts responds to search key"
7a330308196e8f75d6ec5e449a0dd28813cfc373 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make filter header clickable"
d04002d07723781f611cbc4fd13345100c3bab87 07-Sep-2011 Makoto Onuki <omakoto@google.com> Merge "Phone: don't crash when unsupported filter is set"
124e5cbea97366d4db1fa5ffe59efedd5913aded 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make filter header clickable

Bug: 5160689
Change-Id: If2f9435bf0090f8bfc138a45fe2c9c04eec08091
ialtactsActivity.java
eopleActivity.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
eopleActivity.java
d0d5eaae0052140a1e993ec63c930b0309e36e3b 07-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use setContentDescription for tabs

Bug: 5249855
Change-Id: Idb0fa5c10713fedf87ee157166734b642514f33d
ialtactsActivity.java
d6272412cdf3fdda90e835ec5b0cd1e15a0c97c9 06-Sep-2011 Daisuke Miyakawa <dmiyakawa@google.com> Let tts read the contact's name on detail screen show up

Bug: 5255060
Change-Id: I222a7dc057102504c01600572c680162ee30e748
ontactDetailActivity.java
8d5abcb71ed4d9671b9066b9e3ffaf5372d2b22c 03-Sep-2011 Makoto Onuki <omakoto@google.com> Make sure only People and Dialtacts responds to search key

- Remove the default search activity meta-data from manifest, so the old-style
search dialog won't show up when the serach key is pressed. It was for
pre-HC style search UI. Now the search key only works on people and dialtacts,
which implement either startSearch or onSearchRequested.

- Removed all the startSearch/onSearchRequested methods which are now
unnecessary.

- Also removed startSearch() in some fragmets. They're not used.

- Tested some viewer/editor/picker activities, and also both dialtacts and
people, the launcher search box, and the SEARCH intent, on both the phone
and the tablet (except dialtacts on tablet). All looking good.

Bug 5230790

Change-Id: If269df74ae218707daa5b7039439c6fea2575e8d
allLogActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
roupDetailActivity.java
roupEditorActivity.java
oinContactActivity.java
howOrCreateActivity.java
e491b1f517f26b059778bd997f03f4f33fc8c15e 06-Sep-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in ConfirmAddDetailActivity

- Null EntityDeltaList is being passed to EntityModifier.trimEmpty()
causing a NPE

Bug: 5241766
Change-Id: I57d884f59635bf68100607394ba985f0a29e13dc
onfirmAddDetailActivity.java
c3429d2a5b95f8717ee7d235841176b8a1567141 28-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Add log to measure startup performance"
49627cc3f606085d001397ebba93dcb52bf67a5c 28-Aug-2011 Makoto Onuki <omakoto@google.com> Add log to measure startup performance

Use this to enable log:

adb shell setprop log.tag.ContactsPerf VERBOSE

Bug 5195464

Change-Id: I76dc99343763532ebf18f41b75628c4d0c468e9d
eopleActivity.java
37bddc2fa266fa0378fcd85ac5047b1fb0af2dc0 10-Jul-2011 Katherine Kuan <katherinekuan@google.com> Add contact detail to existing contact

- Works for phone numbers and email addresses, otherwise route
intent to full contact editor

- Contact card icon / "OK" button first saves the change and then goes
to the contact card

- Port over from GB branch, updated references to non-existent classes,
added new layout to look more like QuickContacts/contact tile,
applied to ContactSelectionActivity instead of contacts list,
added support for non-editable contacts, fix layout for phone
landscape and tablet, inflate the right editor layout based on the
DataKind instead of emedding a TextFieldEditorView
directly inside the XML, use AsyncTask instead of WeakAsyncTask

- Fixed NonPhoneActivity intent flags so that the activity results
will work correctly (will allow contact card to be launched if user
requested to do so and the cancel button in the ConfirmAddDetailActivity
returns the user to the picker)

- Fixed activity theme for NonPhoneActivity to not show a title bar

- For a contact made up of multiple raw contacts, find the first
editable contact to add it to (instead of always picking the first one
which could be non-editable).

Bug: 4295003
Change-Id: I111eaf6bbc78861c2b6a27c93086d00697869ebb
onfirmAddDetailActivity.java
ontactSelectionActivity.java
onPhoneActivity.java
682417481cf5483c5eb87cb5e52d17badc1cb138 27-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Remove "new" label from new group and new contact buttons on tablet"
80243fd6a57c77c218dd5de957358cdb6ffba009 26-Aug-2011 Isaac Katzenelson <isaack@android.com> Remove search from join activity

bug: 5199310 No way to search and join two contacts

Removed search code and disabled system search button.

Change-Id: Iefdfd6dbe3ac5744abefa33a4cd4e1ca2195152f
oinContactActivity.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
eopleActivity.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
ialtactsActivity.java
eopleActivity.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
ontactSelectionActivity.java
ialtactsActivity.java
oinContactActivity.java
onPhoneActivity.java
eopleActivity.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
ontactDetailActivity.java
eopleActivity.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
eopleActivity.java
1edabe9a4d563f620cd74d5fb1f1ea197c18129b 24-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show empty detail screen (on tablet) on nothing loaded"
0bf7cd0124fa6f74fe3d64619740420ded86dcce 23-Aug-2011 Katherine Kuan <katherinekuan@google.com> Asset swap and make SearchView use themed context

- Make SearchView in action bar in People app use action bar
themed context so the query text and icons are white instead
of gray. Create a custom theme to make the hint text lighter
than the default DarkActionBar hint text color (as directed
by UX and framework)

- Replace panel_message asset (background of contact editor on
tablet and contact unavailable fragment)

- Replace the panel_content asset (background of group detail
fragment)

Bug: 5127109
Bug: 5199518
Change-Id: Icae927e1d158241140d18028d38cac25dbf282fc
ctionBarAdapter.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
eopleActivity.java
6beadaeb0f159a150f62471a5c5f0b0463e46733 22-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show IME when search button is pressed.

Bug: 5189462
Change-Id: Ief5059ef9e28d28ac5c0117222e09643ea32bd69
ialtactsActivity.java
f70053496b23f7e2163abc8c56279de36b826584 19-Aug-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix empty state layouts"
2c1ba625efd310747bed10a180716ca82e09ef4f 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "add contact capability for Phone UI"
18f5f79fa3991a864a17596fe14a04045a7540eb 19-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> add contact capability for Phone UI

Also make edit screen exit to previous screen so that Phone UI
and 3rd applications won't confuse users with INSERT Intent.

TESTED:
* phones with/without a hard menu key
- Phone UI should have just one "create contact" menu on the right
place in the search mode.
- Phone UI should not show the menu outside the search mode.

- People UI should correctly navigate users using add/edit capability

* tablet
- People UI should correctly navigate users using add/edit capability

Bug: 5185218
Change-Id: Id8360aeb6ef99ef0d3ab2902e97c0bbe8f590c17
ontactEditorActivity.java
ialtactsActivity.java
68ca6aa964ae356354615a3bbc19ea99b4597a4b 18-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Hide unnecessary menus when launched via DIAL intent

ViewPager#getCurrentItem() returns "tabIndex" after
ViewPager#setCurrentItem(tabIndex, false), so we need to preserve
the previous value.

TESTED (using phone devices with/without a hard menu key)
- swipe actions do not corrupt menus
- tab clicks do not corrupt menus
- DIAL intent corretly shows/hides menus
- Menus aren't corrupted in Dialpad Chooser

Bug: 5118757
Change-Id: Id857a2d7ac5a007db65b20f80270a07ea527ba7f
ialtactsActivity.java
a1bbf6139bb1e0d30078fe6c99effaf45f7416ef 16-Aug-2011 Isaac Katzenelson <isaack@android.com> Fix empty state layouts

Bug: 5074806 Fix empty state layouts
Bug: 5109507 During loading group, we show "no groups"
instead of "loading groups"

- Changed the layout of contacts_unavailable_fragment to Marco's specs.
- Added a secondary message for empty state.
- Aligned layouts of empty state of each specific fragment to match the
full empty state.
- Removed "No Groups" message when group list fragment is loading the
group list

Change-Id: I5cea254e5892955906127599374dc706d2aca91b
eopleActivity.java
94f216b210f29abe7fdb96a18a1718e91b628f54 18-Aug-2011 Makoto Onuki <omakoto@google.com> Group editor: Just close activity when there's no accounts

Rather than crashing.

Bug 5035734

Change-Id: I433049de1a254213beb83501fdae74907f11a4cf
roupEditorActivity.java
91febe72abe39c852b9f7f0120da14ff66c13197 18-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Allow phone contact card to switch b/t having/not having social updates"
a248f3c12dfc62acc62bea00cfd2b72d59a61f4c 17-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Fix for "Can not perform this action after onSaveInstanceState""
b59500deb3a7cb7c681b1196ba9ccb57e4e2d83e 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Get rid of an unnecessary member variable

Bug: 5131136
Change-Id: I7e02df8ea7ce553efd919cc41a1da97343c5605f
ialtactsActivity.java
ad3e9d878ac1412568151182ebe94c41c2a91d37 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show filter menu on the right of SearchView when no menu button

TESTED:
- filter option menu shows up on the right side of SearchView
instead of being shown as an overflow menu when the device
doesn't have a hard menu button
- filter option menu keeps shown as one of menus when
the device has a hard menu button

Bug: 5131136
Change-Id: Ice630533cfd4fb13383958489549236f9229053d
ialtactsActivity.java
51f1071a1dc91dace0de73be1c5fbba4f091f054 16-Aug-2011 Katherine Kuan <katherinekuan@google.com> Allow phone contact card to switch b/t having/not having social updates

- Make phone portrait and landscape layouts have all views necessary
to switch between showing/hiding social updates. Disable swipe
if only the detail fragment is showing.

- Make ContactDetailActivity use ContactDetailLayoutController to
reduce code duplication, add another state for fragment carousel
in ContactDetailLayoutController

- Make fragment widths in fragment carousel configurable based
on screen width instead of fixed dip value

- Make setAlphaLayerValue() save the alpha value if the view
isn't ready yet (otherwise it's a no-op and the caller must
call it setAlphaLayerValue again when the view is attached) -->
this allows us to remove the code to set fragments in the
fragment carousel every time the data is reloaded

- Remove enableAlphaLayer() code and just make the alpha layer
view visible in the XML

Bug: 5164029

Change-Id: I8f28ac27d125502a12221f084ce253611e6f78a1
ontactDetailActivity.java
766c5848b68aebc5500f82f998f7fdd9e866677c 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Suppress IME show-up on search mode."
0cd6f7319b11b210147f73d0f34f758a49a26897 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show call settings menu correctly when no hard menu key"
33a3023e9071af540fd5fbb32c6d09cf6234fdd1 16-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show call settings menu correctly when no hard menu key

TESTED:
- call settings is visible on every fragment (phone with hard menu key)
- call settings is visible appropriately (phone without hard menu key)

Bug: 5172892
Change-Id: I1d5c115f4f1ee0bdecf858789f648aa5b05c331c
ialtactsActivity.java
f944adbf961e77c6d22767236efa47cecc3a5db2 17-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Suppress IME show-up on search mode.

- call SearchView#clearFocus()
- prepare the search view on onCreate()

Though SearchView itself tries to suppress IME on its clearFocus(),
ondemand SearchView creation forces IME show-up for some reason
(attaching it to ActionBar might be the cause of the harm).

Just creating the view every time on onCreate() avoids the problem.
It doesn't hurt performance or any other app capability much.

This change also removes some stale code for showing up IME, which
is needless anyway.

Bug: 5104943
Change-Id: I4c542b3d0cdc5287c9285493e8e5ed0ce25cb204
ialtactsActivity.java
f4fbfdd4f283d2143b87bc6319cb13527b4fe8d1 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove DialpadActivity

It is never used anymore. We're using Dial*tacts*Activity for Phone.

Intent with "com.android.phone.action.TOUCH_DIALER" has been used
inside the Activity and has never supported it for external use.
We'll keep the Intent for now, but we won't support correct behavior
for it. Using android.intent.action.DIAL should do what 3rd party
app will want.

TESTED:
- app works as usual with DIAL intent
- all unit tests run correctly
- intent with TOUCH_DIALER introduces Dialpad screen in
DialtactsActivity

Bug: 5160191
Change-Id: I77d38fb3f7b51782fab3fee7b9e732f55ecf4654
ialpadActivity.java
ialtactsActivity.java
8feafa548a86be17e63a12d273989c51de84aa7f 16-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Use custom filter when filter isn't saved"
d4ed72eb6610b1318545741140569a973c4ab452 13-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Use custom filter when filter isn't saved

- includes misc UI fix on tablet. width isn't set
correctly.

TESTED (needs the change above):
- keep contacts visibility after GB to ICS migration
- keep filter option between People and Phone UI
- keep filter option after People/Phone reboot (killing the process)

REMAINING ISSUES:
- Custom filter affects "All contacts" filter.
For example, if the user choose "All contacts" after showing
"Other contacts" using custom filter (in Google directory),
"Other contacts" will be shown (while it sholdn't).
"All contacts" should show contacts inside default_directory,
or at least it shouldn't be affected by previous custom filter
choice.
- Phone filter still shows "Other contacts" (with phones)
unxpectedly, which should be fixed.

Bug: 5153692
Change-Id: I5c8a9a51caaec967af66fd7840e45efe9802f283
ialtactsActivity.java
d58b04f66f5e559ba6f654c36fdd5da15c3f9bc8 16-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "New tab order: GROUPS / ALL / FAVORITES"
2e177304ab03e8521e951b710460906ec49c07d2 15-Aug-2011 Makoto Onuki <omakoto@google.com> Fix for "Can not perform this action after onSaveInstanceState"

We seem to be getting a view pager event after onSaveInstanceState.
Clear the view pager listener in onSaveInstanceState to avoid this,
which is what we do with ActionBarAdapter too.

Bug 5161276

Change-Id: Ic20188c4f6ee0b60c6b6c9ea98709039a68d8073
eopleActivity.java
9d2a74ef7b1817ad0708e41151358f5899aeeb67 15-Aug-2011 Makoto Onuki <omakoto@google.com> New tab order: GROUPS / ALL / FAVORITES

To be consistent with the phone app.

Bug 5161134

Change-Id: Ieb50b78d140ca5404620c9ad03fb31433b7b666d
ctionBarAdapter.java
231a6fb24a67f054641e7c7d21c487915d35f4ac 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show the call option menu in Favorite tab too.

Now that all three tabs show that, we don't need to manage it
on each Fragment.

Bug: 5149475
Change-Id: I16e1fa2bfeb4bffa6b9e37e2583da3614fa367da
ialtactsActivity.java
9d58f279befb457bdcb302085b62cd4e3279c777 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Call invalidateOptionMenu() on onNewIntent()"
7c090532c3114e44277f9f5bc9df6937a19bcb4a 15-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Avoid NPE on hideInputMethod()"
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
roupDetailActivity.java
eopleActivity.java
a07abf7f425f2da7487d58851c10c30c03ebda91 14-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Call invalidateOptionMenu() on onNewIntent()

CALL intent is often used by the other apps or CallLog screen to request
dialpad screen (DialpadFragment), at which we should clean up previous menu
states prepared by CallLog or Favorites tabs.

Bug: 5148698
Change-Id: I4cee5a3abc92805353bf0a53fe68c062124cbac3
ialtactsActivity.java
3b0c7db46d43dba4782ef9e04a2860fbcf730baf 14-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Avoid NPE on hideInputMethod()

It happens when there's no focused view.

Bug: 5157908
Change-Id: I82e7d69b71f2e23274696a1d1a582f503ca80fcc
ialtactsActivity.java
f63c770f27ad62000cff2744bda831f3717dd5e7 12-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "New search behavior for empty query"
c36c75318f8e47679d5281b7de2a2b5295eede50 12-Aug-2011 Flavio Lerda <flerda@google.com> Only call onVisibilityChanged on creation for the current tab.

When the fragment is initially attached, there is a call to
onVisibilityChanged, so that the fragment knows whether it is shown or
not.

Currently, we are calling this with true or false for all tabs (actually
only the DialpadFragment and CallLogFragment, as they implement the
listener interface). However, we do not need to be notified that we are
not visible if we are just being created.

This is needed because otherwise we will assume we were being dismissed
while in reality we were never shown.

Bug: 5157085
Change-Id: I37be7799b0e473cc2eabefef75a56335420979a3
ialtactsActivity.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
ctionBarAdapter.java
eopleActivity.java
06c3ca10faa9eeb96596b5bb724cc190bce81a28 11-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Remove STOPSHIP regarding hiding options menu"
be994059c89c99f9b97c7e9c3721f3280b958a81 11-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Don't show overflow menu options in search mode on phone"
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
eopleActivity.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
eopleActivity.java
b8b069959ed4ca88517ab033f8e89a9e4ab05dca 10-Aug-2011 Katherine Kuan <katherinekuan@google.com> Contact card fixes

- Move call to TabScrollManager until tab carousel is initialized
(this will allow contact with social updates to scroll + pin header)
- Bring back overlay / touch interceptor on phone landscape
so updates fragment will be dimmed out when it's not the current page
- Remove windowContentOverlay=null on contact detail activity
so the shadow appears below action bar

Bug: 5144095

Change-Id: I206e83906b89c5de0d8860e1bfc89c31b4f638b7
ontactDetailActivity.java
0133589fec89150313918576ab5e4f569cb7de5d 10-Aug-2011 Makoto Onuki <omakoto@google.com> Merge "Makke DONE button close activity on readonly group editor"
ad8e14065996cf8c0f5e0d6bc90c7fa334fc227f 10-Aug-2011 Makoto Onuki <omakoto@google.com> Makke DONE button close activity on readonly group editor

Bug 5142181

Change-Id: I5b300b150113b77800de698dbb7bdd40c35b15f4
roupEditorActivity.java
bec0e12648b7c90aab9eda5b2837faca2493e5c3 10-Aug-2011 Makoto Onuki <omakoto@google.com> Remove unused callback

Bug 5143491

Change-Id: I20b82551329f1beb05dc4039cf0d501fe9a9e676
ontactEditorActivity.java
roupEditorActivity.java
f81b6d9ba129f0220de93aa9a7426547889755c3 09-Aug-2011 Makoto Onuki <omakoto@google.com> Group editor: Handle rotation correctly

- Properly save/restore fragment state
- Don't close cursors loaded by cursor loader.
They are retained through orientation changes. Closing them manually
causes accessing closed cursors after screen rotation.

Bug 5075387
Bug 5136936

Change-Id: I7722d90e5a5b52af1666a69bc56d1df27c4de2a0
roupEditorActivity.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
eopleActivity.java
c8045923f2078bffc57ace187b7f01e708050ecd 08-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Fix back button on group editor"
cce61178a881b20f69b0249599a792d7dacef7ce 08-Aug-2011 Adam Powell <adamp@google.com> Possible low-fruit optimization for DialtactsActivity.

Reuse generated fragments for the ViewPager once created.

Change-Id: Ic3a2b421814fc576c8bc9d51e95697208667df4e
ialtactsActivity.java
d25d46b30ae006a17a68906e2a774a9691b5f9db 08-Aug-2011 Katherine Kuan <katherinekuan@google.com> Fix back button on group editor

Bug: 5121656
Change-Id: I78cdbf2cff82cb510539c25716767674f5bade0a
roupEditorActivity.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
ialtactsActivity.java
eopleActivity.java
8167b14342c4a1e1d1f336470aa3a9be45cb38d3 05-Aug-2011 Katherine Kuan <katherinekuan@google.com> Merge "Attach listener to allow clicks to be handled on contact details"
6befd64143f0c78a768c3fc79151e40a747e391d 05-Aug-2011 Katherine Kuan <katherinekuan@google.com> Attach listener to allow clicks to be handled on contact details

- For phone, contact with no social updates
- We don't hook up the listener for the contact detail fragment
if it's a contact with no social updates.

Bug: 5123726

Change-Id: If051b909c7c9d372eda5c0612f1cb86caafa65f6
ontactDetailActivity.java
9def68a878226e0d9fc49701a7f0c63a24219283 05-Aug-2011 Flavio Lerda <flerda@google.com> Extract the functionality for scrolling the tab carousel.

This creates a TabCarouselScrollManager which handles scrolling of
carousel tabs up when the user scrolls one of the two list views.

This extracts a common copy in preparation for changing it to handle the
switching between scrolled tabs.

Bug: 5123933
Change-Id: I8741140b4770173ca33ea5a9baddb7862c5cf7f5
ontactDetailActivity.java
22cb663a251af60bc6beeb1954568c8e6a4c34e9 03-Aug-2011 Flavio Lerda <flerda@google.com> Support scrolling of Updates tab.

This commit changes the Updates tab to use a ListView for its items. The
ListView has an extra header item that overlaps with the carousel tab
(if present), and implements the scrolling which hides part of the
carousel (excluding the tab itself).

The fragment now basically contains only a list view, which will store
all the items, and an optional title (I need to check if that's actually
needed, but for now it is there).

The extra header is implemented with a layout: for those configurations
where there is a carousel, the header contains a placeholder which is
the same size as the carousel; for those configurations where there is
no carousel, the header will be an empty FrameLayout (but in those same
cases, there is a header at the top of the list in the fragment's
layout).

This commit does not take care of making the scrolling work across the
two tabs, e.g., when switching between tabs. I will address those issues
in a follow-up.

Bug: 5119353
Change-Id: I0eb6dcc06d624991ab1f5f8fe1197337ba03286b
ontactDetailActivity.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
ontactDetailActivity.java
eopleActivity.java
db0d8669cd1ffaa45827edb65b2b0eecb27561f5 03-Aug-2011 Katherine Kuan <katherinekuan@google.com> Reuse fragments when rotating contact card on phone

- Part 1 of refactoring contact card fragment code,
Part 2 will be refactoring the tablet code to fix
bug 5082871

- ContactDetailActivity should always have non-null
fragments after onCreate() (either retrieved from
Fragment Manager or created dynamically)

- New view pager adapter that returns views that contain
existing fragments (instead of generating new fragments)

- The main reason for these changes is that when we
create fragments dynamically (necessary for the ViewPager
otherwise the fragment from XML will already have a parent),
the view ID will be the pager view ID. When we rotate,
the fragments are already defined in XML for the fragment
carousel and already have different view IDs, so it won't
restore properly. We can't put the pager view ID in the
fragment carousel layout, otherwise the ContactDetailActivity
will try to cast it to a ViewPager. Alternatively, if we make
both layouts rely on dynamically created fragments, the problem
becomes the fact that once fragments are added to the fragment manager,
they cannot be retrieved and added again to a different parent if there's a
different layout (exception is thrown). Thus, the solution is to have
the same parent container in both phone portrait and landscape layouts.

- Also it is unclear what was happening to the fragments on
rotation (they weren't being restored but weren't being removed
from the FragmentManager). We can remove the hack now that
would store the ViewPager fragment tags in the saved instance bundle
and manually remove those fragments from the FragmentManager after
an orientation change.

- In onCreate() of the ContactDetailActivity, if this is a
restored instance, then inflate the correct layout right away
so the fragments can find the parent containers.

- Save/restore ListView state on rotation

- Save/restore selected tab for contact with social updates

- Clean up computation code for FragmentCarousel by moving it to
onMeasure() method

Bug: 4976082
Bug: 4686406
Bug: 5082871

Change-Id: I7840b1dd1110da4dcc28ebabe3fc2739ff11c2f2
ontactDetailActivity.java
a5ed6df7d3702e648075204b790cf15dcd98a6e6 03-Aug-2011 Daisuke Miyakawa <dmiyakawa@google.com> Hide search view before showing the other views

Bug: 5105154
Change-Id: Id03a7753e77e8d19761dbfc8268a34bb82c97af9
ialtactsActivity.java
b15498a22a1b4dae0fc4be681f7b63d1d7dab1eb 29-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show DialpadChooser correctly.

We need to make DialpadFragment to handle a new Intent
via onNewIntent(). The code was once removed in
I3b2f95b0d34e89bb9665b2014048a634d29e54ce because of possible
NPE. This time we avoid it by just using "if" clause.

Set DialpadChooserAdapter anytime when it is required. Now
Fragment can be reused with onCreateView() (when users' swipe
action), at which the adapter can be available though
the chooser view is recreated.

Modify DialpadFragment#resolveIntent() so that it is
easier to understand. Rename it to configureScreenFromIntent(),
since it is only about its screen state now.

Remove some logic around dial uri handling. Now DialpadFragment
gets the uri directly from Intent instead of parent Activity, so
there's no need to keep it inside DialtactsActivity.

TESTED:
- Launch "Phone" with no calls active
- Make a call, press the "Add call" button from the in-call UI
- Make a call, bail out of the in-call UI without ending the
call, launch "Phone" from the home screen. Play with swipe,
exiting dialpad chooser screen several times
- Launch "Phone" from the other app with a phone number Uri

Bug: 5087992
Bug: 4983278

Change-Id: I5fd687daccf15f632219925a4846019594beec0a
ialpadActivity.java
ialtactsActivity.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
ttachPhotoActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
roupDetailActivity.java
eopleActivity.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
ctionBarAdapter.java
ontactDetailActivity.java
eopleActivity.java
1dd2200b37d78ca2718c515baad7d4db718ee5ce 27-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Modify action bar for group editor and group card"
3792cc74f8a1a55a04af72508b70d7f3281a5eb6 27-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Make search behave correctly"
d04768a41fc0c1918eec625fb61e3c8b90719b13 27-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Make search behave correctly

- call setIconifiedByDefault(true) and setIconified(false) to
show magnifying glass icon inside SearchView's edit text
- manually call onActionViewExpanded() on entering search mode
and onActionViewCollapsed() on exitting the mode to make
SearchView work correctly with its close button
-- Those should be called automatically if we let search view
menu item do that, but because we're using custom layout,
we need to do that manually.
- clear focus and hide soft key when the user presses "done" button
on soft keyboard
- ignore close event when text is empty, to prevent recursive
exitSearchUi() call

Bug: 5080181
Change-Id: I4b603cca8e3051a247a858573ec3f6d631d75ec0
ialtactsActivity.java
f6828029b127f60d758bf30052989d64f50cfa86 25-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Implement smoother swipe animation for Phone UI

Phone UI conditionally shows split ActionBar on the bottom,
which makes swipe animation less smooth. This change makes it
smoother by reducing layout re-calculation.

- stop changing menu state on onPageSelected but do so on
onPageScrollStateChange.
- use android:windowActionBarOverlay to suppress recalculation
during menu show-up
- add marginTop to every fragment for Phone so that fragments
won't overlap with ActionBar
- add paddingBottom for CallLog and Favorites so that those
fragments won't overlap with split ActionBar

FUTURE TODO:

We need custom assets for android:actionBarStyle
- android:background
- android:backgroundStacked
- android:backgroundSplit

Bug: 5022052
Change-Id: I3bd48cf9d8aaa398806531823fca63de328b807a
ialtactsActivity.java
1390f85d3776dd9ad9d38f611f3a0d4ed59f6249 27-Jul-2011 Katherine Kuan <katherinekuan@google.com> Modify action bar for group editor and group card

- Remove home icon in group card
- Change done/cancel buttons in editor
- Remove old honeycomb style on editor activities
and have it use the new split style solid action bar one

Bug: 5081353
Change-Id: Ie39f7f1ea5bd80d5246158442325207effd6aff7
ontactEditorActivity.java
roupDetailActivity.java
roupEditorActivity.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"
e1b4b0f86772ef141d186ca56c8c01e55492c2a7 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Go to group card after group editing"
dce311ee5d1312417f80cae610655600e685e5b6 26-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Don't execute Runnables after host activity is destroyed"
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
eopleActivity.java
a615b7ac82f3512a1689bab3542bbe403ed90923 26-Jul-2011 Katherine Kuan <katherinekuan@google.com> Go to group card after group editing

- Unfortunately, since we don't have support for group URIs
(to view a group, edit a group, or view the group list), we need
to determine whether we should set an activity result or
launch the GroupDetailActivity to view the group after editing
is finished.

Bug: 5042435
Change-Id: I71357dfc44f8539273e12169aeea78d80d258a06
roupEditorActivity.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
eopleActivity.java
458627bdb10df6d7b0e3fb13e72cf97f96b6358a 26-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Change the search UI on 2-pane"
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
ontactDetailActivity.java
eopleActivity.java
0cd85b36f08bac6f7c72e1465b52a1d0d8a7cb3b 26-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Set CLEAR_TOP for "HomeAsUp" button in phone settings"
30d3c9881386470eed6adb72ebb3cfebfe7400ee 25-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Make LIST_XXX intents open corresponding tab"
5267367e202dcb39ef0fe912a7be9209548ec436 25-Jul-2011 Makoto Onuki <omakoto@google.com> Change the search UI on 2-pane

- Don't always show the search view. Instead, show the search icon as an
option menu.
- If the icon is tapped, show the search view.
- Don't show "Searching all contacts". Just show the search view right
next to the app icon.

This simply means to use the 1-pane search UI on 2-pane as well.

Bug 5055536

Change-Id: I9a4b16048285cd30975bcb2bae5ec3d01d15f20e
ctionBarAdapter.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
eopleActivity.java
6a3515380fb0658c7e07c3569054646b8473fa3e 25-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Enable smooth scroll on tab select

Bug: 5073629
Change-Id: Ie92c01ee11ddfad756e918bc0dee364f7eb125bf
ialtactsActivity.java
b7ae952816e330e4e1f7e148df1b6dbb52f28f5a 25-Jul-2011 Katherine Kuan <katherinekuan@google.com> Make "up" button different from "back" button

- Explicitly go to PeopleActivity when "up" is pressed
- Use flag FLAG_ACTIVITY_CLEAR_TOP to prevent having
PeopleActivity multiple times in the back stack
- Use PeopleActivity.class because we don't want to use
a URI like LIST_ALL_CONTACTS otherwise it will switch
the tab or the account filter that has been last set
by the user

Bug: 5071475
Change-Id: Id6f768db3838fa0bc007feda89a92e3d36c8a694
ontactDetailActivity.java
roupDetailActivity.java
9bd85b3ecd9129feb2f317784a3d8023aa211d42 24-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix photo + basic contact info header on tablet

- Fix these cases:
* On tablet landscape, for a contact with social updates, the name
has to be displayed to the right of the photo.
* On tablet landscape, for a contact without social updates, the
photo must be static and the name should scroll with the list of
details

- In order to support these cases, specify the header of the list
in XML in the case with and without social updates, otherwise there will
be a lot of boolean flags and unnecessary views inflated

- There still needs to be a flag in the tablet landscape view
because the ContactDetailFragment is reused for both cases where the
contact does and does not have social updates. The static photo
must be explicitly hidden in the case of the contact with social
updates because it will appear in the scrolling header. This flag
must be set outside the ContactDetailFragment b/t the phone
landscape view has a static photo that is shown regardless
of whether the contact has social updates or not.

Bug: 4689488

Change-Id: Ifea16c48496b8552b313a05cbb8ade80ae117069
ontactDetailActivity.java
147618fa21a2ed187e79aa2eb0414d5f9170310d 22-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Set CLEAR_TOP for "HomeAsUp" button in phone settings

Change-Id: I1d833c18f871f08b4235fc633f4ee615a4d1024d
ialtactsActivity.java
8206d115bf59bbaa62347eb58bcdd2eb168bc18c 22-Jul-2011 Flavio Lerda <flerda@google.com> Merge "Stream items UI."
9b3dfd0bc36568558bfdc32a5d4c30f2d0df5fed 22-Jul-2011 Katherine Kuan <katherinekuan@google.com> Modify action bar for contact editor

- Use custom action bar for "Done" button (hide app icon and
get rid of "up" affordance")
- Move "Cancel" into the overflow menu and rename it to "Discard"
- Remove "delete" button from overflow menu in editor as specified
by the UX mocks b/c the user can delete the contact in the
contact card already

Change-Id: Ic389983a08a7b03fa24e7f4c1c37c95bd6c1c9fa
ontactEditorActivity.java
3915600d2b0ff499e0129e951dfd39bff46b2f42 19-Jul-2011 Dave Santoro <dsantoro@google.com> Stream items UI.

This is still pretty rough at this point, and does not fully implement
the UI. It handles loading in the stream items and photo metadata in
the contact loader, and displaying those items in a scrollable view
in the updates pane.

Change-Id: I3e796a6141ffa385aa2acc769cf6dd11f37aa39c
ontactDetailActivity.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
eopleActivity.java
80183e5cbf339ddba0f92265185b4ca68291e47d 21-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Fix Options Menu buttons"
789bc596877861da26ca862c699a269783d8d42a 21-Jul-2011 Isaac Katzenelson <isaack@android.com> Fix Options Menu buttons

Rename settings to display options
Remove "contacts to display" in search mode

Change-Id: Iafe03965aee27373dde7612fcb6c0852e49e83f4
eopleActivity.java
0ddb32281bf597170c78fde87abbbaca148ef2a9 20-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Implement sticky tab"
35d4aec605ce915ff5c574892a2069a37e0b9a77 20-Jul-2011 Makoto Onuki <omakoto@google.com> Implement sticky tab

Remember the last selected tab and open it when the app starts.

Bug 5046301

Change-Id: I94a11b3397181b09f72e91c20bf451e7ac8eb5ed
ctionBarAdapter.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
eopleActivity.java
01358ef6f7e39a160c8df816108bf8c7d6fbecbb 20-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove "new group" button when there are no accounts"
b21fbb626ddca247910b2445c86447c88c58c6bf 20-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Added empty states for ContactTileList."
37efa3aeea2e26fdee640b797efc39279500c4da 19-Jul-2011 Frank Sposaro <sposaro@google.com> Added empty states for ContactTileList.

Change-Id: Id1f90d994059f6ba8193129e7e552a632516364d
ialtactsActivity.java
63ac587e3495feb4ab5bc6acdc07cae53de635a7 19-Jul-2011 Flavio Lerda <flerda@google.com> Dismiss missed calls when the call log is shown.

The notification used to be dismissed by the CallLogActivity. Now that
that class is no longer used but the CallLogFragment is used instead,
add the dismissal in the fragment.

With the fragment, detecting when the code is being shown is a bit more
complex (it takes into account both onResume and onVisibilityChanged).

Bug: 4521535
Change-Id: I01af5b3ab0e1e66e9b90d93b4957c0dff9816603
allLogActivity.java
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
ontactDetailActivity.java
ontactEditorActivity.java
eopleActivity.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
eopleActivity.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
ialtactsActivity.java
eopleActivity.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
roupDetailActivity.java
eopleActivity.java
d829ea489ceca9911278be1b311538bf15b63546 19-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Show only "UP" on contact details."
13fd2d99efcafa86c117855aafaf9fca445d38db 19-Jul-2011 Makoto Onuki <omakoto@google.com> Show only "UP" on contact details.

USing action bar's new mode. In this mode, you can tap either
the "UP" or the title area.
(There's an issue with how the area is highlighted when you touch it,
but it's a framework issue which should be fixed when they get
new assets: b/5049406)

Change-Id: I2edc60708688cbab77aab070a034eea6880e52d5
ontactDetailActivity.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
eopleActivity.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
eopleActivity.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
ialtactsActivity.java
eopleActivity.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
ontactDetailActivity.java
ontactEditorActivity.java
roupDetailActivity.java
roupEditorActivity.java
eopleActivity.java
6d9befe1de956c50e31e4d1c22809fe9826f680c 17-Jul-2011 Makoto Onuki <omakoto@google.com> Add debug flag and debug log to PeopleActivity

Change-Id: Ib570aab76090e6b0f4fa649767cdfb7c2b0ccc66
eopleActivity.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
eopleActivity.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
eopleActivity.java
43fbbc1e5bbc295d0be5033a002e9f532fdfb119 15-Jul-2011 Makoto Onuki <omakoto@google.com> Disable search key press on 1-pane detail/editor activities

These activities don't have the search menu item, so the search key shouldn't
work.
(The behavior was weird anyway... e.g. it worked differently on
ContactDetailActivity and GroupDetailActivity...)

Bug 5032530

Change-Id: If3504cbd3e5cf027d43eec68d8f89e41bd7d324c
ontactDetailActivity.java
ontactEditorActivity.java
roupDetailActivity.java
roupEditorActivity.java
a023ddd7788bc7cde35ca7bbeaf3edb99ff34441 14-Jul-2011 Makoto Onuki <omakoto@google.com> Remove unnecessary invalidateOptionsMenu() call...

when switching tabs.

Change-Id: Ifa1c70f58cf210621ffb1e0175707e0c6e9f6dfd
eopleActivity.java
71e372c222ed5156573f935f5758eb4df85437b6 14-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "2-pane: Make sure to hide "edit contact" on non "all" tabs"
73fab36ac0f5c59be9ff2361ee0dcdd52247491a 14-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Fix bug 5031013 Crash after searching a contact from..."
c1eed6d4fe14599fb89644d460c45020057789be 14-Jul-2011 Makoto Onuki <omakoto@google.com> Fix bug 5031013 Crash after searching a contact from...

Only in onDestroy() mActionBarAdapter can be null because
we may finish() People activity in configureContentView() before initializing
mActionBarAdapter when redirecting to another activity.

Change-Id: Ibf4417b2604a4b85944a23022aef578ec94faaf9
eopleActivity.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
eopleActivity.java
d84ea5c8b0a8376e7cf80b0e15b65a72fd99d7a9 14-Jul-2011 Adam Powell <adamp@google.com> Follow framework API change

Change-Id: I6bbc24d20d3bd254f6e2d54c14100fa9ab8513ed
ctionBarAdapter.java
0a2a5db3b3633883388953dc98e30c2edd7cae62 29-Jun-2011 Dave Santoro <dsantoro@google.com> Contacts App modifications for large photos.

Most of the work is on the provider side - essentially, the
provider will now deal with any size photo, downsizing it as
necessary to fit in a display size and thumbnail size. So
on the client we just need to pass in a larger photo to get a
hi-res display image for the contact.

Also switched a few spots to use the PHOTO_URI (with
openAssetFile) instead of PHOTO_THUMB_URI - more likely
remain.

Change-Id: I6ff8dd5453a9ff787907ab113d6e8aa6a71fcae1
ttachPhotoActivity.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
ctionBarAdapter.java
eopleActivity.java
38abfa9db22d68a66d4b1eae978770be2d128587 14-Jul-2011 Katherine Kuan <katherinekuan@google.com> Merge "Batch add and remove group members in group editor"
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
eopleActivity.java
2d851cc895ffc7afd322298c7d4391ca5bea1a2d 06-Jul-2011 Katherine Kuan <katherinekuan@google.com> Batch add and remove group members in group editor

- Create save intent in ContactSaveService to update
the group name, add a list of new members, and remove
a list of existing members

- Add raw contact ID column to GroupMemberLoader so that
the raw contact IDs can be used in ContactSaveService

- Remove old code that would do the database save one at a
time for each contact member when the action was taken
(and remove the step that would load the full contact because
we now only need the raw contact ID)

- TODO: General cleanup to just use raw contact IDs everywhere
and have one Member class (get rid of SuggestedMember)

- TODO: Allow users to add contacts for new groups (still
can only change the name), but this should be straightforward
after this change

Bug: 4961845
Change-Id: I8a2f1086feecbb63dc6eb3d1e985bccabe28b803
roupEditorActivity.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
eopleActivity.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
eopleActivity.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
ctionBarAdapter.java
eopleActivity.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
eopleActivity.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
roupDetailActivity.java
eopleActivity.java
a35a315670146f54a5b15550e8193ea9b9c64bc9 13-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "People: Action bar tab refactoring"
4d788fc27ac855bd6e0cec17dff39a18564f0089 12-Jul-2011 Makoto Onuki <omakoto@google.com> People: Action bar tab refactoring

- Now ActionBarAdapter manages the action bar tabs.
- Now ActionBarAdapter.setCurrentTab() should always be used to select
a tab programmatically, rather than directly calling
ActionBar.setSelectedNavigationItem().

- Do not re-create/re-initialize ActionBarAdapter/ActionBar for new
intents.

- Simplify fragment visibility update logic in PeopleActivity.

- Do not clear ActionBarAdapter.Listener in PeopleActivity.onPause;
do this only in onDestroy.
Activity is paused when we're processing onNewIntent(), but we still want to
get callbacks during this.

Change-Id: I93ec35e569e1854923503734693b6404cff92f50
ctionBarAdapter.java
eopleActivity.java
c7457855f3baa28ff43bd8013664e789f176f4bc 13-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Disable highlight

Holo dark made it annoying.

Bug: 5022254
Change-Id: I2b4bf47c7b3e91626523a22a29a86232bb15f042
ialtactsActivity.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
eopleActivity.java
33456a0efa16d7f31ba25f1d1b8c662053104117 12-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Revert "Set up fragments just after setContentView().""
4959ca3d0093a798859660f2914003d0da777645 12-Jul-2011 Makoto Onuki <omakoto@google.com> Revert "Set up fragments just after setContentView()."

It crashed on 2-pane portrait. Seems like there's no ContactDetailFragment in the layout...

This reverts commit 0dafecbe5dbf810d83f9cf0ce590e8e055c53a48
eopleActivity.java
81d79a8fbed8ab015e760f8c2451d1e66e077066 12-Jul-2011 Makoto Onuki <omakoto@google.com> Merge "Set up fragments just after setContentView()."
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
eopleActivity.java
fd32fcd650e371b1c2c124aaa5c2c945277c8adc 12-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Temporary fix for crash on rotation in search mode"
30cc2916916535a8140637f54925c93189868de5 12-Jul-2011 Isaac Katzenelson <isaack@android.com> Temporary fix for crash on rotation in search mode

Change-Id: Iffc020090dddc4e3aa18972940dbe642c49d4dfd
ctionBarAdapter.java
9e095d2ffc4a94d2fb925d19df6db12bc2b1e124 08-Jul-2011 Frank Sposaro <sposaro@google.com> Added QuickContacts.

Change-Id: I0bf3b536da73c2f9862a958ff0275ef8404def4f
ialtactsActivity.java
eopleActivity.java
f6141f1bc0116dd5c9dc399567502d74300326b6 11-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in onKeyDown

- If the fragments have not been attached yet, but the user
presses a physical key, then a NPE is thrown

Bug: 4996118
Change-Id: Ibd1640c5e4e546123b08face627cb94dad64ea93
ontactDetailActivity.java
bd762dc826d85e5b7db634ef14a0dbb70c42eaab 06-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Introduce overflow menu button

Available when there's no hard menu key on the device.

Also remove Call Settings menu from favorite screen.

Bug: 5001942
Change-Id: Ib0ff3fb15a26001dbdad4756bfa4e4bfe1652da2
ialtactsActivity.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
eopleActivity.java
46a39e5b50f1bf5f6b2f37f05900acaa979604a2 10-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix refresh problem in the contact card

- Reset the contact data on the fragments after onLoadFinished() is called
so any editor changes will actually update the contact card now
- Fix the issue of the details list going blank by only creating max 1
ViewPagerAdapter per ContactDetailActivity. Check if the layout's already
been setup or not and then go ahead with setting the new contact data

Bug: 5011155
Bug: 4991868
Change-Id: I6ff0613413692212c9ffd23472450e9853b00f54
ontactDetailActivity.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
eopleActivity.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
ctionBarAdapter.java
eopleActivity.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
eopleActivity.java
31068757e64e67874f8b73164572277b9900eae0 08-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Remove deleted groups from GroupBrowserList"
267073407439d7df012a2e0df577e39a1f89c4a8 08-Jul-2011 Isaac Katzenelson <isaack@android.com> Remove deleted groups from GroupBrowserList

Change-Id: Iea7435c6b1f569dd8ac5416b35470b9ae2f48761
roupDetailActivity.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
ctionBarAdapter.java
eopleActivity.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
ontactDetailActivity.java
eopleActivity.java
a4434bcf58c1b286c642197ea56c2a71524a18cc 08-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "ContactTile column counts are now dynamically adjusted."
e5d06f534d58baa27fe6b1091b9724f81fd258c9 07-Jul-2011 Frank Sposaro <sposaro@google.com> ContactTile column counts are now dynamically adjusted.

Bug: 4969044
Change-Id: I5185b93ea3e7720136c929ce4c8ab820d7b4dfc9
eopleActivity.java
59dc2751d64f60f743b8a9e78186aa5b79dcaf83 07-Jul-2011 Isaac Katzenelson <isaack@android.com> Fix "Tab not maintained on rotation"

Change-Id: I331794c948dab876c808ba1274cb11dbdb70155d
ctionBarAdapter.java
e405753872c29c04e4099ce5c68313e9580687c8 07-Jul-2011 Isaac Katzenelson <isaack@android.com> Merge "Made "up" button go back. Fixed on Group View, Contact View and Contact Option View"
4ec198790236ab4be6bc5d73441215b684832618 06-Jul-2011 Isaac Katzenelson <isaack@android.com> Made "up" button go back.
Fixed on Group View, Contact View and Contact Option View

Change-Id: I6ee4de75dee59b0bc35a611adbe837cebe7ed722
ontactDetailActivity.java
roupDetailActivity.java
17a4e622a8e9b55fce562bb21d73a204ada198b9 02-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix bugs in contact card tab carousel

- Fix NPE in scroll length calculation. I was calculating
the allowed scroll length on the fly when it was requested, but
apparently it was being requested before the data was
being loaded in. Anyhow, move the measure code to its
proper place in onMeasure().

- Programatically determine tab width instead of hardcoding it to
240dip

- Move findViewById calls to the onFinishInflate() method
so it only happens once instead of every time loadData() is called

- Fix the bug where if you vertically fling the contact details
too fast, the pinned headers get stuck in some odd state (b/c the scroll
listener missed a frame, we need to always make sure the tab
carousel is in the correct place at all times)

Bug: 4965089

Change-Id: I9ee3261dfff86d7df6f3eb27ec464eea26a900db
ontactDetailActivity.java
13fd893af3e3c7b8fa3fbe82e77add50ec60bfcf 06-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "append final"
2c1f7878d72184a56e9c2b0d9f4d74be439979c2 06-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> append final

Change-Id: I3ba98a0a0aedf1e9fda8e3592ec72362032509cc
ialtactsActivity.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
roupDetailActivity.java
eopleActivity.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
roupEditorActivity.java
eopleActivity.java
43105d0b04963ac96acc1fa7f97278f927f48948 03-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fix possible menu-not-shown/search ui not shown problem

Fragment should not be managed by its parent Activity but by
FragmentManager.

- use onFragmentAttach() to tolerate Fragment recreation
- Stop caching Fragment in Activity as much as possible.
- move "Call Settings" to Activity-wide options menu
- make PhoneNumberPickerFragment tolerate NPE on
setNameHighlightingEnabled() call

Change-Id: I06a748ea1a618f0fa83ef3c8f99653effc37895e
ialtactsActivity.java
16c4b2943e02a0b919e7da7bb5e58ced7523b8f6 04-Jul-2011 Katherine Kuan <katherinekuan@google.com> Fix crash when trying to edit a contact

- Set the lookup URI manually in setData since we're no longer calling
loadData on the detail and update fragments

Change-Id: I5838e2bfe4a77d9d47444b4e16ce02485af17307
ontactDetailActivity.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
ontactDetailActivity.java
eopleActivity.java
218d1b1a7e412658735ab8858675f3b9cf432968 03-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show quick contact in phone search UI"
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
roupDetailActivity.java
roupEditorActivity.java
eopleActivity.java
87e324c46ea0c9034fd1cf5a884ef2b2cb9c2c7a 01-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show quick contact in phone search UI

Change-Id: Ibc643162b9c74964b1b9e9bd89351203fb29d6b6
ialtactsActivity.java
88f70fc83cdd119e85d9890b2875faf5c981b47d 01-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show app icon on Phone search UI.

Change-Id: I2c09ed6635b27042c7c98bb40c41fa1724e533db
ontactSelectionActivity.java
ialtactsActivity.java
89c29bf154365060963fbdee8949de68771dcbcd 01-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Add the search button in CallLog/Favorites"
aa72f08effc0b2bac7c56dd2fed9bbeae3a6f109 01-Jul-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add the search button in CallLog/Favorites

- Use ActionBar's split style
- Maintain swipe/tab-select behavior correctly
- remove old menus and add search menu item
- use xml instead of programatically adding menu items

Change-Id: Ibb00ae0f33d3a42b72c238f4d1d9a3fe0ea31562
ialtactsActivity.java
be41323d24a57a60c9e90d55b8485f057d1abcb3 01-Jul-2011 Frank Sposaro <sposaro@google.com> Merge "Fix NPE in People App on phone when search is pressed."
aa2dfcdf9e7a4701f3954413f1cd75b8e1a26910 30-Jun-2011 Frank Sposaro <sposaro@google.com> Fix NPE in People App on phone when search is pressed.

Bug: 4980842
Change-Id: Ida527a877c22354c447726e900336f050fa74aee
eopleActivity.java
862c0230cf03b05f97a673abdc525cdc5ced98bb 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Support horizontal swipe in Phone app"
438e1f19279ea058e145c84dbe3ba62cc14df645 29-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Support horizontal swipe in Phone app

- introduce ViewPager for swipe support
- let DialpadFragment call resolveIntent() by itself
on onCreateView()
- remove ContactsFragment (a.k.a previous "3rd" tab)
- remove resolveIntent() call in onNewIntent()
-- This was introduced to fix bug: 4724464 but we cannot
do same thing anymore, as we cannot assume views in the
Fragment is ready at that moment.
- remove some codes coping with old tab behavior.
-- After having the ViewPager, we cannot simply assume
Fragment is a replacement of previous tab activities.
Fragment creation is delayed by ViewPager, so some of
old codes causes NPE.

Bug: 4974874
Change-Id: I3b2f95b0d34e89bb9665b2014048a634d29e54ce
ialpadActivity.java
ialtactsActivity.java
36c33609482ae5c961ac5f3b67c581a0bb430f38 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add comment about keyboard showup logic.

Change-Id: I53ae005377479da5d7365d7421fbc2a07049a55f
ialtactsActivity.java
f4e5dfa30a752ec785b2eecee21c2b620104def2 30-Jun-2011 Amith Yamasani <yamasani@google.com> Merge "One way to make the keyboard appear on starting search."
22f1749a2a0bfcce9b35c5a4b43d6018d07149b8 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Merge "Show incall UI correctly."
c18f9b7cb0846d0c10fe0398224b53530a2194ec 30-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Show incall UI correctly.

Change I39f9b042990c7c1136fd7471cd292d5a679505cc removed what we
need. In GB we explicitly used phoneIsInUse(), so using it again
would be appropriate.

Also use "inverse" color so texts should be visble at least

Change-Id: I401bcb25d1d75a4eda5c1747e724293e93d87d68
ialtactsActivity.java
c5be9585f664a893392486e3f86c67f3e083f271 30-Jun-2011 Amith Yamasani <yamasani@google.com> One way to make the keyboard appear on starting search.

Change-Id: Ie76bf8e58fbf99025f803847ba091928a7a209e6
ialtactsActivity.java
7d8944f8dff9a3502c5c2e8c6543efcd753880ef 29-Jun-2011 Frank Sposaro <sposaro@google.com> Merge "Favorites on Tablet are ContactTiles."
f00ff8b91e6c452839bb80c195bc8616797b9a0c 29-Jun-2011 Frank Sposaro <sposaro@google.com> Favorites on Tablet are ContactTiles.

-Redesigned fragment sizes on favorites tablet.
-Frequent ContactTiles are now shown as a list.

Change-Id: I6dbce53e867619665df551cb85afc9960c76c0fa
eopleActivity.java
3bc1e8f0dd82496bd462f8ce14ce8d97ba09d71a 29-Jun-2011 Katherine Kuan <katherinekuan@google.com> Merge "Move favorites star to the action bar on contact card"
cfcd0764a1ec53c6014df9ce3e7d3a3da511599f 29-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Highlight search texts in search result

PeopleActivity does it.

Change-Id: I2d4523ace783c2b622e0d0e0cd17fb61d1155c0a
ialtactsActivity.java
942cec2d8a248b1a22e95f4d573d235e281ee91a 29-Jun-2011 Katherine Kuan <katherinekuan@google.com> Move favorites star to the action bar on contact card

- Only applies to the phone
- Remove star from tab carousel

Change-Id: I214a4d2a310b5f2060b55856755e9635a8c45a58
ontactDetailActivity.java
37a2684d1e47f6d78d757c437a187548f242ee13 27-Jun-2011 Flavio Lerda <flerda@google.com> Fixes tests on userdebug builds.

A number of tests are currently failing on userdebug builds because they
refer to methods that are used only in tests and proguard striped these
methods when building the application APK.

This change adds the VisibleForTesting annotation to all such methods.

Bug: 4901489
Bug: 4902483
Change-Id: Ic7c51ef5b77f4f2d2af39cdafbf8e2e37260644b
allLogActivity.java
20962611bd54c64c206351d53b51686081d89e53 24-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Remove contact tab.

- remove contact list tab on phone UI
- show search button instead of voice mail button
-- uses temporary assets
- remove some layout xml and have dimen values instead

Bug: 4691486
Change-Id: Iec028849fa65079ac7d76a64baf1590fd4537c37
ialtactsActivity.java
8f0f3343e4363a5e1f11b35392c8393f263aaa41 21-Jun-2011 Katherine Kuan <katherinekuan@google.com> Phone landscape view of contact card

- No tab carousel, show half of the other (about or updates) page,
tap or swipe to see the other page
- Add alpha layer and touch interceptor layer
- Add new resources folder for w470dp to cover landscape on
phone sized devices

Change-Id: Ia3b1cd76ebe35420b1facd415998b14ba161b0ba
ontactDetailActivity.java
ee179470c986594ac8f8cbacb7bdddff332ecfc7 25-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Add listener to "favorites" fragment.

Bug: 4948919
Change-Id: I43c0ef977cbb732d910091482d467228379b952f
eopleActivity.java
350e8d53a135e0bb62308a93dd09777364c08a58 24-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Handle menu event correctly.

Right now after showing search UI, every menu cannot be available.

- make them available
- refrain menu in search UI

Change-Id: I4bf0056c9b404d43c2ab2ac0f227441c1147d09f
ialtactsActivity.java
68f33150cf394279fc97f06ba5601482741147b7 24-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Focus last selected tab

"StickyTab" behavior needs more implementation. This mitigate
user experience a bit.

TODO: implement SticyTab behavior which had existed in GB

Bug: 4904820
Change-Id: I39f9b042990c7c1136fd7471cd292d5a679505cc
ialtactsActivity.java
b2e626ad4fedc0fd726f66b9942d1b2f30d9cfef 21-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Implement phone search in DialtactsActivity

Includes tiny layout fixes for ContactSelectionActivity,
which also uses the same phone search fragment.

TODO: let the other Adapters like DefaultContactPickerFragment,
EmailAddressPickerFragment support grouping feature.

Change-Id: I8d7718192522a0005b9b76931560fe297cad882f
ialtactsActivity.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
ialtactsActivity.java
eopleActivity.java
a1455a2288a7956ea9543177cee4a3be75745e32 19-Jun-2011 Katherine Kuan <katherinekuan@google.com> Pinned tab headers on contact card

- When vertically scrolling the contact details, move the
tab carousel vertically off the screen until just the
tabs are showing
- Make ViewPager span the entire height/width of the screen
- Make the tab carousel go on top of the ViewPager

Change-Id: I8e93fb64e8bb6d1749b371a030a36883fc57f0dd
ontactDetailActivity.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
ontactDetailActivity.java
eopleActivity.java
5d96befd4cc61df08f89b83aa01b669765470315 17-Jun-2011 Daisuke Miyakawa <dmiyakawa@google.com> Fill in phone number again on onNewIntent()

Bug: 4724464
Change-Id: I1ebaa29e497e88211936837e56418a744619f81d
ialtactsActivity.java
f6030526dac49978458f15b599f6c842dc24c1a6 15-Jun-2011 Dave Santoro <dsantoro@google.com> Merge "Contacts UI changes for profiles."
0a4d2258411478c7c78790cd55ba25c99f588c26 20-May-2011 Dave Santoro <dsantoro@google.com> Contacts UI changes for profiles.

The user's profile entry is displayed slightly differently from other Contacts.
The profile photo is 25% larger (e.g. 56dip -> 70dip) and rather than showing
the display name, it displays "My profile".

Section headers are also special-cased for the profile entry - it appears above
the section header rather than below it.

Change-Id: I6fd99d303c7dd1347031d3607741827ea2a31a0b
ontactSelectionActivity.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
ctionBarAdapter.java
eopleActivity.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
eopleActivity.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
eopleActivity.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
ontactDetailActivity.java
ialtactsActivity.java
eopleActivity.java
f3f933a798c9cfffb1c1c0cc770187b5b0b763eb 10-Jun-2011 Katherine Kuan <katherinekuan@google.com> Fix NPE in ActionBarAdapter

- Fixing the SearchView will require more work, but temporarily
add a null check before calling any method on the SearchView so it
doesn't crash anymore in Monkey tests

Bug: 4584460
Change-Id: Ibb31a1931213cdce82b593c9de62e600d5ba2e35
ctionBarAdapter.java
32f395567c9d103e9101c2549f76945c9dee20b5 06-Jun-2011 Frank Sposaro <sposaro@google.com> Redesigning how Favorite contacts are displayed

Changing to muli columns with big pictures

Change-Id: I582f4dae52229920b20d39b565a1a9fd84b28529
ialtactsActivity.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
ialtactsActivity.java
roupDetailActivity.java
eopleActivity.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
ctionBarAdapter.java
eopleActivity.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
ontactBrowserActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
ontactsFrontDoor.java
ialtactsActivity.java
eopleActivity.java
howOrCreateActivity.java
00848d5b0cd3199fb91171936eb59db7c5e4b6af 02-Jun-2011 David Brown <dab@google.com> Remove tab text in Dialtacts

Remove the text labels from the 4 tabs in the Dialtacts activity, leaving
only the icons. This allows all 4 tabs to be visible on phone-size
screens in portrait.

This is a short-term fix for ICS dogfooding. We *will* ultimately bring
back labels at some point, but the exact visual design is still TBD.

Bug: 4520620
Change-Id: I5ecb9a2034bdd4cbc54d298d1318ab6f2d7ed15b
ialtactsActivity.java
aae838c5a7ef38f4f2778cff6dfaa1f650a44522 24-May-2011 Daniel Lehmann <lehmannd@google.com> Bring back the Strequent Fragment

Change-Id: Ib18bd1023c6f4ecd6bb6ec72eac68481ba815004
ialtactsActivity.java
51e8d634f2d16aeaed73b6fba42d02a1c2d48b20 20-May-2011 Daniel Lehmann <lehmannd@google.com> Remove an unneeded function and an unused callback function

Change-Id: Icb01f50ad12d19a019da04bc27fa0d6f6ec04dfe
ontactBrowserActivity.java
ontactEditorActivity.java
261cd5650d07fbc41ea8f19d4e422094612d1454 17-May-2011 Daniel Lehmann <lehmannd@google.com> Turn ImportExportInteraction into DialogFragment

Bug:3126133

Change-Id: I544d836b3c5d0e3c38352978d55a55e131885638
ontactBrowserActivity.java
ialtactsActivity.java
a911cc61416aa22e3e0ffa1f4f4bcf38d09470d7 13-May-2011 Katherine Kuan <katherinekuan@google.com> Merge "Group detail page and list of members"
fd8cdedb816cb1fc5894e2e3c5e144ff16b90b7c 11-May-2011 Katherine Kuan <katherinekuan@google.com> Group detail page and list of members

- Click on group in group list goes to a detail page
- Temporarily show members, TODO: Move list as
an expanded list in group browser activity
- TODO: Populate detail page with group info and
group actions

Bug: 4413116
Change-Id: I114d276f96aed318307d185910ae8799228262c9
roupDetailActivity.java
c15062754af08cadc50b4b8ec89c2175a4bec1fe 13-May-2011 Daniel Lehmann <lehmannd@google.com> Use Fragments for tabs

This will require more work later, but it is a first step that should allow
all features to still be accessible

Change-Id: Iad544575960e6a8beb5f0018ae9a8b5633fe8281
ontactBrowserActivity.java
ialpadActivity.java
ialtactsActivity.java
285fdc6bed0f2bcfb95b4d5f8cf9066a4f8ab888 11-May-2011 David Brown <dab@google.com> Fragmentize the dialpad UI

Moved most of DialpadActivity into the new class DialpadFragment.
The old DialpadActivity is now just a simple container for the fragment.

TESTED (on crespo):
- Dialing an outgoing call
- Options menu (only visible once you've typed at least one digit)
- "Dialpad chooser" scenario (the special UI when you bring up the
dialpad while a call is already active). Note that text colors in
the dialpad chooser items are wrong; that'll be fixed by some
upcoming theme cleanup.

Change-Id: I8827727bb2bc86936c4ef23e1a307ac04141c1ea
ialpadActivity.java
ialtactsActivity.java
9add0e5ef2a267acbe104e04f4cf6ab24cb8ba3e 11-May-2011 Katherine Kuan <katherinekuan@google.com> Add groups tab and show list of groups

- New groups activity, fragment, and adapter classes,
as well as and associated XML layouts
- For phone only, tablet UI is unaffected

Bug: 4409350
Change-Id: Ibeb592142e5ddc1efa5701472bbc72bde11d9760
ialtactsActivity.java
roupBrowserActivity.java
d37a891cb44cd17083c06d7be693c469403d16df 27-Mar-2011 Daisuke Miyakawa <dmiyakawa@google.com> Enable account switcher in contact creation

- remove account selection step before contact creation
- (phone) put account info on the right side of photos
instead of having "header" for it
-- renamed header_* ids for account stuffs as they may not be
part of header any more.
- add migration functionality to EntityModifier
- add test for it
- no optimal layout

Bug: 4184675
Change-Id: I0e777f9aa37a7c9145bd430f897f8068b0bede56
ontactBrowserActivity.java
bcd1227fe05b6d522bc478ef1b457ebe08bbdad1 07-May-2011 Daniel Lehmann <lehmannd@google.com> Put the call log into a fragment and host it in a simple container activity

Also did some minor refactorings:
- Combined projections and their indices in nested classes
- Put Menu/Options menu ids into container nested classes

Change-Id: If22b7f7b894ab7167420ca2ba055e2001c5becbe
allLogActivity.java
09fba0a6d82a7f88ce3c8cbb74eddd4bb96eb7e4 06-May-2011 Daniel Lehmann <lehmannd@google.com> Several renames for consistency. Should help with fragmentizing afterwards

TwelveKeyDialer ==> DialpadActivity
RecentCallsListActivity ==> CallLogActivity (be consistent with tab name)

Renamed xml files to have a clearer connection to the object that they
represent

Change-Id: Ie4f123dc03a445596e5ecc216adfef61275dbea3
allLogActivity.java
ontactsFrontDoor.java
ialpadActivity.java
ialtactsActivity.java
3bf12640a267146a6a0134367f7236401db8e754 16-Apr-2011 Daniel Lehmann <lehmannd@google.com> Fix the disappearing buttons on the actionbar

HC MR candidate

Bug:4302136

Change-Id: Ib9a30ddf45608750162b44e88992a1e63e8968a3
ontactBrowserActivity.java
0dfbe0339c7319ad02edc34de3d50104f64de735 15-Apr-2011 Dave Santoro <dsantoro@google.com> Fix menu after adding a contact on the phone.

Logic was assuming a tablet interface, and was misconfiguring the menu to
only contain a (broken) search option.

Change-Id: I3b6010f338c10da5b10d6d9863544fbf172cc60f
ontactBrowserActivity.java
7134a00efd66e95ea0d1484e04869c5cbd45f25d 08-Apr-2011 Daniel Lehmann <lehmannd@google.com> Fix the contact list. For now show all contacts

Change-Id: I440b9cb6d9656b531c4b6813ed0fd2ef9bab6a28
ontactBrowserActivity.java
c86ace78ca5c2e10dcb001a916386c8a9865e230 24-Mar-2011 Daniel Lehmann <lehmannd@google.com> Provide a picker for third parties

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

Bug:3378785
Change-Id: Iaafdc44fdcd67b878b80218976d8b94b529e8aeb
ontactSelectionActivity.java
4f3aa85131e16594fef22ca60439f4320016767f 23-Mar-2011 Daniel Lehmann <lehmannd@google.com> Don't start the search if TAB is pressed

Bug:4155021
Change-Id: I63a75fce26b012375db021c8f32e24db08869e01
ontactBrowserActivity.java
6313d346faaa29ff3c01c117268626163491523e 17-Mar-2011 Daniel Lehmann <lehmannd@google.com> Fix crash when opening the editor and move buttons to ActionBar

Change-Id: Id079a1e88c06aee2d1ff2894bc516c4df8b43406
ontactEditorActivity.java
c90c705db8b3665ba9c8d8ce4b8ab3a03e38ddc7 17-Mar-2011 Daniel Lehmann <lehmannd@google.com> Show contact details when contact is tapped.

Do this by changing the routing logic: For viewing contacts, we
do not use the FrontDoorActivity as a proxy anymore. Instead,
ContactDetailActivity will forward the Intent to the ContactBrowserActivity
on a tablet

Change-Id: I04a03404410f3108f583da4592f6ae9f0f4e5bd2
ontactDetailActivity.java
ontactsFrontDoor.java
0f1f66a79bf676959d4e0fcfda70c08121ae0c57 16-Mar-2011 Daniel Lehmann <lehmannd@google.com> Fix crash on launching the menu on the phone

Change-Id: I5f390fd545d9e9d2f30aca2c9933bdc6ef042041
ontactBrowserActivity.java
1b29450c1cfa977075aaea4c2a02c233e2301323 24-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fix the issue where contact creation is triggered by another app

Bug: 3483189
Change-Id: I88374824ab49549e683fab51519d7915661073c0
ontactEditorActivity.java
c9eda37df2ff1ba2f845ae330bae364cb35fa50a 23-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Close contact editor after deleting contact

Bug: 3396132
Change-Id: I1818446b8ecb6ef71d7c763d3e7ea3dc4c820b02
ontactBrowserActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
eb5c3228af1e86db5552bc8baf6bf62c77612f3e 23-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Prevent empty search results from showing up before typing

Bug: 3446388
Change-Id: I6994eca6c90357e61dfbdc22283e3169ece25efc
ctionBarAdapter.java
a011414b12955a91c8f3efe528f374654d930098 15-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Moving contact saving to the service

Bug: 3220304
Bug: 3452739
Change-Id: If4124096a24e5dd302feb5338efaaa8398b2cb6b
ontactEditorActivity.java
5556d951757448b76118a479c6b3fe0a4c4ce2f3 04-Feb-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing "Add to contacts" dialog style.

Bug: 3418355
Change-Id: I5b82983c00a9aab75be803036d62fdf0c9d10bc2
howOrCreateActivity.java
1e5fc0cf6bcf07933f1af8ffef353b7ec39003ed 31-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing ghost activity title from the NonPhoneActivity dialog

Bug: 3405780
Change-Id: I47ab5e2b92c4a95e82850be5784a345b18b5dda4
onPhoneActivity.java
2775e94b895f7f6d9a480d072cdd672ae76e4017 27-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing invocation of banned API

Bug: 3397876
Change-Id: Ia7d89bf16fde5d403fe7e59dd85bf76a8aa6e7ca
onPhoneActivity.java
42b314030c3c9b16afc5a84805a481225a6d9de9 25-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Delaying visibility of search view to suppress soft keyboard

Bug: 3280179
Change-Id: Iec681136b45fcbc20463f698996f37a0bb736a2a
ontactSelectionActivity.java
60eee83b99cd6b0e2a27b20bd7798ae8cef005be 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Merge "Removing search field from postal picker" into honeycomb
d66d4158d832ceec0e7754908b0c5541311613d4 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing search field from postal picker

Bug: 3381296

Change-Id: I7e2c31cdb7a745c084ce2f76606634a872478be2
ontactSelectionActivity.java
d8f84e076b762f063ae498c297d6f02574099dd2 24-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adjusting style of the Join Contact dialog

Also fixing some minor bugs in Join Contact flow.

Bug: 3351590
Change-Id: I7191f26d7a6736920fe35216ef8766d730d3a0d7
oinContactActivity.java
c5792ae6760291d435e91e0fdd28ece6b3311439 21-Jan-2011 Adam Powell <adamp@google.com> API change - bug 3370353 and bug 3370338

Change-Id: I470771606f15936e3a20f4c0aaac0fe99b2a587f
ctionBarAdapter.java
ontactSelectionActivity.java
5251884bbcdb92dad577d027126547527285fcce 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Eliminating selection delay when query comes from intent.

We want to delay automatic selection of the first
result when the user is typing in order to prevent
flashing UI. However when the query string is sent
to Contacts as part of an intent, such delay is unnecessary.

Change-Id: I55afd4b435e46fbd701eb6a514bcf0f85b963409
ontactBrowserActivity.java
ontactSelectionActivity.java
0edd4071ddcb23bf2a7b95582df0657de9ff0c60 19-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Adding support for relationship navigation

Bug: 3362300
Change-Id: I3b281b4db8bdeb029fdb4981e9c6e5b3b3060c7e
ontactBrowserActivity.java
3ed426c842a68895a759548fef87bac359f937bb 17-Jan-2011 Dianne Hackborn <hackbod@google.com> Follow API changes.

Change-Id: I984633a080d84bbea756341d029d0aed47882da8
ontactBrowserActivity.java
ontactSelectionActivity.java
oinContactActivity.java
onPhoneActivity.java
1fbcbd1053c72e165009ad9a7d735dd2c0755c36 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing settings from task stack if called from launcher

Bug: 3360814
Change-Id: I9c68fbb5894c207259c2cdd055d6bb97c129199c
ontactBrowserActivity.java
8fe7821d91764dc33270f70e1f08ec05647ef041 17-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Making list switch to All Contacts when contact not found

Bug: 3349063
Change-Id: Iaf85a98293f7bf947fe8d7a71e2538fa80a27a9d
ontactBrowserActivity.java
8db1913dc30cd83ac27e10a4cfda12b4bf08dcfe 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Making search mode triggered by focus in, but ignore focus out

Bug: 3340666
Change-Id: I75422950c9f708f4651ebf74a43f65eebcea9d11
ctionBarAdapter.java
a3f0bce444d97664e282c10e56d09547f3a0e809 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Inflating contact browser fragments from XML

Change-Id: I3395e70bed9aee8f5c70b92952644f58f425dfab
ontactBrowserActivity.java
fa49a66979567894c85fe2489d1375216d67597e 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Preventing multiple instances of contact browser from launching

There is a lot of complexity (and simplifications) in
this CL because as it turns out having fragment transactions
was causing focus to be acquired by the search field,
which was causing all kinds of problems. So now we only
have one permanent list fragment (which should go into the XML
file) and we just change modes on it.


Bug: 3345023

Change-Id: I096be24b7598350a074eb1dadc954c7619f26669
ctionBarAdapter.java
ontactBrowserActivity.java
ontactsFrontDoor.java
883d5446559509b82d41eb6a08fe80fcfdea9947 13-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing GTalk-initiated search in contacts. Part I

Bug: 3344700
Change-Id: Iea2bbe27cebc9356a549af9097376165c0920d14
howOrCreateActivity.java
ab75f82f6a95b221157f2ce3125d76d62f869ebb 10-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Beefing up ContactBrowserActivityTest

Change-Id: Iea217cafe024ca1a94f3d0f327093a72773aef93
ontactBrowserActivity.java
7d402246e9ac26e05eeb25528bc74083412d1a5a 10-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing issue with opening a contact from Talk

Bug: 3306923
Change-Id: I7d34b82a6e42478a1c3039fee1877bf6402e1ee8
howOrCreateActivity.java
1173ae29217fc83f254404f8a5fa10419ee83c93 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Fixing ContactBrowserActivityTest

Change-Id: Ie492eae15c7163d0f8a3577e73ae14b786709a35
ctionBarAdapter.java
6f667b55687bf9193323802e8f3234f0ab254388 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Turning AccountTypeManager into a "system" service.

It's really not a system service proper. It just
uses the same API and the same dependency injection
mechanism as for system services.

Change-Id: I56e24e0f16642a5ab25e809ee12906d965845379
ttachPhotoActivity.java
ontactBrowserActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
ontactSelectionActivity.java
ontactsFrontDoor.java
oinContactActivity.java
onPhoneActivity.java
howOrCreateActivity.java
a07fa5f37031e4c5cd2933de02d2db41ec153e2b 09-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Renaming AccountTypes to AccountTypeManager.

The intent is to turn it into a "system service" of sorts.

Change-Id: I047d70a2e59978c05916965ef0c0d9f18abc55e6
ontactBrowserActivity.java
ontactEditorActivity.java
19d51ac4d931c17c8d84b65ed13199c0ccdeb20e 04-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Renaming an activity class. Removing dead code.

Change-Id: I509fa747441d8d3d5168aa07a4ada4434f02d190
ttachPhotoActivity.java
b77be6d2ad06edfd8751f55043e4aa9fd9f36015 04-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Removing inflation levels from AccountType.

Also, fixing asynchronous update and concurrency issues.

Bug: 3140873

Change-Id: Ie9d342d23ee4a8d23405ef4145c54d7673b2cbe9
ontactEditorActivity.java
69f9e6f0cd9b5401da55f251e9bd98e69643d7df 04-Jan-2011 Dmitri Plotnikov <dplotnikov@google.com> Renaming fields and variables from "source" to "accountType"

Change-Id: Ie41036e35a45fc7d9a8c934a3cbe68399c567ad6
ontactEditorActivity.java
a5a2744ab8102cf4ff5fbd3e1fa074a45257b3dd 28-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixes in selection management

Specifically, after creating a new contact that contact
would not get selected. Also, after deleting a contact
the default contact would get selected, but the selection
would not get shown in the detail panel.

Change-Id: Ia4d078d22f257419c9fa9c590dc6e0083be3d457
ontactBrowserActivity.java
fff6f07a02d3e3bbeff2ecf94a703782b71aea66 22-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for 3rd party contact editing

Change-Id: I0379f7392a23aea68d0f59a9869bb72275f5bddb
ontactEditorActivity.java
8daa1797310aca2333efcff0a0e0b0ed03187fff 21-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE when filter list is loaded before fragments are added

Bug: 3299359
Change-Id: I8de2818c4df18f93572b91d685ffbe151131c927
ontactBrowserActivity.java
0cd01309feeaf08b1a9852d33fc123c6cbddca6c 18-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Optimizing option menu invalidation

Bug: 3296198
Change-Id: Ic8ed6b474a5aceccde620859fc2f93222637da27
ontactBrowserActivity.java
691e93397eae9a29d979a5e404f0b90130c2e9d4 17-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE on search button hit in ContactsBrowserActivity

Change-Id: Icc2fb4d6d5faa2eceb10edfdb6fd4d17e7b483c2
ontactBrowserActivity.java
264023c04b75043fa77267fd1b940d0afb13421d 15-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing dependency between filter loader and list loader

Change-Id: Iaeeb0071d34d9ed68c2704af2ba7fe8981ed435e
ontactBrowserActivity.java
e4e52199057ffb57bad42caa33e6b402fd80697a 14-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing a memory leak in ContactListFilterLoader

Bug: 3226188
Change-Id: I02c5287955e7f112b9c9a279dc8709ff41f09615
ontactBrowserActivity.java
b71ef30b7c74021f87d2e824d7763963b1d1f36c 14-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Implement granting of URI permissions from picker."
3e076bb53d39eb3757b376a003c412e4f44b0e3d 11-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding a hint to search view

Change-Id: Ie5c964a45458159c82c48414a54e19524289f794
ctionBarAdapter.java
5245ea63b4cca18ee504b27abd534fc13d33dea9 11-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Replacing Aizy with a standard scrollbar

Change-Id: Ie8626844e194894da6e30205fe5da43d92d793c2
ontactBrowserActivity.java
e8b9505e4ba98b565704278d6553605523469cf3 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing join contact activity setup on rotation

Bug: 3268656
Change-Id: I542d6f2fae87eaba507488d58433a0b149df4cda
oinContactActivity.java
f7ab3f49c3c21544d1bfddc5f9a70019c5b3ae49 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Ignore "join completed" action if it arrives after activity is closed.

Bug: 3259952
Change-Id: If757bafda9dd4edc8120faa1bea6ffefef762acf
ontactEditorActivity.java
3d48a46d6ea2d0ad43f1d6253399db45414ac9b7 10-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding the word "New" to the action bar menu item

Change-Id: I754ab4cc6d18a9bd2fae9f9de5007e490a9c394b
ontactBrowserActivity.java
11cbbf445e4724246836f006f06ad16cc82ca439 09-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching to framework styles in action bar

Change-Id: I218710421d40e28557252ac22f95c8e0c1791513
ctionBarAdapter.java
d11bca23766abf3325cebbec5b1b225e3fe4663f 09-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Implement granting of URI permissions from picker.

Now apps can have the user pick a contact and retrieve its data without
needing the READ_CONTACTS permission.

Also fix the intent filters for GET_CONTENT to work correctly (not require
a URI).

This is a manual cherry-pick of
https://android-git.corp.google.com/g/#change,64188

Bug: 3230253
Change-Id: I82ada3e1be000e02aa057a1ff2f64bb97e14bc26
ontactSelectionActivity.java
63c311a278cd8ba28d6d8f3b49c0ccd4dffeb57d 08-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding "Cancel" button to contact picker

Bug: 3254117
Change-Id: Id0a40fc63f2ca094c7a1a77205ada84a58c2c457
ontactSelectionActivity.java
18ffaa2561cc7dd2e3ef81737e6537931c0a9a11 03-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming a couple of packages

Change-Id: I2c0f86b51baa622df629206f8b79ef1d0df09119
ontactBrowserActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
9df61ed9eeecb81043e7e6662ff3da83428d6865 03-Dec-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing "app up" behavior

Bug: 3237656
Change-Id: Ief60f257ea59a1da8ad9e3fcabf292ee4f7506c3
ontactEditorActivity.java
2b46f0301c51973d6e3b02b78b398af097244af9 30-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Pushing contact joining to the service (background thread)

Bug: 3228687
Change-Id: If7f492aab683e6033a82e45714795c4a04407234
ontactEditorActivity.java
66bca8f360c9e21b6a47006f21db7b46b6b46340 25-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Turning ContactDeletionInteraction into a Fragment

Change-Id: I6edb576d0158b7082d3e2bc4d1902d34fc62cc7a
ontactBrowserActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
9d730dd9d9efe125c9102b298f897577157ffecd 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving contact starring to the service.

Also, cleaning up some internal API.

Change-Id: I5bd2c5e24413f4e9ea538757ab05c85885f8533e
ontactBrowserActivity.java
ontactDetailActivity.java
02cbf8b0e73a7e169445e341f387356242f0334d 24-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Preventing keyboard from showing while loading contact browser

Bug: 3224228

Change-Id: Ic036e07c3da8deeaf11671295ac0509dd10d7f71
ctionBarAdapter.java
a053d61c4bc694061f449e00cb1b620b855739bb 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing Settings menu item in Asian locales

Bug: 3151551
Change-Id: I9a63499253979b8d18252aae3fe173e6342ba2cd
ontactBrowserActivity.java
90715b38713ea97504f2b4a8452c8dd46d1c20ec 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Processing ACTION_VIEW in contact browser instead of dialog

Bug: 2971898
Change-Id: I3abb6efd8419733681281a2eafa8d9c09660e2a2
ontactBrowserActivity.java
ontactsFrontDoor.java
d959104d37df65f0d6de9290c3fa2b59065be0fc 23-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving state machine logic from activity into fragment.

Change-Id: Ie3d56bb0cbf0d437912ce5c77ae97d99ec7d7c86
ontactBrowserActivity.java
5096815f263545aa22f33e5aebe5a45f3118c5e9 20-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for new field: Groups.GROUP_IS_READ_ONLY

Bug: 3214137
Change-Id: I8cbae752b9ed417c8050cd74d7ba1d7d33d10b5b
ontactBrowserActivity.java
1ac58b6f2a925c5a4f759346e5244dfd174acd08 20-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding "Create new group" functionality

Change-Id: I2d0c28fcf3e9b3099c8889560a149f18f0f74c38
ontactEditorActivity.java
c8e9f2026b463d7138a05c3ffbc340a451315dfc 19-Nov-2010 Daniel Lehmann <lehmannd@google.com> Use framework style for custom action button

Change-Id: Ib3bc733bf2ad1fcd6107b7922dc5e2a16d465f89
ontactBrowserActivity.java
e898a9fa52728b2ff6fcd3add693471e9e15553d 19-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing group renaming and deletion

Change-Id: I5d55d0d45f1e275e1ebf4f607ef09aba1c6bedc3
ontactBrowserActivity.java
c3f2a52067b799e223f0964207a2d1957165e960 18-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding support for initial state: no accounts, no contacts

Bug: 2950700
Bug: 3201561

Change-Id: I3dce97ead53eebc2424ed397234f3f0a892acc14
ontactBrowserActivity.java
8b8264620f9362e089322d1e3a7cc5620900e6f9 17-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Resurrecting empty state UI

Change-Id: Idc1ee48d62d4f0c01756f9b7689e0f31235b61d9
ctionBarAdapter.java
ontactBrowserActivity.java
3b10fd07823bf31dc77017ec7fc371baf7c2ae6e 16-Nov-2010 Makoto Onuki <omakoto@google.com> "ShowOrCreate" dialog -- handle back press

Close the invisible parent activity when back is pressed or
the dialog is dismissed by tapping outside of it.

Bug 3198292

Change-Id: I7eb444b12ec9709ebecc55123e351f99838f9c7b
howOrCreateActivity.java
4597c92d655d45447780b32c7572acef110b6ed1 15-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming BaseAccountType to AccountType

Change-Id: Iff47bac0e1a118f4a5319526304df16cb89bd0cd
ctionBarAdapter.java
a31fe548862fef70d3244dc3414a478f91b098f6 13-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact filters for local (unsynced) contacts.

Bug: 3159239
Change-Id: Id469b19d35dc62e092db64f0ee3356a7ec2f2680
ctionBarAdapter.java
9ce839e2a86b1742682fdec69641c6ed9d665a06 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> New assets and layout in the contact filter pulldown

Change-Id: I549eccac6f6fe4e28a4a26a5a2433b3562dd8c91
ctionBarAdapter.java
703d59a8f6d2a2f00551d03cfb45094440c63527 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Even more clean-up work on the contact browser state machine

Change-Id: I17bec8528c9c1f1bd12cefda52b1aa74dd822006
ontactBrowserActivity.java
955846efce2fb378b527bc74fe322fce655f75e2 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Continued clean-up work on the contact browser state machine

Change-Id: Ief3060e6f81db8f58e1a213b75eafa42205d39d3
ontactBrowserActivity.java
bc5bc44eb0e6f86a093929885547fe37efe60a54 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> More clean-up work on the contact browser state machine

Change-Id: I77ff2dbc2a4fb19a8f61d26a91322fe297bf611c
ontactBrowserActivity.java
30cc853792b4a71871cef8bca03b67b805fdc34e 12-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Resolving issue with the wrong contact displayed in search results.

Bug: 3172505
Change-Id: I9740429306949162a07044aecfd282d14e14f839
ontactBrowserActivity.java
79c9c5a8f849908d2b141c30af15923ea2b60f5b 12-Nov-2010 Daniel Lehmann <lehmannd@google.com> Use blue pressed background state

Change-Id: I10dd655aeb2bfb38ff9b309576b317e6aeef25c8
ontactBrowserActivity.java
915ffc5ae1d10a7ed06d5541fe81da023fa3228f 10-Nov-2010 Daniel Lehmann <lehmannd@google.com> Imported new assets

Change-Id: I9bb245c4a8c50625e10655774dc3700c80c224af
ontactBrowserActivity.java
40ec3a82d525e73e16a79d5acca23f145dcbfb4a 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the flow for copying contact from directory

Change-Id: Ia391864e5cfb3ec14310d5174f389f5423079268
ontactBrowserActivity.java
e5f1e4d30929783b26e285b3ddfbf9bc07bdef58 10-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved handling of a contact URI supplied by QSB.

Bug: 3180715
Change-Id: I36e1d22d461db81803fd7d0dd60b5f1977c7eeb3
ontactBrowserActivity.java
3bfccddd6f61f6196a7f0af426c9e3f742de37f3 04-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing the size of the search field

Change-Id: I196ac49cc8a8120f3073b9a7afb8bbd84ad757a6
ctionBarAdapter.java
4eeac7428b658ee7e6d9280c4e4b6fa02a79c3dd 04-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Reducing the number of times contact detail reloads data

Change-Id: I85844fb9074d30529b81c4d5ba3232bd85923a9e
ontactBrowserActivity.java
d07335a54090a7c41baa99a2c0a6a869ecc6cfba 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing NPE and a race condition on initial load

Change-Id: Iab48097299f36366fae0849baa115feaa497b55b
ontactBrowserActivity.java
d21ddb2c96e71f43eaf7addc25e163181d1ca87d 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving JoinContactActivity and updating style

Change-Id: Ie42a751d53f8ad8911bcb796754889514cc665ea
oinContactActivity.java
47722f664d84cd252a7453920741670944fa9211 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> "Create contact" no longer part of shortcut picker

Bug: 2937128
Change-Id: Id889367524f4609ba2eef8918d44b3d2a1f0693c
ontactSelectionActivity.java
7b8f74678640b571196557d64dd712dc4a109c49 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing ContactSearchActivity and SearchResultsActivity

Bug: 3124910
Change-Id: Iad3c19262b22fb2345bbff42707e1a4d186c0a62
ontactSearchActivity.java
7d901bb3d4118762e21f4db19e35fc937dcf96fe 03-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Automatically adding suggested contact to My Contacts on switch

If the user creates a new contact, gets an aggregation
suggestion and clicks on it - we switch to the selected
contact, but now also adding it to the My Contacts group
if applicable.

Bug: 3140599
Change-Id: I29a18fde42f62297236d1eae88fb149cc7a204b7
ontactEditorActivity.java
f2fa355215467cb1c78661aa5f1ef0c960c7a405 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Reloading contact list after settings change

Bug: 3151551
Change-Id: I384cafb655b278b694f985e2fb74ad0b780a3e3f
ontactBrowserActivity.java
1015d629f848de9d331a47c819f55854549d661d 02-Nov-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing crash on saving an empty contact

Bug: 3118296
Change-Id: I666129a10bdefeacdbe847b858c0e900e05bfb30
ontactEditorActivity.java
174fdc2dcb965f11cf4eb25e4ea961f0e1e56c85 29-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Automatically selecting first found contact.

Change-Id: I232f37d1b5256c315d514a2c8dee9e9eeca5dcb7
ctionBarAdapter.java
ontactBrowserActivity.java
3ad2f35559f81e0d1b5ff362795ae77c0493bd0a 29-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Removing ContactNoneFragment

Change-Id: Ie70cc8548828241d55553d6f0e0243b46996aa90
ontactBrowserActivity.java
ab4d29f6a2edbfae008dbaff35f25baad73aa0df 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing search navigation in Contacts

Search will be fully modal: when the search field
is focused, the app is in the search mode, period.
Back button will cancel search mode.

Change-Id: Ibeb6c28de7ed1a79129aed862a543a6ed2a36435
ctionBarAdapter.java
ontactBrowserActivity.java
6e850a046fcea8ba82a793b43944051246d08180 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Implementing new selection policies in Contacts

1. Selection is now persistent per filter
2. If there is no selection or selection not in the list,
display the first item on the list
3. After creating a new contact or per user request
select the newly created contact in the list. If
it is not in the list, change filter to "Contact"
and display that contact by itself.

Change-Id: I9343fe9d25c86c5d041954d2386f66da2a1bc41f
ontactBrowserActivity.java
ontactSearchActivity.java
ontactSelectionActivity.java
86092529f272b7ed2cee24fae397291696b29b80 28-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing INSERT_OR_EDIT intent for contacts

Change-Id: I62e8c3628bed7443232d0e23ed50d34a55788f70
ontactSearchActivity.java
ontactSelectionActivity.java
091b295ae012aa923e98cc416eaae56fdc3e0dc4 27-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Merge "Performing fragment transaction with delay"
a6c2198bc5ad37119500c4857125ad732548c402 27-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Performing fragment transaction with delay

Bug: 3134987
Change-Id: I40c303a27c2289ce481497569c2cc0770204dab5
ontactBrowserActivity.java
e9b196e446cc34f690a043c5f5d9e5a7b8b92b3f 26-Oct-2010 Daniel Lehmann <lehmannd@google.com> Dialog for showing phone numbers on devices that can not be used as phones

Bug:3116684

Change-Id: I000df5fa6d83812a60fa5eb4c7e621cca2adb4fe
onPhoneActivity.java
9806ed099226a19e92c29d9efa791cd187fd2a53 26-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing contact search

Bug: 3129260
Change-Id: Idb822c10da86cb58a7d46456135bdfa215723993
ctionBarAdapter.java
4d174aad97cd382f810e3bf1a7f1f4f4772be118 26-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding search mode to pickers.

Also cleaning up picker layout.

Change-Id: Ic4d344e9c86398d7c591be33b204d40b23d86a2c
ontactBrowserActivity.java
ontactSearchActivity.java
ontactSelectionActivity.java
d90acd61e464fb557bb08f8de995cfd3a143629e 23-Oct-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix deletion from editor"
249888359a0468df8ae09e0733131281db725944 23-Oct-2010 Daniel Lehmann <lehmannd@google.com> Fix deletion from editor

Bug:2999957
Change-Id: I25daccb1b721b468a4ee4cbcb96344c02ceb410f
ontactEditorActivity.java
0b51a8d4539cc516dc2c02948335347d1df8769b 22-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Forwarding keyboard input to the search view

Change-Id: I111214dc5bfd2194fef4647ec54fa671a7d1b8ed
ctionBarAdapter.java
2013058703aa110a1d7aac87ef408c96a3919472 22-Oct-2010 Daniel Lehmann <lehmannd@google.com> Show account selector in PopupMenu to be less intrusive

Also show an account icon in the dialog-based account-selector

Bug:3117457
Change-Id: I625a25d9aeb751aec0b8e9865be76ed2ecd916d1
ontactBrowserActivity.java
e47dd262a9880121fc2b75fe82b002bc101fc682 20-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Using an intent to switch to aggregation suggestion.

When the user picks an aggregation suggestion to edit,
switching to the new editor is now done with an intent
instead of a reload. This adds a nice transitional
animation.

Change-Id: Iaeab24a6328be51dcde69c1a6ed9babc929709a4
ontactEditorActivity.java
72af89f9e497bb8ef54fe3deeec7e8477d192242 19-Oct-2010 Daniel Lehmann <lehmannd@google.com> Refactorings

package quickcontact:
- Newly created. Contains all quickcontact related files

package editor:
- Renamed GenericEditorView to FieldEditorView
- Renamed *ContactEditorView to *RawContactEditorView

Change-Id: I43c1bd4184f8423e1ab3b81339d512bde46cfea9
howOrCreateActivity.java
8c91dfb9ef1c7ac1a4b2feed0b9a8585d4873542 15-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Conact editor to remain open after a manual join

Bug: 3060255
Change-Id: Ice2bd7d4f1473d3e2c81d6ccd4e3a67428b2bf51
ontactEditorActivity.java
c9916d303cc48b4a4ff94ef9c56d7ca5da72c4de 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Improving layout of aggregation suggestions

Change-Id: I8690c36d0e80f89ee5043703e3a20bc46357f6e5
ctionBarAdapter.java
bee8d3bd37edf44c535c0cc401e8d03f095b8328 13-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved layout of contact filter view

Also, no longer showing the down-arrow when there
is no filter or only one filter.

Change-Id: Ie9bbb7aa279ff2013e4c24ca8f302d864679c35c
ctionBarAdapter.java
84b3cc7fd565ff911ac46a763fdc2f5740a18001 12-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Applying the Holo style to contact picker

Change-Id: Ic57c56359b813d65c89cb0f42efdd1a5f7320894
ontactSelectionActivity.java
e20d3432a370dd3996deec2df4e3cdf726c94992 11-Oct-2010 Daniel Lehmann <lehmannd@google.com> Removed Editor embedding from the Browser-Activity (was unused)

Also added a few @Override annotations to code new to Honeycomb

Change-Id: Ie313d1f849e8e31dc0ac1bea99c72e591e2cf77e
ontactBrowserActivity.java
ontactSearchActivity.java
ontactSelectionActivity.java
91ab5b436ebf12e29fdf3e19b3ea195287fcc1d9 09-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Support for LIST_STARRED Intent

In the new navigation model this will switch
from the currently selected contact filter to
the "Starred" filter.

Change-Id: Ieab404e4b847970cb4823d52e8b53d838a75c7dc
ontactBrowserActivity.java
48cc25047d2c61828e9137c50b3496feada7a175 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Support for LIST_ALL_CONTACTS Intent

In the new navigation model this will switch
from the currently selected contact filter
the "All contacts" filter.

Change-Id: I946c7097b54ca65509c2a4ce33f5eea66d29e63e
ontactBrowserActivity.java
d94c3eb74137b723999542a66f32cc7ac79141ab 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling long-press in the contact list

Change-Id: Iedad482ebcb5204a6d18ddb843b53f3df1a32a1a
ontactBrowserActivity.java
009676f9f2a5d8d47756be37abd9a14f2e564979 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Support for Contacts with Phone Numbers Intent

In the new navigation model "contacts with phone numbers"
will be a filter that can be set via the intent,
but not explicitly in the contacts app except by using
a custom filter.

Change-Id: I4ae94812c5cab6c7e3834beff494c1e840019c03
ontactBrowserActivity.java
ontactSearchActivity.java
ontactSelectionActivity.java
27b97bca14c84b3f830c7a433e14ae5c180a32c3 08-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Upgrading QSB->Contacts integration for tablet UI

Change-Id: Ic6ff3639b808936c29b08c751b6475ebd0bdad3c
ontactBrowserActivity.java
251e4f7dc45928053133fe15fd456da00b7cbe8c 06-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Contact filter uses custom UI instead of NotifyingSpinner

Change-Id: Ia51c6944d67e41050be4e3e60856b15b77ffa090
ctionBarAdapter.java
15ccbb4d22fd65165cacb7970cbe61de1aa9aac4 06-Oct-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving contact filter spinner to the action bar

Change-Id: I29506d0e71e15e4804899146855f22690969d1f5
ctionBarAdapter.java
ontactBrowserActivity.java
ontactBrowserMode.java
88a405fcd3fecfa24c756a8a453a957ecc9f95ae 28-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing preservation of tab selection on rotation

Change-Id: I954e5ba21466a4e6489b40f47171e576c57537e8
ctionBarAdapter.java
6183540651106e844672a68f7606481536be6ab0 28-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Improved graphics and text for directory headers

Change-Id: I4355ae63bd86c3e4f584fe9b9291e178e289f956
ontactBrowserActivity.java
3c69e21d278b1f99b9af817f8459044215238938 27-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Persisting contact selection

Change-Id: Ib4cc2f853b3d6a2a9ec90902f8d35f06c253680b
ontactBrowserActivity.java
1a59cffd839069ce91a9febb8a136442340ab4c8 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching to tab and search UI provided by the framework.

Could not make the search UI always on: apart from some
serious technical difficulties the UX is odd.

First the UX issue: I type in
a query and then switch to some tab. If we leave the
query string in the field there is a disconnect between
that query and what you see in the list. If we wipe off
the query and then we have to retype it completely on
the next search.

Now the technical issue: the search field grabs focus
so whenever I open Contacts, the search field is focused
and the keyboard is up.

Also had to hack SearchView a bit because it does not expose
the API of its constituent AutocompleteEditText.

Change-Id: Ie8848d16ab724e9bb6b7025e88b495c7297d49a7
ctionBarAdapter.java
ontactBrowserActivity.java
c85ad182093f5556d6dbb310f4708cdc174b2665 18-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Changing preferences to PreferenceActivity.

Change-Id: I30f76e94c22828a9516cf2a72a2a772e0b4da44c
ontactBrowserActivity.java
1799e6d97db667826309acdd265da98972608121 17-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling list filter in search mode

Change-Id: If80933f5a7b6c1e4930045696bbcec8fab55083c
ontactBrowserActivity.java
665357cfd5b164347ede65105fec872bc10215e9 11-Sep-2010 Daniel Lehmann <lehmannd@google.com> Merge "Fix "Make as default" (there was an Id clash)"
1624964ef877dc7d67452cbdacfb4d811c245c17 11-Sep-2010 Daniel Lehmann <lehmannd@google.com> Fix "Make as default" (there was an Id clash)

Also add a bunch of @Overrides to show fewer warnings

Change-Id: I33e7a1d8ef7b52cf2a4542598617bd2d5bfcf0df
ontactDetailActivity.java
73216881601ddf8eaa7c645657e7fc95091ac35f 11-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling QuickContact in search results on xlarge

Change-Id: I4a2498e48861022c721c3aa7284d9c3a4b1e91b1
ontactBrowserActivity.java
8c6955ff3c05e1f3899110701c3cb5559a492f1e 09-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Smooth scrolling to selection after new/edit/copy

Change-Id: I8dd5702c6dc3a46b35fea1a3e851238f6e8a38f0
ontactBrowserActivity.java
caf0bc759c4ef96dde5bb0a5256c1dcb51b6ccc4 04-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding "make personal copy" feature

The is the first in a series of CLs.
For now we create the copy, but we don't
actually select it in the UI.

Change-Id: Ie2719bf4e91915992f0e785b7a9827b3c934a6a2
ontactBrowserActivity.java
ontactDetailActivity.java
39709a698e37d8a164579992fc6d1b72f856f384 03-Sep-2010 Dmitri Plotnikov <dplotnikov@google.com> Disabling QuickContact in the two-pane layout

Change-Id: I80386eef9069da518749d56c02fbe6a9b3a5abab
ontactBrowserActivity.java
825cb62b7df3cfe208651d488278e1b57c863884 27-Aug-2010 Daniel Lehmann <lehmannd@google.com> Show the editor in full-screen for Edit and New.

Change-Id: I1f02d979db141d2b08b82aac85fa2deb39c5fbec
ontactBrowserActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
3514fd3fbc7aabdddc647cd6f745437ba4f780a6 19-Aug-2010 Daniel Lehmann <lehmannd@google.com> Use new FragmentManager APIs

Change-Id: I31a862f131c58dbe482573fee177d934fa1e4710
ontactBrowserActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
ontactSearchActivity.java
ontactSelectionActivity.java
15972398b530b91612418dc11d41c356d4f43739 11-Aug-2010 Daniel Lehmann <lehmannd@google.com> Allow saving without closing the Editor

Bug:2895633
Change-Id: I8f8c83952ac84389f9d06bc1ef833ba96a8b887f
ontactBrowserActivity.java
ontactEditorActivity.java
2eb26aacc35a624607187418d61c78258eee8b2c 06-Aug-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing bug with query string change

To repro the bug, click on search, enter "a", backspace "b"
The result will be for the filter "a".

This CL fixes the problem

Change-Id: Ie85ff4945de4ebbe623dee4a8430dac73c52f0cb
ctionBarAdapter.java
ontactBrowserActivity.java
60be1a1e8639a58d16f58686f8a89747d6079cc7 06-Aug-2010 Daniel Lehmann <lehmannd@google.com> Fix a crash with custom IM protocol

Change-Id: I42268ca06ed61b987e0f15289fd29da057a7049a
ontactBrowserActivity.java
ontactDetailActivity.java
a35a7e2aabc4edfafb9b4171e279bdb4c0c03d44 04-Aug-2010 Daniel Lehmann <lehmannd@google.com> Redo dialogs with DialogFragment and fix Join/Seperate

Change-Id: Ied997ad6ba3cf260eb2a04b8882184f1f800140c
ontactBrowserActivity.java
ontactDetailActivity.java
ontactEditorActivity.java
b846fc117b2c4c0c3ed5eb3e9ce32591986a0253 29-Jul-2010 Daniel Lehmann <lehmannd@google.com> Allow deletion from Editor-Screen

Change-Id: I456f7c753a3f73e9d812db2e7a79c8de83b6cfec
ontactBrowserActivity.java
ontactEditorActivity.java
7aa9b2888e4f630c6311458ea27ecbc13a527b00 28-Jul-2010 Daniel Lehmann <lehmannd@google.com> Modified comments and added TODOs for Activity-Result in the Browser

Change-Id: I5b94e53bb143f9da916540d290876fef2fbd0bad
ontactBrowserActivity.java
22fb2053fe2bfe98376bf1a0e564f23ae9cecded 28-Jul-2010 Daniel Lehmann <lehmannd@google.com> Show contact after creation; refactor ContactEditorFragment.Listener

Change-Id: I1fcf45334196a3776ed187cfeb93334f88cee281
ontactBrowserActivity.java
ontactEditorActivity.java
ef3f8f045ed4150caa64749742227acd0e6b85d8 27-Jul-2010 Daniel Lehmann <lehmannd@google.com> Replaced Google by Android Open Source project

Change-Id: I41bf58262c5524d19119aa767e6961a46c679611
ontactDetailActivity.java
ontactEditorActivity.java
3b7d5949bfa524534e5d1aa29b8eaff8733ae00c 23-Jul-2010 Daniel Lehmann <lehmannd@google.com> Make it possible for View and Edit to be in a Dialog

Change-Id: I55e0f3d9369e638651034131812a590984ff2282
ontactBrowserActivity.java
ontactEditorActivity.java
60ad01b47e1073bac4b9299a54673132f4451378 22-Jul-2010 Daniel Lehmann <lehmannd@google.com> Proper handling of View/Edit from list-context Menu

Change-Id: Ibe299620ca0c0ba237a3cd4bfc83e9c807cc63ab
ontactBrowserActivity.java
ontactSearchActivity.java
ontactSelectionActivity.java
69e7fec6dd8a3d24054863c6c648512577fce35c 20-Jul-2010 Daniel Lehmann <lehmannd@google.com> Implement Delete on Contact-Detail; re-use the code from the ContactBrowser

Change-Id: I5b567174b45499c4871db454882bd275b482a014
ontactBrowserActivity.java
ontactDetailActivity.java
65ad5eedb8f44f11e1d29cce141eddd88c0941b3 16-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing visibility of selection in the two-pane layout

Change-Id: Ic1c94aceacdc1f226861ba55388d7531f9b1d642
ontactBrowserActivity.java
fcfdffb439ccf1ddef971109b82e782c47161572 16-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming NavigationBar to ActionBarAdapter

Also, moving browser modes to a class of their own.

Change-Id: Ie2745581537e09717a2c7a58ecebec1b7ada0c81
ctionBarAdapter.java
ontactBrowserActivity.java
ontactBrowserMode.java
avigationBar.java
e1d4c0617ede33b4b0cdb1137aca971b3dacc747 16-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Cleaning up single-pane layout. Phase I.

o Now using an overlay to determine whether to use a two-pane
or single-pane layout.

o Fixing search mode layout on the phone.

o Moving search activity to activities and renaming it

o Setting a custom theme for contact pickers

Change-Id: Iafe61df60206fbdab554c1772b05ca0e5bd74f6f
ontactBrowserActivity.java
ontactSearchActivity.java
061dd9801fb6e00e6fb320ff7fcc5ef0840871fd 15-Jul-2010 Daniel Lehmann <lehmannd@google.com> Remove toast for header

Change-Id: Ia5bc20a385ac28c5e2a4d852fc37b10242a338d4
ontactBrowserActivity.java
7bb2add27b874d194c294d30c1661dffa78f44bb 15-Jul-2010 Daniel Lehmann <lehmannd@google.com> Don't bring up the search UI while editing a field

Change-Id: I50fb06d275801fbf57e220861444c2f9d5a1bc73
ontactBrowserActivity.java
bd772a5bfd907f3b14589a07378fb26dfd924d93 14-Jul-2010 Daniel Lehmann <lehmannd@google.com> Fix TAG and comment

Change-Id: I226e24ccd45174ce5f2451b6a220a7ff37815419
ontactBrowserActivity.java
ca98444277723c60be83062cf5a25ec7ca1fdb34 14-Jul-2010 Daniel Lehmann <lehmannd@google.com> Instant save in the Editor; renamed EntitySet to EntityDeltaList

Change-Id: Ib4b57e76db346bec38dcf294d895f13d4b2fc6d3
ontactBrowserActivity.java
e2bbe1db7e21e5c1ade79dd2dc74216f82b65e01 13-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Switching join contact functionality to LoaderManager.

Change-Id: I935e1610e18d5fb72a321aad9a329ae0232ee192
ontactBrowserActivity.java
3391dbed3575b3454c2bebf35dae4a19d8f987f2 12-Jul-2010 Daniel Lehmann <lehmannd@google.com> Make dialogs work again (might need cleanup once/if we get framework support)

Change-Id: I1e46376a69cadc3c3c638130b901e84999407a3f
ontactBrowserActivity.java
cfa39004ed111f131bfb7d8841d5b9a9ee8221fb 10-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Renaming ContactListActivity to ContactBrowserActivity

Change-Id: I641eade0ede0e07bf6e7ec2c3a3430b4131b97c0
ontactBrowserActivity.java
ontactListActivity.java
ontactsFrontDoor.java
cfc648986f569bde83715584a91f89ed28dd8335 10-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Fixing issues with selection preservation including search

We have to do quite bit of work here because contact IDs
are unstable.

Change-Id: I461e1600cd686a2cf5e2dc6f931c7132853f7636
ontactListActivity.java
9cd1708f333eda622dc6a4fed2a0df9058193a9d 09-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Preserving separate contact selection per mode.

Change-Id: Ic481ffbbe8582cece04e4f2c0b1aa7aada7b93c7
ontactListActivity.java
d364314c460152db7089b304beec81b3675893ba 09-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Preserving detail URI on orientation change

Change-Id: Ia84cd323398e9503f9fe883db792ef388565124d
ontactListActivity.java
92a6fdf1b07b8f1447560174e24455fd46aee7cd 09-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Preserving list state on orientation change

Change-Id: Ibb75905573428e244b0cc4f0e61418e9f38101ed
ontactListActivity.java
avigationBar.java
c0ca13a86793082c8969e44c70d4dc8fb83eb1f8 08-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Adding a "no contact selected" fragment

Change-Id: Ib3bc474e84315854ac0f800ce2566606654d0ff2
ontactListActivity.java
0d5774911ea5885f0bbe6256c1d59719b3ca3e35 08-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> A temporary background resource for view/edit

Change-Id: I9aa93c16f816b4582e20067a30a65ec320d1db98
ontactListActivity.java
ac59685d328b278f5e07791bf3d5600496898a00 08-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Making selection visible in contact browser.

Change-Id: I936c4d3fdec8061e62b5d551189ec87408d574f9
ontactListActivity.java
08e1c4e49947daee26cfc435d01605febb7ae6fa 03-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Add modes to the navigation bar

Change-Id: I3754aa391513641d920fb89690ac4ca328c2942c
ontactListActivity.java
avigationBar.java
4af3b0710ac6f08450b723a3784495469e45ba05 02-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving search box into the action bar

Change-Id: I41d4b4d24109a65a95395857dded4247f6c9c784
ontactListActivity.java
b979b4294c14f2bc562a5279910bafb7ac1a92b4 02-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Splitting pickers into their own activity

Change-Id: I1998b446b0aaaedc086ad99416fb6118d840623c
ontactListActivity.java
ontactSelectionActivity.java
424440bd932482c0a08b782a570d600051c56eb4 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Combining ContactListActivity and TwoPaneActivity into one.

Change-Id: I2ab37a0c87bf26c56cef6946fb53814a70e0ac85
ontactListActivity.java
ontactsFrontDoor.java
woPaneActivity.java
27834b2ae8bb5a65dfc20c212844d98d1c252cae 01-Jul-2010 Dmitri Plotnikov <dplotnikov@google.com> Moving ContactsListActivity to a different package

Change-Id: Ia8b850ed0be700458e741461ab9ea48508bbbf0b
ontactListActivity.java
3648d2ea76a6649230d1fdd3dba92797ae7cfb26 30-Jun-2010 Daniel Lehmann <lehmannd@google.com> Removed done and revert. Replaced instances of LinearLayout by FrameLayout for speed.

Change-Id: Idbf4cf14431ae66de7888432189492f5896693b9
ontactEditorActivity.java
df4b146f88c48e2696f5f39f67701e34d7279327 28-Jun-2010 Jeff Hamilton <jham@android.com> Add a proxy activity that loads the right UI base on screen properties.

Change-Id: If6ae100f02a024006a541f02dabaf98ade89ab5d
ontactsFrontDoor.java
f319cf8549738feca5965a598af9a310869e1f3d 26-Jun-2010 Daniel Lehmann <lehmannd@google.com> Use the form-based editor in a fragment

Change-Id: I461bc1842f5c9cf1d97f4ef285eb5d88c850134f
ontactEditorActivity.java
woPaneActivity.java
83633cce0b7af22f24a44241b5a9b26ff7960563 23-Jun-2010 Daniel Lehmann <lehmannd@google.com> Create Inline-Editors for every existing type, remove some intermediate code for modal editors

Change-Id: Ibd137797d09db0ca194c0468890290f56050d83c
ontactFieldEditorActivity.java
woPaneActivity.java
cc8bfc88f5c066b4e1b8d4a08eee52164decf24f 22-Jun-2010 Daniel Lehmann <lehmannd@google.com> Make the editor in the two-pane activity work

Change-Id: Ie468cbedf70a87084117b933e646f3af87746377
woPaneActivity.java
173ffe1300afa6a88a7f0a924adade121e564274 15-Jun-2010 Daniel Lehmann <lehmannd@google.com> More work on modal field editors

Bug:2680726
Change-Id: I6685fd6d20358bc2f83b2b81294106e86db0fcee
ontactEditorActivity.java
ontactFieldEditorActivity.java
eb4d1bf9868dfddd958d8f028e36a4d2da7a8731 09-Jun-2010 Dianne Hackborn <hackbod@google.com> Follow Fragment API change: framework now handles menus.

Change-Id: I1bb8d4616e2b09a9c7139d4f4f5a5267c55c96e9
ontactDetailActivity.java
ontactEditorActivity.java
cdef2b60aa87b1178033fdc964a3402386c03d7c 07-Jun-2010 Daniel Lehmann <lehmannd@google.com> Modal field editors

Bug:2680726
Change-Id: I167b02c50653abfa22ed72023993c9dd31f752a9
ontactDetailActivity.java
ontactEditActivity.java
ontactEditorActivity.java
ontactFieldEditorActivity.java
woPaneActivity.java
9c3f337422f5147220d85c0779daf6c10c4e96f7 17-May-2010 Daniel Lehmann <lehmannd@google.com> Remove instance hacks, now that findFragmentById works

Change-Id: Id31aa717299a575ed8612b197f72e71bab508174
ontactDetailActivity.java
ontactEditActivity.java
woPaneActivity.java
fda092b7d54e9c709ec759cb0b922010dee4daa6 15-May-2010 Dmitri Plotnikov <dplotnikov@google.com> Initial integration of search into the two-pane activity

Change-Id: I86277648716e7408ff65282c07a5d0a4f0b7d183
woPaneActivity.java
37b775bec3119213007dd020113e9939722a90a6 12-May-2010 Daniel Lehmann <lehmannd@google.com> Implemented all missing functionality from Editor-Fragment (minus Statehandling)

Bug: 2579760
Change-Id: Ia4c6a1daa29a369ea0a6aa329841a8c357d3c847
ontactEditActivity.java
25a0282e968ebcdec6510bdb766ffba79b6fb8c4 12-May-2010 Daniel Lehmann <lehmannd@google.com> Changed fragments so that they can be used in Xml. Made demo 2-pane activity working

Bug: 2579760

Change-Id: I1d499643efd5911aa1387bfdd97b7b973c4a929a
ontactDetailActivity.java
ontactEditActivity.java
woPaneActivity.java
18f104fa8c167a510b2cca3c15a43833c9a54c7c 08-May-2010 Daniel Lehmann <lehmannd@google.com> Refactor Contact-Editor and Contact-Viewer.

Bug:2579760

Change-Id: Id61cc6fbc2b4def72df012cca3ac3c0185b583bb
ontactDetailActivity.java
ontactEditActivity.java
c2687c3c38d8fb5f34ad6d8fb5c33e16f335183c 20-Apr-2010 Daniel Lehmann <lehmannd@google.com> Refactor to coupler/presenter pattern. Moved framework classes to correct packages

Bug:2579760
Change-Id: Ia0c475e55830aa2d8b13cdb2685fc0981b6f6ade
ontactDetailActivity.java
c3a00085193e474c69ff0f455dd5d6086ff72e69 13-Apr-2010 Daniel Lehmann <lehmannd@google.com> Some refactorings to MVC

Bug:2579760
Change-Id: Ie07f9a1077f7b3d744477a2deed90c79737eb7a6
ontactDetailActivity.java
cbcc44983dc84f25d43e45f25021019233a4e2ef 13-Apr-2010 Daniel Lehmann <lehmannd@google.com> Update to new MVC framework

Change-Id: I792037f910de24b30f5b33e1b3f789c69a854ff5
ontactDetailActivity.java
4cd94419d615e5513849516dfcbf0ce4cd08ecd0 09-Apr-2010 Daniel Lehmann <lehmannd@google.com> Break up view-contact-activity into smaller pieces so that they can be better recombined. Also first import of temporary mvc-framework classes that should later go into the framework.
Bug:2579760

Change-Id: I865b6194fbd28abb415e9d54622b91d719288204
ontactDetailActivity.java