commit 95f27bbefc2a4ba5ddfb794600218310125bedcd
parent 43c11dd06fa26bfd66aaa9b13f198b26ece1247d
Author: rmalicdem <rmalicdem@mozilla.com>
Date: Tue, 25 Nov 2025 20:01:54 +0000
Bug 2002296 - Ensure toolbar shortcuts can be selected with a single tap r=android-reviewers,Roger
Differential Revision: https://phabricator.services.mozilla.com/D274030
Diffstat:
2 files changed, 2 insertions(+), 4 deletions(-)
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/ToolbarShortcutPreference.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/settings/ToolbarShortcutPreference.kt
@@ -139,9 +139,6 @@ internal abstract class ToolbarShortcutPreference @JvmOverloads constructor(
intArrayOf(colorTertiary, colorOnSurfaceVariant),
)
- row.isFocusable = true
- row.isFocusableInTouchMode = true
- row.isClickable = isEnabled
row.isEnabled = isEnabled
row.importantForAccessibility = View.IMPORTANT_FOR_ACCESSIBILITY_YES
diff --git a/mobile/android/fenix/app/src/main/res/layout/preference_toolbar_shortcut.xml b/mobile/android/fenix/app/src/main/res/layout/preference_toolbar_shortcut.xml
@@ -9,7 +9,8 @@
android:orientation="vertical"
android:paddingStart="0dp"
android:paddingEnd="0dp"
- android:paddingBottom="12dp">
+ android:paddingBottom="12dp"
+ android:importantForAccessibility="no" >
<TextView
android:id="@+id/toolbar_shortcut_title"