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

Commit ba9ba612 authored by Galia Peycheva's avatar Galia Peycheva
Browse files

Create a window style attribute for background blur

Add a hidden attribute to the Window style for background blur radius

Bug: 167166562
Test: m && flash && verify with test app

Change-Id: Id785ed20da26033e7f777762bf770b78b4a02992
parent 224c843a
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -2540,6 +2540,9 @@ public class PhoneWindow extends Window implements MenuBuilder.Callback {
            }
        }

        params.backgroundBlurRadius = a.getDimensionPixelSize(
                R.styleable.Window_windowBackgroundBlurRadius, 0);

        if (params.windowAnimations == 0) {
            params.windowAnimations = a.getResourceId(
                    R.styleable.Window_windowAnimationStyle, 0);
+4 −0
Original line number Diff line number Diff line
@@ -2181,6 +2181,10 @@
             the decor view. -->
        <attr name="windowLightNavigationBar" format="boolean" />

        <!-- @hide -->
        <attr name="windowBackgroundBlurRadius" format="dimension"/>


        <!-- Controls how the window is laid out if there is a {@code DisplayCutout}.
        <p>
        Defaults to {@code default}.
+2 −0
Original line number Diff line number Diff line
@@ -3047,6 +3047,8 @@
    <public name="rollbackDataPolicy" />
    <public name="allowClickWhenDisabled" />
    <public name="windowLayoutAffinity" />
    <!-- @hide -->
    <public name="windowBackgroundBlurRadius"/>
  </public-group>

  <public-group type="drawable" first-id="0x010800b5">