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

Commit 48e6b4cc authored by Winson Chung's avatar Winson Chung
Browse files

Always provide mandatory bottom gesture insets

Bug: 265614886
Bug: 277185135
Test: atest WindowInsetsPolicyTest
Change-Id: I0cf4d5b72e54caf7c671a5d52a93d2066a79ed65
Merged-In: I964e0b759170c127cb05615ce5bf6fa827621187
parent 4bce4f61
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -100,9 +100,11 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas
                    windowLayoutParams,
                    intArrayOf(
                            ITYPE_EXTRA_NAVIGATION_BAR,
                            ITYPE_BOTTOM_TAPPABLE_ELEMENT
                            ITYPE_BOTTOM_TAPPABLE_ELEMENT,
                            ITYPE_BOTTOM_MANDATORY_GESTURES
                    ),
                    intArrayOf(
                            SOURCE_FRAME,
                            SOURCE_FRAME,
                            SOURCE_FRAME
                    )
@@ -119,6 +121,7 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas
        val contentHeight = controllers.taskbarStashController.contentHeightToReportToApps
        val tappableHeight = controllers.taskbarStashController.tappableHeightToReportToApps
        val res = context.resources

        for (provider in windowLayoutParams.providedInsets) {
            if (
                provider.type == ITYPE_EXTRA_NAVIGATION_BAR ||