diff --git a/app/src/main/java/com/drdisagree/iconify/xposed/mods/BackgroundChip.java b/app/src/main/java/com/drdisagree/iconify/xposed/mods/BackgroundChip.java index d87a8a54f..52249678f 100644 --- a/app/src/main/java/com/drdisagree/iconify/xposed/mods/BackgroundChip.java +++ b/app/src/main/java/com/drdisagree/iconify/xposed/mods/BackgroundChip.java @@ -204,8 +204,6 @@ protected void afterHookedMethod(MethodHookParam param) { if (Build.VERSION.SDK_INT >= 33) { Class QuickStatusBarHeader = findClass(SYSTEMUI_PACKAGE + ".qs.QuickStatusBarHeader", lpparam.classLoader); Class ShadeHeaderControllerClass = findClassIfExists(SYSTEMUI_PACKAGE + ".shade.ShadeHeaderController", lpparam.classLoader); - if (ShadeHeaderControllerClass == null) - ShadeHeaderControllerClass = findClass(SYSTEMUI_PACKAGE + ".shade.LargeScreenShadeHeaderController", lpparam.classLoader); try { getObjectField(QuickStatusBarHeader, "mIconContainer"); @@ -257,6 +255,9 @@ protected void afterHookedMethod(MethodHookParam param) { } }); } catch (Throwable ignored) { + if (ShadeHeaderControllerClass == null) + ShadeHeaderControllerClass = findClass(SYSTEMUI_PACKAGE + ".shade.LargeScreenShadeHeaderController", lpparam.classLoader); + hookAllMethods(ShadeHeaderControllerClass, "onInit", new XC_MethodHook() { @Override protected void afterHookedMethod(MethodHookParam param) {