mirror of
https://github.com/material-components/material-components-android.git
synced 2026-02-20 08:39:55 +08:00
[NavigationRailView] Fix bottom padding being applied to top bug
PiperOrigin-RevId: 435636054 (cherry picked from commit 51739445315b818fa3b424903e0845a043c55357)
This commit is contained in:
parent
9c2168bf74
commit
625252882d
@ -180,7 +180,8 @@ public class NavigationRailView extends NavigationBarView {
|
||||
initialPadding.top += insets.getInsets(WindowInsetsCompat.Type.systemBars()).top;
|
||||
}
|
||||
if (shouldApplyWindowInsetPadding(paddingBottomSystemWindowInsets)) {
|
||||
initialPadding.top += insets.getInsets(WindowInsetsCompat.Type.systemBars()).bottom;
|
||||
initialPadding.bottom +=
|
||||
insets.getInsets(WindowInsetsCompat.Type.systemBars()).bottom;
|
||||
}
|
||||
|
||||
boolean isRtl = ViewCompat.getLayoutDirection(view) == ViewCompat.LAYOUT_DIRECTION_RTL;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user