From: Reimar Döffinger Date: Thu, 3 Mar 2016 21:56:09 +0000 (+0100) Subject: Improve jumping to selected words. X-Git-Url: http://gitweb.fperrin.net/?p=Dictionary.git;a=commitdiff_plain;h=d3fe1ee9422c4040de187b188f74c44a18e6008e Improve jumping to selected words. Call onSearchTextChange directly, and hide the keyboard. --- diff --git a/src/com/hughes/android/dictionary/DictionaryActivity.java b/src/com/hughes/android/dictionary/DictionaryActivity.java index 2683663..cae0855 100644 --- a/src/com/hughes/android/dictionary/DictionaryActivity.java +++ b/src/com/hughes/android/dictionary/DictionaryActivity.java @@ -1137,12 +1137,12 @@ public class DictionaryActivity extends ActionBarActivity { searchView.setIconifiedByDefault(text.length() > 0); searchView.setIconified(false); - // We don't want to show virtual keyboard when we're changing searchView text programatically: - hideKeyboard(); - if (triggerSearch) { - onQueryTextListener.onQueryTextChange(text); + onSearchTextChange(text); } + + // We don't want to show virtual keyboard when we're changing searchView text programatically: + hideKeyboard(); } // private long cursorDelayMillis = 100;