pull/63/head
kunfei 5 years ago
parent 2ecadf195f
commit 6f9a208326
  1. 1
      app/src/main/AndroidManifest.xml
  2. 3
      app/src/main/java/io/legado/app/ui/widget/page/ContentSelectActionCallback.kt
  3. 1
      app/src/main/java/io/legado/app/ui/widget/page/ContentTextView.kt

@ -4,6 +4,7 @@
package="io.legado.app">
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.VIBRATE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.ACCESS_NETWORK_STATE" />

@ -3,12 +3,13 @@ package io.legado.app.ui.widget.page
import android.view.ActionMode
import android.view.Menu
import android.view.MenuItem
import android.widget.TextView
import io.legado.app.R
import io.legado.app.constant.Bus
import io.legado.app.utils.postEvent
class ContentSelectActionCallback(private val textView: ContentTextView) : ActionMode.Callback {
class ContentSelectActionCallback(private val textView: TextView) : ActionMode.Callback {
override fun onActionItemClicked(mode: ActionMode?, item: MenuItem?): Boolean {
when (item?.itemId) {

@ -241,4 +241,5 @@ class ContentTextView : AppCompatTextView {
}
}
}
}

Loading…
Cancel
Save