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

Commit 8af0e1cd authored by Wei Wang's avatar Wei Wang
Browse files

Fix a typo that compares scanMode with callback types.

Bug: 17187159
Change-Id: Ieca583e7cf02d63b9eceda7872511c9db280c04a
parent 2eb3afb6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1962,7 +1962,7 @@ public class GattService extends ProfileService {
            return false;
            return false;
        }
        }
        // Hidden API for onLost/onFound
        // Hidden API for onLost/onFound
        if (settings.getScanMode() != ScanSettings.CALLBACK_TYPE_ALL_MATCHES) {
        if (settings.getCallbackType() != ScanSettings.CALLBACK_TYPE_ALL_MATCHES) {
            return true;
            return true;
        }
        }
        // Regular scan, no special permission.
        // Regular scan, no special permission.