summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
author Jakub Pawlowski <jpawlowski@google.com> 2016-08-04 13:16:32 -0700
committer Andre Eisenbach <eisenbach@google.com> 2016-08-04 20:19:52 +0000
commitd167db19a9f34c8125a379b6e7095c8efb82d06f (patch)
tree6a836c347b2df4a12ca95ecead02645918c741e8
parenta11a8e50863e53124ec86ac248c0781d83f4bc48 (diff)
Fix bad index usage
Bug: 27999121 Change-Id: Ie2ba6f71bbf6f789a3c1016ba2f0051b809ac87e
-rw-r--r--core/java/android/bluetooth/BluetoothGattServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/java/android/bluetooth/BluetoothGattServer.java b/core/java/android/bluetooth/BluetoothGattServer.java
index d3c6444b1f90..c2bcbb2df636 100644
--- a/core/java/android/bluetooth/BluetoothGattServer.java
+++ b/core/java/android/bluetooth/BluetoothGattServer.java
@@ -133,7 +133,7 @@ public final class BluetoothGattServer implements BluetoothProfile {
List<BluetoothGattDescriptor> temp_descs = temp_char.getDescriptors();
List<BluetoothGattDescriptor> svc_descs = svc_char.getDescriptors();
for (int j=0; j<svc_descs.size(); j++) {
- temp_descs.get(i).setInstanceId(svc_descs.get(i).getInstanceId());
+ temp_descs.get(j).setInstanceId(svc_descs.get(j).getInstanceId());
}
}