Skip to content
Snippets Groups Projects
Commit e99a17ac authored by Rongxuan Liu's avatar Rongxuan Liu Committed by Gerrit Code Review
Browse files

Merge "[le audio] BassClient clear notified flag before new scanning" into main

parents 6652968e edca0897
No related branches found
No related tags found
No related merge requests found
...@@ -983,6 +983,11 @@ public class BassClientService extends ProfileService { ...@@ -983,6 +983,11 @@ public class BassClientService extends ProfileService {
} }
}; };
mScanBroadcasts.clear(); 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 settings = new ScanSettings.Builder().setCallbackType(
ScanSettings.CALLBACK_TYPE_ALL_MATCHES) ScanSettings.CALLBACK_TYPE_ALL_MATCHES)
.setScanMode(ScanSettings.SCAN_MODE_LOW_LATENCY) .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