summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/NumberPicker.java
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2012-04-19 23:01:39 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2012-04-20 15:12:13 -0700
commitaa780c110922148a6a4ba06734bb2b0bb8c98f93 (patch)
tree8709da20df481fea35219769285546802407ca9f /core/java/android/widget/NumberPicker.java
parentfefd20e927b7252d63acb7bb1852c5188e3c1b2e (diff)
downloadframeworks_base-aa780c110922148a6a4ba06734bb2b0bb8c98f93.zip
frameworks_base-aa780c110922148a6a4ba06734bb2b0bb8c98f93.tar.gz
frameworks_base-aa780c110922148a6a4ba06734bb2b0bb8c98f93.tar.bz2
Adding support for traversing the content of a node info at granularity.
1. A view that creates an accessibility node info may add to the info a list of granularity labels. These are granularities by which the source view can iterate over its content. For example a text view may support character, word link while a web view may additionally support buttons, tables, etc. There are actions on accessibility node info to go to the next/previous at a given granularity which is passesed as an argument. 2. Added Bundle argument to the APIs for performing accessibility actions. This is generic and extensible. bug:5932640 Change-Id: I328cbbb4cddfdee082ab2a8b7ff1bd7477d8d6f9
Diffstat (limited to 'core/java/android/widget/NumberPicker.java')
-rw-r--r--core/java/android/widget/NumberPicker.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/core/java/android/widget/NumberPicker.java b/core/java/android/widget/NumberPicker.java
index 992849d..11d1ed0 100644
--- a/core/java/android/widget/NumberPicker.java
+++ b/core/java/android/widget/NumberPicker.java
@@ -26,6 +26,7 @@ import android.graphics.Paint;
import android.graphics.Paint.Align;
import android.graphics.Rect;
import android.graphics.drawable.Drawable;
+import android.os.Bundle;
import android.text.InputFilter;
import android.text.InputType;
import android.text.Spanned;
@@ -2068,7 +2069,7 @@ public class NumberPicker extends LinearLayout {
}
@Override
- public boolean performAccessibilityAction(int action, int virtualViewId) {
+ public boolean performAction(int virtualViewId, int action, Bundle arguments) {
switch (virtualViewId) {
case VIRTUAL_VIEW_ID_INPUT: {
switch (action) {
@@ -2086,7 +2087,7 @@ public class NumberPicker extends LinearLayout {
}
} break;
}
- return super.performAccessibilityAction(action, virtualViewId);
+ return super.performAction(virtualViewId, action, arguments);
}
public void sendAccessibilityEventForVirtualView(int virtualViewId, int eventType) {