danjdt / android-pdfviewer

A Android PDF Viewer that render pdf using PdfRenderer and displays it in a RecyclerView.
MIT License
154 stars 31 forks source link

Coroutines optimization #24

Closed QZ145 closed 11 months ago

QZ145 commented 11 months ago
  1. Coroutines are now properly scoped. IMPORTANT: PdfViewer.Builder's constructor now requires coroutine scope as an additional parameter.
  2. Fixed race condition during simultaneous page rendering. It was oftenly reproduced while fast scrolling up and down.
  3. Optimized view holder's layout. It implicitly fixed memory issues (previously all pages form the document were rendered on start)
  4. Updated Readme