Merge "Fix ColorStateListDrawable bounds handling" into qt-dev am: fcbde5243a am: 1a971773e6

am: afc037a39b

Change-Id: Ia2627319166556e6c80b8fdb4cf9f97d109530ae
This commit is contained in:
Winson
2019-06-20 13:12:59 -07:00
committed by android-build-merger

View File

@@ -25,6 +25,7 @@ import android.graphics.BlendMode;
import android.graphics.Canvas;
import android.graphics.ColorFilter;
import android.graphics.PixelFormat;
import android.graphics.Rect;
import android.util.MathUtils;
/**
@@ -135,6 +136,12 @@ public class ColorStateListDrawable extends Drawable implements Drawable.Callbac
return mColorDrawable.getOpacity();
}
@Override
protected void onBoundsChange(Rect bounds) {
super.onBoundsChange(bounds);
mColorDrawable.setBounds(bounds);
}
@Override
protected boolean onStateChange(int[] state) {
if (mState.mColor != null) {