diff options
author | Michael Jurka <mikejurka@google.com> | 2012-02-23 18:25:43 -0800 |
---|---|---|
committer | Michael Jurka <mikejurka@google.com> | 2012-02-24 12:53:08 -0800 |
commit | 6cfafb96c3b108fec90897c1a251229be9861ddb (patch) | |
tree | 59676434d1209f38823f707f3f1505f04772769d /src/com/android/launcher2/AppsCustomizeTabHost.java | |
parent | 7747119b4085faf856f45e915872c2675aa6a672 (diff) | |
download | android_packages_apps_Trebuchet-6cfafb96c3b108fec90897c1a251229be9861ddb.tar.gz android_packages_apps_Trebuchet-6cfafb96c3b108fec90897c1a251229be9861ddb.tar.bz2 android_packages_apps_Trebuchet-6cfafb96c3b108fec90897c1a251229be9861ddb.zip |
Fix a lot of easy lint issues
Change-Id: I80b43dae137cbbb912ec0fcc4e401de16a9b44a1
Diffstat (limited to 'src/com/android/launcher2/AppsCustomizeTabHost.java')
-rw-r--r-- | src/com/android/launcher2/AppsCustomizeTabHost.java | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/com/android/launcher2/AppsCustomizeTabHost.java b/src/com/android/launcher2/AppsCustomizeTabHost.java index 152b21588..7108c9f53 100644 --- a/src/com/android/launcher2/AppsCustomizeTabHost.java +++ b/src/com/android/launcher2/AppsCustomizeTabHost.java @@ -55,10 +55,17 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona private boolean mInTransition; private boolean mTransitioningToWorkspace; private boolean mResetAfterTransition; + private Runnable mRelayoutAndMakeVisible; public AppsCustomizeTabHost(Context context, AttributeSet attrs) { super(context, attrs); mLayoutInflater = LayoutInflater.from(context); + mRelayoutAndMakeVisible = new Runnable() { + public void run() { + mTabs.requestLayout(); + mTabsContainer.setAlpha(1f); + } + }; } /** @@ -144,12 +151,7 @@ public class AppsCustomizeTabHost extends TabHost implements LauncherTransitiona if (contentWidth > 0 && mTabs.getLayoutParams().width != contentWidth) { // Set the width and show the tab bar mTabs.getLayoutParams().width = contentWidth; - post(new Runnable() { - public void run() { - mTabs.requestLayout(); - mTabsContainer.setAlpha(1f); - } - }); + post(mRelayoutAndMakeVisible); } } super.onMeasure(widthMeasureSpec, heightMeasureSpec); |