Showcase of a layout failed bug caused by dispatchWindowInsets
https://issuetracker.google.com/144443783
Require:
- Set fitsSystemWindows=true in first page's list item (layout_item1.xml)
- Request layout before change status bar text color (changeStatusBarText)
Steps to reproduce:
- Refresh fragment 1
- Swipe to fragment 2 and refresh
- Swipe back to fragment 1
- Refresh fragment 1
Result:
Fragment 1 cannot refresh layout
Sample: