forked from penguin86/luna-tracker
Compare commits
3 Commits
8e4a5b89c0
...
58088aeec7
| Author | SHA1 | Date | |
|---|---|---|---|
| 58088aeec7 | |||
| 907decf8d1 | |||
| 7700258414 |
@@ -104,7 +104,7 @@ class LunaEvent: Comparable<LunaEvent> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fun getDialogTitle(context: Context): String {
|
fun getDialogTitle(context: Context): String {
|
||||||
return getDialogTitle(context, type)
|
return getTypeDescription(context, type)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getRowItemTitle(context: Context): String {
|
fun getRowItemTitle(context: Context): String {
|
||||||
@@ -168,7 +168,7 @@ class LunaEvent: Comparable<LunaEvent> {
|
|||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
fun getDialogTitle(context: Context, type: Type): String {
|
fun getTypeDescription(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().trim()
|
return formatted.toString()
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
Reference in New Issue
Block a user