summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-06-08 19:59:44 (GMT)
committerAndroid (Google) Code Review <android-gerrit@google.com>2010-06-08 19:59:44 (GMT)
commit36354e4e73171f7ad0f92d8eefa389d8824eae36 (patch)
tree524a3a198b03a469813cebc31eb775aaef656de8 /src
parentcc67f476c01ee6a7d593fa67f80392c6793432d7 (diff)
parent8783a051580340af1e32b1e09eab3cdd89b3dca8 (diff)
downloadandroid_packages_apps_Trebuchet-36354e4e73171f7ad0f92d8eefa389d8824eae36.zip
android_packages_apps_Trebuchet-36354e4e73171f7ad0f92d8eefa389d8824eae36.tar.gz
android_packages_apps_Trebuchet-36354e4e73171f7ad0f92d8eefa389d8824eae36.tar.bz2
Merge "Improve workspace's scrolling performance." into froyo
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/AllApps3D.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AllApps3D.java b/src/com/android/launcher2/AllApps3D.java
index 9c3b3e4..b8aa8ec 100644
--- a/src/com/android/launcher2/AllApps3D.java
+++ b/src/com/android/launcher2/AllApps3D.java
@@ -961,7 +961,23 @@ public class AllApps3D extends RSSurfaceView
public void run() {
sRollo.mScrollPos = ((float)mData[0]) / (1 << 16);
mVelocity = ((float)mData[1]) / (1 << 16);
+
+ boolean lastVisible = isVisible();
mZoom = ((float)mData[2]) / (1 << 16);
+
+ final boolean visible = isVisible();
+ if (visible != lastVisible) {
+ post(new Runnable() {
+ public void run() {
+ if (visible) {
+ showSurface();
+ } else {
+ hideSurface();
+ }
+ }
+ });
+ }
+
sZoomDirty = false;
}
}