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

Commit 38a6a262 authored by Jack He's avatar Jack He Committed by Gerrit Code Review
Browse files

Merge "Set correct ScanFilter for bass assistant"

parents 5464529f bb69202b
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -675,8 +675,12 @@ public class BassClientService extends ProfileService {
                filters = new ArrayList<ScanFilter>();
            }
            if (!BassUtils.containUuid(filters, BassConstants.BAAS_UUID)) {
                byte[] serviceData = {0x00, 0x00 ,0x00}; // Broadcast_ID
                byte[] serviceDataMask = {0x00, 0x00, 0x00};

                filters.add(new ScanFilter.Builder()
                        .setServiceUuid(BassConstants.BAAS_UUID).build());
                        .setServiceData(BassConstants.BAAS_UUID,
                                serviceData, serviceDataMask).build());
            }
            scanner.startScan(filters, settings, mSearchScanCallback);
            mCallbacks.notifySearchStarted(BluetoothStatusCodes.REASON_LOCAL_APP_REQUEST);