From c383d4225ed00c3b4a92add4e5ccb42e7cca40ed Mon Sep 17 00:00:00 2001 From: asavill Date: Mon, 23 Mar 2020 16:19:20 +0000 Subject: [PATCH] Closes #7720: - Increased atp switch size to be consistent with `dimen/tracking_protection_item_height`(48dp). - Cut out redundant traversal of TextViews in SwitchWithTraversal as per https://github.com/mozilla-mobile/shared-docs/blob/master/android/accessibility_guide.md - Reuse `QuickSettingsText.Icon` style on the switch component to be consistent with other items in the component_tracking_protection_panel.xml - Added new string resources for textOff and textOn state to get appropriate screen reader description (unsure of the translation/localisation process here!) --- .../layout/component_tracking_protection_panel.xml | 2 +- app/src/main/res/layout/switch_with_description.xml | 13 +++++++++---- app/src/main/res/values/strings.xml | 4 ++++ 3 files changed, 14 insertions(+), 5 deletions(-) diff --git a/app/src/main/res/layout/component_tracking_protection_panel.xml b/app/src/main/res/layout/component_tracking_protection_panel.xml index 700a41cb6..dcb3db27c 100644 --- a/app/src/main/res/layout/component_tracking_protection_panel.xml +++ b/app/src/main/res/layout/component_tracking_protection_panel.xml @@ -31,7 +31,7 @@ + app:layout_constraintTop_toTopOf="parent" /> diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml index e54d6182d..fdc9f713a 100644 --- a/app/src/main/res/values/strings.xml +++ b/app/src/main/res/values/strings.xml @@ -1045,6 +1045,10 @@ Protections are ON for this site Protections are OFF for this site + + Enhanced Tracking Protection On + + Enhanced Tracking Protection Off Enhanced Tracking Protection is off for these websites