The logic wrong to check the a2dp offload disable status to disable LE audio offload together as the user turn off the developer option. Change to use the support status, and reset the state to align the support status. Bug: 395725497 Fix: 395725497 Flag: EXEMPT, trivial bug fix Test: Manual turn off developer option to check the status change Test: atest SettingsRoboTests:com.android.settings.development.BluetoothLeAudioHwOffloadPreferenceControllerTest Change-Id: I59d3e378495c90f007b46f05b74fdaf19d1520ce
Running Settings Robolectric tests
The full suite
$ croot
$ atest SettingsRoboTests
Running a single test class
With a filter
$ croot
$ atest SettingsRoboTests:com.android.settings.display.AdaptiveSleepPreferenceControllerTest
You can also run any single test class with atest (it will try to find the correct path)
$ atest AdaptiveSleepPreferenceControllerTest