fix ActionCarePortalEvent strings
This commit is contained in:
parent
65a14c8eca
commit
a8895668bd
2 changed files with 9 additions and 2 deletions
|
@ -49,7 +49,7 @@ class ActionCarePortalEvent(injector: HasAndroidInjector) : Action(injector) {
|
|||
}
|
||||
|
||||
override fun friendlyName(): Int = R.string.careportal
|
||||
override fun shortDescription(): String = resourceHelper.gs(cpEvent.value.stringRes, note.value)
|
||||
override fun shortDescription(): String = resourceHelper.gs(cpEvent.value.stringResWithValue, note.value)
|
||||
|
||||
@DrawableRes override fun icon(): Int = cpEvent.value.drawableRes
|
||||
|
||||
|
|
|
@ -22,7 +22,7 @@ class InputCarePortalMenu(private val resourceHelper: ResourceHelper) : Element(
|
|||
QUESTION (TherapyEvent.Type.QUESTION),
|
||||
ANNOUNCEMENT (TherapyEvent.Type.ANNOUNCEMENT);
|
||||
|
||||
@get:StringRes val stringRes: Int
|
||||
@get:StringRes val stringResWithValue: Int
|
||||
get() = when (this) {
|
||||
NOTE -> R.string.careportal_note_message
|
||||
EXERCISE -> R.string.careportal_exercise_message
|
||||
|
@ -30,6 +30,13 @@ class InputCarePortalMenu(private val resourceHelper: ResourceHelper) : Element(
|
|||
ANNOUNCEMENT -> R.string.careportal_announcement_message
|
||||
}
|
||||
|
||||
@get:StringRes val stringRes: Int
|
||||
get() = when (this) {
|
||||
NOTE -> R.string.careportal_note
|
||||
EXERCISE -> R.string.careportal_exercise
|
||||
QUESTION -> R.string.careportal_question
|
||||
ANNOUNCEMENT -> R.string.careportal_announcement
|
||||
}
|
||||
@get:DrawableRes val drawableRes: Int
|
||||
get() = when (this) {
|
||||
NOTE -> R.drawable.ic_cp_note
|
||||
|
|
Loading…
Reference in a new issue