Fix cutout in reader

This commit is contained in:
Jays2Kings 2021-03-24 02:10:42 -04:00
parent 579db13217
commit 6c85a54c07

View File

@ -804,10 +804,13 @@ class ReaderActivity :
val currentOrientation = resources.configuration.orientation
val params = window.attributes
if (currentOrientation == Configuration.ORIENTATION_LANDSCAPE) {
val params = window.attributes
params.layoutInDisplayCutoutMode =
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER
} else {
params.layoutInDisplayCutoutMode =
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
}
}
}