summaryrefslogtreecommitdiff
path: root/libs/androidfw/StringPool.cpp
diff options
context:
space:
mode:
author Riddle Hsu <riddlehsu@google.com> 2024-06-12 13:38:00 +0000
committer Riddle Hsu <riddlehsu@google.com> 2024-06-13 03:38:01 +0000
commit32cda054bd6d4db4659dfdb8679fbfde41623013 (patch)
treeb5aa27b1dcc67d320a0f25b6c5b74cd95d4026b3 /libs/androidfw/StringPool.cpp
parentd24f7b2d8eda762c5a5c4e242bc6fbd76ec75d65 (diff)
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
Diffstat (limited to 'libs/androidfw/StringPool.cpp')
0 files changed, 0 insertions, 0 deletions