.
This commit is contained in:
@@ -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.");
|
||||
|
||||
@@ -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.",
|
||||
|
||||
Reference in New Issue
Block a user