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

Commit 17cfa567 authored by Wei Wang's avatar Wei Wang Committed by Android Git Automerger
Browse files

am b85d4f9b: am 19b517c9: am bd1ee3d4: Fix Bluetooth crash when all filters are used.

* commit 'b85d4f9b':
  Fix Bluetooth crash when all filters are used.
parents ba60f908 b85d4f9b
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -441,7 +441,8 @@ public class ScanManager {
        }

        void startRegularScan(ScanClient client) {
            if (mFilterIndexStack.isEmpty() && isFilteringSupported()) {
            if (isFilteringSupported() && mFilterIndexStack.isEmpty() &&
                    mClientFilterIndexMap.isEmpty()) {
                initFilterIndexStack();
            }
            if (isFilteringSupported()) {
@@ -748,7 +749,7 @@ public class ScanManager {
            if (client.filters == null || client.filters.isEmpty()) {
                return true;
            }
            return client.filters.size() < mClientFilterIndexMap.size();
            return client.filters.size() > mFilterIndexStack.size();
        }

        private void addFilterToController(int clientIf, ScanFilterQueue.Entry entry,