mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-05 03:58:19 +08:00
The regression on BottomSheet was introduced in 1.6.0-alpha01. Before this version, the bottom padding in edge-to-edge mode is calculated by getSystemWindowInsetBottom(). https://developer.android.com/reference/android/view/WindowInsets#getSystemWindowInsetBottom() This is deprecated in newer APIs. According to deprecation message, the replacement is to use getInsets(int) with Type#systemBars(). But this is not completely true, because it doesn't contain IME insets. https://developer.android.com/reference/android/view/WindowInsets.Type#systemBars() Resolves: https://github.com/material-components/material-components-android/issues/2543 PiperOrigin-RevId: 426304311