fix: 移除多余代码

This commit is contained in:
niushuai233 2022-10-13 17:02:12 +08:00
parent 377a561e1a
commit ff29ccbc8b

View File

@ -30,9 +30,9 @@ public class NavDeviceFragment extends Fragment {
NavDeviceViewModel navDeviceViewModel = new ViewModelProvider(this).get(NavDeviceViewModel.class); NavDeviceViewModel navDeviceViewModel = new ViewModelProvider(this).get(NavDeviceViewModel.class);
View rootView = navFragmentDeviceBinding.getRoot(); View rootView = navFragmentDeviceBinding.getRoot();
TextView textView = navFragmentDeviceBinding.navDeviceFragmentTextview; // TextView textView = navFragmentDeviceBinding.navDeviceFragmentTextview;
//
navDeviceViewModel.getText().observe(getViewLifecycleOwner(), textView::setText); // navDeviceViewModel.getText().observe(getViewLifecycleOwner(), textView::setText);
return rootView; return rootView;
} }