fix deleting single-occurrence events

This commit is contained in:
tibbi 2018-06-13 13:46:01 +02:00
parent 1c5b669ae3
commit cbdf90b1f7
1 changed files with 3 additions and 0 deletions

View File

@ -22,6 +22,9 @@ class DeleteEventDialog(val activity: Activity, eventIds: List<Int>, val callbac
val view = activity.layoutInflater.inflate(R.layout.dialog_delete_event, null).apply {
delete_event_repeat_description.beVisibleIf(hasRepeatableEvent)
delete_event_radio_view.beVisibleIf(hasRepeatableEvent)
if (!hasRepeatableEvent) {
delete_event_radio_view.check(R.id.delete_event_all)
}
if (eventIds.size > 1) {
delete_event_repeat_description.text = resources.getString(R.string.selection_contains_repetition)