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

Commit 7902e321 authored by Galia Peycheva's avatar Galia Peycheva
Browse files

Fix dimmer bug in WindowState

If no dim is not enabled, but there is blur behind requested, the
Dimmer should be invoked with dimAmount 0 and the requested blur
behind radius.

Bug: 167166562
Test: atest BlurTests
Change-Id: Ief98a6ac664c002b7cc9c13aa77ad727ad583465
parent 543116fc
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -5205,7 +5205,7 @@ class WindowState extends WindowContainer<WindowState> implements WindowManagerP
            mIsDimming = true;
            final float dimAmount = (mAttrs.flags & FLAG_DIM_BEHIND) != 0 ? mAttrs.dimAmount : 0;
            final int blurRadius = shouldDrawBlurBehind() ? mAttrs.getBlurBehindRadius() : 0;
            getDimmer().dimBelow(getSyncTransaction(), this, mAttrs.dimAmount, blurRadius);
            getDimmer().dimBelow(getSyncTransaction(), this, dimAmount, blurRadius);
        }
    }