Also parcel the battery level threshold
This commit is contained in:
parent
ff989390f9
commit
086bb8aa4a
|
@ -60,6 +60,7 @@ public class GBDevice implements Parcelable {
|
||||||
mHardwareVersion = in.readString();
|
mHardwareVersion = in.readString();
|
||||||
mState = State.values()[in.readInt()];
|
mState = State.values()[in.readInt()];
|
||||||
mBatteryLevel = (short) in.readInt();
|
mBatteryLevel = (short) in.readInt();
|
||||||
|
mBatteryThresholdPercent = (short) in.readInt();
|
||||||
mBatteryState = (BatteryState) in.readSerializable();
|
mBatteryState = (BatteryState) in.readSerializable();
|
||||||
mRssi = (short) in.readInt();
|
mRssi = (short) in.readInt();
|
||||||
mBusyTask = in.readString();
|
mBusyTask = in.readString();
|
||||||
|
@ -76,6 +77,7 @@ public class GBDevice implements Parcelable {
|
||||||
dest.writeString(mHardwareVersion);
|
dest.writeString(mHardwareVersion);
|
||||||
dest.writeInt(mState.ordinal());
|
dest.writeInt(mState.ordinal());
|
||||||
dest.writeInt(mBatteryLevel);
|
dest.writeInt(mBatteryLevel);
|
||||||
|
dest.writeInt(mBatteryThresholdPercent);
|
||||||
dest.writeSerializable(mBatteryState);
|
dest.writeSerializable(mBatteryState);
|
||||||
dest.writeInt(mRssi);
|
dest.writeInt(mRssi);
|
||||||
dest.writeString(mBusyTask);
|
dest.writeString(mBusyTask);
|
||||||
|
|
Loading…
Reference in New Issue