fix some monthly repetition texts

This commit is contained in:
tibbi 2017-05-07 20:47:14 +02:00
parent 15d1967ba3
commit bb9bd6c4d8
1 changed files with 3 additions and 1 deletions

View File

@ -234,7 +234,8 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
return if (includeBase) {
"$base $order $dayString"
} else {
"${order.capitalize()} $dayString"
val everyString = getString(if (isMaleGender(mEventStartDateTime.dayOfWeek)) R.string.every_m else R.string.every_f)
"$everyString $order $dayString"
}
}
@ -289,6 +290,7 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
if (isXWeeklyRepetition()) {
event_repetition_rule.text = if (mRepeatRule == EVERY_DAY) getString(R.string.every_day) else getSelectedDaysString()
} else if (isXMonthlyRepetition()) {
event_repetition_rule_label.text = getString(if (mRepeatRule == REPEAT_MONTH_EVERY_XTH_DAY) R.string.repeat else R.string.repeat_on)
event_repetition_rule.text = getMonthlyRepetitionRuleText()
}
}