Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[BottomSheet] Fixed IME bottom padding is ignored in edge-to-edge case.
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: #2543 PiperOrigin-RevId: 426304311
- Loading branch information