Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ce2baf0d authored by Gilles Debunne's avatar Gilles Debunne
Browse files

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
parent 05b2f71e
Loading
Loading
Loading
Loading
+3 −3
Original line number Diff line number Diff line
@@ -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);
        }
    }