Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Override public void setOnQueryTextListener(OnQueryTextListener listener) {
- super.setOnQueryTextListener(listener);
- this.listener = listener;
- mSearchSrcTextView = this.findViewById(android.support.v7.appcompat.R.id.search_src_text);
- mSearchSrcTextView.setOnEditorActionListener((textView, i, keyEvent) -> {
- if (listener != null) {
- listener.onQueryTextSubmit(getQuery().toString());
- }
- return true;
- });
- }
Add Comment
Please, Sign In to add comment