Home
last modified time | relevance | path

Searched refs:mCurrentPage (Results 1 – 1 of 1) sorted by relevance

/development/samples/browseable/PdfRendererBasic/src/com.example.android.pdfrendererbasic/
DPdfRendererBasicFragment.java59 private PdfRenderer.Page mCurrentPage; field in PdfRendererBasicFragment
129 if (null != mCurrentPage) { in onSaveInstanceState()
130 outState.putInt(STATE_CURRENT_PAGE_INDEX, mCurrentPage.getIndex()); in onSaveInstanceState()
150 if (null != mCurrentPage) { in closeRenderer()
151 mCurrentPage.close(); in closeRenderer()
167 if (null != mCurrentPage) { in showPage()
168 mCurrentPage.close(); in showPage()
171 mCurrentPage = mPdfRenderer.openPage(index); in showPage()
173 Bitmap bitmap = Bitmap.createBitmap(mCurrentPage.getWidth(), mCurrentPage.getHeight(), in showPage()
179 mCurrentPage.render(bitmap, null, null, PdfRenderer.Page.RENDER_MODE_FOR_DISPLAY); in showPage()
[all …]