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

Commit b2afdd7d authored by Alex Shabalin's avatar Alex Shabalin
Browse files

Clear state override when the connection state for it changes.

The SuggestedDeviceManager didn't clear the `suggestedStateOverride`
upon a successful connection in the following scenario:

- `suggestedStateOverride` for device A is set with `STATE_CONNECTING`
- Device B is set as a new suggestion.
- A state for device A changes to `STATE_CONNECTED`

Bug: the connection state check that decides whether to clear
`suggestedStateOverride` was performed on a new suggestion (B) instead
of the suggested state override device itself (A).

Fix: 444612033
Test: atest SuggestedDeviceManagerTest
Test: On a physical device
Flag: com.android.systemui.enable_suggested_device_ui
Change-Id: If1d355f76b375207b1251cf70a05d68da5a3a4e6
parent ec8289b6
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