Pārlūkot izejas kodu

Rename function

Wayne 5 gadi atpakaļ
vecāks
revīzija
9c27465ff7

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

@@ -9,7 +9,6 @@ import android.support.v7.app.AppCompatActivity
 import android.os.Bundle
 import android.support.constraint.ConstraintSet
 import android.view.*
-import android.widget.PopupWindow
 import android.widget.Toast
 import com.kdanmobile.kmpdfkit.pdfcommon.KMPDFReaderView
 import com.kdanmobile.reader.Utils.applyConstraintSet
@@ -266,7 +265,7 @@ open class ReaderActivity : AppCompatActivity() {
         iv_readerActivity_underline.apply {
             setOnClickListener { viewModel.onClickUnderlineBtn() }
             setOnLongClickListener { btn ->
-                viewModel.onLongClickUnderlinBtn()
+                viewModel.onLongClickUnderlineBtn()
                 val context = this@ReaderActivity
                 AnnotationPropertySettingWindow(context, true).also { window ->
                     viewModel.underLineAttributeLiveData.value?.let {  attr ->

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

@@ -155,7 +155,7 @@ class ReaderViewModel(private val pdfSdkLicense: String, private val pdfSdkRsaMs
         }
     }
 
-    fun onLongClickUnderlinBtn() {
+    fun onLongClickUnderlineBtn() {
         if (isCopyModeLiveData.value == true) stopCopyTextMode()
         startUnderLineEditMode()
     }