From b56c1a3b0ced22ce8f9a4bad20185656a55404cc Mon Sep 17 00:00:00 2001 From: SpiritCroc Date: Fri, 4 Mar 2022 10:06:16 +0100 Subject: [PATCH] Fix image corner radius for SC bubbles Change-Id: I8cb2515f3f7985cf12ecc2b4a368f663cacfc0d0 --- .../main/java/im/vector/app/features/themes/BubbleThemeUtils.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vector/src/main/java/im/vector/app/features/themes/BubbleThemeUtils.kt b/vector/src/main/java/im/vector/app/features/themes/BubbleThemeUtils.kt index 780c890032..593da8fc5a 100644 --- a/vector/src/main/java/im/vector/app/features/themes/BubbleThemeUtils.kt +++ b/vector/src/main/java/im/vector/app/features/themes/BubbleThemeUtils.kt @@ -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) } }