import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.OnInitListener;
import android.support.annotation.NonNull;
import android.speech.tts.TextToSpeech;
import android.speech.tts.TextToSpeech.OnInitListener;
import android.support.annotation.NonNull;
private void addToSearchHistory(String text) {
if (text == null || text.isEmpty()) return;
int exists = searchHistory.indexOf(text);
private void addToSearchHistory(String text) {
if (text == null || text.isEmpty()) return;
int exists = searchHistory.indexOf(text);
setSearchText(text, true);
Log.d(LOG, "Trying to restore searchText=" + text);
setSearchText(text, true);
Log.d(LOG, "Trying to restore searchText=" + text);
@Override
public boolean onQueryTextSubmit(String query) {
Log.d(LOG, "OnQueryTextListener: onQueryTextSubmit: " + searchView.getQuery());
@Override
public boolean onQueryTextSubmit(String query) {
Log.d(LOG, "OnQueryTextListener: onQueryTextSubmit: " + searchView.getQuery());