阅读进度记录从页数改成字数

pull/517/head
gedoor 4 years ago
parent f5507a5023
commit cd1e74395f
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt
  2. 4
      app/src/main/java/io/legado/app/ui/book/read/page/entities/TextPage.kt

@ -117,7 +117,6 @@ class ReadBookActivity : ReadBookBaseActivity(),
override fun onConfigurationChanged(newConfig: Configuration) { override fun onConfigurationChanged(newConfig: Configuration) {
super.onConfigurationChanged(newConfig) super.onConfigurationChanged(newConfig)
binding.readView.upStatusBar() binding.readView.upStatusBar()
ReadBook.loadContent(resetPageOffset = false)
} }
override fun onResume() { override fun onResume() {

@ -20,8 +20,8 @@ data class TextPage(
var height: Float = 0f, var height: Float = 0f,
) { ) {
val lineSize = textLines.size val lineSize get() = textLines.size
val charSize = text.length val charSize get() = text.length
fun upLinesPosition() = ChapterProvider.apply { fun upLinesPosition() = ChapterProvider.apply {
if (!ReadBookConfig.textBottomJustify) return@apply if (!ReadBookConfig.textBottomJustify) return@apply

Loading…
Cancel
Save