diff --git a/Catlog/src/com/nolanlawson/logcat/LogcatActivity.java b/Catlog/src/com/nolanlawson/logcat/LogcatActivity.java index 77e784f..d3c1e2e 100644 --- a/Catlog/src/com/nolanlawson/logcat/LogcatActivity.java +++ b/Catlog/src/com/nolanlawson/logcat/LogcatActivity.java @@ -1375,6 +1375,16 @@ private void setUpWidgets() { searchEditText.setOnEditorActionListener(this); searchEditText.setOnClickListener(this); + searchEditText.setOnItemClickListener(new OnItemClickListener() + { + @Override + public void onItemClick(AdapterView parent, View view, int position, long id) + { + InputMethodManager imm = (InputMethodManager)getSystemService(Context.INPUT_METHOD_SERVICE); + imm.hideSoftInputFromWindow(searchEditText.getWindowToken(), 0); + } + }); + searchSuggestionsAdapter = new SortedFilterArrayAdapter( this, R.layout.simple_dropdown_small, new ArrayList()); searchEditText.setAdapter(searchSuggestionsAdapter);