Fix for SysUi overrides being applied on non-fullscreen VIS windows.

See the attached bug for a detailed explanation of the issue.
For Android reviewers: please confirm that this change will also make it to the Pixel 6 System Image.

Test: manually, by updating the height of the decor view, and observing behavior with and without applying sysui flags to it
Bug: 190027393
Change-Id: Ia5933424e33c424cf642131923aed4fe624c52d3
This commit is contained in:
Daniel Kalmar
2021-06-04 14:53:44 +02:00
parent 3f0812ea7c
commit 15775cd183

View File

@@ -1771,7 +1771,7 @@ public class DisplayPolicy {
}
// Voice interaction overrides both top fullscreen and top docked.
if (affectsSystemUi && attrs.type == TYPE_VOICE_INTERACTION) {
if (affectsSystemUi && attrs.type == TYPE_VOICE_INTERACTION && attrs.isFullscreen()) {
if (mTopFullscreenOpaqueWindowState == null) {
mTopFullscreenOpaqueWindowState = win;
if (mTopFullscreenOpaqueOrDimmingWindowState == null) {