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
This commit is contained in:
Jakub Pawlowski
2016-04-01 07:17:15 -07:00
committed by Andre Eisenbach
parent 29cbe66c7d
commit db29556fe8

View File

@@ -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>();