diff --git a/android/phoenix/AndroidManifest.xml b/android/phoenix/AndroidManifest.xml index ca6147cac2..03830d92b4 100644 --- a/android/phoenix/AndroidManifest.xml +++ b/android/phoenix/AndroidManifest.xml @@ -5,7 +5,7 @@ diff --git a/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityFuture.java b/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityFuture.java index 27f69c0259..cefd73b0f0 100644 --- a/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityFuture.java +++ b/android/phoenix/src/com/retroarch/browser/retroactivity/RetroActivityFuture.java @@ -1,5 +1,31 @@ package com.retroarch.browser.retroactivity; -public final class RetroActivityFuture extends RetroActivityCamera -{ +import android.view.View; + +public final class RetroActivityFuture extends RetroActivityCamera { + + @Override + public void onResume() { + super.onResume(); + + if (android.os.Build.VERSION.SDK_INT >= 19) { + // Immersive mode + + // Constants from API > 14 + final int API_SYSTEM_UI_FLAG_LAYOUT_STABLE = 0x00000100; + final int API_SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION = 0x00000200; + final int API_SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN = 0x00000400; + final int API_SYSTEM_UI_FLAG_FULLSCREEN = 0x00000004; + final int API_SYSTEM_UI_FLAG_IMMERSIVE_STICKY = 0x00001000; + + View thisView = getWindow().getDecorView(); + thisView.setSystemUiVisibility(API_SYSTEM_UI_FLAG_LAYOUT_STABLE + | API_SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION + | API_SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN + | View.SYSTEM_UI_FLAG_HIDE_NAVIGATION + | API_SYSTEM_UI_FLAG_FULLSCREEN + | API_SYSTEM_UI_FLAG_IMMERSIVE_STICKY); + } + } + }