From 698ce52a177f0627c60d05a49b9a44403318c87d Mon Sep 17 00:00:00 2001 From: Patty Huang Date: Mon, 10 Jul 2023 11:05:35 +0800 Subject: [PATCH] Show LE audio toggle in Device Detail by default Bug: 289884263 Test: make RunSettingsRoboTests ROBOTEST_FILTER=BluetoothLeAudioDeviceDetailsPreferenceControllerTest Test: Checks the LE Audio toggle is shown in Device Detail by default Change-Id: I3affeebd9b2c59d24f4eaa76a1a22a714e968976 --- .../settings/bluetooth/BluetoothDetailsProfilesController.java | 2 +- .../BluetoothLeAudioDeviceDetailsPreferenceController.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java b/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java index b82d47237c1..a8baf4118a6 100644 --- a/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java +++ b/src/com/android/settings/bluetooth/BluetoothDetailsProfilesController.java @@ -69,7 +69,7 @@ public class BluetoothDetailsProfilesController extends BluetoothDetailsControll private static final String ENABLE_DUAL_MODE_AUDIO = "persist.bluetooth.enable_dual_mode_audio"; private static final String CONFIG_LE_AUDIO_ENABLED_BY_DEFAULT = "le_audio_enabled_by_default"; - private static final boolean LE_AUDIO_DEVICE_DETAIL_DEFAULT_VALUE = false; + private static final boolean LE_AUDIO_DEVICE_DETAIL_DEFAULT_VALUE = true; private LocalBluetoothManager mManager; private LocalBluetoothProfileManager mProfileManager; diff --git a/src/com/android/settings/development/BluetoothLeAudioDeviceDetailsPreferenceController.java b/src/com/android/settings/development/BluetoothLeAudioDeviceDetailsPreferenceController.java index 9545728d87e..298ced091a9 100644 --- a/src/com/android/settings/development/BluetoothLeAudioDeviceDetailsPreferenceController.java +++ b/src/com/android/settings/development/BluetoothLeAudioDeviceDetailsPreferenceController.java @@ -40,7 +40,7 @@ public class BluetoothLeAudioDeviceDetailsPreferenceController private static final String PREFERENCE_KEY = "bluetooth_show_leaudio_device_details"; private static final String CONFIG_LE_AUDIO_ENABLED_BY_DEFAULT = "le_audio_enabled_by_default"; - private static final boolean LE_AUDIO_DEVICE_DETAIL_DEFAULT_VALUE = false; + private static final boolean LE_AUDIO_DEVICE_DETAIL_DEFAULT_VALUE = true; static int sLeAudioSupportedStateCache = BluetoothStatusCodes.ERROR_UNKNOWN; @VisibleForTesting