persistent-search-view
persistent-search-view copied to clipboard
How to save and restore the suggestionItems?
First, I love your repo
This is the suggestionItems
https://github.com/mars885/persistent-search-view/blob/a42f4c61f7484d44144edea0f2e5e858871e433c/persistentsearchview/src/main/java/com/paulrybitskyi/persistentsearchview/PersistentSearchView.java#L153
I see that it is unpublic and I can't access by overriding your class PersistentSearchView
In the function onSaveInstanceState
, class SavedState
is a private class
https://github.com/mars885/persistent-search-view/blob/a42f4c61f7484d44144edea0f2e5e858871e433c/persistentsearchview/src/main/java/com/paulrybitskyi/persistentsearchview/PersistentSearchView.java#L2514-L2516
I can't access property suggestionItems
and class SavedState
, so I can't do anything by overriding your class and function onSaveInstanceState
My suggestion:
public your class SavedState
public getting method of property suggestionItems
Thanks!