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

Commit 8b5c9102 authored by Fs00's avatar Fs00
Browse files

Allow zooming out the document

parent 6377448f
Loading
Loading
Loading
Loading
+2 −1
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));
@@ -246,6 +246,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);
    }