From 4a812aeb8b90925b6a53365972047f95d9b58b17 Mon Sep 17 00:00:00 2001 From: Svetoslav Ganov Date: Tue, 29 May 2012 16:46:10 -0700 Subject: [PATCH] Accessiblity scroll event firing callback not properly reset. 1. We use a delayed callback to throttle the amount of accessibility scroll events fired by the view tree. The callback to do so was not properly reset when removed putting the view tree in a bad state resulting in no scroll events being fired at all. bug:6549005 Change-Id: Ibf72d7e009e4545a336c9471f46015910290703e --- core/java/android/view/View.java | 1 + 1 file changed, 1 insertion(+) diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 20eef11de8bc0..561c2887cafe3 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -8021,6 +8021,7 @@ public class View implements Drawable.Callback, Drawable.Callback2, KeyEvent.Cal private void removeSendViewScrolledAccessibilityEventCallback() { if (mSendViewScrolledAccessibilityEvent != null) { removeCallbacks(mSendViewScrolledAccessibilityEvent); + mSendViewScrolledAccessibilityEvent.mIsPending = false; } }