am 3013228c: am ae785511: Minor fix to figuring out rows/columns for Customize mode

* commit '3013228c896860154d16ebae02f5333d1628ceae':
  Minor fix to figuring out rows/columns for Customize mode
This commit is contained in:
Michael Jurka
2011-05-20 16:14:29 -07:00
committed by Android Git Automerger
@@ -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();
}
}