binding breaks after screen rotation
I have exception "lateinit property binding has not been initialized" after screen rotation when I try call binding . How I can fix it ?
My base fragment code
override fun onCreateView(
inflater: LayoutInflater,
container: ViewGroup?,
savedInstanceState: Bundle?,
): View? {
binding = DataBindingUtil.inflate(inflater, contentLayoutID, container, false)
return binding.root
}