@@ -61,7 +61,7 @@ public class SDLActivity extends Activity implements View.OnSystemUiVisibilityCh
6161 private static final String TAG = "SDL" ;
6262 private static final int SDL_MAJOR_VERSION = 2 ;
6363 private static final int SDL_MINOR_VERSION = 30 ;
64- private static final int SDL_MICRO_VERSION = 3 ;
64+ private static final int SDL_MICRO_VERSION = 6 ;
6565/*
6666 // Display InputType.SOURCE/CLASS of events and devices
6767 //
@@ -282,7 +282,7 @@ protected String[] getLibraries() {
282282 // Load the .so
283283 public void loadLibraries () {
284284 for (String lib : getLibraries ()) {
285- SDL .loadLibrary (lib );
285+ SDL .loadLibrary (lib , this );
286286 }
287287 }
288288
@@ -777,7 +777,6 @@ public void handleMessage(Message msg) {
777777 int flags = View .SYSTEM_UI_FLAG_FULLSCREEN |
778778 View .SYSTEM_UI_FLAG_HIDE_NAVIGATION |
779779 View .SYSTEM_UI_FLAG_IMMERSIVE_STICKY |
780-
781780 View .SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |
782781 View .SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
783782 View .SYSTEM_UI_FLAG_LAYOUT_STABLE | View .INVISIBLE ;
@@ -997,8 +996,8 @@ public void setOrientationBis(int w, int h, boolean resizable, String hint)
997996 /* No valid hint, nothing is explicitly allowed */
998997 if (!is_portrait_allowed && !is_landscape_allowed ) {
999998 if (resizable ) {
1000- /* All orientations are allowed */
1001- req = ActivityInfo .SCREEN_ORIENTATION_FULL_SENSOR ;
999+ /* All orientations are allowed, respecting user orientation lock setting */
1000+ req = ActivityInfo .SCREEN_ORIENTATION_FULL_USER ;
10021001 } else {
10031002 /* Fixed window and nothing specified. Get orientation from w/h of created window */
10041003 req = (w > h ? ActivityInfo .SCREEN_ORIENTATION_SENSOR_LANDSCAPE : ActivityInfo .SCREEN_ORIENTATION_SENSOR_PORTRAIT );
@@ -1007,8 +1006,8 @@ public void setOrientationBis(int w, int h, boolean resizable, String hint)
10071006 /* At least one orientation is allowed */
10081007 if (resizable ) {
10091008 if (is_portrait_allowed && is_landscape_allowed ) {
1010- /* hint allows both landscape and portrait, promote to full sensor */
1011- req = ActivityInfo .SCREEN_ORIENTATION_FULL_SENSOR ;
1009+ /* hint allows both landscape and portrait, promote to full user */
1010+ req = ActivityInfo .SCREEN_ORIENTATION_FULL_USER ;
10121011 } else {
10131012 /* Use the only one allowed "orientation" */
10141013 req = (is_landscape_allowed ? orientation_landscape : orientation_portrait );
0 commit comments