File was renamed from app/src/main/java/com/duqing/missions/ui/main/notifications/NotificationsFragment.java |
| | |
| | | package com.duqing.missions.ui.main.notifications; |
| | | package com.duqing.missions.ui.main.mine; |
| | | |
| | | import androidx.annotation.Nullable; |
| | | import androidx.lifecycle.Observer; |
| | | import androidx.lifecycle.ViewModelProvider; |
| | | |
| | | import com.duqing.missions.base.BaseFragment; |
| | | import com.duqing.missions.databinding.FragmentNotificationsBinding; |
| | | import com.duqing.missions.databinding.FragmentMineBinding; |
| | | |
| | | public class NotificationsFragment extends BaseFragment<FragmentNotificationsBinding> { |
| | | public class MineFragment extends BaseFragment<FragmentMineBinding> { |
| | | |
| | | private NotificationsViewModel notificationsViewModel; |
| | | private MineViewModel notificationsViewModel; |
| | | |
| | | |
| | | @Override |
| | | public void initViews() { |
| | | notificationsViewModel = new ViewModelProvider(this).get(NotificationsViewModel.class); |
| | | notificationsViewModel = new ViewModelProvider(this).get(MineViewModel.class); |
| | | notificationsViewModel.getText().observe(getViewLifecycleOwner(), new Observer<String>() { |
| | | @Override |
| | | public void onChanged(@Nullable String s) { |