Merge "Add isFilterBitmap() overrides where appropriate" into mnc-dev

This commit is contained in:
Chet Haase
2015-06-15 15:45:55 +00:00
committed by Android (Google) Code Review
2 changed files with 13 additions and 0 deletions

View File

@@ -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);

View File

@@ -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 {