Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 5c9badee authored by Treehugger Robot's avatar Treehugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Ensure nav rail respects the window insets as well" into main

parents 42c5b81f 8adbb890
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -608,6 +608,12 @@ public abstract class BaseActivity

                        View rootsContainer = findViewById(getRes(R.id.container_roots));
                        rootsContainer.setPadding(0, 0, 0, insets.getSystemWindowInsetBottom());

                        View navRailContainer = findViewById(R.id.nav_rail_container_roots);
                        if (navRailContainer != null) {
                            navRailContainer.setPadding(
                                    0, 0, 0, insets.getSystemWindowInsetBottom());
                        }
                    }

                    return insets.consumeSystemWindowInsets();