Commit 6454b87
committed
[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: 4263043111 parent d66676f commit 6454b87
File tree
1 file changed
+2
-1
lines changed- lib/java/com/google/android/material/bottomsheet
1 file changed
+2
-1
lines changedLines changed: 2 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1494 | 1494 | | |
1495 | 1495 | | |
1496 | 1496 | | |
1497 | | - | |
| 1497 | + | |
| 1498 | + | |
1498 | 1499 | | |
1499 | 1500 | | |
1500 | 1501 | | |
| |||
0 commit comments