Skip to content
Commit cc2d539e authored by Massimo Carli's avatar Massimo Carli Committed by Mariia Sandrikova
Browse files

Respect "nosensor" and "locked" with ignoreOrientationRequest being set

In this implementation, we always resolve the orientation for a
component as the ignoreOrientationRequest was disabled. We then
use the actual flag when deciding the display orientation and when
querying from a descendent to handle the orientation change itself.

Main use case why this is important is Camera apps that rely on those
properties to ensure that they will be able to determine Camera preview
orientation correctly

Fixes:254691921
Test: run `atest WmTests:ActivityRecordTests WmTests:TaskTests
      WmTests:WindowContainerTests`

Change-Id: I96dca18a561e2acf961a462d3a4db484f003be6f
Merged-In: I96dca18a561e2acf961a462d3a4db484f003be6f
parent 92f29629
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