|
|
@ -25,7 +25,6 @@ import io.legado.app.ui.book.read.page.entities.TextChapter |
|
|
|
import io.legado.app.ui.book.read.page.entities.TextPos |
|
|
|
import io.legado.app.ui.book.read.page.entities.TextPos |
|
|
|
import io.legado.app.ui.book.read.page.provider.ChapterProvider |
|
|
|
import io.legado.app.ui.book.read.page.provider.ChapterProvider |
|
|
|
import io.legado.app.ui.book.read.page.provider.TextPageFactory |
|
|
|
import io.legado.app.ui.book.read.page.provider.TextPageFactory |
|
|
|
import io.legado.app.ui.widget.PopupAction |
|
|
|
|
|
|
|
import io.legado.app.utils.activity |
|
|
|
import io.legado.app.utils.activity |
|
|
|
import io.legado.app.utils.screenshot |
|
|
|
import io.legado.app.utils.screenshot |
|
|
|
import java.text.BreakIterator |
|
|
|
import java.text.BreakIterator |
|
|
@ -207,10 +206,6 @@ class ReadView(context: Context, attrs: AttributeSet) : |
|
|
|
if (!pressDown) return true |
|
|
|
if (!pressDown) return true |
|
|
|
pressDown = false |
|
|
|
pressDown = false |
|
|
|
if (!isMove) { |
|
|
|
if (!isMove) { |
|
|
|
if (!longPressed && callBack.imagePopupAction.isShowing) { |
|
|
|
|
|
|
|
callBack.imagePopupAction.dismiss() |
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
if (!longPressed && !pressOnTextSelected) { |
|
|
|
if (!longPressed && !pressOnTextSelected) { |
|
|
|
onSingleTapUp() |
|
|
|
onSingleTapUp() |
|
|
|
return true |
|
|
|
return true |
|
|
@ -544,7 +539,6 @@ class ReadView(context: Context, attrs: AttributeSet) : |
|
|
|
val isInitFinish: Boolean |
|
|
|
val isInitFinish: Boolean |
|
|
|
val isAutoPage: Boolean |
|
|
|
val isAutoPage: Boolean |
|
|
|
val autoPageProgress: Int |
|
|
|
val autoPageProgress: Int |
|
|
|
val imagePopupAction: PopupAction |
|
|
|
|
|
|
|
fun showActionMenu() |
|
|
|
fun showActionMenu() |
|
|
|
fun screenOffTimerStart() |
|
|
|
fun screenOffTimerStart() |
|
|
|
fun showTextActionMenu() |
|
|
|
fun showTextActionMenu() |
|
|
|