mirror of
https://github.com/skyline-emu/skyline.git
synced 2025-01-07 09:18:13 +01:00
Small fix
This commit is contained in:
parent
7dabe1ec60
commit
8376705832
@ -287,6 +287,7 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
|
|||||||
populateAppItem()
|
populateAppItem()
|
||||||
emulationSettings = EmulationSettings.forEmulation(item.titleId ?: item.key())
|
emulationSettings = EmulationSettings.forEmulation(item.titleId ?: item.key())
|
||||||
|
|
||||||
|
requestedOrientation = emulationSettings.orientation
|
||||||
window.attributes.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
|
window.attributes.layoutInDisplayCutoutMode = WindowManager.LayoutParams.LAYOUT_IN_DISPLAY_CUTOUT_MODE_SHORT_EDGES
|
||||||
inputHandler = InputHandler(inputManager, emulationSettings)
|
inputHandler = InputHandler(inputManager, emulationSettings)
|
||||||
setContentView(binding.root)
|
setContentView(binding.root)
|
||||||
@ -515,9 +516,9 @@ class EmulationActivity : AppCompatActivity(), SurfaceHolder.Callback, View.OnTo
|
|||||||
* Updating the layout depending on type and state of device
|
* Updating the layout depending on type and state of device
|
||||||
*/
|
*/
|
||||||
private fun updateCurrentLayout(newLayoutInfo: WindowLayoutInfo) {
|
private fun updateCurrentLayout(newLayoutInfo: WindowLayoutInfo) {
|
||||||
requestedOrientation = emulationSettings.orientation
|
|
||||||
binding.onScreenGameView.minimumHeight = displayHeight
|
binding.onScreenGameView.minimumHeight = displayHeight
|
||||||
if (!emulationSettings.supportFoldableScreen) return
|
if (!emulationSettings.supportFoldableScreen) return
|
||||||
|
requestedOrientation = emulationSettings.orientation
|
||||||
val foldingFeature = newLayoutInfo.displayFeatures.find { it is FoldingFeature }
|
val foldingFeature = newLayoutInfo.displayFeatures.find { it is FoldingFeature }
|
||||||
(foldingFeature as? FoldingFeature)?.let {
|
(foldingFeature as? FoldingFeature)?.let {
|
||||||
if (it.isSeparating) {
|
if (it.isSeparating) {
|
||||||
|
Loading…
Reference in New Issue
Block a user