We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44dada9 commit b9190edCopy full SHA for b9190ed
1 file changed
app/src/main/java/org/schabi/newpipe/util/DrawableResolver.kt
@@ -4,14 +4,15 @@ import android.content.Context
4
import android.graphics.drawable.Drawable
5
import android.util.TypedValue
6
import androidx.annotation.AttrRes
7
+import androidx.core.content.ContextCompat
8
9
/**
10
* Utility class for resolving [Drawables](Drawable)
11
*/
12
object DrawableResolver {
13
@JvmStatic
14
fun resolveDrawable(context: Context, @AttrRes attrResId: Int): Drawable? {
- return androidx.core.content.ContextCompat.getDrawable(
15
+ return ContextCompat.getDrawable(
16
context,
17
TypedValue().apply {
18
context.theme.resolveAttribute(
0 commit comments