Fixed
Status Update
Comments
al...@google.com <al...@google.com>
dy...@gmail.com <dy...@gmail.com> #2
I had the same problem today, and this could be related to https://code.google.com/p/android/issues/detail?id=67376
As a temporary fix, I changed the build.gradle from
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
to:
dependencies {
classpath 'com.android.tools.build:gradle:0.9.0'
}
As a temporary fix, I changed the build.gradle from
dependencies {
classpath 'com.android.tools.build:gradle:0.9.+'
}
to:
dependencies {
classpath 'com.android.tools.build:gradle:0.9.0'
}
ca...@google.com <ca...@google.com>
va...@google.com <va...@google.com> #3
That seems to have worked around the problem - thank you very much.
Maybe this should be merged into 67376?
Maybe this should be merged into 67376?
ap...@google.com <ap...@google.com> #4
The same problem when using list navigation mode. Just place the following line in onCreate() to get an app crash!
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
getSupportActionBar().setNavigationMode(ActionBar.NAVIGATION_MODE_LIST);
dy...@gmail.com <dy...@gmail.com> #6
mark, i had same problem, Thx
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.