mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1199041 - Clarify comment in DrawableUtil. r=liuche
This commit is contained in:
parent
310a78f16b
commit
5a2e205212
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user