Skip to content

Commit 48917e4

Browse files
committed
android: If device radius is less than 32dp, use default value
1 parent 6263ceb commit 48917e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

miuix/src/androidMain/kotlin/top/yukonga/miuix/kmp/utils/Utils.android.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ private fun getSystemCornerRadius(): Dp {
3939
getCornerRadiusBottom()
4040
}
4141
val cornerDp = (roundedCornerRadius / density).dp
42-
if (cornerDp < 15.dp) return 0.dp
42+
if (cornerDp <= 32.dp) return 0.dp
4343
return cornerDp
4444
}
4545

0 commit comments

Comments
 (0)