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

Commit 9f79d0db authored by Chris Wren's avatar Chris Wren Committed by Android (Google) Code Review
Browse files

Merge "make challengeShowing sticky across bounce." into jb-mr1-lockscreen-dev

parents f7e47a00 03ad0c09
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
    // Range: 0 (fully hidden) to 1 (fully visible)
    private float mChallengeOffset = 1.f;
    private boolean mChallengeShowing = true;
    private boolean mWasChallengeShowing = true;
    private boolean mIsBouncing = false;

    private final Scroller mScroller;
@@ -467,8 +468,9 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
    @Override
    public void showBouncer() {
        if (mIsBouncing) return;
        mIsBouncing = true;
        mWasChallengeShowing = mChallengeShowing;
        showChallenge(true);
        mIsBouncing = true;
        if (mScrimView != null) {
            mScrimView.setVisibility(VISIBLE);
        }
@@ -491,7 +493,7 @@ public class SlidingChallengeLayout extends ViewGroup implements ChallengeLayout
    @Override
    public void hideBouncer() {
        if (!mIsBouncing) return;
        showChallenge(false);
        if (!mWasChallengeShowing) showChallenge(false);
        mIsBouncing = false;
        if (mScrimView != null) {
            mScrimView.setVisibility(GONE);