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
Loading
Please register or sign in to comment