diff options
| author | Svetoslav Ganov <svetoslavganov@google.com> | 2012-07-19 18:07:58 -0700 |
|---|---|---|
| committer | Svetoslav Ganov <svetoslavganov@google.com> | 2012-07-19 18:24:12 -0700 |
| commit | 34caec99407570766d27106f73668802150e7357 (patch) | |
| tree | 8cf0a1d6c51e5e5f96239d2002c38a6e7689d77b /core/java/android/view/View.java | |
| parent | 84f85dc70a2340a3c4723fc6cfd44411a04eee77 (diff) | |
Views with node providers are important for accessibility in auto mode.
1. If a view's important for accessibility attribute is set to auto the
framework is responsible to determine if it really is. Views with
accessibility node providers should be important for accessibilty
since they are roots of virtual view trees and such trees are
always important.
bug:6843043
Change-Id: I4b352c59fdefdf9ad220714a43ecb9e01d1c1c1f
Diffstat (limited to 'core/java/android/view/View.java')
| -rw-r--r-- | core/java/android/view/View.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/java/android/view/View.java b/core/java/android/view/View.java index 043d1d49fa11..697f38e8ad27 100644 --- a/core/java/android/view/View.java +++ b/core/java/android/view/View.java @@ -6387,7 +6387,8 @@ public class View implements Drawable.Callback, KeyEvent.Callback, case IMPORTANT_FOR_ACCESSIBILITY_NO: return false; case IMPORTANT_FOR_ACCESSIBILITY_AUTO: - return isActionableForAccessibility() || hasListenersForAccessibility(); + return isActionableForAccessibility() || hasListenersForAccessibility() + || getAccessibilityNodeProvider() != null; default: throw new IllegalArgumentException("Unknow important for accessibility mode: " + mode); |
