pull/46/head
kunfei 5 years ago
parent d6b6cbf1d0
commit fdcccdafc7
  1. 2
      app/src/main/java/io/legado/app/ui/book/read/Help.kt
  2. 2
      app/src/main/java/io/legado/app/ui/book/read/ReadBookActivity.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 =

@ -69,7 +69,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(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

Loading…
Cancel
Save