diff options
| author | Jakub Pawlowski <jpawlowski@google.com> | 2016-04-01 07:17:15 -0700 |
|---|---|---|
| committer | Andre Eisenbach <eisenbach@google.com> | 2016-04-01 17:59:09 +0000 |
| commit | db29556fe8594900a2d1057e6c67491522dc8fd7 (patch) | |
| tree | 041e570c6a3660e855e6c5e945a0aa7e4c3fa54a /core/java | |
| parent | 29cbe66c7d623a2bea7fb74474a1a8520cc5b809 (diff) | |
Fix GATT Characteristic write type serialization
Default writeType for GATT characteristic was not being
serialized into Parcel. This cause errors when trying to
write into Characteristic.
Bug: 27910548
Change-Id: Ib2f88cf991123eaea244f16fa36deb0d773c5a33
Diffstat (limited to 'core/java')
| -rw-r--r-- | core/java/android/bluetooth/BluetoothGattCharacteristic.java | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/java/android/bluetooth/BluetoothGattCharacteristic.java b/core/java/android/bluetooth/BluetoothGattCharacteristic.java index 7d698b3ef5a6..01f82e693dee 100644 --- a/core/java/android/bluetooth/BluetoothGattCharacteristic.java +++ b/core/java/android/bluetooth/BluetoothGattCharacteristic.java @@ -284,6 +284,8 @@ public class BluetoothGattCharacteristic implements Parcelable { out.writeInt(mInstance); out.writeInt(mProperties); out.writeInt(mPermissions); + out.writeInt(mKeySize); + out.writeInt(mWriteType); out.writeTypedList(mDescriptors); } @@ -303,6 +305,8 @@ public class BluetoothGattCharacteristic implements Parcelable { mInstance = in.readInt(); mProperties = in.readInt(); mPermissions = in.readInt(); + mKeySize = in.readInt(); + mWriteType = in.readInt(); mDescriptors = new ArrayList<BluetoothGattDescriptor>(); |
