Merge pull request #2102 from 821938089/little-fix

优化
pull/2103/head
kunfei 2 years ago committed by GitHub
commit dd48cb45bb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      app/src/main/java/io/legado/app/ui/about/ReadRecordActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/page/provider/TextPageFactory.kt

@ -30,7 +30,8 @@ import kotlinx.coroutines.withContext
class ReadRecordActivity : BaseActivity<ActivityReadRecordBinding>() {
private val adapter by lazy { RecordAdapter(this) }
private var sortMode = LocalConfig.getInt("readRecordSort")
private var sortMode
get() = LocalConfig.getInt("readRecordSort")
set(value) {
LocalConfig.putInt("readRecordSort", value)
}

@ -122,7 +122,7 @@ class TextPageFactory(dataSource: DataSource) : PageFactory<TextPage>(dataSource
?: TextPage(title = nc.title).format()
}
return@with nc.getPage(1)?.removePageAloudSpan()
?: TextPage(title = nc.title).format()
?: TextPage(text = "继续滑动以加载下一章…").format()
}
}

Loading…
Cancel
Save