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

Commit 9799686d authored by svetoslavganov's avatar svetoslavganov Committed by Android (Google) Code Review
Browse files

Merge "Current page not updated when closed" into lmp-preview-dev

parents 5985dfbf 27d3e6d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -188,7 +188,6 @@ public final class PdfRenderer implements AutoCloseable {
    private void doClose() {
        if (mCurrentPage != null) {
            mCurrentPage.close();
            mCurrentPage = null;
        }
        nativeClose(mNativeDocument);
        try {
@@ -375,6 +374,7 @@ public final class PdfRenderer implements AutoCloseable {
            nativeClosePage(mNativePage);
            mNativePage = 0;
            mCloseGuard.close();
            mCurrentPage = null;
        }

        private void throwIfClosed() {