diff --git a/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingFragment.kt b/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingFragment.kt index 1d18d575..bb908b4c 100644 --- a/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingFragment.kt +++ b/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingFragment.kt @@ -15,14 +15,18 @@ class RecipeMakingFragment : Fragment() { private val viewModel: RecipeMakingViewModel by viewModels() override fun onCreateView( - inflater: LayoutInflater, container: ViewGroup?, - savedInstanceState: Bundle? + inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle?, ): View { _binding = FragmentRecipeMakingBinding.inflate(inflater) return binding.root } - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + override fun onViewCreated( + view: View, + savedInstanceState: Bundle?, + ) { super.onViewCreated(view, savedInstanceState) initBinding() } diff --git a/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingViewModel.kt b/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingViewModel.kt index e48c61eb..92bfe13c 100644 --- a/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingViewModel.kt +++ b/android/app/src/main/java/net/pengcook/android/presentation/making/RecipeMakingViewModel.kt @@ -1,6 +1,5 @@ package net.pengcook.android.presentation.making -import androidx.lifecycle.LiveData import androidx.lifecycle.MutableLiveData import androidx.lifecycle.ViewModel import net.pengcook.android.presentation.making.listener.RecipeMakingEventListener diff --git a/android/app/src/main/java/net/pengcook/android/presentation/making/step/StepMakingFragment.kt b/android/app/src/main/java/net/pengcook/android/presentation/making/step/StepMakingFragment.kt index edf7696c..c7d4247d 100644 --- a/android/app/src/main/java/net/pengcook/android/presentation/making/step/StepMakingFragment.kt +++ b/android/app/src/main/java/net/pengcook/android/presentation/making/step/StepMakingFragment.kt @@ -14,16 +14,19 @@ class StepMakingFragment : Fragment() { get() = _binding!! private val viewModel: StepMakingViewModel by viewModels() - override fun onCreateView( - inflater: LayoutInflater, container: ViewGroup?, - savedInstanceState: Bundle? + inflater: LayoutInflater, + container: ViewGroup?, + savedInstanceState: Bundle?, ): View { _binding = FragmentMakingStepBinding.inflate(inflater) return binding.root } - override fun onViewCreated(view: View, savedInstanceState: Bundle?) { + override fun onViewCreated( + view: View, + savedInstanceState: Bundle?, + ) { super.onViewCreated(view, savedInstanceState) initBinding() } @@ -33,7 +36,6 @@ class StepMakingFragment : Fragment() { _binding = null } - private fun initBinding() { binding.lifecycleOwner = this binding.vm = viewModel