1
0
mirror of https://codeberg.org/Freeyourgadget/Gadgetbridge synced 2024-07-07 14:11:36 +02:00

Also parcel the battery level threshold

This commit is contained in:
cpfeiffer 2015-08-28 13:53:16 +02:00
parent ff989390f9
commit 086bb8aa4a

View File

@ -60,6 +60,7 @@ public class GBDevice implements Parcelable {
mHardwareVersion = in.readString();
mState = State.values()[in.readInt()];
mBatteryLevel = (short) in.readInt();
mBatteryThresholdPercent = (short) in.readInt();
mBatteryState = (BatteryState) in.readSerializable();
mRssi = (short) in.readInt();
mBusyTask = in.readString();
@ -76,6 +77,7 @@ public class GBDevice implements Parcelable {
dest.writeString(mHardwareVersion);
dest.writeInt(mState.ordinal());
dest.writeInt(mBatteryLevel);
dest.writeInt(mBatteryThresholdPercent);
dest.writeSerializable(mBatteryState);
dest.writeInt(mRssi);
dest.writeString(mBusyTask);