Fix LockscreenWallpaper jank am: d866b02d54 am: bce85f3986

am: de3e10b81c

Change-Id: I4f11f357835d314b445db488d14e4a44a8f768dc
This commit is contained in:
Adrian Roos
2016-08-14 00:45:09 +00:00
committed by android-build-merger

View File

@@ -26,6 +26,7 @@ import android.content.res.Resources;
import android.graphics.Bitmap;
import android.graphics.BitmapFactory;
import android.graphics.Rect;
import android.graphics.Xfermode;
import android.graphics.drawable.BitmapDrawable;
import android.graphics.drawable.Drawable;
import android.graphics.drawable.DrawableWrapper;
@@ -223,6 +224,12 @@ public class LockscreenWallpaper extends IWallpaperManagerCallback.Stub implemen
mState = state;
}
@Override
public void setXfermode(@Nullable Xfermode mode) {
// DrawableWrapper does not call this for us.
getDrawable().setXfermode(mode);
}
@Override
public int getIntrinsicWidth() {
return -1;