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

Commit 1b0aa65a authored by Julia Tuttle's avatar Julia Tuttle
Browse files

Fix NSSL bottom margin with 3-button nav and no split shade

It looks like some of the margin calculation logic in
NotificationsQSContainerController.calculateBottomSpacing got mangled
when we added split shade, so make sure there's enough space to swipe
the whole shade up even with 3-button nav and no split shade.

Bug: 222594381
Test: manual, on Pixel 5a
Change-Id: Id83298f7412d087b4b8a6211587b4ec32710315b
parent 25aff0ec
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -200,6 +200,7 @@ class NotificationsQSContainerController @Inject constructor(
                containerPadding = bottomStableInsets
            } else {
                containerPadding = 0
                stackScrollMargin = bottomStableInsets + notificationsBottomMargin
            }
        }
        val qsContainerPadding = if (!(isQSCustomizing || isQSDetailShowing)) {
+3 −1
Original line number Diff line number Diff line
@@ -206,7 +206,9 @@ class NotificationQSContainerControllerTest : SysuiTestCase() {
        given(taskbarVisible = false,
                navigationMode = BUTTONS_NAVIGATION,
                insets = windowInsets().withStableBottom())
        then(expectedContainerPadding = 0, expectedQsPadding = STABLE_INSET_BOTTOM)
        then(expectedContainerPadding = 0,
                expectedNotificationsMargin = STABLE_INSET_BOTTOM + NOTIFICATIONS_MARGIN,
                expectedQsPadding = STABLE_INSET_BOTTOM)
    }

    @Test