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

Commit 669b9c5c authored by Winson Chung's avatar Winson Chung
Browse files

Always report mandatory insets for button nav

Fixes: 340134342
Fixes: 343817842
Test: atest android.systemui.cts.WindowInsetsBehaviorTests
Test: Verify mandatory insets vs window bounds in various
      orientations when folded/unfolded
Change-Id: I18d4f5d212d16c62d15d84b4842b3d20c0d8c5ae
Merged-In: I18d4f5d212d16c62d15d84b4842b3d20c0d8c5ae
(cherry picked from commit 762b3b46)
parent b748c8e6
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -223,7 +223,8 @@ class TaskbarInsetsController(val context: TaskbarActivityContext) : LoggableTas
            provider.insetsSize = getInsetsForGravityWithCutout(contentHeight, gravity, endRotation)
        } else if (provider.type == mandatorySystemGestures()) {
            if (context.isThreeButtonNav) {
                provider.insetsSize = Insets.of(0, 0, 0, 0)
                provider.insetsSize = getInsetsForGravityWithCutout(contentHeight, gravity,
                    endRotation)
            } else {
                val gestureHeight =
                        ResourceUtils.getNavbarSize(