feat: 优化代码

pull/106/head
kunfei 5 years ago
parent 974856ffae
commit 796f715647
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt
  2. 6
      app/src/main/res/layout/activity_book_read.xml

@ -516,7 +516,6 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo
} }
observeEvent<Boolean>(EventBus.UP_CONFIG) { observeEvent<Boolean>(EventBus.UP_CONFIG) {
upSystemUiVisibility() upSystemUiVisibility()
content_view.upStyle()
page_view.upBg() page_view.upBg()
page_view.upStyle() page_view.upStyle()
ChapterProvider.upStyle(ReadBookConfig.durConfig) ChapterProvider.upStyle(ReadBookConfig.durConfig)

@ -4,12 +4,6 @@
android:layout_height="match_parent" android:layout_height="match_parent"
android:orientation="vertical"> android:orientation="vertical">
<io.legado.app.ui.book.read.page.ContentView
android:id="@+id/content_view"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:visibility="invisible" />
<io.legado.app.ui.book.read.page.PageView <io.legado.app.ui.book.read.page.PageView
android:id="@+id/page_view" android:id="@+id/page_view"
android:layout_width="match_parent" android:layout_width="match_parent"

Loading…
Cancel
Save