Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7962866a authored by Nick Chameyev's avatar Nick Chameyev
Browse files

Use DeviceStateManager to detect foldable device instead of config.xml

Some devices like goldfish emulator might not configure
correct device states, even though they provided
foldable-specific configurations.

Skip initializing foldable-specific dependencies in DisplayRotation
if there are no foldable device states in the DeviceStateManager.

Bug: 418414850
Test: atest DisplayRotationTests DeviceStateControllerTests
Test: check that per device autorotate works on a foldable
Test: check that goldfish emulator boots
Flag: EXEMPT bugfix
Change-Id: Ia1244169678039c404c6467d5e8585e972fcd8ce
parent 2a85664a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment