Fixed
Status Update
Comments
al...@google.com <al...@google.com>
ca...@google.com <ca...@google.com>
va...@google.com <va...@google.com> #3
Thanks for the report!
ap...@google.com <ap...@google.com> #4
The release notes documentation has been edited to clarify this change in behavior for line height.
To support non-standard text sizes, we encourage users to follow the Material design system and use a different style = LocalTextStyle.current.copy(lineHeight = TextUnit.Unspecified)
, or create a custom Typography
entirely.
dy...@gmail.com <dy...@gmail.com> #6
In my case, I have multiple font sizes in the same Text
(using SpanStyle
in AnnotatedString
). There are legitimate reasons for this. For example, when combining Chinese and English (phonetic) together (for language-learning purposes).
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.