summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRomain Guy <romainguy@google.com>2010-06-08 20:07:19 (GMT)
committerAndroid Git Automerger <android-git-automerger@android.com>2010-06-08 20:07:19 (GMT)
commit78f51daa71272bc7ec65754b78af470d4efc0117 (patch)
tree68dc8f6ef51409d231530836cc01732480c40c59 /src
parentacc017320a798ae7dcdf7eeeee2963bff7a7697c (diff)
parent36354e4e73171f7ad0f92d8eefa389d8824eae36 (diff)
downloadandroid_packages_apps_Trebuchet-78f51daa71272bc7ec65754b78af470d4efc0117.zip
android_packages_apps_Trebuchet-78f51daa71272bc7ec65754b78af470d4efc0117.tar.gz
android_packages_apps_Trebuchet-78f51daa71272bc7ec65754b78af470d4efc0117.tar.bz2
am 36354e4e: 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 36e19ce..0e6994c 100644
--- a/src/com/android/launcher2/AllApps3D.java
+++ b/src/com/android/launcher2/AllApps3D.java
@@ -939,7 +939,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;
}
}