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

Commit 97aec975 authored by Chung Tang's avatar Chung Tang Committed by Android (Google) Code Review
Browse files

Merge "Remove TODO and inline isPublic." into main

parents 8be06ba7 5b8ef9aa
Loading
Loading
Loading
Loading
+3 −4
Original line number Diff line number Diff line
@@ -202,8 +202,6 @@ import java.util.concurrent.ThreadLocalRandom;
                        isImproveQualityFlagEnabled());
        BluetoothLeBroadcastSettings settings =
                buildBroadcastSettings(
                        /* isPublic= */ true, // TODO(b/421062071): Set to false after framework
                        // fix.
                        broadcastName,
                        getBroadcastCode(),
                        List.of(subgroupSettings));
@@ -359,13 +357,14 @@ import java.util.concurrent.ThreadLocalRandom;
    }

    private BluetoothLeBroadcastSettings buildBroadcastSettings(
            boolean isPublic,
            String broadcastName,
            byte[] broadcastCode,
            List<BluetoothLeBroadcastSubgroupSettings> subgroupSettingsList) {
        BluetoothLeBroadcastSettings.Builder builder =
                new BluetoothLeBroadcastSettings.Builder()
                        .setPublicBroadcast(isPublic)
                        .setPublicBroadcast(
                                /* isPublicBroadcast= */ true) // To advertise the broadcast
                                                               // settings, e.g. name.
                        .setBroadcastName(broadcastName)
                        .setBroadcastCode(broadcastCode);
        for (BluetoothLeBroadcastSubgroupSettings subgroupSettings : subgroupSettingsList) {