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

Commit ec6cd628 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "frameworks/base: Fix to avoid crash when the tab is not set from app"

parents c1581b43 d1ad5ab2
Loading
Loading
Loading
Loading
+23 −21
Original line number Diff line number Diff line
@@ -330,6 +330,7 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
            return;
        }

        if(mSelectedTab != -1) {
           final View selectedChild = getChildTabViewAt(mSelectedTab);

           final Drawable leftStrip = mLeftStrip;
@@ -353,6 +354,7 @@ public class TabWidget extends LinearLayout implements OnFocusChangeListener {
           leftStrip.draw(canvas);
           rightStrip.draw(canvas);
        }
    }

    /**
     * Sets the current tab.