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

Commit 5b8ef9aa authored by Chung Tang's avatar Chung Tang
Browse files

Remove TODO and inline isPublic.

Bug: 421062071
Test: EXEMPT refactor
Flag: EXEMPT refactor

Change-Id: I90afad693f10e42270c360f7f8e77a8e32b234b4
parent 04b5cb20
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) {