Product: Android
Product Version: 9.2.3
Please give a brief summary of your issue:
Want to show custom error view onTabError
Please describe your issue and provide steps to reproduce it:
We have a custom error view that we would like to display if there is an error in loading the PDF. We are using the PdfViewCtrlTabHostFragment2 and we get the error from onTabError. We do not want to use a dialog error, we just want to replace the red section with an error view.
Our current workaround is this:
` override fun onTabError(errorCode: Int, info: String?) {
mBottomBarContainer.visibility = View.GONE
val currentFragment: PdfViewCtrlTabBaseFragment = this.currentPdfViewCtrlFragment
val textView = TextView(context).apply { setText("Hello world") }
(currentFragment.view?.parent as? DispatchFairInsetsFrameLayout)?.addView(textView)
}
`
but that seems like it could be prone to errors or issues with managing the document. Do you have a better way to provide an error view to be used?
Please provide a link to a minimal sample where the issue is reproducible: