Fix some crashes in launcher2.

http://b/issue?id=2142064
This commit is contained in:
Joe Onorato
2009-09-23 18:20:54 -07:00
parent 26646340d8
commit 33ed7b2f5a
2 changed files with 3 additions and 8 deletions
-8
View File
@@ -266,17 +266,9 @@ public class Workspace extends ViewGroup implements DropTarget, DragSource, Drag
clearVacantCache();
mCurrentScreen = Math.max(0, Math.min(currentScreen, getChildCount() - 1));
scrollTo(mCurrentScreen * getWidth(), 0);
updateWallpaperOffset();
invalidate();
}
/**
* Shows the default screen (defined by the firstScreen attribute in XML.)
*/
void showDefaultScreen() {
setCurrentScreen(mDefaultScreen);
}
/**
* Adds the specified child in the current screen. The position and dimension of
* the child are defined by x, y, spanX and spanY.