Do not turn on HALF_FOLDED rotation override when it is disabled
Currently, even if HALF_FOLDED rotation unlock
override is disabled through device configuration,
we still enable HALF_FOLDED override slot in
DisplayRotationReversionController.
We never disable it because we check if this functionality
is enabled when reverting slot (but not for enabling the slot).
This could cause other slots to misbehave as isAnyOverrideActive()
will always return true after moving to 'half folded' state
at least once.
Bug: 435043283
Flag: EXEMPT bugfix
Test: atest DisplayRotationTests
Test: manually check by going to half folded state
=> half_folded override slot is disabled
Change-Id: Ia002b28add106c786d6c5d204f8f35cde4d30436
2 files changed