Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 3ceae35b authored by Gokul Swaminathan's avatar Gokul Swaminathan
Browse files

Merge branch 'dev' of github.com:JavaCafe01/PdfViewer into dev

parents 977bfd8c ec797651
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -221,7 +221,7 @@ public class MainActivity extends ProgressActivity implements OnPageChangeListen
        @Override
        public void run() {
            if(pdfView != null) {
                if (pdfView.isZooming())
                if (pdfView.getZoom() > 1f)
                    hideBottomNavigationView((BottomNavigationView) findViewById(R.id.bottom_navigation));
                else {
                    showBottomNavigationView((BottomNavigationView) findViewById(R.id.bottom_navigation));
@@ -286,6 +286,7 @@ public class MainActivity extends ProgressActivity implements OnPageChangeListen

    void setPdfViewConfiguration() {
        pdfView.useBestQuality(prefManager.getBoolean("quality_pref", false));
        pdfView.setMinZoom(0.5f);
        pdfView.setMidZoom(2.0f);
        pdfView.setMaxZoom(5.0f);
    }
@@ -300,7 +301,7 @@ public class MainActivity extends ProgressActivity implements OnPageChangeListen
                .scrollHandle(new DefaultScrollHandle(this))
                .spacing(10) // in dp
                .onPageError(this)
                .pageFitPolicy(FitPolicy.BOTH)
                .pageFitPolicy(FitPolicy.WIDTH)
                .password(PDF_PASSWORD)
                .swipeHorizontal(prefManager.getBoolean("scroll_pref", false))
                .autoSpacing(prefManager.getBoolean("scroll_pref", false))