diff --git a/app/src/main/java/io/legado/app/ui/book/read/Help.kt b/app/src/main/java/io/legado/app/ui/book/read/Help.kt index b741cf430..33294b7e4 100644 --- a/app/src/main/java/io/legado/app/ui/book/read/Help.kt +++ b/app/src/main/java/io/legado/app/ui/book/read/Help.kt @@ -73,7 +73,7 @@ object Help { /** * 适配刘海 */ - fun uplayoutInDisplayCutoutMode(window: Window) { + fun upLayoutInDisplayCutoutMode(window: Window) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { window.attributes = window.attributes.apply { layoutInDisplayCutoutMode = 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 f295f28f7..954ddb1eb 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 @@ -69,7 +69,7 @@ class ReadBookActivity : VMBaseActivity(R.layout.activity_boo override var readAloudStatus = Status.STOP override fun onActivityCreated(savedInstanceState: Bundle?) { - Help.uplayoutInDisplayCutoutMode(window) + Help.upLayoutInDisplayCutoutMode(window) setSupportActionBar(toolbar) initView() viewModel.callBack = this