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

Commit 6401efc9 authored by Alex Shabalin's avatar Alex Shabalin
Browse files

Stop hiding suggestion once `requestDeviceSuggestion` is called.

Before:
- Hide the device suggestion after showing the suggestion with
CONNECTION_FAILED state for 20 seconds.
- Show the device suggestion if available on receiving
`onSuggestedDeviceStateUpdated` callback.

After:
- Hide the device suggestion after showing the suggestion with
CONNECTION_FAILED state for 20 seconds.
- Show the device suggestion on making `requestDeviceSuggestion` call.

The former approach was error-prone because the
`onSuggestedDeviceStateUpdated` callback might never be called if the
suggested route remains unchanged.

Fix: 442626602
Test: atest SuggestedDeviceManagerTest
Flag: EXEMPT BUGFIX
Change-Id: I6e8f17cffe931f10f2292f1854fd6a71c8cb2719
parent 8262228a
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