events: allow editing of all used values

1. Allow to change the date/time and
other relevant values of an event
on creation and after it was created.

2. Harmonize layout file names and
variable names.
This commit is contained in:
2025-11-04 15:10:45 +01:00
parent 5eeb462836
commit d4a80c275a
13 changed files with 482 additions and 200 deletions

View File

@@ -69,6 +69,15 @@ class LunaEvent: Comparable<LunaEvent> {
throw IllegalArgumentException("JSONObject is not a LunaEvent")
}
constructor(event: LunaEvent) {
this.jo = JSONObject()
this.type = event.type
this.time = event.time
this.quantity = event.quantity
this.notes = event.notes
this.signature = event.signature
}
constructor(type: String) {
this.jo = JSONObject()
this.time = System.currentTimeMillis() / 1000