Need config resolution before getting dispAreaInfo
DisplayAreaInfo calculation relies on DisplayContent's full configuration being in its latest state; i.e. config resolution should have taken place by that time. Generally, this is carried out by sendNewConfiguration() triggered up DeferredDisplayUpdater's display info updates. However in some cases (e.g. when a remote rotation happens right before physical display size change remote display change is sent to Shell), sendNewConfiguration can be short-circuited meaning no configuration resolution would have taken place after the recent mInitialDisplayWidth/Height updates. One Solution to this: Enforce config resolution to be done by DC#updateDisplayOverrideConfigurationLocked() if reconfigureDisplayLocked -> sendNewConfiguration() doesn't actually resolve new config and send it. Bug: 432725672 Flag: EXEMPT bugfix Test: manually repro the steps in the bug Change-Id: Ie3ae5488d1e928702d6914f72548ed7562626897
Loading
Please register or sign in to comment