From 47fb15fe8c6036253527e78a2bfeef3972923d96 Mon Sep 17 00:00:00 2001 From: shawnlin Date: Mon, 11 Apr 2022 15:00:55 +0800 Subject: [PATCH] [DO NOT MERGE] Update to use new res status bar height dimen Use new status_bar_height_default for SystemBarUtils.getStatsusBarHeightForRotation(). Bug: 216782082 Test: make Change-Id: I6376169bfeb470de5dc820b9c3633c64981079f0 --- core/java/com/android/internal/policy/SystemBarUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/java/com/android/internal/policy/SystemBarUtils.java b/core/java/com/android/internal/policy/SystemBarUtils.java index 5358b96a0f974..7a1ac071a6254 100644 --- a/core/java/com/android/internal/policy/SystemBarUtils.java +++ b/core/java/com/android/internal/policy/SystemBarUtils.java @@ -73,7 +73,7 @@ public final class SystemBarUtils { } } final int defaultSize = - context.getResources().getDimensionPixelSize(R.dimen.status_bar_height); + context.getResources().getDimensionPixelSize(R.dimen.status_bar_height_default); // The status bar height should be: // Max(top cutout size, (status bar default height + waterfall top size)) return Math.max(insets.top, defaultSize + waterfallInsets.top);