diff options
author | Michael Jurka <mikejurka@google.com> | 2011-05-18 15:31:55 -0700 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2011-05-18 15:32:45 -0700 |
commit | 7bcda143fe049f84bc9cef5460cb5beaddddcce7 (patch) | |
tree | d108b28867138767cc8a25bdfd520e24fa98eaa4 /src/com/android/launcher2/CustomizePagedView.java | |
parent | dc4682a47446b38c912a30fe43b6a5c5cb53a367 (diff) | |
download | android_packages_apps_Trebuchet-7bcda143fe049f84bc9cef5460cb5beaddddcce7.tar.gz android_packages_apps_Trebuchet-7bcda143fe049f84bc9cef5460cb5beaddddcce7.tar.bz2 android_packages_apps_Trebuchet-7bcda143fe049f84bc9cef5460cb5beaddddcce7.zip |
Minor fix to figuring out rows/columns for Customize mode
Diffstat (limited to 'src/com/android/launcher2/CustomizePagedView.java')
-rw-r--r-- | src/com/android/launcher2/CustomizePagedView.java | 7 |
1 files changed, 1 insertions, 6 deletions
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(); } } |