pull/473/head
gedoor 4 years ago
parent a3fe7ffd29
commit ec35f502d8
  1. 1
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt
  2. 1
      app/src/main/java/io/legado/app/ui/book/read/ReadBookBaseActivity.kt

@ -102,7 +102,6 @@ class ReadBookActivity : ReadBookBaseActivity(),
override val headerHeight: Int get() = page_view.curPage.headerHeight override val headerHeight: Int get() = page_view.curPage.headerHeight
override fun onActivityCreated(savedInstanceState: Bundle?) { override fun onActivityCreated(savedInstanceState: Bundle?) {
upLayoutInDisplayCutoutMode()
initView() initView()
upScreenTimeOut() upScreenTimeOut()
ReadBook.callBack = this ReadBook.callBack = this

@ -40,6 +40,7 @@ abstract class ReadBookBaseActivity :
override fun onCreate(savedInstanceState: Bundle?) { override fun onCreate(savedInstanceState: Bundle?) {
ReadBook.msg = null ReadBook.msg = null
setOrientation() setOrientation()
upLayoutInDisplayCutoutMode()
super.onCreate(savedInstanceState) super.onCreate(savedInstanceState)
} }

Loading…
Cancel
Save