Stop calling #setOccluded when WM shell is enabled.

While keyguard is shown, WindowManager triggers remote animation for
KEYGUARD_(UN)OCCLUDE app transition. SysUI can know the up-to-date
keyguard occluded status throught this remote animation call, so
WindowManager doesn't need to trigger IKeygaurdService#setOccluded.

Bug: 242862775
Test: Existing tests pass.
Change-Id: I4ea4408ade39ff8558ac7627ad1994b388f1a6c6
This commit is contained in:
Issei Suzuki
2022-08-17 16:19:31 +00:00
parent 9aebc35d8a
commit 3fc5b50024

View File

@@ -3240,8 +3240,7 @@ public class PhoneWindowManager implements WindowManagerPolicy {
@Override
public void onKeyguardOccludedChangedLw(boolean occluded) {
if (mKeyguardDelegate != null && mKeyguardDelegate.isShowing()
&& !WindowManagerService.sEnableShellTransitions) {
if (mKeyguardDelegate != null && mKeyguardDelegate.isShowing()) {
mPendingKeyguardOccluded = occluded;
mKeyguardOccludedChanged = true;
} else {