Skip to content

Commit b9190ed

Browse files
committed
Update DrawableResolver.kt
Nicer import 😉
1 parent 44dada9 commit b9190ed

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/src/main/java/org/schabi/newpipe/util/DrawableResolver.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,15 @@ import android.content.Context
44
import android.graphics.drawable.Drawable
55
import android.util.TypedValue
66
import androidx.annotation.AttrRes
7+
import androidx.core.content.ContextCompat
78

89
/**
910
* Utility class for resolving [Drawables](Drawable)
1011
*/
1112
object DrawableResolver {
1213
@JvmStatic
1314
fun resolveDrawable(context: Context, @AttrRes attrResId: Int): Drawable? {
14-
return androidx.core.content.ContextCompat.getDrawable(
15+
return ContextCompat.getDrawable(
1516
context,
1617
TypedValue().apply {
1718
context.theme.resolveAttribute(

0 commit comments

Comments
 (0)