OSDN Git Service

Fix FastTrack recycling consistency issues, shadows.
authorJeff Sharkey <jsharkey@android.com>
Mon, 5 Oct 2009 18:15:57 +0000 (11:15 -0700)
committerJeff Sharkey <jsharkey@android.com>
Tue, 6 Oct 2009 22:38:25 +0000 (15:38 -0700)
commit9a8a3d9d0b424e579ac146bec49257ea01d221d8
tree64a9f3a6ca56e7835f4ec1819da608a2b28b31b7
parent685fdd508523225bcb52a862c530b3cd6dd30cb0
Fix FastTrack recycling consistency issues, shadows.

When FastTrack is displayed and a configuration change
occurs, we tear down and recreate the host Activity, but in
the process moveTaskToBack(), which means the next trigger
will show a stale track and rectangle.

This change dismisses the track in onPause() to reduce risk
of bringing back a stale track.  It also introduces a new
mDismissed flag to catch any race conditions where the track
is dismissed before showInternal() is called.

When requested a show() and already visible, instead of
ignoring, I'm calling dismissInternal() to replace the track
with the updated request.  I'm also using query tokens to
ignore query results from stale show() requests.

This change also fixes padding in the large FT format when
no photo is available.  It also fixes shadow behind track
to remove sharp vertical edges visible during animations.

Also clears "make default" checkbox between recycles and
fixes an issue where icons for preferred apps remained after
the user selects "always use" from intent disambig list.

Fixes http://b/2163611 and http://b/2164119
res/drawable-hdpi-finger/quickcontact_drop_shadow.9.png
res/drawable-mdpi-finger/quickcontact_drop_shadow.9.png
res/layout-finger/quickcontact.xml
res/layout-finger/quickcontact_header_large.xml
res/layout-finger/quickcontact_item.xml
res/values/dimens.xml
src/com/android/contacts/ui/QuickContactActivity.java
src/com/android/contacts/ui/QuickContactWindow.java