summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher2/CustomizePagedView.java
diff options
context:
space:
mode:
authorMichael Jurka <mikejurka@google.com>2011-05-26 17:10:29 -0700
committerMichael Jurka <mikejurka@google.com>2011-05-31 10:47:24 -0700
commit983e3fdf20acd22b57e3e6f0a309f524c52b62fe (patch)
tree56bc43ec5fb8d03c3d83a51aafb5681b4907f891 /src/com/android/launcher2/CustomizePagedView.java
parent2c30c8596e615f6995d5e48be8b59bd612e63510 (diff)
downloadandroid_packages_apps_Trebuchet-983e3fdf20acd22b57e3e6f0a309f524c52b62fe.tar.gz
android_packages_apps_Trebuchet-983e3fdf20acd22b57e3e6f0a309f524c52b62fe.tar.bz2
android_packages_apps_Trebuchet-983e3fdf20acd22b57e3e6f0a309f524c52b62fe.zip
Fix issue where All Apps tab bar was too small
Change-Id: I702ca5ce32a6346f09c61765aa63625d3d50cc92
Diffstat (limited to 'src/com/android/launcher2/CustomizePagedView.java')
-rw-r--r--src/com/android/launcher2/CustomizePagedView.java10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/com/android/launcher2/CustomizePagedView.java b/src/com/android/launcher2/CustomizePagedView.java
index f80385610..d3779c45a 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;