cordova-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <>
Subject [GitHub] jcesarmobile closed pull request #432: add Transparent StatusBar Config
Date Thu, 01 Jan 1970 00:00:00 GMT
jcesarmobile closed pull request #432: add Transparent StatusBar Config

This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:

As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):

diff --git a/bin/templates/project/ b/bin/templates/project/
index 567b6c72f..257c74fa6 100644
--- a/bin/templates/project/
+++ b/bin/templates/project/
@@ -21,6 +21,8 @@ Licensed to the Apache Software Foundation (ASF) under one
 import android.os.Bundle;
 import org.apache.cordova.*;
+import android.os.Build;
+import android.view.View;
 public class __ACTIVITY__ extends CordovaActivity
@@ -29,6 +31,13 @@ public void onCreate(Bundle savedInstanceState)
+        // enable Transparent statusbar when enabled
+        if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.KITKAT && preferences.getBoolean("TransparentStatusBar",
false)) {
+            getWindow().getDecorView().setSystemUiVisibility(
+               View.SYSTEM_UI_FLAG_LAYOUT_STABLE);
+        }
         // enable Cordova apps to be started in the background
         Bundle extras = getIntent().getExtras();
         if (extras != null && extras.getBoolean("cdvStartInBackground", false)) {


This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:

With regards,
Apache Git Services

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message