Fix image corner radius for SC bubbles
Change-Id: I8cb2515f3f7985cf12ecc2b4a368f663cacfc0d0
This commit is contained in:
parent
fe5eaece47
commit
b56c1a3b0c
|
@ -121,7 +121,7 @@ data class ScBubbleAppearance(
|
||||||
return context.resources.getDimensionPixelSize(roundness)
|
return context.resources.getDimensionPixelSize(roundness)
|
||||||
}
|
}
|
||||||
fun getBubbleRadiusDp(context: Context): Float {
|
fun getBubbleRadiusDp(context: Context): Float {
|
||||||
return context.resources.getDimension(roundness)
|
return (context.resources.getDimension(roundness) / context.resources.displayMetrics.density)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue