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