Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 373954a1 authored by Alan Viverette's avatar Alan Viverette
Browse files

Refactor Drawable.getDither() to isDither()

Bug: 21342040
Change-Id: I801970c2a25289d670636ad5387ddf244fb48225
parent 15ce3387
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -12302,7 +12302,6 @@ package android.graphics.drawable {
    method public android.graphics.drawable.Drawable.ConstantState getConstantState();
    method public android.graphics.drawable.Drawable getCurrent();
    method public android.graphics.Rect getDirtyBounds();
    method public boolean getDither();
    method public void getHotspotBounds(android.graphics.Rect);
    method public int getIntrinsicHeight();
    method public int getIntrinsicWidth();
@@ -12319,6 +12318,7 @@ package android.graphics.drawable {
    method public void inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, android.content.res.Resources.Theme) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
    method public void invalidateSelf();
    method public boolean isAutoMirrored();
    method public boolean isDither();
    method public boolean isFilterBitmap();
    method public boolean isStateful();
    method public final boolean isVisible();
+1 −1
Original line number Diff line number Diff line
@@ -12617,7 +12617,6 @@ package android.graphics.drawable {
    method public android.graphics.drawable.Drawable.ConstantState getConstantState();
    method public android.graphics.drawable.Drawable getCurrent();
    method public android.graphics.Rect getDirtyBounds();
    method public boolean getDither();
    method public void getHotspotBounds(android.graphics.Rect);
    method public int getIntrinsicHeight();
    method public int getIntrinsicWidth();
@@ -12634,6 +12633,7 @@ package android.graphics.drawable {
    method public void inflate(android.content.res.Resources, org.xmlpull.v1.XmlPullParser, android.util.AttributeSet, android.content.res.Resources.Theme) throws java.io.IOException, org.xmlpull.v1.XmlPullParserException;
    method public void invalidateSelf();
    method public boolean isAutoMirrored();
    method public boolean isDither();
    method public boolean isFilterBitmap();
    method public boolean isStateful();
    method public final boolean isVisible();
+1 −1
Original line number Diff line number Diff line
@@ -363,7 +363,7 @@ public class BitmapDrawable extends Drawable {
    }

    @Override
    public boolean getDither() {
    public boolean isDither() {
        return mBitmapState.mPaint.isDither();
    }

+1 −1
Original line number Diff line number Diff line
@@ -279,7 +279,7 @@ public abstract class Drawable {
     * @return whether this drawable dithers its colors
     * @see #setDither(boolean)
     */
    public boolean getDither() {
    public boolean isDither() {
        return false;
    }

+1 −1
Original line number Diff line number Diff line
@@ -167,7 +167,7 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
    }

    @Override
    public boolean getDither() {
    public boolean isDither() {
        return mDrawableContainerState.mDither;
    }

Loading