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

Skip to content
Commit de9d574d authored by Angela Wang's avatar Angela Wang
Browse files

Refactor HearingDevicePresetController

1. Move HAP profile related handling from HearingDevicesDialogDelegate
   into HearingDevicePresetController.
2. Make the HearingDevicePresetController holds the preset info cache of
   last query result and return it directly without query them again.
3. Call the PresetCallback.onPresetInfoUpdated() callback in
   HearingDevicePresetController only when the data is changed
4. Simplify some variables' naming.

Flag: EXEMPT refactor
Bug: 357878944
Test: atest HearingDevicesDialogDelegateTest
Test: atest HearingDevicePresetControllerTest
Change-Id: I3f8971eed939d2d9cc61ef4c8f7cfde01c53e472
parent e5432619
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