1
0
mirror of https://github.com/areteruhiro/LIME-beta-hiro.git synced 2025-02-21 02:09:34 +09:00

Update KeepUnread.java

This commit is contained in:
areteruhiro
2024-10-18 20:50:34 +09:00
committed by GitHub
parent 1c085bfd57
commit c395006a02

View File

@ -42,6 +42,7 @@ public class KeepUnread implements IHook {
layout.setLayoutParams(layoutParams);
Switch switchView = new Switch(context);
switchView.setText("未読のまま閲覧"); // スイッチの名前を設定
RelativeLayout.LayoutParams switchParams = new RelativeLayout.LayoutParams(
RelativeLayout.LayoutParams.WRAP_CONTENT, RelativeLayout.LayoutParams.WRAP_CONTENT);
switchParams.addRule(RelativeLayout.CENTER_IN_PARENT, RelativeLayout.TRUE);
@ -56,6 +57,8 @@ public class KeepUnread implements IHook {
((ListView) viewGroup.getChildAt(0)).addFooterView(layout);
}
});
XposedHelpers.findAndHookMethod(
loadPackageParam.classLoader.loadClass(Constants.MARK_AS_READ_HOOK.className),
Constants.MARK_AS_READ_HOOK.methodName,