Skip to content

Commit

Permalink
fix: radius < 1.0 crash (#32)
Browse files Browse the repository at this point in the history
  • Loading branch information
Hamza417 committed Apr 14, 2024
1 parent 3763a07 commit 75d7619
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/src/main/java/app/simple/peri/ui/WallpaperScreen.kt
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,11 @@ class WallpaperScreen : Fragment() {
}

bitmap?.let {
StackBlur().blurRgb(it, blur.toInt())
try {
StackBlur().blurRgb(it, blur.toInt())
} catch (e: IllegalStateException) {
e.printStackTrace()
}
}

withContext(Dispatchers.Main) {
Expand Down

0 comments on commit 75d7619

Please sign in to comment.