Skip to content

Commit

Permalink
fix: OptXListViewScrollBar: add support for RecyclerView
Browse files Browse the repository at this point in the history
  • Loading branch information
klxiaoniu committed Jul 20, 2023
1 parent 74df690 commit 6034e2b
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@
import cc.ioctl.util.LayoutHelper;
import de.robv.android.xposed.XC_MethodHook;
import de.robv.android.xposed.XposedBridge;
import io.github.qauxv.util.SyncUtils;
import io.github.qauxv.base.IUiItemAgent;
import io.github.qauxv.base.annotation.FunctionHookEntry;
import io.github.qauxv.base.annotation.UiItemAgentEntry;
Expand All @@ -48,6 +47,7 @@
import io.github.qauxv.hook.CommonConfigFunctionHook;
import io.github.qauxv.ui.ResUtils;
import io.github.qauxv.util.Initiator;
import io.github.qauxv.util.SyncUtils;
import io.github.qauxv.util.Toasts;
import java.lang.reflect.Constructor;
import java.lang.reflect.Field;
Expand Down Expand Up @@ -161,6 +161,10 @@ protected void afterHookedMethod(MethodHookParam param) throws ReflectiveOperati
if (ctor3 != null) {
XposedBridge.hookMethod(ctor3, hook);
}
Class<?> kRecyclerView = Initiator.load("androidx.recyclerview.widget.RecyclerView");
if (kRecyclerView != null) {
XposedBridge.hookAllConstructors(kRecyclerView, hook);
}
return true;
}

Expand Down

0 comments on commit 6034e2b

Please sign in to comment.