From bb39d067f13f8caa421383be7688a5503f452835 Mon Sep 17 00:00:00 2001 From: TheScarastic Date: Wed, 15 Jun 2022 11:08:36 +0000 Subject: [PATCH] BlissLauncher: dont set zoom when window token is null --- .../foundation/e/blisslauncher/core/utils/DepthManager.kt | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 3cb2c71461..a184932853 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) + } } } -- GitLab