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

在非 UI 线程执行冻结解冻操作? #267

Open
Henry-ZHR opened this issue Sep 6, 2024 · 0 comments
Open

在非 UI 线程执行冻结解冻操作? #267

Henry-ZHR opened this issue Sep 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@Henry-ZHR
Copy link
Contributor

目前 PagerFragment 的 setListFrozen

是在 onXXX 中直接被调用的,会在 UI 线程执行所有操作,列表比较多应用的话就会卡很长时间

试了一下把 updateCurrentList 和 toast 以外的部分放 IO 线程,有很大改善,但

  1. updateCurrentList 似乎也需要一点时间,还是会卡一下
  2. 大概需要进度条之类的界面提示,不然用户会以为自己没点到
@aistra0528 aistra0528 added the enhancement New feature or request label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants