summaryrefslogtreecommitdiffstats
path: root/core/java/android/widget/Gallery.java
diff options
context:
space:
mode:
authorSvetoslav Ganov <svetoslavganov@google.com>2011-09-29 19:31:06 -0700
committerSvetoslav Ganov <svetoslavganov@google.com>2011-09-30 19:55:27 -0700
commit82e236d72ac197d6673d0b4d484fe5f0b9436731 (patch)
tree9ec5d12badff2a82048c354ba2b23edfcd405d16 /core/java/android/widget/Gallery.java
parent3fd8275c0a35157fccc10063da3ce6f775c17d4c (diff)
downloadframeworks_base-82e236d72ac197d6673d0b4d484fe5f0b9436731.zip
frameworks_base-82e236d72ac197d6673d0b4d484fe5f0b9436731.tar.gz
frameworks_base-82e236d72ac197d6673d0b4d484fe5f0b9436731.tar.bz2
The logic for not populating text to some accessibility events is scattered.
1. Some accessibility evenents should not and were not dispatched for text population but there was no centralized location for enforcing this - rather the system was firing them in a specific way or there were conditions in a few places enforcing that. Now this is centralized and clean. 2. Updated the documentation with some new event types the were lacking. 3. Explicitly stated in the documentaition which events are dispatched to the sub-tree of the source for text populatation. bug:5394527 Change-Id: I86e383807d777019ac98b970c7d9d02a2f7afac6
Diffstat (limited to 'core/java/android/widget/Gallery.java')
-rw-r--r--core/java/android/widget/Gallery.java10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/java/android/widget/Gallery.java b/core/java/android/widget/Gallery.java
index 3f5b571..a0eba9a 100644
--- a/core/java/android/widget/Gallery.java
+++ b/core/java/android/widget/Gallery.java
@@ -371,16 +371,6 @@ public class Gallery extends AbsSpinner implements GestureDetector.OnGestureList
}
}
- @Override
- public boolean dispatchPopulateAccessibilityEvent(AccessibilityEvent event) {
- // Do not append text content to scroll events they are fired frequently
- // and the client has already received another event type with the text.
- if (event.getEventType() != AccessibilityEvent.TYPE_VIEW_SCROLLED) {
- super.dispatchPopulateAccessibilityEvent(event);
- }
- return false;
- }
-
/**
* Tracks a motion scroll. In reality, this is used to do just about any
* movement to items (touch scroll, arrow-key scroll, set an item as selected).