From 7bcda143fe049f84bc9cef5460cb5beaddddcce7 Mon Sep 17 00:00:00 2001 From: Michael Jurka Date: Wed, 18 May 2011 15:31:55 -0700 Subject: Minor fix to figuring out rows/columns for Customize mode --- src/com/android/launcher2/CustomizePagedView.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'src/com/android/launcher2/CustomizePagedView.java') diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java index cdae80c45..68ec535d8 100644 --- a/src/com/android/launcher2/CustomizePagedView.java +++ b/src/com/android/launcher2/CustomizePagedView.java @@ -176,12 +176,6 @@ public class CustomizePagedView extends PagedViewWithDraggableItems setDragSlopeThreshold( r.getInteger(R.integer.config_customizationDrawerDragSlopeThreshold) / 100.0f); - // Create a dummy page and set it up to find out the content width (used by our parent) - PagedViewCellLayout layout = new PagedViewCellLayout(getContext()); - setupPage(layout); - mPageContentWidth = layout.getContentWidth(); - mMinPageWidth = layout.getWidthBeforeFirstLayout(); - setVisibility(View.GONE); setSoundEffectsEnabled(false); setupWorkspaceLayout(); @@ -215,6 +209,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems PagedViewCellLayout layout = new PagedViewCellLayout(getContext()); setupPage(layout); mPageContentWidth = layout.getContentWidth(); + mMinPageWidth = layout.getWidthBeforeFirstLayout(); } } -- cgit v1.2.3