Skip to content

Commit 353064f

Browse files
committed
Fix fun getDrawableByAttr
1 parent e0e290d commit 353064f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

extensionslib/src/main/java/com/omega_r/libs/extensions/context/ResourceExtensions.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,6 @@ inline fun Context.getColorDrawableByAttribute(@AttrRes attrInt: Int): ColorDraw
4343
@Suppress("NOTHING_TO_INLINE")
4444
inline fun Context.getDrawableByAttribute(@AttrRes attrInt: Int): Drawable? {
4545
return TypedValue().run {
46-
if (theme.resolveAttribute(attrInt, this, true)) getCompatDrawable(data) else null
46+
if (theme.resolveAttribute(attrInt, this, true)) getCompatDrawable(resourceId) else null
4747
}
4848
}

0 commit comments

Comments
 (0)