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

Commit 5677d419 authored by Jakub Rotkiewicz (xWF)'s avatar Jakub Rotkiewicz (xWF) Committed by Gerrit Code Review
Browse files

Merge "flag: rename adm_fallback_when_wired_audio_disconnected" into main

parents 2b16cf22 3d9d0ed4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -812,7 +812,7 @@ public class ActiveDeviceManager implements AdapterService.BluetoothStateCallbac
        @Override
        public void onAudioDevicesRemoved(AudioDeviceInfo[] removedDevices) {
            Log.d(TAG, "onAudioDevicesRemoved");
            if (!Flags.fallbackWhenWiredAudioDisconnected()) {
            if (!Flags.admFallbackWhenWiredAudioDisconnected()) {
                return;
            }
            if (!Arrays.stream(removedDevices)
+1 −1
Original line number Diff line number Diff line
@@ -1321,7 +1321,7 @@ public class ActiveDeviceManagerTest {

    /** A wired audio device is disconnected. Check if falls back to connected A2DP. */
    @Test
    @EnableFlags(Flags.FLAG_FALLBACK_WHEN_WIRED_AUDIO_DISCONNECTED)
    @EnableFlags(Flags.FLAG_ADM_FALLBACK_WHEN_WIRED_AUDIO_DISCONNECTED)
    public void wiredAudioDeviceDisconnected_setFallbackDevice() throws Exception {
        AudioDeviceInfo[] testDevices = createAudioDeviceInfoTestDevices();

+1 −1
Original line number Diff line number Diff line
@@ -2,7 +2,7 @@ package: "com.android.bluetooth.flags"
container: "com.android.btservices"

flag {
    name: "fallback_when_wired_audio_disconnected"
    name: "adm_fallback_when_wired_audio_disconnected"
    namespace: "bluetooth"
    description: "Fallback to other connected device when wired audio device disconnects"
    bug: "348124361"