@@ -11,15 +11,15 @@ import androidx.viewbinding.ViewBinding
1111import com.oguzdogdu.wallies.util.navigateSafe
1212
1313abstract class BaseFragment <VB : ViewBinding >(
14- private val bindingInflater : (inflater: LayoutInflater ) -> VB
14+ private val bindingInflater : (inflater: LayoutInflater ) -> VB ,
1515) : Fragment(), Presenters {
1616
1717 private var _binding : VB ? = null
1818 val binding: VB
1919 get() = _binding as VB
2020
2121 override fun onCreateView (
22- inflater : LayoutInflater , container : ViewGroup ? , savedInstanceState : Bundle ?
22+ inflater : LayoutInflater , container : ViewGroup ? , savedInstanceState : Bundle ? ,
2323 ): View ? {
2424 _binding = bindingInflater.invoke(inflater)
2525 if (_binding == null ) throw IllegalArgumentException (" Binding cannot be null" )
@@ -32,6 +32,7 @@ abstract class BaseFragment<VB : ViewBinding>(
3232 initViews()
3333 initListeners()
3434 }
35+
3536 override fun observeData () {
3637 }
3738
@@ -42,7 +43,7 @@ abstract class BaseFragment<VB : ViewBinding>(
4243 }
4344
4445 fun navigate (@IdRes id : Int , extras : Bundle ? ) {
45- findNavController().navigateSafe(id,extras)
46+ findNavController().navigateSafe(id, extras)
4647 }
4748
4849 fun navigateBack (@IdRes destination : Int? = null) {
0 commit comments