diff options
author | 2024-03-05 16:54:45 +0000 | |
---|---|---|
committer | 2024-03-05 16:59:26 +0000 | |
commit | ee512f06bae619d3aa5c52a37da6f6b3ec3ea79e (patch) | |
tree | f61bb2750e6b90c8613938be06f3bce2f7696032 /libs/hostgraphics/ADisplay.cpp | |
parent | 67bf528527b5e27d4eeaed0c4c9e11f433c68acd (diff) |
Use DisplayInfo rotation instead of Display#getRotation in BookStyleClosedStatePredicate
Display#getRotation could be stale as it depends on the context
resources/configuration which could be deferred.
onDisplayChanged callback only notifies about updates
in DisplayInfo, so it doesn't notify about the configuration
change update, so BookStyleClosedStatePredicate could end up
with a stale rotation value.
This change updates querying of the rotation to DisplayInfo's
rotation field instead.
Test: manual rotate => check logs, try to enter wedge mode
Test: atest BookStyleDeviceStatePolicyTest
Bug: 326802066
Change-Id: I89514a383f5627e92b83dca110d9f850a0bb8397
Diffstat (limited to 'libs/hostgraphics/ADisplay.cpp')
0 files changed, 0 insertions, 0 deletions