diff options
| author | 2017-09-15 02:38:09 +0000 | |
|---|---|---|
| committer | 2017-09-15 02:38:09 +0000 | |
| commit | 4df0b1590cc0ae3f2870a864dc442dc54c1cbb1a (patch) | |
| tree | bb16199a9b9cb99495e74ce391d5188990c18010 | |
| parent | 87fcf18ac7bed588a41d12c28272639541d0af89 (diff) | |
| parent | e22de0f23f29b1b3dc8c36b2be48bc0e811526d7 (diff) | |
Merge changes from topic "incl_svc_parsing_fix" am: fee4546fd6 am: 3aa179fabd
am: e22de0f23f
Change-Id: I30dc6840311d338976240cc86b9da9b116b175ad
| -rw-r--r-- | core/java/android/bluetooth/BluetoothGatt.java | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/core/java/android/bluetooth/BluetoothGatt.java b/core/java/android/bluetooth/BluetoothGatt.java index 83a82f7f8353..a2af3422eaec 100644 --- a/core/java/android/bluetooth/BluetoothGatt.java +++ b/core/java/android/bluetooth/BluetoothGatt.java @@ -311,8 +311,7 @@ public final class BluetoothGatt implements BluetoothProfile { for (BluetoothGattService brokenRef : includedServices) { BluetoothGattService includedService = getService(mDevice, - brokenRef.getUuid(), brokenRef.getInstanceId(), - brokenRef.getType()); + brokenRef.getUuid(), brokenRef.getInstanceId()); if (includedService != null) { fixedService.addIncludedService(includedService); } else { @@ -714,10 +713,9 @@ public final class BluetoothGatt implements BluetoothProfile { * @hide */ /*package*/ BluetoothGattService getService(BluetoothDevice device, UUID uuid, - int instanceId, int type) { + int instanceId) { for (BluetoothGattService svc : mServices) { if (svc.getDevice().equals(device) - && svc.getType() == type && svc.getInstanceId() == instanceId && svc.getUuid().equals(uuid)) { return svc; @@ -913,7 +911,7 @@ public final class BluetoothGatt implements BluetoothProfile { /** * Set the preferred connection PHY for this app. Please note that this is just a - * recommendation, whether the PHY change will happen depends on other applications peferences, + * recommendation, whether the PHY change will happen depends on other applications preferences, * local and remote controller capabilities. Controller can override these settings. * <p> * {@link BluetoothGattCallback#onPhyUpdate} will be triggered as a result of this call, even |