update the repetition rule on change

This commit is contained in:
tibbi 2017-04-15 12:12:26 +02:00
parent c4cd5e14ab
commit 992b1f0b00
1 changed files with 4 additions and 1 deletions

View File

@ -187,12 +187,15 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
if (mRepeatInterval == DAY) {
RepeatRuleDailyDialog(this, mRepeatRule) {
mRepeatRule = it
checkRepetitionRuleText()
}
}
}
private fun checkRepetitionRuleText() {
event_repetition_rule.text = ""
if (mRepeatInterval == DAY) {
event_repetition_rule.text = getString(if (mRepeatRule == 127) R.string.every_day else R.string.selected_days)
}
}
private fun showEventTypeDialog() {