diff options
author | Adrian Roos <roosa@google.com> | 2015-07-11 00:57:17 +0000 |
---|---|---|
committer | Android (Google) Code Review <android-gerrit@google.com> | 2015-07-11 00:57:20 +0000 |
commit | d374c20fc9269913d19666f0994268ed457e0d42 (patch) | |
tree | 6508e5cff4773c5bd20ba65b8f9ee649c43f73f6 | |
parent | 97cf0f1d76f1747302e0171c1cd4f0655fde99c4 (diff) | |
parent | 18a0b9e041a2489d9ebf2339c80fbdb4495b03f6 (diff) | |
download | frameworks_base-d374c20fc9269913d19666f0994268ed457e0d42.zip frameworks_base-d374c20fc9269913d19666f0994268ed457e0d42.tar.gz frameworks_base-d374c20fc9269913d19666f0994268ed457e0d42.tar.bz2 |
Merge "Fix flash of uninitialized surface" into mnc-dev
-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 bda1374..2f5c6e1 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/PhoneStatusBar.java @@ -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) |