Loading android/app/src/com/android/bluetooth/gatt/GattService.java +4 −1 Original line number Diff line number Diff line Loading @@ -1242,6 +1242,7 @@ public class GattService extends ProfileService { // TODO: use settings to configure scan params. // TODO: move logic to state machine to avoid locking. synchronized(mScanQueue) { boolean isScaning = (!mScanQueue.isEmpty()); if (getScanClient(appIf, isServer) == null) { if (DBG) Log.d(TAG, "startScan() - adding client=" + appIf); mScanQueue.add(new ScanClient(appIf, isServer, settings, filters)); Loading @@ -1250,7 +1251,9 @@ public class GattService extends ProfileService { if (!Objects.deepEquals(newFilters, mScanFilters)) { mScanFilters = newFilters; // Restart scan using new filters. if (isScaning) { sendStopScanMessage(); } sendStartScanMessage(mScanFilters); } } Loading Loading
android/app/src/com/android/bluetooth/gatt/GattService.java +4 −1 Original line number Diff line number Diff line Loading @@ -1242,6 +1242,7 @@ public class GattService extends ProfileService { // TODO: use settings to configure scan params. // TODO: move logic to state machine to avoid locking. synchronized(mScanQueue) { boolean isScaning = (!mScanQueue.isEmpty()); if (getScanClient(appIf, isServer) == null) { if (DBG) Log.d(TAG, "startScan() - adding client=" + appIf); mScanQueue.add(new ScanClient(appIf, isServer, settings, filters)); Loading @@ -1250,7 +1251,9 @@ public class GattService extends ProfileService { if (!Objects.deepEquals(newFilters, mScanFilters)) { mScanFilters = newFilters; // Restart scan using new filters. if (isScaning) { sendStopScanMessage(); } sendStartScanMessage(mScanFilters); } } Loading