Fix crash for the negative blur radius
This commit is contained in:
1 parent
370cb51cb5
commit
584ca32137
4 files changed
+3
-1
No files matched your search
Binary file not shown.
Binary file not shown.
Binary file not shown.
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user