diff --git a/app/src/main/java/com/hous/hous_aos/ui/home/EventDialogFragment.kt b/app/src/main/java/com/hous/hous_aos/ui/home/EventDialogFragment.kt index 9b03d52a..b3ba32d0 100644 --- a/app/src/main/java/com/hous/hous_aos/ui/home/EventDialogFragment.kt +++ b/app/src/main/java/com/hous/hous_aos/ui/home/EventDialogFragment.kt @@ -30,7 +30,7 @@ class EventDialogFragment : DialogFragment() { _binding = DataBindingUtil.inflate(inflater, R.layout.fragment_event_dialog, container, false) binding.viewModel = viewModel - binding.lifecycleOwner = this@EventDialogFragment + binding.lifecycleOwner = viewLifecycleOwner return binding.root } diff --git a/app/src/main/java/com/hous/hous_aos/ui/rules/today_to_do/tem_dialog/TempManagerDialogFragment.kt b/app/src/main/java/com/hous/hous_aos/ui/rules/today_to_do/tem_dialog/TempManagerDialogFragment.kt index eda09214..2ce8bd57 100644 --- a/app/src/main/java/com/hous/hous_aos/ui/rules/today_to_do/tem_dialog/TempManagerDialogFragment.kt +++ b/app/src/main/java/com/hous/hous_aos/ui/rules/today_to_do/tem_dialog/TempManagerDialogFragment.kt @@ -25,7 +25,7 @@ class TempManagerDialogFragment : DialogFragment() { _binding = DataBindingUtil.inflate(inflater, R.layout.fragment_temp_manager, container, false) binding.viewModel = viewModel - binding.lifecycleOwner = requireActivity() + binding.lifecycleOwner = viewLifecycleOwner return binding.root }