Skip to content

Commit de8c5ec

Browse files
Gilles DebunneAndroid (Google) Code Review
authored andcommitted
Merge "IME action (done, next...) correctly handled" into ics-mr1
2 parents 4c59301 + efbad5f commit de8c5ec

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

core/java/android/widget/TextView.java

Lines changed: 3 additions & 1 deletion
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,
@@ -5594,6 +5594,8 @@ public boolean onKeyUp(int keyCode, KeyEvent event) {
55945594
outAttrs.extras = mInputContentType.extras;
55955595
} else {
55965596
outAttrs.imeOptions = EditorInfo.IME_NULL;
5597+
// May not be defined otherwise and needed by onEditorAction
5598+
mInputContentType = new InputContentType();
55975599
}
55985600
if (focusSearch(FOCUS_DOWN) != null) {
55995601
outAttrs.imeOptions |= EditorInfo.IME_FLAG_NAVIGATE_NEXT;

0 commit comments

Comments
 (0)