From ec35f502d8c9c3c0bf7de265397ea172444129fe Mon Sep 17 00:00:00 2001 From: gedoor Date: Mon, 9 Nov 2020 20:27:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.kt | 1 - .../main/java/io/legado/app/ui/book/read/ReadBookBaseActivity.kt | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) 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) }