Add shell-transitions inTransition check to getTouchOcclusionMode
This is the equivalent of legacy transitions isAnimating and is used by inputflinger to know when to use opacity checks vs blind occlusion blocking for untrusted touches. Bug: 194233756 Test: atest WindowUntrustedTouchTest Change-Id: I187c94ae55176d5369e5aaee995ccee251ac34b7
This commit is contained in:
@@ -1172,7 +1172,8 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
|
||||
if (WindowManager.LayoutParams.isSystemAlertWindowType(mAttrs.type)) {
|
||||
return TouchOcclusionMode.USE_OPACITY;
|
||||
}
|
||||
if (isAnimating(PARENTS | TRANSITION, ANIMATION_TYPE_ALL)) {
|
||||
if (isAnimating(PARENTS | TRANSITION, ANIMATION_TYPE_ALL)
|
||||
|| mWmService.mAtmService.getTransitionController().inTransition(this)) {
|
||||
return TouchOcclusionMode.USE_OPACITY;
|
||||
}
|
||||
return TouchOcclusionMode.BLOCK_UNTRUSTED;
|
||||
|
||||
Reference in New Issue
Block a user