android-pdfview icon indicating copy to clipboard operation
android-pdfview copied to clipboard

Fragment PDF view crashes on rotation

Open nrallakis opened this issue 10 years ago • 2 comments

I tried using the pdfview as a fragment and it worked. However, it crashes when i change to landscape mode.. Is there any solution for this problem? This is my error log screenshot_2

nrallakis avatar Feb 16 '15 17:02 nrallakis

Almost the same here. When i change to landscape, the view turns white. Log: PdfDocument.nativeOpen(): return handle = 0x49aecfe8 PdfDocument.nativeOpen(): return handle = 0x46331058 PdfPage.nativeOpenPage(): return handle = 0x56425390 PdfPage.nativeOpenPage(): return handle = 0x56425410

benjidea avatar Mar 10 '15 13:03 benjidea

@Blacksheep92 we just had the similar issue and solved it calling .recycle() on pdfView instance in onDetach() fragment's method.

esh0 avatar Sep 15 '17 09:09 esh0