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

Commit edca0897 authored by Rongxuan Liu's avatar Rongxuan Liu
Browse files

[le audio] BassClient clear notified flag before new scanning

Bug: 287357243
Tag: #bug
Test: atest BassClientServiceTest
Test: manually test assistant to observe sources are always notified
Change-Id: Id6deecbee5429ff3c5337cfe1e588586679f00e8
parent b9b29806
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -983,6 +983,11 @@ public class BassClientService extends ProfileService {
                }
            };
            mScanBroadcasts.clear();
            // clear previous sources notify flag before scanning new result
            // this is to make sure the active sources are notified even if already synced
            if (mPeriodicAdvertisementResultMap != null) {
                clearNotifiedFlags();
            }
            ScanSettings settings = new ScanSettings.Builder().setCallbackType(
                    ScanSettings.CALLBACK_TYPE_ALL_MATCHES)
                    .setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY)