Merge pull request #43248 from HEAVYPOLY/master
Change android orientations from sensor to user
This commit is contained in:
commit
484c3d5e27
1 changed files with 3 additions and 3 deletions
|
@ -515,13 +515,13 @@ public class GodotIO {
|
||||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);
|
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_REVERSE_PORTRAIT);
|
||||||
} break;
|
} break;
|
||||||
case SCREEN_SENSOR_LANDSCAPE: {
|
case SCREEN_SENSOR_LANDSCAPE: {
|
||||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_LANDSCAPE);
|
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER_LANDSCAPE);
|
||||||
} break;
|
} break;
|
||||||
case SCREEN_SENSOR_PORTRAIT: {
|
case SCREEN_SENSOR_PORTRAIT: {
|
||||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_SENSOR_PORTRAIT);
|
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_USER_PORTRAIT);
|
||||||
} break;
|
} break;
|
||||||
case SCREEN_SENSOR: {
|
case SCREEN_SENSOR: {
|
||||||
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_SENSOR);
|
activity.setRequestedOrientation(ActivityInfo.SCREEN_ORIENTATION_FULL_USER);
|
||||||
} break;
|
} break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue