Workaround for crash (never return null heartrate for now)

This commit is contained in:
Andreas Shimokawa 2017-03-22 08:37:23 +01:00
parent 85392e3ca6
commit ecda0005d4
2 changed files with 2 additions and 2 deletions

View File

@ -69,7 +69,7 @@ public abstract class AbstractActivitySample implements ActivitySample {
@Override @Override
public Integer getHeartRate() { public Integer getHeartRate() {
return null; return NOT_MEASURED;
} }
public abstract void setDeviceId(long deviceId); public abstract void setDeviceId(long deviceId);

View File

@ -77,7 +77,7 @@ public interface ActivitySample extends TimeStamped {
* The value is returned in heart beats per minute, in the range from * The value is returned in heart beats per minute, in the range from
* 0-255, where 255 is an illegal value (e.g. due to a bad measurement) * 0-255, where 255 is an illegal value (e.g. due to a bad measurement)
* *
* @return the heart rate value in beats per minute, or null if none * @return the heart rate value in beats per minute, or -1 if none
*/ */
Integer getHeartRate(); Integer getHeartRate();