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

Commit a4738bdb authored by Jim Miller's avatar Jim Miller Committed by Android Git Automerger
Browse files

am 7c95ae91: am 67fc6b0b: Merge "Fix issue where keyguard reports a valid...

am 7c95ae91: am 67fc6b0b: Merge "Fix issue where keyguard reports a valid token but doesn\'t draw" into klp-dev

* commit '7c95ae91':
  Fix issue where keyguard reports a valid token but doesn't draw
parents 5e3ab35c 7c95ae91
Loading
Loading
Loading
Loading
+5 −9
Original line number Original line Diff line number Diff line
@@ -431,17 +431,13 @@ public class KeyguardViewManager {
    public synchronized void onScreenTurnedOn(final IKeyguardShowCallback callback) {
    public synchronized void onScreenTurnedOn(final IKeyguardShowCallback callback) {
        if (DEBUG) Log.d(TAG, "onScreenTurnedOn()");
        if (DEBUG) Log.d(TAG, "onScreenTurnedOn()");
        mScreenOn = true;
        mScreenOn = true;
        final IBinder token;


        // If keyguard is disabled, we need to inform PhoneWindowManager with a null
        // If keyguard is not showing, we need to inform PhoneWindowManager with a null
        // token so it doesn't wait for us to draw...
        // token so it doesn't wait for us to draw...
        final boolean disabled =
        final IBinder token = isShowing() ? mKeyguardHost.getWindowToken() : null;
                mLockPatternUtils.isLockScreenDisabled() && !mLockPatternUtils.isSecure();

        if (mKeyguardHost == null || disabled) {
        if (DEBUG && token == null) Slog.v(TAG, "send wm null token: "
            token = null;
                + (mKeyguardHost == null ? "host was null" : "not showing"));
        } else {
            token = mKeyguardHost.getWindowToken();
        }


        if (mKeyguardView != null) {
        if (mKeyguardView != null) {
            mKeyguardView.onScreenTurnedOn();
            mKeyguardView.onScreenTurnedOn();