summaryrefslogtreecommitdiffstats
path: root/core/java/android/view/accessibility
diff options
context:
space:
mode:
authorSvetoslav <svetoslavganov@google.com>2013-10-09 11:04:23 -0700
committerAndroid Git Automerger <android-git-automerger@android.com>2013-10-09 11:04:23 -0700
commit67c8d20ed28e0b75de50fc8353a132b8404310b6 (patch)
treed0ca609a2bf2b8297d28016c79432de1a0ade09e /core/java/android/view/accessibility
parent69bfc60ae07e2eba94bf73098d3572bec725e208 (diff)
parentfdcd50f13d961514ed1a47573b627b6b3184c1fc (diff)
downloadframeworks_base-67c8d20ed28e0b75de50fc8353a132b8404310b6.zip
frameworks_base-67c8d20ed28e0b75de50fc8353a132b8404310b6.tar.gz
frameworks_base-67c8d20ed28e0b75de50fc8353a132b8404310b6.tar.bz2
am fdcd50f1: am 53f16ba2: am 0cc8276d: Merge "Add missing locking when updating the accessibility node info cache." into klp-dev
* commit 'fdcd50f13d961514ed1a47573b627b6b3184c1fc': Add missing locking when updating the accessibility node info cache.
Diffstat (limited to 'core/java/android/view/accessibility')
-rw-r--r--core/java/android/view/accessibility/AccessibilityNodeInfoCache.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/java/android/view/accessibility/AccessibilityNodeInfoCache.java b/core/java/android/view/accessibility/AccessibilityNodeInfoCache.java
index 6bef78e..7dd1e8a 100644
--- a/core/java/android/view/accessibility/AccessibilityNodeInfoCache.java
+++ b/core/java/android/view/accessibility/AccessibilityNodeInfoCache.java
@@ -86,7 +86,9 @@ public class AccessibilityNodeInfoCache {
refreshCachedNode(event.getSourceNodeId());
} break;
case AccessibilityEvent.TYPE_VIEW_SCROLLED: {
- clearSubTreeLocked(event.getSourceNodeId());
+ synchronized (mLock) {
+ clearSubTreeLocked(event.getSourceNodeId());
+ }
} break;
case AccessibilityEvent.TYPE_WINDOW_CONTENT_CHANGED: {
synchronized (mLock) {