diff options
-rw-r--r-- | graphics/java/android/graphics/drawable/BitmapDrawable.java | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/graphics/java/android/graphics/drawable/BitmapDrawable.java b/graphics/java/android/graphics/drawable/BitmapDrawable.java index a028f90..fe08f4b 100644 --- a/graphics/java/android/graphics/drawable/BitmapDrawable.java +++ b/graphics/java/android/graphics/drawable/BitmapDrawable.java @@ -603,6 +603,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. */ |