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

Commit ef764551 authored by Jorim Jaggi's avatar Jorim Jaggi Committed by Android (Google) Code Review
Browse files

Merge "Fix invisible Keyguard" into lmp-dev

parents 83e3ec9d 5cbfe547
Loading
Loading
Loading
Loading
+12 −6
Original line number Diff line number Diff line
@@ -691,18 +691,20 @@ public abstract class PanelView extends FrameLayout {
            mClosing = true;
            notifyExpandingStarted();
            if (delayed) {
                postDelayed(new Runnable() {
                    @Override
                    public void run() {
                        fling(0, false /* expand */);
                    }
                }, 120);
                postDelayed(mFlingCollapseRunnable, 120);
            } else {
                fling(0, false /* expand */);
            }
        }
    }

    private final Runnable mFlingCollapseRunnable = new Runnable() {
        @Override
        public void run() {
            fling(0, false /* expand */);
        }
    };

    public void expand() {
        if (DEBUG) logf("expand: " + this);
        if (isFullyCollapsed()) {
@@ -728,7 +730,9 @@ public abstract class PanelView extends FrameLayout {

    public void instantExpand() {
        mInstantExpanding = true;
        mUpdateFlingOnLayout = false;
        abortAnimations();
        cancelPeek();
        if (mTracking) {
            onTrackingStopped(true /* expands */); // The panel is expanded after this call.
        }
@@ -761,6 +765,8 @@ public abstract class PanelView extends FrameLayout {
        if (mHeightAnimator != null) {
            mHeightAnimator.cancel();
        }
        removeCallbacks(mPostCollapseRunnable);
        removeCallbacks(mFlingCollapseRunnable);
    }

    protected void startUnlockHintAnimation() {