diff options
author | Michael Jurka <mikejurka@google.com> | 2011-06-03 11:21:32 -0700 |
---|---|---|
committer | Android Git Automerger <android-git-automerger@android.com> | 2011-06-03 11:21:32 -0700 |
commit | dcfc25ca5f5dd3f867e929e34605564162128b45 (patch) | |
tree | 19ca8c460f14d58d870d785663d0354579a349cd /src/com/android/launcher2/CustomizePagedView.java | |
parent | 2eee65316fd6b6a0d9e28344321e798b672c1aa7 (diff) | |
parent | 4c826609208012e7219ecdacde4348b0dd7973bd (diff) | |
download | android_packages_apps_Trebuchet-dcfc25ca5f5dd3f867e929e34605564162128b45.tar.gz android_packages_apps_Trebuchet-dcfc25ca5f5dd3f867e929e34605564162128b45.tar.bz2 android_packages_apps_Trebuchet-dcfc25ca5f5dd3f867e929e34605564162128b45.zip |
am 4c826609: am a83ae6bf: am 330ae983: Merge "Fix issue where All Apps tab bar was too small" into honeycomb-mr2
* commit '4c826609208012e7219ecdacde4348b0dd7973bd':
Fix issue where All Apps tab bar was too small
Diffstat (limited to 'src/com/android/launcher2/CustomizePagedView.java')
-rw-r--r-- | src/com/android/launcher2/CustomizePagedView.java | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java index e1256d08b..932af8915 100644 --- a/src/com/android/launcher2/CustomizePagedView.java +++ b/src/com/android/launcher2/CustomizePagedView.java @@ -210,8 +210,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems mPageContentWidth = layout.getContentWidth(); mPageContentHeight = layout.getContentHeight(); mMinPageWidth = layout.getWidthBeforeFirstLayout(); - removeAllViews(); - invalidatePageData(); + postInvalidatePageData(true); } if (mPageContentHeight > 0) { // Lock our height to the size of the page content @@ -226,12 +225,7 @@ public class CustomizePagedView extends PagedViewWithDraggableItems protected void onLayout(boolean changed, int left, int top, int right, int bottom) { if (mWaitingToInitPages) { mWaitingToInitPages = false; - invalidatePageData(); - - // invalidatePageData() is what causes the child pages to be created. We need the - // children to be measured before layout, so force a new measure here. - measure(MeasureSpec.makeMeasureSpec(getMeasuredWidth(), MeasureSpec.EXACTLY), - MeasureSpec.makeMeasureSpec(getMeasuredHeight(), MeasureSpec.EXACTLY)); + postInvalidatePageData(false); } super.onLayout(changed, left, top, right, bottom); mFirstLayout = false; |