comparison android/src/com/retrodev/blastem/BlastEmActivity.java @ 893:4f46b4cd5035

Use immersive fullscreen when available. Updated manifest to theoretically support Android TV.
author Michael Pavone <pavone@retrodev.com>
date Sun, 22 Nov 2015 14:43:51 -0800
parents 9f1c76714f87
children
comparison
equal deleted inserted replaced
892:381a3b2f6065 893:4f46b4cd5035
1 package com.retrodev.blastem; 1 package com.retrodev.blastem;
2 import org.libsdl.app.SDLActivity; 2 import org.libsdl.app.SDLActivity;
3 import android.os.Build;
4 import android.os.Bundle;
5 import android.view.View;
6
3 7
4 public class BlastEmActivity extends SDLActivity 8 public class BlastEmActivity extends SDLActivity
5 { 9 {
10 @Override
11 protected void onCreate(Bundle savedInstanceState) {
12 super.onCreate(savedInstanceState);
13
14 //set immersive mode on devices that support it
15 if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) {
16 View blah = mSurface;
17 blah.setSystemUiVisibility(
18 View.SYSTEM_UI_FLAG_FULLSCREEN | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION | View.SYSTEM_UI_FLAG_IMMERSIVE_STICKY
19 );
20 }
21 }
6 } 22 }