Add isFilterBitmap() overrides where appropriate
Issue #21825791 add isFilterBitmap() override to appropriate Drawable subclasses Change-Id: I5cbd72c034be79b0aa53815c7a5a8ea499e6e02d
This commit is contained in:
@@ -351,6 +351,11 @@ public class BitmapDrawable extends Drawable {
|
||||
invalidateSelf();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFilterBitmap() {
|
||||
return mBitmapState.mPaint.isFilterBitmap();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setDither(boolean dither) {
|
||||
mBitmapState.mPaint.setDither(dither);
|
||||
|
||||
@@ -398,6 +398,14 @@ public class NinePatchDrawable extends Drawable {
|
||||
invalidateSelf();
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isFilterBitmap() {
|
||||
if (mPaint == null) {
|
||||
return false;
|
||||
}
|
||||
return getPaint().isFilterBitmap();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void inflate(Resources r, XmlPullParser parser, AttributeSet attrs, Theme theme)
|
||||
throws XmlPullParserException, IOException {
|
||||
|
||||
Reference in New Issue
Block a user