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

Commit 4ee98d28 authored by Shivangi Dubey's avatar Shivangi Dubey Committed by dshivangi
Browse files

Encapsulate handling of IGNORED device-postures under one entity

Encapsulate handling of IGNORED device-postures under DeviceStateAutoRotateSetting class.
DeviceStateAutoRotateSetting class has get and put methods to be able to access the settings.
The get and put methods under the hood handles IGNORED states and resolves the IGNORED posture to the fallback ones.
DeviceStateAutoRotateSetting to be used to exclusively represent device-state based auto-rotate setting instead of SparseIntArray.

After this change, there wont be an instance where there is a partially resolved device-state based auto-rotate setting.

Fixes: 427892786
Flag: com.android.window.flags.enable_device_state_auto_rotate_setting_refactor
Test: atest DeviceStateAutoRotateSettingManagerImplTest DeviceStateAutoRotateSettingControllerTest
Change-Id: I1a1d3cc774b5c91801e669bd8cab087d8061f46c
parent 153ef06a
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