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

Commit 2041db09 authored by Angela Wang's avatar Angela Wang
Browse files

Refactor the timing to start LocalDataManager

In b/403752469, we submited a workaround to prevent crashes. The workaround starts LocalDataManager in the foreground when the AmbientVolumeUiController is created but it's better to do so in the background when the AmbientVolumeUiController.start() is called.

Prevent calling refresh() when LocalDataManager doesn't start yet in
loadDevices() and do the first refresh() once it starts.

Flag: EXEMPT bugfix
Bug: 417378166
Test: atest AmbientVolumeUiControllerTest
Test: atest HearingDevicesDialogDelegateTest
Change-Id: If6ce4ac11bb0a618876c940caa0e407641e80b8e
parent b388fc17
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