Bug 1199041 - Clarify comment in DrawableUtil. r=liuche

This commit is contained in:
Michael Comella 2015-09-01 16:26:19 -07:00
parent 310a78f16b
commit 5a2e205212

View File

@ -18,8 +18,7 @@ import android.support.v4.graphics.drawable.DrawableCompat;
public class DrawableUtil {
/**
* Tints the given drawable with the given color and returns it. Note that this
* transformation does not occur in place on pre-Lollipop devices (bug 1193950).
* Tints the given drawable with the given color and returns it.
*/
@CheckResult
public static Drawable tintDrawable(@NonNull final Context context, @DrawableRes final int drawableID,
@ -31,8 +30,10 @@ public class DrawableUtil {
}
/**
* Tints the given drawable with the given tint list and returns it. Note that this
* transformation does not occur in place on pre-Lollipop devices (bug 1193950).
* Tints the given drawable with the given tint list and returns it. Note that you
* should no longer use the argument Drawable because the argument is not mutated
* on pre-Lollipop devices but is mutated on L+ due to differences in the Support
* Library implementation (bug 1193950).
*/
@CheckResult
public static Drawable tintDrawableWithStateList(@NonNull final Drawable drawable,