Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

How to save and restore the suggestionItems? #51

Open
hungntv opened this issue Sep 27, 2024 · 0 comments
Open

How to save and restore the suggestionItems? #51

hungntv opened this issue Sep 27, 2024 · 0 comments

Comments

@hungntv
Copy link

hungntv commented Sep 27, 2024

First, I love your repo

This is the suggestionItems

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

protected Parcelable onSaveInstanceState() {
final Parcelable superState = super.onSaveInstanceState();
final SavedState savedState = new SavedState(superState);

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!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant