File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
core/java/android/view/accessibility Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -135,7 +135,12 @@ public void setSource(View source) {
135135 */
136136 public void setSource (View root , int virtualDescendantId ) {
137137 enforceNotSealed ();
138- final boolean important = (root != null ) ? root .isImportantForAccessibility () : true ;
138+ final boolean important ;
139+ if (virtualDescendantId == UNDEFINED ) {
140+ important = (root != null ) ? root .isImportantForAccessibility () : true ;
141+ } else {
142+ important = true ;
143+ }
139144 setBooleanProperty (PROPERTY_IMPORTANT_FOR_ACCESSIBILITY , important );
140145 mSourceWindowId = (root != null ) ? root .getAccessibilityWindowId () : UNDEFINED ;
141146 final int rootViewId = (root != null ) ? root .getAccessibilityViewId () : UNDEFINED ;
You can’t perform that action at this time.
0 commit comments