feat: 优化代码

pull/123/head
kunfei 5 years ago
parent ebc1d8d03b
commit b60ce32c11
  1. 13
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt

@ -554,18 +554,31 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo
}
}
/**
* 替换规则变化
*/
override fun onReplaceRuleSave() {
Coroutine.async { BookHelp.upReplaceRules() }
ReadBook.loadContent()
}
/**
* 显示阅读样式配置
*/
override fun showReadStyle() {
ReadStyleDialog().show(supportFragmentManager, "readStyle")
}
/**
* 显示更多设置
*/
override fun showMoreSetting() {
MoreConfigDialog().show(supportFragmentManager, "moreConfig")
}
/**
* 更新状态栏,导航栏
*/
override fun upSystemUiVisibility() {
Help.upSystemUiVisibility(this, !read_menu.isVisible)
}

Loading…
Cancel
Save