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 Test: check that autorotate settings open Flag: EXEMPT bugfix Change-Id: I75f281e1abe18018d598c7fa2723bc79899b8039
Loading
Please register or sign in to comment