diff options
-rw-r--r-- | src/com/android/launcher2/AllApps3D.java | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/com/android/launcher2/AllApps3D.java b/src/com/android/launcher2/AllApps3D.java index 36e19ceee..0e6994ccb 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; } } |