mirror of
https://github.com/SchildiChat/SchildiChat-android.git
synced 2025-02-16 12:00:03 +03:00
Fix image corner radius for SC bubbles
Change-Id: I8cb2515f3f7985cf12ecc2b4a368f663cacfc0d0
This commit is contained in:
parent
fe5eaece47
commit
b56c1a3b0c
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue