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: ViewPager2+Fragment不能及时更新状态栏字体颜色 #69

Open
studycwq opened this issue May 12, 2022 · 0 comments
Open

bug: ViewPager2+Fragment不能及时更新状态栏字体颜色 #69

studycwq opened this issue May 12, 2022 · 0 comments

Comments

@studycwq
Copy link

问题:
ViewPager2+Fragment下,首次初始化后,第一个tab切换到第二个tab,如果两个tab的状态栏颜色不一致,状态栏颜色不会变,需要切换回来第一个tab或者其他tab再切换回来才会变化,还有如果Fragment被回收重新初始化也会复现这个问题,例如1->2->3->4->1,这时候1的颜色也是不对的

目前总结的规律是:如果Fragment是首次初始化的情况下状态栏的颜色是上一次的设置,但是其他配置例如颜色,侵入都是正常的,就颜色不正常

复现版本: 0.8.0

复现视频
https://user-images.githubusercontent.com/1407451/168104656-2cd1034e-ca20-43d8-b482-a91db6401197.mp4

复现源码:
StatusbarDemo.zip

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

1 participant