diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/lockscreen/DepthWallpaper.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/lockscreen/DepthWallpaper.java index 26332683..a947c398 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/lockscreen/DepthWallpaper.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/lockscreen/DepthWallpaper.java @@ -182,9 +182,7 @@ protected void beforeHookedMethod(MethodHookParam param) throws Throwable { scrimName = (String) getObjectField(param.thisObject, "name"); } - log("ScrimViewExImp setViewAlpha " + scrimName + " " + param.args[0]); - - if (mLayersCreated) { + if (mLayersCreated && DWallpaperEnabled) { if (scrimName.toLowerCase().contains("notification")) { log("ScrimViewExImp Notification Scrim Alpha: " + param.args[0]); float notificationAlpha = (float) param.args[0]; @@ -324,9 +322,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { hookAllMethods(ScrimControllerClass, "applyAndDispatchState", new XC_MethodHook() { @Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { - log("ScrimController applyAndDispatchState"); setDepthWallpaper(); - } });