[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
This commit is contained in:
Nick Chameyev
2022-12-06 17:30:50 +00:00
parent 67c61bf59b
commit 9fd354c57d

View File

@@ -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 }