Fixed
Status Update
Comments
al...@google.com <al...@google.com>
dy...@gmail.com <dy...@gmail.com> #2
It's failing when accessing androidx.navigation.compose.BackStackEntryIdViewModel
ca...@google.com <ca...@google.com>
ap...@google.com <ap...@google.com> #4
Reproducible with navigation-compose:2.4.0-beta02, without hilt.
va...@google.com <va...@google.com> #5
Could be related to this change
api("androidx.navigation:navigation-runtime:2.4.0-alpha10")
Description
Component used:
androidx.core:core-ktx
Version used:
1.8.0-alpha04
Devices/Android versions reproduced on: Pixel 6 Pro/A13-DP1, Pixel 3XL/A12
Short Description:
Window.getDecorView()
can no longer be used to get theWindowInsetsControllerCompat
as the function always return null.Explanation: In the version I29264 . More importantly, following that change, the
1.8.0-alpha03
ofandroidx.core:core
,WindowInsetsControllerCompat
now fully depends on a View as seen inViewCompat.getWindowInsetsController(View)
function now relies on the rootView's layout params to determine whether if it's an instance ofWindowManager.LayoutParams
, and if not,null
is returned (the previous implementation did not rely on the layout params). When passingdecorView
in the new function,getLayoutParams
returns null, so because it isn't an instance ofWindowManager.LayoutParams
,ViewCompat.getWindowInsetsController(decoreView)
always returns null too.