Merge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev

This commit is contained in:
Julia Reynolds
2015-07-24 14:34:02 +00:00
committed by Android (Google) Code Review

View File

@@ -1690,7 +1690,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
}
if (metaDataChanged) {
if (mBackdropBack.getDrawable() != null) {
Drawable drawable = mBackdropBack.getDrawable();
Drawable drawable =
mBackdropBack.getDrawable().getConstantState().newDrawable().mutate();
mBackdropFront.setImageDrawable(drawable);
if (mScrimSrcModeEnabled) {
mBackdropFront.getDrawable().mutate().setXfermode(mSrcOverXferMode);