mirror of
https://codeberg.org/Freeyourgadget/Gadgetbridge
synced 2024-07-09 07:01:33 +02:00
13 lines
424 B
Java
13 lines
424 B
Java
package nodomain.freeyourgadget.gadgetbridge.activities.charts;
|
|
|
|
import nodomain.freeyourgadget.gadgetbridge.model.ActivityKind;
|
|
|
|
public class SleepUtils {
|
|
public static final float Y_VALUE_DEEP_SLEEP = 0.01f;
|
|
public static final float Y_VALUE_LIGHT_SLEEP = 0.016f;
|
|
|
|
public static boolean isSleep(byte type) {
|
|
return type == ActivityKind.TYPE_DEEP_SLEEP || type == ActivityKind.TYPE_LIGHT_SLEEP;
|
|
}
|
|
}
|