packages/SettingsLib/tests/robotests/src/com/android/settingslib/media/SuggestedDeviceManagerTest.kt
+16
−20
Loading
Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more
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