am 9e3e2d3a: Show search icon for <input type="search"> fields.

Merge commit '9e3e2d3a6967301730fd383e8b04d53fdfd008e5' into eclair-mr2-plus-aosp

* commit '9e3e2d3a6967301730fd383e8b04d53fdfd008e5':
  Show search icon for <input type="search"> fields.
This commit is contained in:
Leon Scroggins
2009-12-07 07:39:06 -08:00
committed by Android Git Automerger

View File

@@ -338,6 +338,7 @@ import java.util.ArrayList;
super.onEditorAction(actionCode);
break;
case EditorInfo.IME_ACTION_GO:
case EditorInfo.IME_ACTION_SEARCH:
// Send an enter and hide the soft keyboard
InputMethodManager.getInstance(mContext)
.hideSoftInputFromWindow(getWindowToken(), 0);
@@ -827,6 +828,9 @@ import java.util.ArrayList;
case 2: // DONE
setImeOptions(EditorInfo.IME_ACTION_DONE);
break;
case 3: // SEARCH
setImeOptions(EditorInfo.IME_ACTION_SEARCH);
break;
}
} else {
inputType |= EditorInfo.TYPE_TEXT_FLAG_MULTI_LINE