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