forked from MeloNX/MeloNX
android - allow sensor to change orientation during emulation
This commit is contained in:
parent
3bc415053e
commit
9680ecd820
@ -144,7 +144,7 @@ class MainActivity : BaseActivity() {
|
||||
|
||||
fun setFullScreen(fullscreen: Boolean) {
|
||||
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)
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user