OSDN Git Service

Moved fast-track to real window, summarize multiple track icons.
authorJeff Sharkey <jsharkey@android.com>
Thu, 21 May 2009 08:33:30 +0000 (01:33 -0700)
committerJeff Sharkey <jsharkey@android.com>
Thu, 21 May 2009 23:15:44 +0000 (16:15 -0700)
commit9bd858bdf35a854b22b2602bfbbf09a7b9edec18
tree36388ade907b84c27f4eed985c5f87cb20f09f82
parent80a193a54746b98eebfe6241c0544226e578df0b
Moved fast-track to real window, summarize multiple track icons.

Moved fast-track away from using a PopupWindow (which expected a View
to get the parent Window IBinder), and instead are using our own
Window.  This allows us to set custom parameters like dimming and
catching touches outside of our window area.

Removed FloatyListView since the fast-track no longer follows
ListView scrolling--instead outside touches dismiss the fast-track.

Changed fast-track handling of actionable contact methods to
summarize duplicate methods into one icon.  Future plan is to "fold
out" the fast-track to resolve between multiple methods.  Also
added notion of text-messaging as a separate action on a Phone item.

To prepare for duplicate resolution, we added the notion of a summary
column (from the data table) to each Mapping.  We display the resolved
value to the user when they need to pick between duplicates.  Changed
Mapping resolution to check for "common" package names first so that
phone numbers owned by other packages are all shown correctly with
generic icon.

Fixed so that pressing back button will always dismiss the fast-track
dialog when shown.  (It now behaves the same regardless of where it's
being shown.)

Added status, presence, and profile action to fast-track.  Changed
social stream so that tapping photo triggers fast-track, instead of
only using gesture approach.
res/layout-finger/fasttrack.xml
src/com/android/contacts/FastTrackWindow.java
src/com/android/contacts/SocialStreamActivity.java