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

Commit 15775cd1 authored by Daniel Kalmar's avatar Daniel Kalmar
Browse files

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
parent 3f0812ea
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1771,7 +1771,7 @@ public class DisplayPolicy {
        }
        }


        // Voice interaction overrides both top fullscreen and top docked.
        // 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) {
            if (mTopFullscreenOpaqueWindowState == null) {
                mTopFullscreenOpaqueWindowState = win;
                mTopFullscreenOpaqueWindowState = win;
                if (mTopFullscreenOpaqueOrDimmingWindowState == null) {
                if (mTopFullscreenOpaqueOrDimmingWindowState == null) {