From 9fd354c57d3ad6b138d87501a029deb5b3db6260 Mon Sep 17 00:00:00 2001 From: Nick Chameyev Date: Tue, 6 Dec 2022 17:30:50 +0000 Subject: [PATCH] [Unfold transition] Use DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED for the overlay Adding a flag DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED when getting display list to calculate the size of the unfold overlay. Bug: 261591746 Bug: 221071695 Test: manual unfolds => check size is correct Change-Id: I87990ec13eb726f9c70a05953462d011da4fb952 --- .../systemui/unfold/UnfoldLightRevealOverlayAnimation.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/SystemUI/src/com/android/systemui/unfold/UnfoldLightRevealOverlayAnimation.kt b/packages/SystemUI/src/com/android/systemui/unfold/UnfoldLightRevealOverlayAnimation.kt index 162c915552ed7..952c043d33b26 100644 --- a/packages/SystemUI/src/com/android/systemui/unfold/UnfoldLightRevealOverlayAnimation.kt +++ b/packages/SystemUI/src/com/android/systemui/unfold/UnfoldLightRevealOverlayAnimation.kt @@ -228,7 +228,7 @@ constructor( } private fun getUnfoldedDisplayInfo(): DisplayInfo = - displayManager.displays + displayManager.getDisplays(DisplayManager.DISPLAY_CATEGORY_ALL_INCLUDING_DISABLED) .asSequence() .map { DisplayInfo().apply { it.getDisplayInfo(this) } } .filter { it.type == Display.TYPE_INTERNAL }