From c79a8cf4b5a94c53e327f5f5cb114f349a1ce472 Mon Sep 17 00:00:00 2001 From: mattsziklay Date: Wed, 24 Jul 2024 11:12:40 -0700 Subject: Update transition region calculation. Makes the following updates to how transition regions are calculated in freeform: - The fullscreen region now takes up 40% of the display width. - All regions now have a thickness of 44 dp. Bug: 350933509 Test: atest DesktopModeVisualIndicatorTest, manual Flag: EXEMPT refactor Change-Id: I4762e97f2dace4d149d0367201c146e71b8d3e85 --- libs/WindowManager/Shell/res/values/dimen.xml | 11 +++-------- .../shell/desktopmode/DesktopModeVisualIndicator.java | 17 +++++++++-------- .../shell/desktopmode/DesktopModeVisualIndicatorTest.kt | 17 ++++++++++------- 3 files changed, 22 insertions(+), 23 deletions(-) diff --git a/libs/WindowManager/Shell/res/values/dimen.xml b/libs/WindowManager/Shell/res/values/dimen.xml index 269a58693a24..606ebb41bc5f 100644 --- a/libs/WindowManager/Shell/res/values/dimen.xml +++ b/libs/WindowManager/Shell/res/values/dimen.xml @@ -554,15 +554,10 @@ enable_windowing_edge_drag_resize is disabled. --> 44dp - - 32dp + + 44dp - - 80dp - - - 40dp + 0.4