Fix crash for the negative blur radius

This commit is contained in:
Kyant0 committed 2025-09-14 23:26:35 +08:00
1 parent 370cb51cb5
commit 584ca32137
4 files changed
+3 -1

No files matched your search

Binary file not shown.
@@ -152,7 +152,9 @@ fun ControlCenterContent() {
val progress = progress
val blurRadius = 8f.dp.toPx() * progress.fastCoerceAtMost(1f)
renderEffect = BlurEffect(blurRadius, blurRadius)
if (blurRadius > 0f) {
renderEffect = BlurEffect(blurRadius, blurRadius)
}
}
.fillMaxSize(),
contentScale = ContentScale.Crop