diff options
author | Winson Chung <winsonc@google.com> | 2012-03-30 16:36:53 -0700 |
---|---|---|
committer | Winson Chung <winsonc@google.com> | 2012-03-30 17:03:05 -0700 |
commit | 6e3cf9001e2cd5df1b9850831a6ce21497bd1202 (patch) | |
tree | 56463954787076b4b76c2d87fe69aa6444ef5658 /src/com/android/launcher2/AppsCustomizeTabHost.java | |
parent | 0ba38df8a4af98daa535a57ec6c6ecac69b10343 (diff) | |
download | android_packages_apps_Trebuchet-6e3cf9001e2cd5df1b9850831a6ce21497bd1202.tar.gz android_packages_apps_Trebuchet-6e3cf9001e2cd5df1b9850831a6ce21497bd1202.tar.bz2 android_packages_apps_Trebuchet-6e3cf9001e2cd5df1b9850831a6ce21497bd1202.zip |
Using measured dimensions in case the tab flips quickly and the content hasn't shown yet. (Bug 6263403)
Change-Id: I84512dc8d661c4c714a531ba1b028081c1fa164d
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizeTabHost.java')
-rw-r--r-- | src/com/android/launcher2/AppsCustomizeTabHost.java | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java index af0f205d5..0199d01c6 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher2/AppsCustomizeTabHost.java @@ -255,8 +255,8 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona PagedViewWidget.setDeletePreviewsWhenDetachedFromWindow(true); mAnimationBuffer.setAlpha(1f); mAnimationBuffer.setVisibility(View.VISIBLE); - LayoutParams p = new FrameLayout.LayoutParams(child.getWidth(), - child.getHeight()); + LayoutParams p = new FrameLayout.LayoutParams(child.getMeasuredWidth(), + child.getMeasuredHeight()); p.setMargins((int) child.getLeft(), (int) child.getTop(), 0, 0); mAnimationBuffer.addView(child, p); } |