summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/AdapterView.java
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2011-09-09 16:41:13 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2011-09-12 15:42:19 -0700
commit031d9c1389de2b9dac7f175af0b962e24b21d5be (patch)
treef235b3cf3aea41c202c95f81a02de84962aca321 /core/java/android/widget/AdapterView.java
parent5e8752595f7a3d3dd1e0d469ac275295e38bcfe1 (diff)
downloadframeworks_base-031d9c1389de2b9dac7f175af0b962e24b21d5be.zip
frameworks_base-031d9c1389de2b9dac7f175af0b962e24b21d5be.tar.gz
frameworks_base-031d9c1389de2b9dac7f175af0b962e24b21d5be.tar.bz2
Adding accessibility delegate mechanism for backwards compatibility support.
1. Added an AccessibilityDelegate class in View which can be set by a client that wants to cutomize accessibility behavior via composition as opposed to inheritance. Insead overriding a new method in View thus being bound to the API version that introduced this method a developer can conditionally inject the accessibility customization if the platform API version is heigh enough. The developer will have to override the method of interest of the delegate. The default implementation of the delegate methods is the same as that of View in the case that there is no delegate set. If a delegate is set calling an accessibility related method on View will be handed off to the corresponsing method of the delegate. bug:5259555 Change-Id: I00e750e22e5e7164a1b571cb3d12ecaf4ab93db4
Diffstat (limited to 'core/java/android/widget/AdapterView.java')
-rw-r--r--core/java/android/widget/AdapterView.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/core/java/android/widget/AdapterView.java b/core/java/android/widget/AdapterView.java
index 2d10bbe..72db8e8 100644
--- a/core/java/android/widget/AdapterView.java
+++ b/core/java/android/widget/AdapterView.java
@@ -896,6 +896,7 @@ public abstract class AdapterView<T extends Adapter> extends ViewGroup {
@Override
public void onPopulateAccessibilityEvent(AccessibilityEvent event) {
+ super.onPopulateAccessibilityEvent(event);
// We send selection events only from AdapterView to avoid
// generation of such event for each child.
getSelectedView().dispatchPopulateAccessibilityEvent(event);