arimorty / floatingsearchview

A search view that implements a floating search bar also known as persistent search
https://github.com/arimorty/floatingsearchview/blob/master/README.md
Apache License 2.0
3.54k stars 667 forks source link

java.lang.ClassCastException #326

Open NOS-AE opened 5 years ago

NOS-AE commented 5 years ago

I got one FloatingSearchView(id: search_bar, and I have no other view with the same id or other FloatingSearchView) in the third page of the four-paged viewpager. In the second loading of the third page(I click the third page then first page and the third again), , I ran it and got java.lang.ClassCastException: android.view.AbsSavedState$1 cannot be cast to com.arlib.floatingsearchview.FloatingSearchView$SavedState. After searching for the solution and didn't got the one for my case, I try to change the id to another like "search_bar_test" or else and it worked. I thought there might be a view with id "search_bar" or other reason...(haven't checked the source code)