Bug 812480 - [AccessFu] Fix accessibility announcements in Android 4.2, r=blassey

This commit is contained in:
Eitan Isaacson 2012-11-16 14:05:00 +01:00
parent 2075bb969a
commit 16066aef0e

View File

@ -166,7 +166,10 @@ public class GeckoAccessibility {
view.performAccessibilityAction(AccessibilityNodeInfo.ACTION_ACCESSIBILITY_FOCUS, null);
break;
case AccessibilityEvent.TYPE_ANNOUNCEMENT:
sendDirectAccessibilityEvent(eventType, message);
final AccessibilityEvent accEvent = AccessibilityEvent.obtain(eventType);
view.onInitializeAccessibilityEvent(accEvent);
populateEventFromJSON(accEvent, message);
view.getParent().requestSendAccessibilityEvent(view, accEvent);
break;
default:
view.sendAccessibilityEvent(eventType);