Assigned
Status Update
Comments
ma...@gmail.com <ma...@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.
sa...@gmail.com <sa...@gmail.com> #3
[Comment deleted]
Description
Version used:1.2.0
Devices/Android versions reproduced on:HONOR/MAA-AN00 Android 14,level 34
When starting our game, the following crash occurred and only appeared on Android 13 and 14 devices. The log information is shown in the screenshot below. Please help to take a look