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

Commit 18a0b9e0 authored by Adrian Roos's avatar Adrian Roos
Browse files

Fix flash of uninitialized surface

Fixes a bug where during the animation of
the backdrop uninitialized memory was showing
because the backdrop's alpha was zero, so RenderNode
didn't issue any drawing commands.

Bug: 21472158
Change-Id: I7ad6bb64e739059febffca10463c8097693a9563
parent 01f2d1ac
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -1706,7 +1706,10 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
                    Log.v(TAG, "DEBUG_MEDIA: Fading out album artwork");
                }
                mBackdrop.animate()
                        .alpha(0f)
                        // Never let the alpha become zero - otherwise the RenderNode
                        // won't draw anything and uninitialized memory will show through
                        // if mScrimSrcModeEnabled. Note that 0.001 is rounded down to 0 in libhwui.
                        .alpha(0.002f)
                        .setInterpolator(mBackdropInterpolator)
                        .setDuration(300)
                        .setStartDelay(0)