/** * Clear all the results */ public void clearResults() { if (resultList != null) { resultList.clear(); mAdapter.notifyDataSetChanged(); } listener.onSearchCleared(); }
/** * Mandatory method for the onClick event */ public void micClick() { if (!isMic) { setSearchString(""); listener.onSearchCleared(); } else { startVoiceRecognition(); } }