mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-14 06:10:31 +05:30
Release view bindings in SearchFragment.
This commit is contained in:
parent
32533ca11c
commit
cec4f4da66
@ -20,7 +20,9 @@ import com.github.libretube.ui.base.BaseFragment
|
||||
import com.github.libretube.ui.models.SearchViewModel
|
||||
|
||||
class SearchFragment : BaseFragment() {
|
||||
private lateinit var binding: FragmentSearchBinding
|
||||
private var _binding: FragmentSearchBinding? = null
|
||||
private val binding get() = _binding!!
|
||||
|
||||
private val viewModel: SearchViewModel by activityViewModels()
|
||||
|
||||
private var query: String? = null
|
||||
@ -35,7 +37,7 @@ class SearchFragment : BaseFragment() {
|
||||
container: ViewGroup?,
|
||||
savedInstanceState: Bundle?
|
||||
): View {
|
||||
binding = FragmentSearchBinding.inflate(layoutInflater, container, false)
|
||||
_binding = FragmentSearchBinding.inflate(layoutInflater, container, false)
|
||||
return binding.root
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user