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

Commit 2986c156 authored by Lucas Dupin's avatar Lucas Dupin
Browse files

Bouncer animation and message

- Do not run security container animation if the device was unlocked
- Do not erase message field after swiping up

Test: go/sysui-bouncer-tests
Change-Id: I7e0ccca0877e0cd29f7b2b65e8bff11f279c4b39
Fixes: 77810996
Bug: 76453411
parent 0e675bd9
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -265,11 +265,11 @@ public abstract class KeyguardAbsKeyInputView extends LinearLayout
            mPendingLockCheck.cancel(false);
            mPendingLockCheck = null;
        }
        reset();
    }

    @Override
    public void onResume(int reason) {
        reset();
    }

    @Override
+4 −0
Original line number Diff line number Diff line
@@ -1184,6 +1184,10 @@ public class KeyguardViewMediator extends SystemUI {
        Trace.endSection();
    }

    public boolean isHiding() {
        return mHiding;
    }

    /**
     * Handles SET_OCCLUDED message sent by setOccluded()
     */
+2 −1
Original line number Diff line number Diff line
@@ -3940,7 +3940,8 @@ public class StatusBar extends SystemUI implements DemoMode,
    }

    private void showBouncerIfKeyguard() {
        if (mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED) {
        if ((mState == StatusBarState.KEYGUARD || mState == StatusBarState.SHADE_LOCKED)
                && !mKeyguardViewMediator.isHiding()) {
            showBouncer(true /* animated */);
        }
    }