Fix image corner radius for SC bubbles

Change-Id: I8cb2515f3f7985cf12ecc2b4a368f663cacfc0d0
This commit is contained in:
SpiritCroc 2022-03-04 10:06:16 +01:00
parent fe5eaece47
commit b56c1a3b0c

View file

@ -121,7 +121,7 @@ data class ScBubbleAppearance(
return context.resources.getDimensionPixelSize(roundness)
}
fun getBubbleRadiusDp(context: Context): Float {
return context.resources.getDimension(roundness)
return (context.resources.getDimension(roundness) / context.resources.displayMetrics.density)
}
}