mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-09 05:25:08 +01:00
Fix cutout in reader
This commit is contained in:
parent
579db13217
commit
6c85a54c07
@ -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
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user