Merge "Fix flash of uninitialized surface" into mnc-dev

This commit is contained in:
Adrian Roos
2015-07-11 00:57:17 +00:00
committed by Android (Google) Code Review

View File

@ -1700,7 +1700,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)