From b20ae66cec9f16bc3f494c4517863735a1f04ef5 Mon Sep 17 00:00:00 2001 From: Yunfan Chen Date: Thu, 25 Jan 2024 14:26:50 +0900 Subject: [PATCH] Comet: define display cutout side overrides for all rotations This is necessary to define all four values, otherwise, the different source rotation may cause different behavior on the same target rotation if the target rotation doesn't have a defined side override. Bug: 302387383 Test: rotate from 270 to 0 and see no black bar underneath status bar. Change-Id: I629a9cca6b239f8095775c73448a7176089dbd10 --- .../frameworks/base/core/res/res/values/config.xml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/comet/overlay/frameworks/base/core/res/res/values/config.xml b/comet/overlay/frameworks/base/core/res/res/values/config.xml index d7c6ae1..bbc435a 100644 --- a/comet/overlay/frameworks/base/core/res/res/values/config.xml +++ b/comet/overlay/frameworks/base/core/res/res/values/config.xml @@ -292,10 +292,12 @@ @right - - 90,top - 270,bottom - + + 1 + 1 + 3 + 3 + m 581.5,86 a 41.5,41.5 0 0 0 -83,0 41.5,41.5 0 0 0 83,0 z