forked from github/wulkanowy-mirror
Add isAdded check in AdditionalLessonAddDialog (#2515)
This commit is contained in:
parent
b500d8e204
commit
7a3a97447f
@ -155,7 +155,9 @@ class AdditionalLessonAddDialog : BaseDialogFragment<DialogAdditionalAddBinding>
|
||||
.build()
|
||||
|
||||
timePicker.addOnPositiveButtonClickListener {
|
||||
onTimeSelected(LocalTime.of(timePicker.hour, timePicker.minute))
|
||||
if (isAdded) {
|
||||
onTimeSelected(LocalTime.of(timePicker.hour, timePicker.minute))
|
||||
}
|
||||
}
|
||||
|
||||
if (!parentFragmentManager.isStateSaved) {
|
||||
|
Loading…
Reference in New Issue
Block a user