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

Unverified Commit ec797651 authored by gokul swaminathan's avatar gokul swaminathan Committed by GitHub
Browse files

Merge pull request #70 from Fs00/zoom-out

Allow zooming out the document
parents 8a774c51 0db56a9a
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))