diff options
author | Adrian Roos <roosa@google.com> | 2015-07-10 15:49:03 -0700 |
---|---|---|
committer | Adrian Roos <roosa@google.com> | 2015-07-10 15:50:24 -0700 |
commit | 18a0b9e041a2489d9ebf2339c80fbdb4495b03f6 (patch) | |
tree | 5494154b4c4162cb7dac82637ce52e9227e29b4e /packages/SystemUI/src/com/android/systemui | |
parent | 01f2d1ac7e035227ae81ca23217f06631923b559 (diff) | |
download | frameworks_base-18a0b9e041a2489d9ebf2339c80fbdb4495b03f6.zip frameworks_base-18a0b9e041a2489d9ebf2339c80fbdb4495b03f6.tar.gz frameworks_base-18a0b9e041a2489d9ebf2339c80fbdb4495b03f6.tar.bz2 |
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
Diffstat (limited to 'packages/SystemUI/src/com/android/systemui')
-rw-r--r-- | packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java index ea59ecd..a078519 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -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) |