From ebe70fba27f99da40ca12b8b1dee9dbf19c67bd7 Mon Sep 17 00:00:00 2001 From: shawnlin Date: Fri, 1 Apr 2022 11:46:52 +0800 Subject: [PATCH] sweet: overlay: Fixed status bar glitch for apps that access internal resource dimen Bring back old usage of status_bar_height, status_bar_height_portrait, and status_bar_height_landscape by set the size containing cutout size. Bug: 216782082 Test: make Change-Id: I0bf97352bc07e45d7694f9512266f08e7139c103 --- overlay/frameworks/base/core/res/res/values/dimens.xml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/overlay/frameworks/base/core/res/res/values/dimens.xml b/overlay/frameworks/base/core/res/res/values/dimens.xml index 988b3ae..c1bbc98 100644 --- a/overlay/frameworks/base/core/res/res/values/dimens.xml +++ b/overlay/frameworks/base/core/res/res/values/dimens.xml @@ -20,7 +20,9 @@ - 100.0px + 100.0px + 30dp + @dimen/status_bar_height_default 102.0px