Przeglądaj źródła

Fixed some lint issues

Wayne 5 lat temu
rodzic
commit
c19d3ef9ba

+ 1 - 0
reader/src/main/java/com/kdanmobile/reader/ReaderActivity.kt

@@ -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) {

+ 1 - 1
reader/src/main/java/com/kdanmobile/reader/ReaderViewModel.kt

@@ -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()
     }