From 095c253825de8efb5d227f44787a32dca4edc754 Mon Sep 17 00:00:00 2001 From: DHD2280 Date: Fri, 29 Nov 2024 01:54:14 +0100 Subject: [PATCH] AodClock: no need to updateClockView if aod clock disabled Signed-off-by: DHD2280 --- .../dhd/oxygencustomizer/xposed/hooks/systemui/aod/AodClock.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/aod/AodClock.java b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/aod/AodClock.java index 33c69eb17..dfefc6fcb 100644 --- a/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/aod/AodClock.java +++ b/app/src/main/java/it/dhd/oxygencustomizer/xposed/hooks/systemui/aod/AodClock.java @@ -191,6 +191,7 @@ protected void afterHookedMethod(MethodHookParam param) throws Throwable { hookAllMethods(AodClockLayout, "performTimeUpdate", new XC_MethodHook() { @Override protected void afterHookedMethod(MethodHookParam param) throws Throwable { + if (!mAodClockEnabled) return; updateClockView(); } });