We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents c5cbcb5 + 09dd116 commit 06fd472Copy full SHA for 06fd472
core/java/android/view/ViewRootImpl.java
@@ -2977,7 +2977,10 @@ private boolean enterTouchMode() {
2977
// be when the window is first being added, and mFocused isn't
2978
// set yet.
2979
final View focused = mView.findFocus();
2980
- if (focused != null && !focused.isFocusableInTouchMode()) {
+ if (focused != null) {
2981
+ if (focused.isFocusableInTouchMode()) {
2982
+ return true;
2983
+ }
2984
final ViewGroup ancestorToTakeFocus =
2985
findAncestorToTakeFocusInTouchMode(focused);
2986
if (ancestorToTakeFocus != null) {
0 commit comments