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

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

Merge "AIOOB exception fix in TabWidget"

parents 4fdc6ebb cd59febc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -174,8 +174,8 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
    void measureHorizontal(int widthMeasureSpec, int heightMeasureSpec) {
        // First, measure with no constraint
        final int unspecifiedWidth = MeasureSpec.makeMeasureSpec(0, MeasureSpec.UNSPECIFIED);
        super.measureHorizontal(unspecifiedWidth, heightMeasureSpec);
        mImposedTabsHeight = -1;
        super.measureHorizontal(unspecifiedWidth, heightMeasureSpec);

        int extraWidth = getMeasuredWidth() - MeasureSpec.getSize(widthMeasureSpec);
        if (extraWidth > 0) {