summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJakub Pawlowski <jpawlowski@google.com>2016-08-04 13:16:32 -0700
committerAndre Eisenbach <eisenbach@google.com>2016-08-04 20:19:52 +0000
commitc672f49cb7943b3f42eeb0ab91aa8d85d8511bca (patch)
tree3a572c46a0da494be380291a77774814c1a0d2f2
parent1360a3282988d5d1959c780dc331634757d9c471 (diff)
Fix bad index usage
Bug: 27999121 Change-Id: Ie2ba6f71bbf6f789a3c1016ba2f0051b809ac87e
-rw-r--r--framework/java/android/bluetooth/BluetoothGattServer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/framework/java/android/bluetooth/BluetoothGattServer.java b/framework/java/android/bluetooth/BluetoothGattServer.java
index d3c6444b1f..c2bcbb2df6 100644
--- a/framework/java/android/bluetooth/BluetoothGattServer.java
+++ b/framework/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());
}
}