From 32903fb0c16dcf5b5355d5071794399b2e658409 Mon Sep 17 00:00:00 2001 From: mcarare Date: Tue, 2 Jun 2020 09:52:36 +0300 Subject: [PATCH] For #10285: Add a custom TextView for links with a11y improvements. --- app/src/main/java/org/mozilla/fenix/utils/LinkTextView.kt | 8 -------- app/src/main/res/values/strings.xml | 2 -- 2 files changed, 10 deletions(-) diff --git a/app/src/main/java/org/mozilla/fenix/utils/LinkTextView.kt b/app/src/main/java/org/mozilla/fenix/utils/LinkTextView.kt index d6d45564cff6..88df32c648cf 100644 --- a/app/src/main/java/org/mozilla/fenix/utils/LinkTextView.kt +++ b/app/src/main/java/org/mozilla/fenix/utils/LinkTextView.kt @@ -27,14 +27,6 @@ class LinkTextView @JvmOverloads constructor( "AccessibilityNodeInfo.roleDescription", context.resources.getString(R.string.link_text_view_type_announcement) ) - - val customClick = - AccessibilityNodeInfo.AccessibilityAction( - AccessibilityNodeInfo.ACTION_CLICK, - context.resources.getString(R.string.link_text_view_action_click_announcement) - ) - - info?.addAction(customClick) // disable long click announcement, as there is no action to be performed on long click info?.isLongClickable = false info?.removeAction(ACTION_LONG_CLICK) diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index d02a174e2c91..33efad8b6e3e 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1369,6 +1369,4 @@ link - - Follow link