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
This commit is contained in:
Winson Chung
2024-06-05 17:37:02 +00:00
parent e8638f4eb2
commit 762b3b4685
@@ -236,7 +236,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(