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

Commit f8fbc2a7 authored by Selim Cinek's avatar Selim Cinek
Browse files

Showing the bouncer now when waking up from touch while lagging

Bug: 21124013
Change-Id: I21fd26180c3389191e63ca728a651a3fbc98a75e
parent 696d2149
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -3886,6 +3886,7 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
            mScreenOnComingFromTouch = true;
            mScreenOnTouchLocation = new PointF(event.getX(), event.getY());
            mNotificationPanel.setTouchDisabled(false);
            mStatusBarKeyguardViewManager.notifyScreenWakeUpRequested();
        }
    }

+7 −1
Original line number Diff line number Diff line
@@ -73,6 +73,7 @@ public class StatusBarKeyguardViewManager {
    private boolean mLastBouncerShowing;
    private boolean mLastBouncerDismissible;
    private OnDismissAction mAfterKeyguardGoneAction;
    private boolean mScreenWillWakeUp;

    public StatusBarKeyguardViewManager(Context context, ViewMediatorCallback callback,
            LockPatternUtils lockPatternUtils) {
@@ -163,6 +164,7 @@ public class StatusBarKeyguardViewManager {

    public void onScreenTurnedOn(final IKeyguardShowCallback callback) {
        mScreenOn = true;
        mScreenWillWakeUp = false;
        mPhoneStatusBar.onScreenTurnedOn();
        if (callback != null) {
            callbackAfterDraw(callback);
@@ -182,6 +184,10 @@ public class StatusBarKeyguardViewManager {
        });
    }

    public void notifyScreenWakeUpRequested() {
        mScreenWillWakeUp = true;
    }

    public void verifyUnlock() {
        dismiss();
    }
@@ -297,7 +303,7 @@ public class StatusBarKeyguardViewManager {
     * Dismisses the keyguard by going to the next screen or making it gone.
     */
    public void dismiss() {
        if (mScreenOn) {
        if (mScreenOn || mScreenWillWakeUp) {
            showBouncer();
        }
    }