Remove A2dp offload disabled and LE audio offload enabled combination
In order to reduce the complexity, LE audio offload couldn't be enabled as a2dp offload disabled. Remove the combination from the developer option 1. As a2dp offload disabled, LE audio offload couldn't be switched. 2. As the user disable a2dp offload, LE audio offload would be disabled as well Bug: 238268927 Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothLeAudioHwOffloadPreferenceControllerTest Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothA2dpHwOffloadPreferenceControllerTest Change-Id: I9ebe26c6a8058798ea654523ad1405a8447268b8
This commit is contained in:
@@ -102,7 +102,7 @@ public class BluetoothA2dpHwOffloadPreferenceController extends DeveloperOptions
|
||||
final boolean offloadDisabled =
|
||||
SystemProperties.getBoolean(A2DP_OFFLOAD_DISABLED_PROPERTY, false);
|
||||
SystemProperties.set(A2DP_OFFLOAD_DISABLED_PROPERTY, Boolean.toString(!offloadDisabled));
|
||||
if (offloadDisabled) {
|
||||
if (!offloadDisabled) {
|
||||
SystemProperties.set(LE_AUDIO_OFFLOAD_DISABLED_PROPERTY,
|
||||
Boolean.toString(!offloadDisabled));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user