support features
This commit is contained in:
@@ -188,10 +188,14 @@ public class CgDashBoardFragment extends Fragment implements
|
||||
binding.onGoingActivity.setText(viewModel.ongoingActivityText);
|
||||
binding.upcomingActivity.setText(viewModel.upcomingActivityText);
|
||||
|
||||
routineViewModel.getRoutines(careGiverData.patientId,
|
||||
"Bearer " + AppUtil.getCgToken(requireContext()),
|
||||
Calendar.getInstance().get(Calendar.DAY_OF_WEEK)-1,
|
||||
this);
|
||||
try {
|
||||
routineViewModel.getRoutines(careGiverData.patientId,
|
||||
"Bearer " + AppUtil.getCgToken(requireContext()),
|
||||
Calendar.getInstance().get(Calendar.DAY_OF_WEEK)-1,
|
||||
this);
|
||||
} catch (Exception e) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
||||
private void loadReminders(){
|
||||
@@ -199,10 +203,14 @@ public class CgDashBoardFragment extends Fragment implements
|
||||
|
||||
binding.nearestReminder.setText(viewModel.upcomingReminderText);
|
||||
|
||||
reminderViewModel.getRemindersList(careGiverData.patientId,
|
||||
Calendar.getInstance().get(Calendar.DAY_OF_WEEK)-1,
|
||||
"Bearer " + AppUtil.getCgToken(requireContext()),
|
||||
this);
|
||||
try {
|
||||
reminderViewModel.getRemindersList(careGiverData.patientId,
|
||||
Calendar.getInstance().get(Calendar.DAY_OF_WEEK)-1,
|
||||
"Bearer " + AppUtil.getCgToken(requireContext()),
|
||||
this);
|
||||
} catch (Exception e) {
|
||||
// do nothing
|
||||
}
|
||||
}
|
||||
|
||||
private void loadArticles() {
|
||||
|
||||
Reference in New Issue
Block a user