Assigned
Status Update
Comments
ju...@google.com <ju...@google.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.
se...@google.com <se...@google.com> #3
[Comment deleted]
Description
Component used: AppCompat Version used: 1.6.1 Devices/Android versions reproduced on: Pixel 7
If this is a bug in the library, we would appreciate if you could attach:
In my app, I found a large number of androidx.core.content.res.ResourcesCompat$FontCallback$2 messages in the MessageQueue. This could be caused by the "AppCompatTextHelper#updateTypefaceAndStyle" method. In the default fontFamily ("sans-serif") scenario, the "onFontRetrievalFailed" method will always be called even if it does nothing. However, it has piled up a lot of messages in the main thread.