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