From 801e9a2647dd0d652d2df34dd7dcac50ebf3aeb5 Mon Sep 17 00:00:00 2001 From: Albert Vaca Cintora Date: Sun, 18 Sep 2022 23:43:58 +0200 Subject: [PATCH] Remove individual contributors' contact buttons from About To encourage using project-wide, open channels instead of private emails. --- res/layout/about_person_list_item_entry.xml | 12 ------------ .../UserInterface/About/AboutPersonEntryItem.kt | 8 -------- 2 files changed, 20 deletions(-) diff --git a/res/layout/about_person_list_item_entry.xml b/res/layout/about_person_list_item_entry.xml index 54fd627b..b1242688 100644 --- a/res/layout/about_person_list_item_entry.xml +++ b/res/layout/about_person_list_item_entry.xml @@ -56,16 +56,4 @@ app:tint="@color/text_color" tools:visibility="visible" /> - diff --git a/src/org/kde/kdeconnect/UserInterface/About/AboutPersonEntryItem.kt b/src/org/kde/kdeconnect/UserInterface/About/AboutPersonEntryItem.kt index d7489def..26a57ec4 100644 --- a/src/org/kde/kdeconnect/UserInterface/About/AboutPersonEntryItem.kt +++ b/src/org/kde/kdeconnect/UserInterface/About/AboutPersonEntryItem.kt @@ -27,14 +27,6 @@ class AboutPersonEntryItem(val person: AboutPerson) : ListAdapter.Item { binding.aboutPersonListItemEntryTask.text = layoutInflater.context.getString(person.task) } - if (person.emailAddress != null) { - binding.aboutPersonListItemEntryEmailButton.visibility = View.VISIBLE - TooltipCompat.setTooltipText(binding.aboutPersonListItemEntryEmailButton, layoutInflater.context.getString(R.string.email_contributor, person.emailAddress)) - binding.aboutPersonListItemEntryEmailButton.setOnClickListener { - layoutInflater.context.startActivity(Intent(Intent.ACTION_VIEW, Uri.parse("mailto:" + person.emailAddress))) - } - } - if (person.webAddress != null) { binding.aboutPersonListItemEntryVisitHomepageButton.visibility = View.VISIBLE TooltipCompat.setTooltipText(binding.aboutPersonListItemEntryVisitHomepageButton, layoutInflater.context.resources.getString(R.string.visit_contributors_homepage, person.webAddress))