From 4304a14206805a99b63a0a0079c3907ad7f6893d Mon Sep 17 00:00:00 2001 From: Winson Chung Date: Wed, 29 May 2024 06:39:57 +0000 Subject: [PATCH] Always report mandatory insets for button nav Fixes: 340134342 Test: atest android.systemui.cts.WindowInsetsBehaviorTests Change-Id: Iee9d5ca9f12ff63f856e7aa94227e5b8273e02a4 --- .../com/android/launcher3/taskbar/TaskbarInsetsController.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt index 4f511c1bfd..6869ecd539 100644 --- a/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt +++ b/quickstep/src/com/android/launcher3/taskbar/TaskbarInsetsController.kt @@ -223,7 +223,7 @@ 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) + // Leave null to inset by the window frame } else { val gestureHeight = ResourceUtils.getNavbarSize(