Skip to content

Commit

Permalink
Merge pull request #29 from calav3ra/master
Browse files Browse the repository at this point in the history
possible fix for Issue #27: softkeyboard not hiding on suggestions being clicked
  • Loading branch information
nolanlawson committed Mar 9, 2013
2 parents 6f98172 + 3842bee commit 27422d4
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 27422d4

Please sign in to comment.