diff options
| author | 2024-03-05 16:54:45 +0000 | |
|---|---|---|
| committer | 2024-03-05 18:58:26 +0000 | |
| commit | b5a542f64e7a171b52335ed9d20bb40c1b99906c (patch) | |
| tree | 633cf5e80cf7840ac5537ff336680ab43d784c73 /libs/hwui/FrameInfoVisualizer.cpp | |
| parent | ed6f98ac9f4049f370e1db86e1b4e141bb83f5cc (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
(cherry picked from commit ee512f06bae619d3aa5c52a37da6f6b3ec3ea79e)
Diffstat (limited to 'libs/hwui/FrameInfoVisualizer.cpp')
0 files changed, 0 insertions, 0 deletions