Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Save view state with onSaveInstanceState #661

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

Flamedek
Copy link
Contributor

@Flamedek Flamedek commented Aug 13, 2018

The PDFView now automatically and accurately saves its view state (position, zoom) on configuration change and process destruction.

Additionally it provides apis to manually save and restore state in case you'd want to keep states of previous documents the user might return to.

The application developer has to make sure the same document is loaded after the restoration as before. The view has no ability to save and restore whole documents so relies on the host activity calling load() with the same source as before the save.

The automatic behaviour can be disabled with setSaveEnabled(false);

Close #330
Close #607

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

Successfully merging this pull request may close these issues.

None yet

1 participant