forked from penguin86/luna-tracker
Compare commits
4 Commits
58088aeec7
...
8e4a5b89c0
| Author | SHA1 | Date | |
|---|---|---|---|
| 8e4a5b89c0 | |||
| 469666cd0f | |||
| 0e980a8c68 | |||
| b1fc3ce890 |
@@ -104,7 +104,7 @@ class LunaEvent: Comparable<LunaEvent> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getDialogTitle(context: Context): String {
|
fun getDialogTitle(context: Context): String {
|
||||||
return getTypeDescription(context, type)
|
return getDialogTitle(context, type)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getRowItemTitle(context: Context): String {
|
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(
|
return context.getString(
|
||||||
when (type) {
|
when (type) {
|
||||||
Type.BABY_BOTTLE -> R.string.event_bottle_desc
|
Type.BABY_BOTTLE -> R.string.event_bottle_desc
|
||||||
|
|||||||
@@ -101,7 +101,7 @@ class NumericUtils (val context: Context) {
|
|||||||
else -> ""
|
else -> ""
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
return formatted.toString()
|
return formatted.toString().trim()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user