]> gitweb.fperrin.net Git - Dictionary.git/blobdiff - src/com/hughes/android/dictionary/DictionaryActivity.java
Improve jumping to selected words.
[Dictionary.git] / src / com / hughes / android / dictionary / DictionaryActivity.java
index 2683663fabb8c3204a2405aeab164c5c667a06be..cae08555a0a0d8e337dfd2f4ab545a6ed0f7d99c 100644 (file)
@@ -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;