This commit is contained in:
2023-10-10 13:03:08 +05:30
parent 8a485d58e3
commit bee69baf8b
5 changed files with 14 additions and 13 deletions

View File

@@ -1,18 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<project version="4">
<component name="deploymentTargetDropDown">
<runningDeviceTargetSelectedWithDropDown>
<Target>
<type value="RUNNING_DEVICE_TARGET" />
<deviceKey>
<Key>
<type value="SERIAL_NUMBER" />
<value value="RZCW41EJRPN" />
</Key>
</deviceKey>
</Target>
</runningDeviceTargetSelectedWithDropDown>
<timeTargetWasSelectedWithDropDown value="2023-10-09T15:20:01.259118600Z" />
<runningDeviceTargetsSelectedWithDialog>
<Target>
<type value="RUNNING_DEVICE_TARGET" />

View File

@@ -34,6 +34,8 @@ public class ChatFragment extends Fragment {
public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
binding = ChatFragmentBinding.inflate(inflater, container, false);
socketConnection();
initViews();
clickEvents();
@@ -41,6 +43,10 @@ public class ChatFragment extends Fragment {
return binding.getRoot();
}
private void socketConnection() {
}
private void clickEvents() {
binding.backBtn.setOnClickListener(v -> {
if (getActivity() != null){

View File

@@ -98,6 +98,10 @@ public class AddContactAdapter extends ListAdapter<ContactData, AddContactAdapte
binding.card.setCardBackgroundColor(itemView.getContext().getColor(R.color.color_accent));
binding.cgIc.setVisibility(View.GONE);
binding.docIc.setVisibility(View.GONE);
binding.sos.setVisibility(View.GONE);
}else{
binding.name.setText(contact.first_name);
@@ -127,6 +131,8 @@ public class AddContactAdapter extends ListAdapter<ContactData, AddContactAdapte
if (contact.care_giver_data.id != null){
// this contact is caregiver
binding.cgIc.setVisibility(View.VISIBLE);
}else{
binding.cgIc.setVisibility(View.GONE);
}
if (contact.is_sos != null && contact.is_sos.equals("1")){

View File

@@ -86,6 +86,7 @@
android:fontFamily="@font/nunito_semibold"
android:text="@string/you_don_t_have_any_medical_information"
android:textAlignment="center"
android:visibility="gone"
android:textAppearance="@style/TextAppearance.Material3.TitleLarge"

View File

@@ -180,7 +180,7 @@
<string name="edit_routine">Edit Activity</string>
<string name="done_btn">Done</string>
<string name="you_don_t_have_any_medical_information">You don\'t have any medical information</string>
<string name="please_click_on_add_button_to_add">Please click on add button to add medical information</string>
<string name="please_click_on_add_button_to_add">Please click the add button to enter the senior\'s dietary information, doctor\'s name, phone number, and more</string>
<string name="diagnosis">Diagnosis</string>
<string name="cognitive_impairment_and_memory_loss">Cognitive impairment and memory loss</string>
<string name="primary_care_doctor">Primary Care Doctor</string>