diff --git a/graphics/java/android/graphics/drawable/BitmapDrawable.java b/graphics/java/android/graphics/drawable/BitmapDrawable.java index a028f90928ebf..fe08f4b2ce9e5 100644 --- a/graphics/java/android/graphics/drawable/BitmapDrawable.java +++ b/graphics/java/android/graphics/drawable/BitmapDrawable.java @@ -602,6 +602,16 @@ public class BitmapDrawable extends Drawable { } } + /** + * Returns the tint mode for this drawable, or {@code null} if none set. + * + * @return the tint mode for this drawable, or {@code null} if none set + * @hide + */ + public Mode getTintMode() { + return mBitmapState.mTintMode; + } + /** * Ensures the tint filter is consistent with the current tint color and * mode.