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

Commit e02aea64 authored by Michal Belusiak's avatar Michal Belusiak
Browse files

BassClientService: Clear notifiedFlags in case of sync without scanning

Bug: 339824295
Bug: 333691526
Test: atest BassClientServiceTest
Change-Id: I66412aa49c2b64ad1098688265bcb3c8b9d8d0f9
parent 75e28f96
Loading
Loading
Loading
Loading
+4 −6
Original line number Diff line number Diff line
@@ -1565,13 +1565,11 @@ public class BassClientService extends ProfileService {
            mHandler.removeMessages(MESSAGE_SYNC_TIMEOUT);
            // when starting scan, clear the previously cached broadcast scan results
            mCachedBroadcasts.clear();
            if (!leaudioBroadcastExtractPeriodicScannerFromStateMachine()) {
            // 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)
+211 −73

File changed.

Preview size limit exceeded, changes collapsed.