LunaEvent: rework sleep event

Remove adjustment buttons and
simplify design.
This commit is contained in:
2026-02-02 21:03:51 +01:00
parent 260e70a1b7
commit be5463bf18
6 changed files with 71 additions and 92 deletions

View File

@@ -115,6 +115,18 @@ class LunaEvent: Comparable<LunaEvent> {
return getDialogMessage(context, type)
}
fun getStartTime(): Long {
return time
}
fun getEndTime(): Long {
return if (type == Type.SLEEP) {
time + quantity
} else {
time
}
}
fun toJson(): JSONObject {
return jo
}