|
@@ -14,6 +14,7 @@ import io.legado.app.help.config.ReadBookConfig
|
|
|
import io.legado.app.help.config.ReadTipConfig
|
|
import io.legado.app.help.config.ReadTipConfig
|
|
|
import io.legado.app.model.ReadBook
|
|
import io.legado.app.model.ReadBook
|
|
|
import io.legado.app.ui.book.read.ReadBookActivity
|
|
import io.legado.app.ui.book.read.ReadBookActivity
|
|
|
|
|
+import io.legado.app.ui.book.read.page.entities.TextLine
|
|
|
import io.legado.app.ui.book.read.page.entities.TextPage
|
|
import io.legado.app.ui.book.read.page.entities.TextPage
|
|
|
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
|
|
@@ -352,6 +353,10 @@ class PageView(context: Context) : FrameLayout(context) {
|
|
|
return binding.contentTextView.getCurVisiblePage()
|
|
return binding.contentTextView.getCurVisiblePage()
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ fun getCurVisibleFirstLine(): TextLine? {
|
|
|
|
|
+ return binding.contentTextView.getCurVisibleFirstLine()
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
fun markAsMainView() {
|
|
fun markAsMainView() {
|
|
|
binding.contentTextView.isMainView = true
|
|
binding.contentTextView.isMainView = true
|
|
|
}
|
|
}
|