Open Morons opened 3 years ago
There is No setOnClickListener for the search_close_btn So here it is! Please Amend!
search_close_btn
// Cancel Button Clicked! val cancelButton = searchView.findViewById(R.id.search_close_btn) as View cancelButton.setOnClickListener { searchPlate.setText("") val searchQuery = searchPlate.text.toString() Log.e(Constants.GLOBAL_TAG, "SearchView: (cancel button) executing search...: $searchQuery") executeNewQuery(searchQuery) searchView.isIconified = true }
There is No setOnClickListener for the
search_close_btn
So here it is! Please Amend!