Skip to content

Commit

Permalink
🚨 ktlint Formating
Browse files Browse the repository at this point in the history
  • Loading branch information
ii2001 committed Jul 25, 2024
1 parent 97d9c5c commit 4178444
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand Down
Original file line number Diff line number Diff line change
@@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}
Expand All @@ -33,7 +36,6 @@ class StepMakingFragment : Fragment() {
_binding = null
}


private fun initBinding() {
binding.lifecycleOwner = this
binding.vm = viewModel
Expand Down

0 comments on commit 4178444

Please sign in to comment.