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

Commit 5d15d4e4 authored by ValdikSS's avatar ValdikSS Committed by Rashed Abdel-Tawab
Browse files

Add Dual Channel into Bluetooth Audio Channel Mode developer options menu

Change-Id: Icd3179ac63310355547fd58060e75f25b4a8210d
parent d4f2f973
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -337,8 +337,8 @@
            android:key="bluetooth_select_a2dp_channel_mode"
            android:title="@string/bluetooth_select_a2dp_codec_channel_mode"
            android:dialogTitle="@string/bluetooth_select_a2dp_codec_channel_mode_dialog_title"
            android:entries="@array/bluetooth_a2dp_codec_channel_mode_titles"
            android:entryValues="@array/bluetooth_a2dp_codec_channel_mode_values" />
            android:entries="@array/lineage_bluetooth_a2dp_codec_channel_mode_titles"
            android:entryValues="@array/lineage_bluetooth_a2dp_codec_channel_mode_values" />

        <ListPreference
            android:key="bluetooth_select_a2dp_ldac_playback_quality"
+8 −2
Original line number Diff line number Diff line
@@ -42,13 +42,13 @@ public class BluetoothAudioChannelModePreferenceController extends
    @Override
    protected String[] getListValues() {
        return mContext.getResources().getStringArray(
                R.array.bluetooth_a2dp_codec_channel_mode_values);
                R.array.lineage_bluetooth_a2dp_codec_channel_mode_values);
    }

    @Override
    protected String[] getListSummaries() {
        return mContext.getResources().getStringArray(
                R.array.bluetooth_a2dp_codec_channel_mode_summaries);
                R.array.lineage_bluetooth_a2dp_codec_channel_mode_summaries);
    }

    @Override
@@ -70,6 +70,9 @@ public class BluetoothAudioChannelModePreferenceController extends
            case 2:
                channelModeValue = BluetoothCodecConfig.CHANNEL_MODE_STEREO;
                break;
            case 3:
                channelModeValue = BluetoothCodecConfig.CHANNEL_MODE_DUAL_CHANNEL;
                break;
            default:
                break;
        }
@@ -87,6 +90,9 @@ public class BluetoothAudioChannelModePreferenceController extends
            case BluetoothCodecConfig.CHANNEL_MODE_STEREO:
                index = 2;
                break;
            case BluetoothCodecConfig.CHANNEL_MODE_DUAL_CHANNEL:
                index = 3;
                break;
            case BluetoothCodecConfig.CHANNEL_MODE_NONE:
            default:
                break;