summaryrefslogtreecommitdiffstats
path: root/src/com/android/launcher3/PagedView.java
diff options
context:
space:
mode:
authorVadim Tryshev <vadimt@google.com>2015-05-19 14:19:37 -0700
committerVadim Tryshev <vadimt@google.com>2015-05-19 21:34:55 +0000
commitcd4f4138f05be3a1daab5035c59e97a1a82431ac (patch)
tree99802d1a7f9f8666e40f5b4bbb83a25f7beee9ba /src/com/android/launcher3/PagedView.java
parenta0abe2661eaf4f8e66990ac68386e54260836183 (diff)
downloadandroid_packages_apps_Trebuchet-cd4f4138f05be3a1daab5035c59e97a1a82431ac.tar.gz
android_packages_apps_Trebuchet-cd4f4138f05be3a1daab5035c59e97a1a82431ac.tar.bz2
android_packages_apps_Trebuchet-cd4f4138f05be3a1daab5035c59e97a1a82431ac.zip
Removing itemCount, fromIndex and toIndex from
AccessibilityEvent.TYPE_VIEW_SCROLLED sent by PagedView. This causes an additional reduntant voice message on scroll (see the bug). Also, setting these attributes violate rules set here: http://developer.android.com/reference/android/view/accessibility/AccessibilityEvent.html i.e. that these fields should be set only for descendants of AdapterView. Note that we can't just stop sending TYPE_VIEW_SCROLLED, because in this case, accessibility focus won't be set after scrolling. Bug: 21304383 Change-Id: I84f8e064d8209c0e09d6827551e00c9913829b57
Diffstat (limited to 'src/com/android/launcher3/PagedView.java')
-rw-r--r--src/com/android/launcher3/PagedView.java3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/com/android/launcher3/PagedView.java b/src/com/android/launcher3/PagedView.java
index c8e7d9c0b..e6dc59cfa 100644
--- a/src/com/android/launcher3/PagedView.java
+++ b/src/com/android/launcher3/PagedView.java
@@ -639,9 +639,6 @@ public abstract class PagedView extends ViewGroup implements ViewGroup.OnHierarc
if (mCurrentPage != getNextPage()) {
AccessibilityEvent ev =
AccessibilityEvent.obtain(AccessibilityEvent.TYPE_VIEW_SCROLLED);
- ev.setItemCount(getChildCount());
- ev.setFromIndex(getNextPage());
- ev.setToIndex(getNextPage());
sendAccessibilityEventUnchecked(ev);
}