Commit 31ac644a authored by Brad Arant's avatar Brad Arant
Browse files

Bug 1565488 - Wrong panel from welcome screen is highlighted after clearing data;r=VladBaicu

Differential Revision: https://phabricator.services.mozilla.com/D39797

--HG--
extra : moz-landing-system : lando
parent 706d0e26
Loading
Loading
Loading
Loading
+5 −6
Original line number Diff line number Diff line
@@ -123,6 +123,11 @@ class TabMenuStripLayout extends ThemedLinearLayout
    }

    void onPageSelected(final int position) {
        if (selectedView != null) {
            selectedView.setTextColor(inactiveTextColor);
        }
        selectedView = (TextView) getChildAt(position);
        selectedView.setTextColor(activeTextColor);
        // Callback to measure and draw the strip after the view is visible.
        ViewTreeObserver vto = getViewTreeObserver();
        if (vto.isAlive()) {
@@ -135,12 +140,6 @@ class TabMenuStripLayout extends ThemedLinearLayout
                    }
                    // let's ensure that we are calling this only once
                    vto.removeOnGlobalLayoutListener(this);
                    if (selectedView != null) {
                        selectedView.setTextColor(inactiveTextColor);
                    }

                    selectedView = (TextView) getChildAt(position);
                    selectedView.setTextColor(activeTextColor);

                    if (strip != null) {
                        boolean isLayoutRtl = ViewCompat.getLayoutDirection(selectedView) == ViewCompat.LAYOUT_DIRECTION_RTL;