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

Commit a3cf2c4b authored by Anton Potapov's avatar Anton Potapov
Browse files

Add navigation insets padding

Flag: com.android.systemui.volume_redesign
Fixes: 409585751
Test: manual on foldable. Enable 3-btn navigation and observe volume
dialog in landscape

Change-Id: I134cbcb114b4577e52a7b3804f4bbe0e59485947
parent 0ae551b0
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -117,7 +117,10 @@ constructor(
        launchTraced("VDVB#insets") {
            root
                .onApplyWindowInsets { v, newInsets ->
                    val insetsValues = newInsets.getInsets(WindowInsets.Type.displayCutout())
                    val insetsValues =
                        newInsets.getInsets(
                            WindowInsets.Type.displayCutout() or WindowInsets.Type.navigationBars()
                        )
                    v.updatePadding(
                        left = insetsValues.left,
                        top = insetsValues.top,