update the repetition rule on change
This commit is contained in:
parent
c4cd5e14ab
commit
992b1f0b00
|
@ -187,12 +187,15 @@ class EventActivity : SimpleActivity(), DBHelper.EventUpdateListener {
|
||||||
if (mRepeatInterval == DAY) {
|
if (mRepeatInterval == DAY) {
|
||||||
RepeatRuleDailyDialog(this, mRepeatRule) {
|
RepeatRuleDailyDialog(this, mRepeatRule) {
|
||||||
mRepeatRule = it
|
mRepeatRule = it
|
||||||
|
checkRepetitionRuleText()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private fun 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() {
|
private fun showEventTypeDialog() {
|
||||||
|
|
Loading…
Reference in New Issue