commit | 27d3e6d06f2cc86f115652275791a988e9a758e5 | [log] [tgz] |
---|---|---|
author | svetoslavganov <svetoslavganov@google.com> | Fri Jun 06 13:56:52 2014 -0700 |
committer | Svetoslav Ganov <svetoslavganov@google.com> | Fri Jun 06 20:59:51 2014 +0000 |
tree | 5c250e1a086f697e9c2525cd87cabeced6537bc7 | |
parent | faecafce62ca39a7693669f7c9eabf2d71c633cf [diff] |
Current page not updated when closed Change-Id: I19845f179f9e712f0213c845c795d5e2c9ea4e29
diff --git a/graphics/java/android/graphics/pdf/PdfRenderer.java b/graphics/java/android/graphics/pdf/PdfRenderer.java index b63edce..39795b5 100644 --- a/graphics/java/android/graphics/pdf/PdfRenderer.java +++ b/graphics/java/android/graphics/pdf/PdfRenderer.java
@@ -188,7 +188,6 @@ private void doClose() { if (mCurrentPage != null) { mCurrentPage.close(); - mCurrentPage = null; } nativeClose(mNativeDocument); try { @@ -375,6 +374,7 @@ nativeClosePage(mNativePage); mNativePage = 0; mCloseGuard.close(); + mCurrentPage = null; } private void throwIfClosed() {