Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] 无法保存键值 #35

Closed
hujiayucc opened this issue Apr 27, 2023 · 2 comments
Closed

[BUG] 无法保存键值 #35

hujiayucc opened this issue Apr 27, 2023 · 2 comments
Labels
invalid This doesn't seem right wontfix This will not be worked on

Comments

@hujiayucc
Copy link

部分用户反馈YukiHookPrefsBridge.Editor无法保存键值

//Kotlin
val global: PrefsData<Boolean> = PrefsData("global", true)
prefs().edit {
    putLong("id",  0)
    put(global, item.isChecked)
}
//Java
prefs.edit().putLong("id", 0).apply();
@hujiayucc hujiayucc changed the title 无法保存键值 [BUG] 无法保存键值 Apr 27, 2023
@fankes
Copy link
Collaborator

fankes commented Apr 27, 2023

无效反馈,没有任何有效环境信息

@fankes fankes closed this as not planned Won't fix, can't repro, duplicate, stale Apr 27, 2023
@fankes fankes added invalid This doesn't seem right wontfix This will not be worked on labels Apr 27, 2023
@wangyuan0217
Copy link

image
关于sp的使用疑问:
1.在点击事件中写入状态-代码不报错正常运行;
2.读取状态报错,YukiHookPrefsBridge missing Context instance

我想在软件设置的时候加个开关如上图,然后在hook的时候根据开关来判断是否执行,如下,不知是否可行;
image

目前图一读取的时候就报错了,想知道一般都是怎么使用的,谢谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
invalid This doesn't seem right wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

3 participants