fix deleting single-occurrence events
This commit is contained in:
parent
1c5b669ae3
commit
cbdf90b1f7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue