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

Commit 3065c3eb authored by Rahul Sabnis's avatar Rahul Sabnis
Browse files

Makes CSIP set member broadcasts ordered

Bug: 293213616
Change-Id: I13a0fbdb53860a5c49e3803cf910a9ee87a18ed4
Test: atest CsipSetCoordinatorServiceTest
parent 3726f9c5
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -847,7 +847,7 @@ public class CsipSetCoordinatorService extends ProfileService {
        intent.addFlags(
        intent.addFlags(
                Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
                Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
                        | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
                        | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
        sendBroadcast(intent, BLUETOOTH_PRIVILEGED);
        sendOrderedBroadcast(intent, BLUETOOTH_PRIVILEGED);


        /* Notify registered parties */
        /* Notify registered parties */
        handleSetMemberAvailable(device, groupId);
        handleSetMemberAvailable(device, groupId);
@@ -890,7 +890,7 @@ public class CsipSetCoordinatorService extends ProfileService {
        if (intent != null) {
        if (intent != null) {
            intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
            intent.addFlags(Intent.FLAG_RECEIVER_REGISTERED_ONLY_BEFORE_BOOT
                    | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
                    | Intent.FLAG_RECEIVER_INCLUDE_BACKGROUND);
            sendBroadcast(intent, BLUETOOTH_PRIVILEGED);
            sendOrderedBroadcast(intent, BLUETOOTH_PRIVILEGED);
        }
        }


        synchronized (mStateMachines) {
        synchronized (mStateMachines) {