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

解决rss分组变化后,tabLayout分组选定问题 #4466

Merged
merged 1 commit into from
Dec 25, 2024

Conversation

niu-hb
Copy link
Contributor

@niu-hb niu-hb commented Dec 24, 2024

之前的方法是修改数据后通过setCurrentItem调用,虽然保持了选中当前分组,但是因为是隐藏处理的,tabLayout的滚动处理好像有问题,无法找到正确位置。
在从ReadRssActivity退出时,通过onResume延迟执行方法,确保已经回到RssFavoritesActivity页面,然后判断是否需要重新定位tabLayout选中项。如果使用setCurrentItem方法,当前选中项与设置项一致时,不会处理,所以修改tabLayout的选中项,确保选中操作会被执行

@821938089 821938089 merged commit db3ee32 into gedoor:master Dec 25, 2024
7 checks passed
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

Successfully merging this pull request may close these issues.

2 participants