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

Commit 39be4bdd authored by Gilles Debunne's avatar Gilles Debunne Committed by Android (Google) Code Review
Browse files

Merge "Support custom themes in TabHost."

parents 342ea9dc 0e23ab70
Loading
Loading
Loading
Loading
+5 −3
Original line number Diff line number Diff line
@@ -79,12 +79,14 @@ public class TabHost extends FrameLayout implements ViewTreeObserver.OnTouchMode
                com.android.internal.R.attr.tabWidgetStyle, 0);

        mTabLayoutId = a.getResourceId(R.styleable.TabWidget_tabLayout, 0);
        a.recycle();

        if (mTabLayoutId == 0) {
            throw new IllegalArgumentException("Invalid TabWidget tabLayout id");
            // In case the tabWidgetStyle does not inherit from Widget.TabWidget and tabLayout is
            // not defined.
            mTabLayoutId = R.layout.tab_indicator_holo;
        }

        a.recycle();

        initTabHost();
    }