Fixes 1543726. Double-clicking Home should not make the workspace disappear. This was caused by the workspace optimization that draws only what is thought to be the current celllayout.

This commit is contained in:
Romain Guy
2009-05-06 17:43:13 -07:00
parent 51afc022fa
commit 82d94d9e9e

View File

@@ -833,6 +833,8 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
}
void snapToScreen(int whichScreen) {
if (!mScroller.isFinished()) return;
enableChildrenCache();
whichScreen = Math.max(0, Math.min(whichScreen, getChildCount() - 1));