diff options
| author | Dianne Hackborn <hackbod@google.com> | 2015-02-03 18:13:40 -0800 |
|---|---|---|
| committer | Dianne Hackborn <hackbod@google.com> | 2015-02-06 10:42:44 -0800 |
| commit | a7bb6fbeab933326d58aa806d8194b7b13239d34 (patch) | |
| tree | f56d4455b6eec18420a982573b800fb0b6220ce1 /core/java/android/widget/AdapterView.java | |
| parent | b989c5561ea10e623d73e7bb89b37ac38ccdd908 (diff) | |
First quick implementation of auto assist data.
Introduce new AssistData class that contains all data
the framework automatically generates for assist. Currently
populated with a very simple tree structure representing
the app's view hierarchy.
Reworked how we populate the class name for accessibility
info, so this is provided through a new method call on View
that subclasses can override. This method is also used
to populate the class name in AssistData.
Change-Id: Ibd0acdc8354727d4291473283b5e4b70894905dc
Diffstat (limited to 'core/java/android/widget/AdapterView.java')
| -rw-r--r-- | core/java/android/widget/AdapterView.java | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/core/java/android/widget/AdapterView.java b/core/java/android/widget/AdapterView.java index 428b6ceb436f..9b977fa75ef8 100644 --- a/core/java/android/widget/AdapterView.java +++ b/core/java/android/widget/AdapterView.java @@ -955,11 +955,15 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup { return false; } + @Override + public CharSequence getAccessibilityClassName() { + return AdapterView.class.getName(); + } + /** @hide */ @Override public void onInitializeAccessibilityNodeInfoInternal(AccessibilityNodeInfo info) { super.onInitializeAccessibilityNodeInfoInternal(info); - info.setClassName(AdapterView.class.getName()); info.setScrollable(isScrollableForAccessibility()); View selectedView = getSelectedView(); if (selectedView != null) { @@ -971,7 +975,6 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup { @Override public void onInitializeAccessibilityEventInternal(AccessibilityEvent event) { super.onInitializeAccessibilityEventInternal(event); - event.setClassName(AdapterView.class.getName()); event.setScrollable(isScrollableForAccessibility()); View selectedView = getSelectedView(); if (selectedView != null) { |
