Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 32cda054 authored by Riddle Hsu's avatar Riddle Hsu
Browse files

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
parent d24f7b2d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment