Assigned
Status Update
Comments
ja...@gmail.com <ja...@gmail.com> #2
I face with the same problem. I have different pageMargin in landscape and portrait and when viewpager is scrolled for the more than first position, after rotating device it is shifted.
I beleive the problem is inside onSizeChanged that is called after onConfigurationChanged, it has following code:
if (w != oldw) {
recomputeScrollPosition(w, oldw, mPageMargin, mPageMargin);
}
w always not equals oldw when changing orientation, so recomputeScrollPosition is called, but whit the same values for margin and oldMargin.
This should be fixed.
I beleive the problem is inside onSizeChanged that is called after onConfigurationChanged, it has following code:
if (w != oldw) {
recomputeScrollPosition(w, oldw, mPageMargin, mPageMargin);
}
w always not equals oldw when changing orientation, so recomputeScrollPosition is called, but whit the same values for margin and oldMargin.
This should be fixed.
Description
Version used: 1.7.0
Devices/Android versions reproduced on: Android Emulator/API Level 35
Description: I run the attached project with flag edge2edge set to false, i.e. the project used the _windowOptOutEdgeToEdgeEnforcemen_, the statusbar text is white on dark background, see attachment without_e2e.png
Instead if I run the attached project with flag edge2edge set to true, i.e. using _EdgeToEdge.enable()_, the statusbar text is black on dark background (see attachment with_e2e.png), that is difficult to read, the expected result is as before, white text on dark background.
If this is a bug in the library, we would appreciate if you could attach:
- Sample project to trigger the issue.
- A screenrecord or screenshots showing the issue (if UI related).