Skip to content

Commit

Permalink
possible fix for Issue nolanlawson#27: softkeyboard not hiding on sug…
Browse files Browse the repository at this point in the history
…gestions being clicked

possible fix for Issue nolanlawson#27: softkeyboard not hiding on suggestions being
clicked
  • Loading branch information
calav3ra committed Mar 4, 2013
1 parent 0515f4d commit 3842bee
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions Catlog/src/com/nolanlawson/logcat/LogcatActivity.java
Original file line number Diff line number Diff line change
Expand Up @@ -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<String>(
this, R.layout.simple_dropdown_small, new ArrayList<String>());
searchEditText.setAdapter(searchSuggestionsAdapter);
Expand Down

0 comments on commit 3842bee

Please sign in to comment.