This commit is contained in:
ADITYA
2023-09-17 03:54:48 +05:30
parent a7fe5e57ca
commit 435cdf571f
4 changed files with 13 additions and 12 deletions

3
.idea/misc.xml generated
View File

@@ -1,6 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4"> <project version="4">
<component name="ExternalStorageConfigurationManager" enabled="true" /> <component name="ExternalStorageConfigurationManager" enabled="true" />
<component name="ProjectRootManager" version="2" languageLevel="JDK_17" project-jdk-name="jbr-17" project-jdk-type="JavaSDK"> <component name="ProjectRootManager" version="2" languageLevel="JDK_17_PREVIEW" project-jdk-name="jbr-17" project-jdk-type="JavaSDK">
<output url="file://$PROJECT_DIR$/build/classes" /> <output url="file://$PROJECT_DIR$/build/classes" />
</component> </component>
<component name="ProjectType"> <component name="ProjectType">

View File

@@ -495,11 +495,10 @@ public class CreateContactFragment extends Fragment implements WelcomeContracts.
binding.email.setFocusable(false); binding.email.setFocusable(false);
binding.emailTitle.setText(getString(R.string.email_address)); binding.emailTitle.setText(getString(R.string.email_address));
binding.caregiverCheckView.setVisibility(View.VISIBLE);
binding.caregiverCheck.setChecked(true); binding.caregiverCheck.setChecked(true);
binding.caregiverCheck.setEnabled(false); binding.caregiverCheck.setEnabled(false);
binding.relationship.setEnabled(false); binding.relationship.setEnabled(false);
} else {
binding.caregiverCheckView.setVisibility(View.GONE);
} }
// checking if this contact is doctor // checking if this contact is doctor
@@ -605,7 +604,7 @@ public class CreateContactFragment extends Fragment implements WelcomeContracts.
contact_binding.defaultCheck.setSelected(id_default); contact_binding.defaultCheck.setSelected(id_default);
// if contact is a doctor we wont allow the contact to be changes // if contact is a doctor we wont allow the contact to be changes
if (contactData.is_doctor != null && contactData.is_doctor.equals("1")){ if (contactData != null && contactData.is_doctor != null && contactData.is_doctor.equals("1")){
contact_binding.createPhoneNumber.setEnabled(false); contact_binding.createPhoneNumber.setEnabled(false);
contact_binding.createCountryCodes.setEnabled(false); contact_binding.createCountryCodes.setEnabled(false);
contact_binding.defaultCheck.setEnabled(false); contact_binding.defaultCheck.setEnabled(false);

View File

@@ -269,14 +269,14 @@ public class SplashFragment extends Fragment
// caching data // caching data
PatientDataCache.setPatientData(patientData); PatientDataCache.setPatientData(patientData);
if (!patientData.caregiver_status.equals(AccountPresenter.ACC_ACTIVE_STR)){ // if (!patientData.caregiver_status.equals(AccountPresenter.ACC_ACTIVE_STR)){
// account is not active // // account is not active
//
gotoReActivateScreen(patientData.caregiver_status, // gotoReActivateScreen(patientData.caregiver_status,
AppUtil.getPatientToken(requireContext()), // AppUtil.getPatientToken(requireContext()),
-1, false); // -1, false);
return; // return;
} // }
binding.retry.setVisibility(View.GONE); binding.retry.setVisibility(View.GONE);
binding.loadAnim.setVisibility(View.GONE); binding.loadAnim.setVisibility(View.GONE);

View File

@@ -317,6 +317,7 @@
<LinearLayout <LinearLayout
android:id="@+id/caregiver_check_view" android:id="@+id/caregiver_check_view"
android:visibility="gone"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
android:orientation="horizontal" android:orientation="horizontal"