Commit c317ab978f23eb52232a2cfcf94e5d7043ac195a

Sam Lantinga 2017-11-12T10:59:05

Fixed Android build error on older SDK

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
index a6f6e4e..a3642ac 100644
--- a/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
+++ b/android-project/app/src/main/java/org/libsdl/app/SDLActivity.java
@@ -217,7 +217,7 @@ public class SDLActivity extends Activity {
          * window for Android UI purposes, as a result.
          */
         int iFlags = 
-            View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY |
+            //View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY | // Only available since API 19
             View.SYSTEM_UI_FLAG_HIDE_NAVIGATION |
             View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION |
             View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN |