mirror of
https://github.com/KDE/kdeconnect-android
synced 2025-08-22 18:07:55 +00:00
Remove individual contributors' contact buttons from About
To encourage using project-wide, open channels instead of private emails.
This commit is contained in:
parent
7c1d62f60c
commit
801e9a2647
@ -56,16 +56,4 @@
|
|||||||
app:tint="@color/text_color"
|
app:tint="@color/text_color"
|
||||||
tools:visibility="visible" />
|
tools:visibility="visible" />
|
||||||
|
|
||||||
<ImageButton
|
|
||||||
android:id="@+id/about_person_list_item_entry_email_button"
|
|
||||||
android:layout_width="36dp"
|
|
||||||
android:layout_height="36dp"
|
|
||||||
android:layout_marginEnd="4dp"
|
|
||||||
android:layout_marginRight="4dp"
|
|
||||||
android:background="?attr/selectableItemBackgroundBorderless"
|
|
||||||
android:contentDescription="@string/email_contributor"
|
|
||||||
android:src="@drawable/ic_baseline_send_24"
|
|
||||||
android:visibility="gone"
|
|
||||||
app:tint="@color/text_color"
|
|
||||||
tools:visibility="visible" />
|
|
||||||
</LinearLayout>
|
</LinearLayout>
|
||||||
|
@ -27,14 +27,6 @@ class AboutPersonEntryItem(val person: AboutPerson) : ListAdapter.Item {
|
|||||||
binding.aboutPersonListItemEntryTask.text = layoutInflater.context.getString(person.task)
|
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) {
|
if (person.webAddress != null) {
|
||||||
binding.aboutPersonListItemEntryVisitHomepageButton.visibility = View.VISIBLE
|
binding.aboutPersonListItemEntryVisitHomepageButton.visibility = View.VISIBLE
|
||||||
TooltipCompat.setTooltipText(binding.aboutPersonListItemEntryVisitHomepageButton, layoutInflater.context.resources.getString(R.string.visit_contributors_homepage, person.webAddress))
|
TooltipCompat.setTooltipText(binding.aboutPersonListItemEntryVisitHomepageButton, layoutInflater.context.resources.getString(R.string.visit_contributors_homepage, person.webAddress))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user