Closed Bug 899666 Opened 11 years ago Closed 4 years ago

[AccessFu] Support text selection in Jellybean

Categories

(Core :: Disability Access APIs, defect)

defect
Not set
normal

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: maxli, Assigned: maxli)

Details

Attachments

(1 file)

      No description provided.
Attached patch PatchSplinter Review
So this patch seems to work when not using the standard Google keyboard, but due to bug 899633 (and possibly bug 892945) when using that keyboard it doesn't work properly with that keyboard.
So this is probably dependent on android issue 54205 (http://code.google.com/p/android/issues/detail?id=54205).
Comment on attachment 786964 [details] [diff] [review]
Patch

Review of attachment 786964 [details] [diff] [review]:
-----------------------------------------------------------------

::: mobile/android/base/GeckoAccessibility.java
@@ +323,5 @@
> +                                if (Build.VERSION.SDK_INT >= 18) {
> +                                    try {
> +                                        info.addAction(AccessibilityNodeInfo.class.getField("ACTION_SET_SELECTION").getInt(AccessibilityNodeInfo.class));
> +                                        if (((Boolean) AccessibilityNodeInfo.class.getMethod("isEditable").invoke(info)).booleanValue()) {
> +                                            info.setClassName("android.widget.EditText");

This seems really scary to me. I wonder if we should wait for Google to get the kinks out of their system. Or even contribute a patch to TalkBack..
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: