We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 9dba197 + 12f1745 commit 8259993Copy full SHA for 8259993
1 file changed
android-pdf-viewer/src/main/java/com/github/barteksc/pdfviewer/PDFView.java
@@ -1019,6 +1019,10 @@ ScrollDir getScrollDir() {
1019
}
1020
1021
void loadPageByOffset() {
1022
+ if (0 == getPageCount()) {
1023
+ return;
1024
+ }
1025
+
1026
float offset, optimal, screenCenter;
1027
float spacingPerPage = spacingPx - (spacingPx / getPageCount());
1028
if (swipeVertical) {
0 commit comments