Skip to content

Commit b6585d1

Browse files
sganovAndroid (Google) Code Review
authored andcommitted
Merge "Double input focus and focus movement in list not working." into jb-dev
2 parents 757b3c2 + b552d89 commit b6585d1

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

core/java/android/view/ViewGroup.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -765,8 +765,9 @@ public void clearFocus() {
765765
if (mFocused == null) {
766766
super.clearFocus();
767767
} else {
768-
mFocused.clearFocus();
768+
View focused = mFocused;
769769
mFocused = null;
770+
focused.clearFocus();
770771
}
771772
}
772773

core/java/android/widget/AbsListView.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1344,8 +1344,8 @@ public void addFocusables(ArrayList<View> views, int direction, int focusableMod
13441344
}
13451345
} return;
13461346
}
1347-
super.addFocusables(views, direction, focusableMode);
13481347
}
1348+
super.addFocusables(views, direction, focusableMode);
13491349
}
13501350

13511351
@Override

0 commit comments

Comments
 (0)