summaryrefslogtreecommitdiffstats
path: root/core/java/android/view
diff options
context:
space:
mode:
authorAlan Viverette <alanv@google.com>2014-12-12 14:13:24 -0800
committerAlan Viverette <alanv@google.com>2014-12-12 14:13:24 -0800
commitcd305ae3ceef14dd5de807d75aa6167dfcd69c86 (patch)
tree92235c6c044ca4895b0e1d534fa75d3d860e1be3 /core/java/android/view
parent4357d4eabc375c392190cf2d1dfc3aeba9718ceb (diff)
downloadframeworks_base-cd305ae3ceef14dd5de807d75aa6167dfcd69c86.zip
frameworks_base-cd305ae3ceef14dd5de807d75aa6167dfcd69c86.tar.gz
frameworks_base-cd305ae3ceef14dd5de807d75aa6167dfcd69c86.tar.bz2
Give accessibility delegate the first pass at handling ACTION_CLICK
Delegation is broken for widgets, but this fixes the most egregious issue where TextViews that are top-level list items weren't handling CLICK actions correctly. This will still need work, since now the focus action won't run, but it's an improvement. BUG: 18736135 Change-Id: I808ef628198946cc87f13c53d6245cd162a1e517
Diffstat (limited to 'core/java/android/view')
-rw-r--r--core/java/android/view/View.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java
index 2bb1ebc..75411fe 100644
--- a/core/java/android/view/View.java
+++ b/core/java/android/view/View.java
@@ -8185,8 +8185,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
* @see #performAccessibilityAction(int, Bundle)
*
* Note: Called from the default {@link AccessibilityDelegate}.
+ *
+ * @hide Until we've refactored all accessibility delegation methods.
*/
- boolean performAccessibilityActionInternal(int action, Bundle arguments) {
+ public boolean performAccessibilityActionInternal(int action, Bundle arguments) {
switch (action) {
case AccessibilityNodeInfo.ACTION_CLICK: {
if (isClickable()) {