From d3fe1ee9422c4040de187b188f74c44a18e6008e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Reimar=20D=C3=B6ffinger?= Date: Thu, 3 Mar 2016 22:56:09 +0100 Subject: [PATCH] Improve jumping to selected words. Call onSearchTextChange directly, and hide the keyboard. --- src/com/hughes/android/dictionary/DictionaryActivity.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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; -- 2.43.0