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

Commit 95eae919 authored by Nikolas Havrikov's avatar Nikolas Havrikov
Browse files

Recycle obtained TypedArrays

Bug: 218835043
Test: make
Change-Id: I26d343678740bfccb6cfea6ddb31765f91e66bf3
parent b0385bd9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -1364,6 +1364,7 @@ public class WindowManagerService extends IWindowManager.Stub
        float lightRadius = a.getDimension(R.styleable.Lighting_lightRadius, 0);
        float ambientShadowAlpha = a.getFloat(R.styleable.Lighting_ambientShadowAlpha, 0);
        float spotShadowAlpha = a.getFloat(R.styleable.Lighting_spotShadowAlpha, 0);
        a.recycle();
        float[] ambientColor = {0.f, 0.f, 0.f, ambientShadowAlpha};
        float[] spotColor = {0.f, 0.f, 0.f, spotShadowAlpha};
        SurfaceControl.setGlobalShadowSettings(ambientColor, spotColor, lightY, lightZ,