Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment