mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2025-01-11 19:29:10 +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 currentOrientation = resources.configuration.orientation
|
||||||
|
|
||||||
|
val params = window.attributes
|
||||||
if (currentOrientation == Configuration.ORIENTATION_LANDSCAPE) {
|
if (currentOrientation == Configuration.ORIENTATION_LANDSCAPE) {
|
||||||
val params = window.attributes
|
|
||||||
params.layoutInDisplayCutoutMode =
|
params.layoutInDisplayCutoutMode =
|
||||||
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER
|
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER
|
||||||
|
} else {
|
||||||
|
params.layoutInDisplayCutoutMode =
|
||||||
|
WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user