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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user