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

Commit c5e18c89 authored by dshivangi's avatar dshivangi
Browse files

Handle auto-rotate setting is being set while device-state is unavailable

After the device is booted, it may be possible for device state update to come in after a delay.
To be able to honour incoming requests while device state stays missing, we should queue them.
Later, when we finally receive current device state, we can process all requests in the queue(realistically in worst case a couple of requests).

Fixes: 413639166
Flag: com.android.window.flags.enable_device_state_auto_rotate_setting_refactor
Test: atest DeviceStateAutoRotateSettingControllerTests
Change-Id: Ied82fd784ff150f2ad60af46bc1a8dbd408090f1
parent 2e071263
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