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

Commit 1667afef authored by Wei Wang's avatar Wei Wang Committed by Android Git Automerger
Browse files

am 298f3b7c: Fix crashes when calling numHwTrackFiltersAvailable.

* commit '298f3b7c':
  Fix crashes when calling numHwTrackFiltersAvailable.
parents cd37b7ea 298f3b7c
Loading
Loading
Loading
Loading
+0 −4
Original line number Diff line number Diff line
@@ -2082,10 +2082,6 @@ public class GattService extends ProfileService {
        if (settings == null) {
            return false;
        }
        // Hidden API for onLost/onFound
        if (settings.getCallbackType() != ScanSettings.CALLBACK_TYPE_ALL_MATCHES) {
            return true;
        }
        // Regular scan, no special permission.
        if (settings.getReportDelayMillis() == 0) {
            return false;
+1 −0
Original line number Diff line number Diff line
@@ -92,6 +92,7 @@ public class ScanManager {
        mBatchClients = new HashSet<ScanClient>();
        mService = service;
        mScanNative = new ScanNative();
        curUsedTrackableAdvertisements = 0;
    }

    void start() {