From 174f080323f0a2f6c1910222a9a5eccab4cc9b13 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicolo=CC=80=20Tosi?= Date: Tue, 9 Jan 2024 12:02:27 +0100 Subject: [PATCH] Removed address filed and find button from the contact details screen Updated cached event filters --- .../ui/meet/ContactDetailsFragment.kt | 21 -------- .../res/layout/fragment_contact_details.xml | 50 ++++------------- app/src/main/res/raw/filters.json | 54 ++++++++++++------- 3 files changed, 44 insertions(+), 81 deletions(-) diff --git a/app/src/main/java/it/bz/noi/community/ui/meet/ContactDetailsFragment.kt b/app/src/main/java/it/bz/noi/community/ui/meet/ContactDetailsFragment.kt index e969258..73b0007 100644 --- a/app/src/main/java/it/bz/noi/community/ui/meet/ContactDetailsFragment.kt +++ b/app/src/main/java/it/bz/noi/community/ui/meet/ContactDetailsFragment.kt @@ -106,27 +106,6 @@ class ContactDetailsFragment : Fragment() { phone.root.isVisible = false binding.call.isVisible = false } - - if (company?.address != null) { - val formattedAddress = company.address.replace("\r\n", ", ") - - address.apply { - fieldLbl.text = getString(R.string.label_address) - fieldValue.text = formattedAddress - root.setOnClickListener { - copyToClipboard("address_copied", formattedAddress) - showCheckmark(address.copyValueIcon) - } - } - - binding.find.setOnClickListener { - requireContext().findOnMaps(formattedAddress) - } - } else { - address.root.isVisible = false - binding.find.isVisible = false - } - } (requireActivity() as AppCompatActivity).supportActionBar?.title = contact.fullName diff --git a/app/src/main/res/layout/fragment_contact_details.xml b/app/src/main/res/layout/fragment_contact_details.xml index 40888d5..2b45004 100644 --- a/app/src/main/res/layout/fragment_contact_details.xml +++ b/app/src/main/res/layout/fragment_contact_details.xml @@ -56,6 +56,7 @@ SPDX-License-Identifier: CC0-1.0 @@ -127,25 +127,17 @@ SPDX-License-Identifier: CC0-1.0 app:layout_constraintStart_toStartOf="parent" app:layout_constraintTop_toBottomOf="@id/email" /> - - - + app:icon="@drawable/ic_mail" /> - - - + app:icon="@drawable/ic_phone" /> +