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

标签排序后返回,排序顺序还是错乱 #23

Open
spartawhy117 opened this issue Dec 29, 2022 · 1 comment
Open

标签排序后返回,排序顺序还是错乱 #23

spartawhy117 opened this issue Dec 29, 2022 · 1 comment

Comments

@spartawhy117
Copy link

右侧快捷标签排序后,推出排序模式后,排序还是混乱的

@Mr-limit
Copy link

Mr-limit commented Oct 26, 2024

这个问题的具体原因是,标签排序使用了时间戳为依据。
关键点在于,更改标签排序和创建标签,都使用了EhDB类里的insertQuickSearch函数,该函数内会给时间戳字段赋新值。
正常来想,应该有一个独立函数处理两个标签的时间戳交换,可能项目原作者在这里偷懒了。
不过要修改也可以。自行修复最快的方式为,Fork一份代码,找到insertQuickSearch函数的此处:

quickSearch.time = System.currentTimeMillis();

修改为:
quickSearch.time = quickSearch.time > 0 ? quickSearch.time : System.currentTimeMillis();
再编译为APK,又或者在Releases释出的APK里解包修改。
只不过这么修改,内容就和函数语义不相符,比较别扭。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants