pull/433/head
gedoor 4 years ago
parent e250379e3e
commit 3683fd26b3
  1. 2
      app/src/main/java/io/legado/app/ui/book/toc/ChapterListActivity.kt
  2. 2
      app/src/main/java/io/legado/app/ui/welcome/WelcomeActivity.kt

@ -65,7 +65,7 @@ class ChapterListActivity : VMBaseActivity<ChapterListViewModel>(R.layout.activi
return super.onCompatCreateOptionsMenu(menu) return super.onCompatCreateOptionsMenu(menu)
} }
private inner class TabFragmentPageAdapter internal constructor(fm: FragmentManager) : private inner class TabFragmentPageAdapter(fm: FragmentManager) :
FragmentPagerAdapter(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) { FragmentPagerAdapter(fm, BEHAVIOR_RESUME_ONLY_CURRENT_FRAGMENT) {
override fun getItem(position: Int): Fragment { override fun getItem(position: Int): Fragment {
return when (position) { return when (position) {

@ -32,7 +32,7 @@ open class WelcomeActivity : BaseActivity(R.layout.activity_welcome) {
private fun init() { private fun init() {
Coroutine.async { Coroutine.async {
//清过期数据 //清过期数据
App.db.searchBookDao() App.db.searchBookDao()
.clearExpired(System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1)) .clearExpired(System.currentTimeMillis() - TimeUnit.DAYS.toMillis(1))
//初始化简繁转换引擎 //初始化简繁转换引擎

Loading…
Cancel
Save