Skip to content

Commit 0433c15

Browse files
Gilles DebunneAndroid (Google) Code Review
authored andcommitted
Merge "TextViews keep focus after Done" into ics-mr1
2 parents b2aa672 + 6479448 commit 0433c15

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

core/java/android/widget/TextView.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3785,7 +3785,7 @@ public void onEditorAction(int actionCode) {
37853785
return;
37863786
}
37873787
}
3788-
3788+
37893789
// This is the handling for some default action.
37903790
// Note that for backwards compatibility we don't do this
37913791
// default handling if explicit ime options have not been given,
@@ -3816,7 +3816,6 @@ public void onEditorAction(int actionCode) {
38163816
if (imm != null && imm.isActive(this)) {
38173817
imm.hideSoftInputFromWindow(getWindowToken(), 0);
38183818
}
3819-
clearFocus();
38203819
return;
38213820
}
38223821
}
@@ -3838,7 +3837,7 @@ public void onEditorAction(int actionCode) {
38383837
| KeyEvent.FLAG_EDITOR_ACTION)));
38393838
}
38403839
}
3841-
3840+
38423841
/**
38433842
* Set the private content type of the text, which is the
38443843
* {@link EditorInfo#privateImeOptions EditorInfo.privateImeOptions}

0 commit comments

Comments
 (0)