From 2cdedffcfa5594f9d516fa235d5edf4d4f92c21d Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Mon, 3 Oct 2011 14:18:42 -0700 Subject: Accessibility services cannot obtain the source of an event coming from a root namespace descendant. 1. The user can touch the screen at an arbitrary location potentially crossing the root namespace bounday which will send an accessibility event to accessibility services and they should be able to obtain the event source. Also accessibility ids are guaranteed to be unique in the window. Added a package scoped findViewByAccessibilityId method that dives into nested root namespaces. 2. Added accessibility support to the AnalogClock. bug:5405934 Change-Id: I84edcb554bae41aafcbbc2723c5e62c1ef8a6ddf --- core/java/android/widget/TimePicker.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'core/java/android/widget/TimePicker.java') diff --git a/core/java/android/widget/TimePicker.java b/core/java/android/widget/TimePicker.java index 7444d46178a6..f52e7739e9a3 100644 --- a/core/java/android/widget/TimePicker.java +++ b/core/java/android/widget/TimePicker.java @@ -237,9 +237,7 @@ public class TimePicker extends FrameLayout { } // set the content descriptions - if (AccessibilityManager.getInstance(mContext).isEnabled()) { - setContentDescriptions(); - } + setContentDescriptions(); } @Override -- cgit v1.2.3