Assigned
Status Update
Comments
fi...@gmail.com <fi...@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.
tu...@gmail.com <tu...@gmail.com> #3
[Comment deleted]
di...@gmail.com <di...@gmail.com> #4
I found the same problem in suport library v4, wrong align happens only when ViewPager has a page margin > 0.
Description
Day Night Theme has four cases:
Device - DARK mode, Application - DARK mode
Device - LIGHT mode, Application - LIGHT mode
Device - DARK mode, Application - LIGHT mode
Device - LIGHT mode, Application - DARK mode
First and second cases are normal. Unfortunately at third and fourth cases are not as expected. BiometricPrompt Dialog getting the System UI mode of the device. I want to apply application UI mode for BiometricPrompt Dialog. Below i have attached the reference screenshot.