incubator-callback-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bows...@apache.org
Subject android commit: Adding more undocumented features for app title bar and full-screen
Date Fri, 15 Jun 2012 22:16:34 GMT
Updated Branches:
  refs/heads/master 07ed6daed -> ee0cd679d


Adding more undocumented features for app title bar and full-screen


Project: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/commit/ee0cd679
Tree: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/tree/ee0cd679
Diff: http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/diff/ee0cd679

Branch: refs/heads/master
Commit: ee0cd679d35f6150f7772623ee48970a49feba7d
Parents: 07ed6da
Author: Joe Bowser <bowserj@apache.org>
Authored: Fri Jun 15 15:16:14 2012 -0700
Committer: Joe Bowser <bowserj@apache.org>
Committed: Fri Jun 15 15:16:14 2012 -0700

----------------------------------------------------------------------
 framework/src/org/apache/cordova/DroidGap.java |   16 ++++++++++++++--
 1 files changed, 14 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-cordova-android/blob/ee0cd679/framework/src/org/apache/cordova/DroidGap.java
----------------------------------------------------------------------
diff --git a/framework/src/org/apache/cordova/DroidGap.java b/framework/src/org/apache/cordova/DroidGap.java
index 433026e..dc9591f 100755
--- a/framework/src/org/apache/cordova/DroidGap.java
+++ b/framework/src/org/apache/cordova/DroidGap.java
@@ -256,9 +256,21 @@ public class DroidGap extends Activity implements CordovaInterface {
         LOG.d(TAG, "DroidGap.onCreate()");
         super.onCreate(savedInstanceState);
 
-        getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN,
+        if(this.getBooleanProperty("showTitle", true))
+        {
+            getWindow().requestFeature(Window.FEATURE_NO_TITLE);
+        }
+        
+        if(this.getBooleanProperty("setFullscreen", true))
+        {
+            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FULLSCREEN,
+                    WindowManager.LayoutParams.FLAG_FULLSCREEN);
+        }
+        else
+        {
+            getWindow().setFlags(WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN,
                     WindowManager.LayoutParams.FLAG_FORCE_NOT_FULLSCREEN);
-
+        }
         // This builds the view.  We could probably get away with NOT having a LinearLayout,
but I like having a bucket!
         Display display = getWindowManager().getDefaultDisplay();
         int width = display.getWidth();


Mime
View raw message