Update version info, disable buggy fullscreen on 2.3

This commit is contained in:
mittorn
2015-09-23 00:43:34 +07:00
parent 19b5ac81a3
commit 26e6eef233
4 changed files with 6 additions and 6 deletions

View File

@@ -161,8 +161,10 @@ public class SDLActivity extends Activity {
// fullscreen
requestWindowFeature(Window.FEATURE_NO_TITLE);
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
if(Build.VERSION.SDK_INT >= 12) {
getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
WindowManager.LayoutParams.FLAG_FULLSCREEN);
}
// keep screen on
getWindow().setFlags(WindowManager.LayoutParams.FLAG_KEEP_SCREEN_ON,