import nodomain.freeyourgadget.gadgetbridge.model.ActivityKind;
class HPlusDataRecordRealtime extends HPlusDataRecord {
public int distance;
public int calories;
public int heartRate;
<BUG>public byte battery;
public int activeTime;</BUG>
public int intensity;
public HPlusDataRecordRealtime(byte[] data) {
<BUG>super(data);
if (data.length < 15) {</BUG>
throw new IllegalArgumentException("Invalid data packet");

import nodomain.freeyourgadget.gadgetbridge.model.ActivityKind;
class HPlusDataRecordRealtime extends HPlusDataRecord {
public int distance;
public int calories;
public int heartRate;
public byte battery;
public int steps;
public int activeTime;
public int intensity;
public HPlusDataRecordRealtime(byte[] data) {
super(data, TYPE_REALTIME);
if (data.length < 15) {
throw new IllegalArgumentException("Invalid data packet");
