Skip to content

Commit

Permalink
Background Chip: Bring back status icons chip for A13
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahmud0808 committed Sep 14, 2023
1 parent 74182e5 commit 3ba0c53
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 3ba0c53

Please sign in to comment.