From 086bb8aa4abf1847ddabe90b0c35e40f4d6a510d Mon Sep 17 00:00:00 2001 From: cpfeiffer Date: Fri, 28 Aug 2015 13:53:16 +0200 Subject: [PATCH] Also parcel the battery level threshold --- .../nodomain/freeyourgadget/gadgetbridge/impl/GBDevice.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDevice.java b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDevice.java index 561a45fa..72458e62 100644 --- a/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDevice.java +++ b/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/impl/GBDevice.java @@ -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);