Refactor Bluetooth Codec settings to dynamic ListPreference
Fetch supported codecs from native and present to user using ListPreference. Bug: 305779598 Bug: 311451118 Bug: 323319530 Tag: #feature Test: atest SettingsRoboTests:com.android.settings.development.bluetooth.AbstractBluetoothListPreferenceController Test: atest SettingsRoboTests:com.android.settings.development.bluetooth.BluetoothCodecListPreferenceControllerTest Change-Id: Iedbfd01c0d1b59df8a073f4e9aedca3913e6d45f
This commit is contained in:
@@ -26,6 +26,7 @@ import androidx.annotation.VisibleForTesting;
|
||||
import androidx.preference.PreferenceScreen;
|
||||
|
||||
import com.android.settings.development.BluetoothA2dpConfigStore;
|
||||
import com.android.settings.development.Flags;
|
||||
import com.android.settingslib.core.lifecycle.Lifecycle;
|
||||
|
||||
import java.util.ArrayList;
|
||||
@@ -49,6 +50,11 @@ public class BluetoothCodecDialogPreferenceController extends
|
||||
mCallback = callback;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isAvailable() {
|
||||
return !Flags.a2dpOffloadCodecExtensibilitySettings();
|
||||
}
|
||||
|
||||
@Override
|
||||
public String getPreferenceKey() {
|
||||
return KEY;
|
||||
|
||||
Reference in New Issue
Block a user