Skip to content

How to save and restore the suggestionItems? #51

@hungntv

Description

@hungntv

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions