diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt index 6c856df14..d20afbfec 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt @@ -102,7 +102,6 @@ class ReadBookActivity : ReadBookBaseActivity(), override val headerHeight: Int get() = page_view.curPage.headerHeight override fun onActivityCreated(savedInstanceState: Bundle?) { - upLayoutInDisplayCutoutMode() initView() upScreenTimeOut() ReadBook.callBack = this diff --git a/app/src/main/java/io/legado/app/ui/book/read/ReadBookBaseActivity.kt b/app/src/main/java/io/legado/app/ui/book/read/ReadBookBaseActivity.kt index 59706d338..878af076b 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/ReadBookBaseActivity.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/ReadBookBaseActivity.kt @@ -40,6 +40,7 @@ abstract class ReadBookBaseActivity : override fun onCreate(savedInstanceState: Bundle?) { ReadBook.msg = null setOrientation() + upLayoutInDisplayCutoutMode() super.onCreate(savedInstanceState) }