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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user