This commit is contained in:
gedoor 2021-10-19 22:48:00 +08:00
parent 3cf798b132
commit 91c790976e

View File

@ -1,3 +1,5 @@
@file:Suppress("unused")
package io.legado.app.utils
import android.content.res.ColorStateList
@ -32,7 +34,7 @@ object DrawableUtils {
}
fun Drawable.setTintList(
fun Drawable.setTintListMutate(
tint: ColorStateList,
tintMode: PorterDuff.Mode = PorterDuff.Mode.SRC_ATOP
) {