mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-02-22 18:34:45 +01:00
Add isAdded condition to HomeworkAddDialog (#2499)
This commit is contained in:
parent
b280316b07
commit
a0818de7d1
@ -98,8 +98,10 @@ class HomeworkAddDialog : BaseDialogFragment<DialogHomeworkAddBinding>(), Homewo
|
|||||||
rangeEnd = LocalDate.now().lastSchoolDayInSchoolYear,
|
rangeEnd = LocalDate.now().lastSchoolDayInSchoolYear,
|
||||||
onDateSelected = {
|
onDateSelected = {
|
||||||
date = it
|
date = it
|
||||||
|
if (isAdded) {
|
||||||
binding.homeworkDialogDate.editText?.setText(date!!.toFormattedString())
|
binding.homeworkDialogDate.editText?.setText(date!!.toFormattedString())
|
||||||
}
|
}
|
||||||
|
}
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user