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

Commit 226797c8 authored by Danesh M's avatar Danesh M Committed by Gerrit Code Review
Browse files

Revert "Only show keyguard panel if on lockscreen + no activity on top"

Breaks SHOW_WHEN_LOCKED for secure lockscreen + blur + LLS
CYNGNOS-3057

This reverts commit 28e023d0.

Change-Id: Iccec0129e793b910af02bf0a8f60ec9a2ca226a2
parent 9153396a
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -4538,10 +4538,6 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
        return mStatusBarKeyguardViewManager != null && mStatusBarKeyguardViewManager.isSecure();
    }

    public boolean isKeyguardInputRestricted() {
        return mStatusBarKeyguardViewManager != null && mStatusBarKeyguardViewManager.isInputRestricted();
    }

    public long calculateGoingToFullShadeDelay() {
        return mKeyguardFadingAwayDelay + mKeyguardFadingAwayDuration;
    }
+2 −2
Original line number Diff line number Diff line
@@ -102,12 +102,12 @@ public class LiveLockScreenController {
                }
            }
        } else {
            if (isShowingLiveLockScreenView() && !mBar.isKeyguardInputRestricted()) {
            if (isShowingLiveLockScreenView()) {
                mPanelView.removeView(mLiveLockScreenView);
            }
                mLlsHasFocus = false;
            }
        }
    }

    private ILiveLockScreenChangeListener mChangeListener =
            new ILiveLockScreenChangeListener.Stub() {
+1 −3
Original line number Diff line number Diff line
@@ -220,9 +220,7 @@ public class WindowAnimator {
        // Show SHOW_WHEN_LOCKED windows that turn on the screen
        allowWhenLocked |= (win.mAttrs.flags & FLAG_SHOW_WHEN_LOCKED) != 0 && win.mTurnOnScreen;
        // Show windows that use TYPE_STATUS_BAR_SUB_PANEL when locked
        allowWhenLocked |= win.mAttrs.type == WindowManager.LayoutParams.TYPE_KEYGUARD_PANEL &&
                winShowWhenLocked == null;

        allowWhenLocked |= win.mAttrs.type == WindowManager.LayoutParams.TYPE_KEYGUARD_PANEL;

        if (appShowWhenLocked != null) {
            allowWhenLocked |= appShowWhenLocked == win.mAppToken