Bug P3
Status Update
Comments
lb...@gmail.com <lb...@gmail.com>
vi...@google.com <vi...@google.com>
lb...@gmail.com <lb...@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.
vi...@google.com <vi...@google.com>
lb...@gmail.com <lb...@gmail.com> #3
[Comment deleted]
Description
- Steps to reproduce the problem (including sample code if appropriate).
1. Implement an app that has a SearchView, together with android:enableOnBackInvokedCallback="true" in manifest.
2. focus the SearchView, type something, and press back key
- What happened.
It hides the keyboard AND collapsed the SearchView, removing all that you've written there.
- What you think the correct behavior should be.
Should only hide the keyboard, as we always had it working this way, just like on other apps.
On the material sample (here:
- Is this a security related issue? Yes/No
No
implementation("androidx.core:core-ktx:1.12.0")
implementation("androidx.appcompat:appcompat:1.6.1")
implementation("com.google.android.material:material:1.11.0")
implementation("androidx.constraintlayout:constraintlayout:2.1.4")
implementation("androidx.navigation:navigation-fragment-ktx:2.7.7")
implementation("androidx.navigation:navigation-ui-ktx:2.7.7")