This commit is contained in:
821938089
2022-07-28 09:06:41 +08:00
parent 4efd84fb5e
commit 5e936aa8a1
2 changed files with 3 additions and 2 deletions
@@ -30,7 +30,8 @@ import kotlinx.coroutines.withContext
class ReadRecordActivity : BaseActivity<ActivityReadRecordBinding>() { class ReadRecordActivity : BaseActivity<ActivityReadRecordBinding>() {
private val adapter by lazy { RecordAdapter(this) } private val adapter by lazy { RecordAdapter(this) }
private var sortMode = LocalConfig.getInt("readRecordSort") private var sortMode
get() = LocalConfig.getInt("readRecordSort")
set(value) { set(value) {
LocalConfig.putInt("readRecordSort", value) LocalConfig.putInt("readRecordSort", value)
} }
@@ -122,7 +122,7 @@ class TextPageFactory(dataSource: DataSource) : PageFactory<TextPage>(dataSource
?: TextPage(title = nc.title).format() ?: TextPage(title = nc.title).format()
} }
return@with nc.getPage(1)?.removePageAloudSpan() return@with nc.getPage(1)?.removePageAloudSpan()
?: TextPage(title = nc.title).format() ?: TextPage(text = "继续滑动以加载下一章…").format()
} }
} }