1
0
mirror of https://github.com/wulkanowy/wulkanowy.git synced 2024-09-20 03:29:08 -05:00

Add isAdded condition to HomeworkAddDialog (#2499)

This commit is contained in:
Rafał Borcz 2024-03-24 14:55:05 +01:00 committed by GitHub
parent b280316b07
commit a0818de7d1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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())
} }
}
) )
} }