OSDN Git Service

Fix a typo that compares scanMode with callback types.
authorWei Wang <weiwa@google.com>
Wed, 17 Sep 2014 19:30:07 +0000 (12:30 -0700)
committerWei Wang <weiwa@google.com>
Wed, 17 Sep 2014 20:08:36 +0000 (13:08 -0700)
Bug: 17187159
Change-Id: Ieca583e7cf02d63b9eceda7872511c9db280c04a

src/com/android/bluetooth/gatt/GattService.java

index 023f8c0..8c2115c 100644 (file)
@@ -1962,7 +1962,7 @@ public class GattService extends ProfileService {
             return false;
         }
         // Hidden API for onLost/onFound
-        if (settings.getScanMode() != ScanSettings.CALLBACK_TYPE_ALL_MATCHES) {
+        if (settings.getCallbackType() != ScanSettings.CALLBACK_TYPE_ALL_MATCHES) {
             return true;
         }
         // Regular scan, no special permission.