Merge "Prevent lockscreen album art from flickering on metadata change." into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
ea00f320ee
@@ -1690,7 +1690,8 @@ public class PhoneStatusBar extends BaseStatusBar implements DemoMode,
|
|||||||
}
|
}
|
||||||
if (metaDataChanged) {
|
if (metaDataChanged) {
|
||||||
if (mBackdropBack.getDrawable() != null) {
|
if (mBackdropBack.getDrawable() != null) {
|
||||||
Drawable drawable = mBackdropBack.getDrawable();
|
Drawable drawable =
|
||||||
|
mBackdropBack.getDrawable().getConstantState().newDrawable().mutate();
|
||||||
mBackdropFront.setImageDrawable(drawable);
|
mBackdropFront.setImageDrawable(drawable);
|
||||||
if (mScrimSrcModeEnabled) {
|
if (mScrimSrcModeEnabled) {
|
||||||
mBackdropFront.getDrawable().mutate().setXfermode(mSrcOverXferMode);
|
mBackdropFront.getDrawable().mutate().setXfermode(mSrcOverXferMode);
|
||||||
|
|||||||
Reference in New Issue
Block a user