diff --git a/app/src/main/java/foundation/e/blisslauncher/core/utils/DepthManager.kt b/app/src/main/java/foundation/e/blisslauncher/core/utils/DepthManager.kt index 3cb2c714612f25ab649e8c2e54bb81be8964aee4..a1849328536da6fd75016d89b053240c6385c2dd 100644 --- a/app/src/main/java/foundation/e/blisslauncher/core/utils/DepthManager.kt +++ b/app/src/main/java/foundation/e/blisslauncher/core/utils/DepthManager.kt @@ -24,6 +24,8 @@ class DepthManager(private val launcher: LauncherActivity) { fun updateDepth() { val windowToken = launcher.rootView.windowToken - setWallpaperZoomOut.invoke(wallpaperManager, windowToken, 1) + if (windowToken != null) { + setWallpaperZoomOut.invoke(wallpaperManager, windowToken, 1) + } } }