-
-
Notifications
You must be signed in to change notification settings - Fork 209
Some proposed changes for your consideration #186
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
base: master
Are you sure you want to change the base?
Conversation
…t 4 unloaded pages are not displayed initially (my layout is almost full-screen), even though only (part of) a single page is displayed after loading.
… memory footprint, especially on older configurations like Nexus 5X / API 23. Also, use `value.allocationByteCount` rather than `value.byteCount`, as recommended by API documentation.
…`, as the bitmap is not actually used, except for its size, and eliminate redundant `success` parameter in the completion routine (the `bitmap` parameter null/non-null status already indicates failure/success).
…has caused build failure due to missing resources in the past.
… to save memory on older devices where memory is scarce (e.g. Nexus 5X / API 23).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for contributing to this project. This is your first pull request and we are so glad to have you onboard. We will review the request and get back to you soon. We love your contributions! Join our Discord community here to discuss this PR or ask questions.
Hi @tmcintos , I appreciate your contribution. Could you please resolve conflicts? |
This is just a mixed bag of commits that I made while trying to get PdfViewer to work as desired for my app, which supports Android versions back to API 23.
This is not intended it be mergeable as-is.
I'd just like to get your thoughts on whether any of these changes would make sense to integrate into your upstream repository.
I have struggled especially with older devices with low RAM configurations (e.g. Nexus 5X / API 23 in the emulator), where I had encountered a lot of OOM crashes when scrolling quickly through medium-to-large sized PDFs (especially ones that are scanned documents from archive.org), so several of these changes were related to attempts to minimize the memory footprint.
f1b5195 was just for my own convenience in building locally and should probably be ignored.
Thank you!