Merge branch 'dev' into SA1476_CanonicalVersionNumberBump

pull/1477/head
AL-Session 1 month ago committed by GitHub
commit 892de0eb7d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -49,6 +49,7 @@ fun getColorResourceIdFromAttr(context: Context, attr: Int): Int {
val outTypedValue = TypedValue()
val successfullyFoundAttribute = context.theme.resolveAttribute(attr, outTypedValue, true)
if (successfullyFoundAttribute) { return outTypedValue.resourceId }
Log.w("ViewUtils", "Could not find colour attribute $attr in theme - using grey as a safe fallback")
return R.color.gray50
}

Loading…
Cancel
Save