Merge "Refactor Drawable.getDither() to isDither()" into mnc-dev
This commit is contained in:
committed by
Android (Google) Code Review
commit
95b6fdebb4
@@ -12305,7 +12305,6 @@ package android.graphics.drawable {
|
|||||||
method public android.graphics.drawable.Drawable.ConstantState getConstantState();
|
method public android.graphics.drawable.Drawable.ConstantState getConstantState();
|
||||||
method public android.graphics.drawable.Drawable getCurrent();
|
method public android.graphics.drawable.Drawable getCurrent();
|
||||||
method public android.graphics.Rect getDirtyBounds();
|
method public android.graphics.Rect getDirtyBounds();
|
||||||
method public boolean getDither();
|
|
||||||
method public void getHotspotBounds(android.graphics.Rect);
|
method public void getHotspotBounds(android.graphics.Rect);
|
||||||
method public int getIntrinsicHeight();
|
method public int getIntrinsicHeight();
|
||||||
method public int getIntrinsicWidth();
|
method public int getIntrinsicWidth();
|
||||||
@@ -12322,6 +12321,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 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 void invalidateSelf();
|
||||||
method public boolean isAutoMirrored();
|
method public boolean isAutoMirrored();
|
||||||
|
method public boolean isDither();
|
||||||
method public boolean isFilterBitmap();
|
method public boolean isFilterBitmap();
|
||||||
method public boolean isStateful();
|
method public boolean isStateful();
|
||||||
method public final boolean isVisible();
|
method public final boolean isVisible();
|
||||||
|
|||||||
@@ -12620,7 +12620,6 @@ package android.graphics.drawable {
|
|||||||
method public android.graphics.drawable.Drawable.ConstantState getConstantState();
|
method public android.graphics.drawable.Drawable.ConstantState getConstantState();
|
||||||
method public android.graphics.drawable.Drawable getCurrent();
|
method public android.graphics.drawable.Drawable getCurrent();
|
||||||
method public android.graphics.Rect getDirtyBounds();
|
method public android.graphics.Rect getDirtyBounds();
|
||||||
method public boolean getDither();
|
|
||||||
method public void getHotspotBounds(android.graphics.Rect);
|
method public void getHotspotBounds(android.graphics.Rect);
|
||||||
method public int getIntrinsicHeight();
|
method public int getIntrinsicHeight();
|
||||||
method public int getIntrinsicWidth();
|
method public int getIntrinsicWidth();
|
||||||
@@ -12637,6 +12636,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 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 void invalidateSelf();
|
||||||
method public boolean isAutoMirrored();
|
method public boolean isAutoMirrored();
|
||||||
|
method public boolean isDither();
|
||||||
method public boolean isFilterBitmap();
|
method public boolean isFilterBitmap();
|
||||||
method public boolean isStateful();
|
method public boolean isStateful();
|
||||||
method public final boolean isVisible();
|
method public final boolean isVisible();
|
||||||
|
|||||||
@@ -363,7 +363,7 @@ public class BitmapDrawable extends Drawable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getDither() {
|
public boolean isDither() {
|
||||||
return mBitmapState.mPaint.isDither();
|
return mBitmapState.mPaint.isDither();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -279,7 +279,7 @@ public abstract class Drawable {
|
|||||||
* @return whether this drawable dithers its colors
|
* @return whether this drawable dithers its colors
|
||||||
* @see #setDither(boolean)
|
* @see #setDither(boolean)
|
||||||
*/
|
*/
|
||||||
public boolean getDither() {
|
public boolean isDither() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -167,7 +167,7 @@ public class DrawableContainer extends Drawable implements Drawable.Callback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getDither() {
|
public boolean isDither() {
|
||||||
return mDrawableContainerState.mDither;
|
return mDrawableContainerState.mDither;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -826,7 +826,7 @@ public class GradientDrawable extends Drawable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getDither() {
|
public boolean isDither() {
|
||||||
return mGradientState.mDither;
|
return mGradientState.mDither;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1248,12 +1248,12 @@ public class LayerDrawable extends Drawable implements Drawable.Callback {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getDither() {
|
public boolean isDither() {
|
||||||
final Drawable dr = getFirstNonNullDrawable();
|
final Drawable dr = getFirstNonNullDrawable();
|
||||||
if (dr != null) {
|
if (dr != null) {
|
||||||
return dr.getDither();
|
return dr.isDither();
|
||||||
} else {
|
} else {
|
||||||
return super.getDither();
|
return super.isDither();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -374,7 +374,7 @@ public class NinePatchDrawable extends Drawable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getDither() {
|
public boolean isDither() {
|
||||||
return mPaint == null ? DEFAULT_DITHER : mPaint.isDither();
|
return mPaint == null ? DEFAULT_DITHER : mPaint.isDither();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -328,7 +328,7 @@ public class ShapeDrawable extends Drawable {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public boolean getDither() {
|
public boolean isDither() {
|
||||||
return mShapeState.mPaint.isDither();
|
return mShapeState.mPaint.isDither();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user