From ce2baf0d57ee3f1e8a7f07c030595f489407d1ce Mon Sep 17 00:00:00 2001 From: Gilles Debunne Date: Wed, 10 Feb 2010 15:19:14 -0800 Subject: [PATCH] Closed tabs removed from layout. TabHost sets closed tabs visibility to GONE instead of INVISIBLE, so that they are no longer considered by the layout. Change-Id: I74efea13d43e3c7ce21476c7bbcb3bb1cca8bf29 --- core/java/android/widget/TabHost.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core/java/android/widget/TabHost.java b/core/java/android/widget/TabHost.java index 78e2fee3b4d29..d4d90635f49ea 100644 --- a/core/java/android/widget/TabHost.java +++ b/core/java/android/widget/TabHost.java @@ -16,6 +16,8 @@ package android.widget; +import com.android.internal.R; + import android.app.LocalActivityManager; import android.content.Context; import android.content.Intent; @@ -33,8 +35,6 @@ import android.view.Window; import java.util.ArrayList; import java.util.List; -import com.android.internal.R; - /** * Container for a tabbed window view. This object holds two children: a set of tab labels that the * user clicks to select a specific tab, and a FrameLayout object that displays the contents of that @@ -624,7 +624,7 @@ mTabHost.addTab(TAB_TAG_1, "Hello, world!", "Tab 1"); } public void tabClosed() { - mTabContent.setVisibility(View.INVISIBLE); + mTabContent.setVisibility(View.GONE); } }