From 312872adaf15d36aedd880a4768eced5ebdc868d Mon Sep 17 00:00:00 2001 From: Or Arnon Date: Thu, 17 Mar 2016 10:29:43 +0200 Subject: [PATCH] added ability for cordova activity to be viewed in a real full screen regardless of android version (as was the case in previous cordova versions) This closes #279 This closes #218 PR #218 didn't cleanly merge --- framework/src/org/apache/cordova/CordovaActivity.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/framework/src/org/apache/cordova/CordovaActivity.java b/framework/src/org/apache/cordova/CordovaActivity.java index 1d480edb..85eeb53a 100755 --- a/framework/src/org/apache/cordova/CordovaActivity.java +++ b/framework/src/org/apache/cordova/CordovaActivity.java @@ -121,7 +121,9 @@ public class CordovaActivity extends Activity { preferences.set("Fullscreen", true); } if (preferences.getBoolean("Fullscreen", false)) { - if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) { + // NOTE: use the FullscreenNotImmersive configuration key to set the activity in a REAL full screen + // (as was the case in previous cordova versions) + if ((Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT) && !preferences.getBoolean("FullscreenNotImmersive", false)) { immersiveMode = true; } else { getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,