Hi, we use a custom suggestion adapter as in the example provided.
Everything goes well most of the times, but we got some Cannot be cast to java.lang.String exceptions in production like the following:
From the stack trace we see that the RecyclerView onBindViewHolder is referring to the DefaultSuggestionsAdapter class, not to our custom suggestion adapter we have set through the setCustomSuggestionAdapter as I was expecting.
Any idea on how to fix it? As I said the searchBar works correctly in many cases, but from some users we've got this exception.
Should we refer to the custom suggestion adapter also from the layout xml of the searchbar? How?
Hi, we use a custom suggestion adapter as in the example provided. Everything goes well most of the times, but we got some Cannot be cast to java.lang.String exceptions in production like the following:
From the stack trace we see that the RecyclerView onBindViewHolder is referring to the DefaultSuggestionsAdapter class, not to our custom suggestion adapter we have set through the setCustomSuggestionAdapter as I was expecting.
Any idea on how to fix it? As I said the searchBar works correctly in many cases, but from some users we've got this exception. Should we refer to the custom suggestion adapter also from the layout xml of the searchbar? How?