android / views-widgets-samples

Multiple samples showing the best practices in views-widgets on Android.
Apache License 2.0
5.03k stars 3.01k forks source link

ViewPager2 is messing up insets for Android 9 #231

Open TobbbeSv opened 2 years ago

TobbbeSv commented 2 years ago

Since we updated from viewPager2 1.1.0-alpha01 to 1.1.0-beta01 we've had issues with android 9. Views, that are siblings to a viewpager2 view in a constraintview, that are constrained to the bottom with navigation bar inset padding at the bottom, ends up behind the navigation bar instead of above it. Not a problem in newer versions of android.

I suspect that this might be the issue: https://android-review.googlesource.com/c/platform/frameworks/support/+/1254620/10