mirror of
https://github.com/YTVanced/VancedManager
synced 2024-11-22 19:25:11 +00:00
crash fix attempt 2
This commit is contained in:
parent
cbaca950f9
commit
2441a2c8d3
1 changed files with 2 additions and 3 deletions
|
@ -41,10 +41,7 @@ class HomeFragment : Home() {
|
|||
): View? {
|
||||
activity?.title = getString(R.string.title_home)
|
||||
setHasOptionsMenu(true)
|
||||
val viewModel: HomeViewModel by viewModels()
|
||||
binding = DataBindingUtil.inflate(inflater, R.layout.fragment_home, container, false)
|
||||
binding.viewModel = viewModel
|
||||
|
||||
return binding.root
|
||||
}
|
||||
|
||||
|
@ -52,6 +49,8 @@ class HomeFragment : Home() {
|
|||
super.onViewCreated(view, savedInstanceState)
|
||||
|
||||
initNetworkFun()
|
||||
val viewModel: HomeViewModel by viewModels()
|
||||
binding.viewModel = viewModel
|
||||
|
||||
val variantPref = getDefaultSharedPreferences(activity).getString("vanced_variant", "Nonroot")
|
||||
|
||||
|
|
Loading…
Reference in a new issue