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

Commit cf701add authored by Chet Haase's avatar Chet Haase Committed by Android (Google) Code Review
Browse files

Merge "Fix ViewAnimator.getDisplayedChild() bug"

parents fdeeba96 baea244a
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -185,6 +185,10 @@ public class ViewAnimator extends FrameLayout {
        } else {
            child.setVisibility(View.GONE);
        }
        if (index >= 0 && mWhichChild >= index) {
            // Added item above current one, increment the index of the displayed child
            setDisplayedChild(mWhichChild + 1);
        }
    }

    @Override