mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-03 16:10:00 +00:00
Pdf : add small comment
This commit is contained in:
+1
@@ -50,6 +50,7 @@ class PdfPage(
|
|||||||
private var loadJob: Job? = null
|
private var loadJob: Job? = null
|
||||||
|
|
||||||
init {
|
init {
|
||||||
|
// We are just opening and closing the page to extract data so we can build the Loading state with the correct dimensions.
|
||||||
pdfRenderer.openPage(pageIndex).use { page ->
|
pdfRenderer.openPage(pageIndex).use { page ->
|
||||||
renderHeight = (page.height * (renderWidth.toFloat() / page.width)).toInt()
|
renderHeight = (page.height * (renderWidth.toFloat() / page.width)).toInt()
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user