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) { if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) {
window.attributes = window.attributes.apply { window.attributes = window.attributes.apply {
layoutInDisplayCutoutMode = layoutInDisplayCutoutMode =

@ -69,7 +69,7 @@ class ReadBookActivity : VMBaseActivity<ReadBookViewModel>(R.layout.activity_boo
override var readAloudStatus = Status.STOP override var readAloudStatus = Status.STOP
override fun onActivityCreated(savedInstanceState: Bundle?) { override fun onActivityCreated(savedInstanceState: Bundle?) {
Help.uplayoutInDisplayCutoutMode(window) Help.upLayoutInDisplayCutoutMode(window)
setSupportActionBar(toolbar) setSupportActionBar(toolbar)
initView() initView()
viewModel.callBack = this viewModel.callBack = this

Loading…
Cancel
Save