summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-05-18 15:31:55 -0700
committerMichael Jurka <mikejurka@google.com>2011-05-20 15:10:12 -0700
commitae7855111e432c88cf9418d82facc1ad64d2eafd (patch)
treeb0e6605493a9427ac29d63de0c08a391db8010ad /src
parentea2daffe8f950f2166f0a07d498e84e33a964252 (diff)
downloadandroid_packages_apps_Trebuchet-ae7855111e432c88cf9418d82facc1ad64d2eafd.tar.gz
android_packages_apps_Trebuchet-ae7855111e432c88cf9418d82facc1ad64d2eafd.tar.bz2
android_packages_apps_Trebuchet-ae7855111e432c88cf9418d82facc1ad64d2eafd.zip
Minor fix to figuring out rows/columns for Customize mode
DO NOT MERGE Change-Id: I53d2ec46061f07f175a8f5aefff8dafd1b786a7f
Diffstat (limited to 'src')
-rw-r--r--src/com/android/launcher2/CustomizePagedView.java7
1 files changed, 1 insertions, 6 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java
index cf1aa6b12..8d867b662 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();
}
}