mirror of
https://github.com/wulkanowy/wulkanowy.git
synced 2025-02-07 17:14:37 +01:00
Add isAdded check in AdditionalLessonAddDialog (#2515)
This commit is contained in:
parent
b500d8e204
commit
7a3a97447f
@ -155,8 +155,10 @@ class AdditionalLessonAddDialog : BaseDialogFragment<DialogAdditionalAddBinding>
|
||||
.build()
|
||||
|
||||
timePicker.addOnPositiveButtonClickListener {
|
||||
if (isAdded) {
|
||||
onTimeSelected(LocalTime.of(timePicker.hour, timePicker.minute))
|
||||
}
|
||||
}
|
||||
|
||||
if (!parentFragmentManager.isStateSaved) {
|
||||
timePicker.show(parentFragmentManager, null)
|
||||
|
Loading…
x
Reference in New Issue
Block a user