4 Commits

Author SHA1 Message Date
8e4a5b89c0 NumericUtils: remove possible trailing whitespace 2025-12-12 15:27:13 +01:00
469666cd0f MainActivity: use System.currentTimeMillis
A little better way to get the ms since epoch.
2025-12-12 15:27:13 +01:00
0e980a8c68 MainActivity: do not switch logbook on reload 2025-12-12 15:27:13 +01:00
b1fc3ce890 LunaEvent: reorganize event text getters
Use method names that better reflect
the use of the returned text.
2025-12-12 15:27:08 +01:00
2 changed files with 3 additions and 3 deletions

View File

@@ -104,7 +104,7 @@ class LunaEvent: Comparable<LunaEvent> {
}
fun getDialogTitle(context: Context): String {
return getTypeDescription(context, type)
return getDialogTitle(context, type)
}
fun getRowItemTitle(context: Context): String {
@@ -168,7 +168,7 @@ class LunaEvent: Comparable<LunaEvent> {
)
}
fun getTypeDescription(context: Context, type: Type): String {
fun getDialogTitle(context: Context, type: Type): String {
return context.getString(
when (type) {
Type.BABY_BOTTLE -> R.string.event_bottle_desc

View File

@@ -101,7 +101,7 @@ class NumericUtils (val context: Context) {
else -> ""
})
}
return formatted.toString()
return formatted.toString().trim()
}
/**