This commit is contained in:
14Sandee
2023-11-03 20:32:46 +05:30
parent ab16574261
commit b429adc3f6
3 changed files with 34 additions and 16 deletions

View File

@@ -165,27 +165,33 @@ public class ProfileProgressFragment extends Fragment implements ProfileContract
return;
}
if (response.body().result.isCaregiverTakeSubscription == 1) {
// CG subscribed
try {
Intent intent = new Intent(requireActivity(), FUAActivity.class);
startActivity(intent);
} catch (Exception e) {
// do nothing
}
} else {
// no subscription alert
try {
if (response.body().result.isCareGiverConnectedWithPatient == 1) {
if (response.body().result.isCaregiverTakeSubscription == 1){
try {
Intent intent = new Intent(requireActivity(), FUAActivity.class);
startActivity(intent);
} catch (Exception e) {
// do nothing
}
}else{
AppUtil.showAlert(requireContext(),
"Caregiver registration",
"You can set up this feature after caregiver registration is complete",
"Kindly ask Caregiver to subscribe",
"Once your caregiver has completed the " +
"subscription, you will be able to eet up this " +
"feature.",
"OK",
((dialogInterface, i) -> {
}), null, null);
}catch (Exception e){
// do nothing
}
} else {
AppUtil.showAlert(requireContext(),
"Kindly ask Caregiver to complete registration",
"You can set up this feature after caregiver registration is complete",
"OK",
((dialogInterface, i) -> {
}), null, null);
}
} else {
onProfileProgressFetchFailed(new Exception(), "Please try again later.");

View File

@@ -177,7 +177,7 @@ public class RegisterCompleteFragment extends Fragment implements ProfileContrac
gotoPatientDashBoard();
}else{
AppUtil.showAlert(requireContext(),
"Kindly ask Caregiver to buy SimpliTend subscription.",
"Kindly ask Caregiver to subscribe",
"Once your caregiver has completed the " +
"subscription, you will be able to use the " +
"application.",