From 80b4bb3ec6159fcade0848716e8e558085199043 Mon Sep 17 00:00:00 2001 From: Milton Wu Date: Tue, 2 Nov 2021 15:05:30 +0800 Subject: [PATCH] PrivacyDot centerVertical statusBar w/ landcape Privacy dot view shall be center_vertical aligned to status bar with landscape mode. Bug: 204841353 Test: atest StatusBarContentInsetsProviderTest Change-Id: I349fc7ef5295ddffc03201db9461f2f55e77d3b3 --- .../systemui/statusbar/phone/StatusBarContentInsetsProvider.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarContentInsetsProvider.kt b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarContentInsetsProvider.kt index 6ae8331dfde5c..f3f8482adeaab 100644 --- a/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarContentInsetsProvider.kt +++ b/packages/SystemUI/src/com/android/systemui/statusbar/phone/StatusBarContentInsetsProvider.kt @@ -178,7 +178,7 @@ class StatusBarContentInsetsProvider @Inject constructor( targetRotation, dc, context.resources.configuration.windowConfiguration.maxBounds, - SystemBarUtils.getStatusBarHeight(context), + SystemBarUtils.getStatusBarHeightForRotation(context, targetRotation), minLeft, minRight, isRtl,