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

Commit 85cf9bf4 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "FIx occlusion status mismatch issue when screen turns off and on...

Merge "FIx occlusion status mismatch issue when screen turns off and on quickly" into tm-qpr-dev am: eb902def

Original change: https://googleplex-android-review.googlesource.com/c/platform/frameworks/base/+/21422765



Change-Id: Iab18db8289da6bc85ec4cb25b603877198e8d7fc
Signed-off-by: default avatarAutomerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
parents 6bc6cd41 eb902def
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -3337,8 +3337,8 @@ public class PhoneWindowManager implements WindowManagerPolicy {
    }

    @Override
    public void onKeyguardOccludedChangedLw(boolean occluded) {
        if (mKeyguardDelegate != null && mKeyguardDelegate.isShowing()) {
    public void onKeyguardOccludedChangedLw(boolean occluded, boolean waitAppTransition) {
        if (mKeyguardDelegate != null && waitAppTransition) {
            mPendingKeyguardOccluded = occluded;
            mKeyguardOccludedChanged = true;
        } else {
+2 −1
Original line number Diff line number Diff line
@@ -166,9 +166,10 @@ public interface WindowManagerPolicy extends WindowManagerPolicyConstants {

    /**
     * Called when the Keyguard occluded state changed.
     *
     * @param occluded Whether Keyguard is currently occluded or not.
     */
    void onKeyguardOccludedChangedLw(boolean occluded);
    void onKeyguardOccludedChangedLw(boolean occluded, boolean waitAppTransition);

    /**
     * Applies a keyguard occlusion change if one happened.
+4 −2
Original line number Diff line number Diff line
@@ -403,8 +403,10 @@ class KeyguardController {
            return;
        }

        mWindowManager.mPolicy.onKeyguardOccludedChangedLw(isDisplayOccluded(DEFAULT_DISPLAY));
        if (isKeyguardLocked(displayId)) {
        final boolean waitAppTransition = isKeyguardLocked(displayId);
        mWindowManager.mPolicy.onKeyguardOccludedChangedLw(isDisplayOccluded(DEFAULT_DISPLAY),
                waitAppTransition);
        if (waitAppTransition) {
            mService.deferWindowLayout();
            try {
                mRootWindowContainer.getDefaultDisplay()
+1 −1
Original line number Diff line number Diff line
@@ -222,7 +222,7 @@ class TestWindowManagerPolicy implements WindowManagerPolicy {
    }

    @Override
    public void onKeyguardOccludedChangedLw(boolean occluded) {
    public void onKeyguardOccludedChangedLw(boolean occluded, boolean waitAppTransition) {
    }

    public void setSafeMode(boolean safeMode) {