Avoid premature redraw of display cutout
This follows the concept of I90451c14dc28daa3f90a74c3117548fead25af3f ScreenDecorations should not request redraw by itself for display change. It should draw by the request from window manager, so the redrawn result can apply with display projection change together. This change avoids the premature path: DisplayRepository onDisplayChanged > onFaceSensorLocationChanged > updateOverlayProviderViews > onReloadResAndMeasure > View#setLayoutParams > VRI#requestLayout > VRI#scheduleTraversals Bug: 327693677 Test: atest ScreenDecorationsTest# \ testUpdateOverlayProviderViews_PendingConfigChange Test: Use Activity#setRequestedOrientation (display change event could arrive earlier from this path) to toggle orientation between SCREEN_ORIENTATION_LANDSCAPE and SCREEN_ORIENTATION_REVERSE_LANDSCAPE. The display cutout won't flicker on another side. Flag: EXEMPT bugfix Change-Id: I5d2c067c726281aa307b266c85bcb819be9d9079
Loading
Please register or sign in to comment