Open Shahriyar13 opened 4 years ago
in my fragment's onDestroy i call:
pdfView.recycle pdfView = null call GC
but nothing changes, using a lots native ram after rotating 10-12 times, that's take 2GB of device's memory
tested on 3.1.0-beta.1 & 3.2.0-beta.1
pdfView.fromBytes(pdfByteArrays) .defaultPage(defaultPage) .onPageChange(this) .enableAnnotationRendering(true) .onLoad(this) .nightMode(isNightMode) .scrollHandle(new CircleScrollHandle(getContext())) .spacing(10) .onPageError(this) .load();
// pdfByteArrays comes from viewModel
??????
in my fragment's onDestroy i call:
but nothing changes, using a lots native ram after rotating 10-12 times, that's take 2GB of device's memory
tested on 3.1.0-beta.1 & 3.2.0-beta.1
pdfView.fromBytes(pdfByteArrays) .defaultPage(defaultPage) .onPageChange(this) .enableAnnotationRendering(true) .onLoad(this) .nightMode(isNightMode) .scrollHandle(new CircleScrollHandle(getContext())) .spacing(10) .onPageError(this) .load();
// pdfByteArrays comes from viewModel