am 9973643b: Merge "Give accessibility delegate the first pass at handling ACTION_CLICK" into lmp-mr1-dev
* commit '9973643bfc123fcc73803542ef8cb74e243907ce': Give accessibility delegate the first pass at handling ACTION_CLICK
This commit is contained in:
@@ -8185,8 +8185,10 @@ public class View implements Drawable.Callback, KeyEvent.Callback,
|
|||||||
* @see #performAccessibilityAction(int, Bundle)
|
* @see #performAccessibilityAction(int, Bundle)
|
||||||
*
|
*
|
||||||
* Note: Called from the default {@link AccessibilityDelegate}.
|
* 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) {
|
switch (action) {
|
||||||
case AccessibilityNodeInfo.ACTION_CLICK: {
|
case AccessibilityNodeInfo.ACTION_CLICK: {
|
||||||
if (isClickable()) {
|
if (isClickable()) {
|
||||||
|
|||||||
@@ -8475,8 +8475,14 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Performs an accessibility action after it has been offered to the
|
||||||
|
* delegate.
|
||||||
|
*
|
||||||
|
* @hide
|
||||||
|
*/
|
||||||
@Override
|
@Override
|
||||||
public boolean performAccessibilityAction(int action, Bundle arguments) {
|
public boolean performAccessibilityActionInternal(int action, Bundle arguments) {
|
||||||
switch (action) {
|
switch (action) {
|
||||||
case AccessibilityNodeInfo.ACTION_CLICK: {
|
case AccessibilityNodeInfo.ACTION_CLICK: {
|
||||||
boolean handled = false;
|
boolean handled = false;
|
||||||
@@ -8557,10 +8563,10 @@ public class TextView extends View implements ViewTreeObserver.OnPreDrawListener
|
|||||||
case AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY:
|
case AccessibilityNodeInfo.ACTION_NEXT_AT_MOVEMENT_GRANULARITY:
|
||||||
case AccessibilityNodeInfo.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY: {
|
case AccessibilityNodeInfo.ACTION_PREVIOUS_AT_MOVEMENT_GRANULARITY: {
|
||||||
ensureIterableTextForAccessibilitySelectable();
|
ensureIterableTextForAccessibilitySelectable();
|
||||||
return super.performAccessibilityAction(action, arguments);
|
return super.performAccessibilityActionInternal(action, arguments);
|
||||||
}
|
}
|
||||||
default: {
|
default: {
|
||||||
return super.performAccessibilityAction(action, arguments);
|
return super.performAccessibilityActionInternal(action, arguments);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user