@@ -139,6 +139,7 @@ open class ReaderActivity : AppCompatActivity() {
if (!isOpened) return
val context = this
val readerView = object : KMPDFReaderView(context) {
+ @SuppressLint("ClickableViewAccessibility")
override fun onTouchEvent(motionEvent: MotionEvent): Boolean {
if (motionEvent.action == MotionEvent.ACTION_UP) {
if (viewModel.isCopyModeLiveData.value == true) {
@@ -249,7 +249,7 @@ class ReaderViewModel(private val pdfSdkLicense: String, private val pdfSdkRsaMs
}
fun setReaderView(readerView: KMPDFReaderView) {
- kmpdfFactory?.setReaderView(readerView)
+ kmpdfFactory?.readerView = readerView
kmpdfDocumentController = kmpdfFactory?.getController(KMPDFFactory.ControllerType.DOCUMENT) as KMPDFDocumentController
updateViewDirection()