|
@@ -793,8 +793,7 @@ public class CPDFDocumentFragment extends CBasicPDFFragment {
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public void onDestroyView() {
|
|
|
- super.onDestroyView();
|
|
|
+ public void onDestroy() {
|
|
|
try {
|
|
|
if (pdfView.getCPdfReaderView().getPDFDocument() != null) {
|
|
|
pdfView.getCPdfReaderView().getPDFDocument().close();
|
|
@@ -806,6 +805,6 @@ public class CPDFDocumentFragment extends CBasicPDFFragment {
|
|
|
}catch (Exception e){
|
|
|
|
|
|
}
|
|
|
-
|
|
|
+ super.onDestroy();
|
|
|
}
|
|
|
}
|