mirror of
https://git.743378673.xyz/MeloNX/MeloNX.git
synced 2025-06-28 11:26:24 +02:00
android - allow sensor to change orientation during emulation
This commit is contained in:
parent
3bc415053e
commit
9680ecd820
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ class MainActivity : BaseActivity() {
|
||||||
|
|
||||||
fun setFullScreen(fullscreen: Boolean) {
|
fun setFullScreen(fullscreen: Boolean) {
|
||||||
requestedOrientation =
|
requestedOrientation =
|
||||||
if (fullscreen) ActivityInfo.SCREEN_ORIENTATION_LANDSCAPE else ActivityInfo.SCREEN_ORIENTATION_FULL_USER
|
if (fullscreen) ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE else ActivityInfo.SCREEN_ORIENTATION_FULL_USER
|
||||||
|
|
||||||
val insets = WindowCompat.getInsetsController(window, window.decorView)
|
val insets = WindowCompat.getInsetsController(window, window.decorView)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue