Skip to content

Commit 020daad

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Accessibility focus not cleared on temporary detach." into jb-mr1-dev
2 parents 5a3322f + 8d0739d commit 020daad

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/java/android/view/ViewGroup.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3912,6 +3912,7 @@ protected void attachViewToParent(View child, int index, LayoutParams params) {
39123912
* @see #removeDetachedView(View, boolean)
39133913
*/
39143914
protected void detachViewFromParent(View child) {
3915+
child.clearAccessibilityFocus();
39153916
removeFromArray(indexOfChild(child));
39163917
}
39173918

@@ -3933,6 +3934,7 @@ protected void detachViewFromParent(View child) {
39333934
* @see #removeDetachedView(View, boolean)
39343935
*/
39353936
protected void detachViewFromParent(int index) {
3937+
getChildAt(index).clearAccessibilityFocus();
39363938
removeFromArray(index);
39373939
}
39383940

0 commit comments

Comments
 (0)