This is an automated email from the ASF dual-hosted git repository.
erisu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cordova-android.git
The following commit(s) were added to refs/heads/master by this push:
new 61ebdcde fix(SystemBarPlugin): remove `canEdgeToEdge` check for
`execute` method (#1971)
61ebdcde is described below
commit 61ebdcdec9d89c6f5a7b84dec2a5de033a568e05
Author: Manuel Beck <[email protected]>
AuthorDate: Sat Jul 18 06:38:09 2026 +0200
fix(SystemBarPlugin): remove `canEdgeToEdge` check for `execute` method
(#1971)
- Setting `StatusBarBackgroundColor` by `config.xml` is allowed and
influences the light/dark appeareance of the status bar in edge-to-edge mode.
This should also be possible by the Status Bar JS API method
`setBackgroundColor``, so a user can dynamically change the light/dark
appeareance of the status bar, even if the background color is not applied
visually.
---
framework/src/org/apache/cordova/SystemBarPlugin.java | 4 ----
1 file changed, 4 deletions(-)
diff --git a/framework/src/org/apache/cordova/SystemBarPlugin.java
b/framework/src/org/apache/cordova/SystemBarPlugin.java
index c03721f0..ebcc87da 100644
--- a/framework/src/org/apache/cordova/SystemBarPlugin.java
+++ b/framework/src/org/apache/cordova/SystemBarPlugin.java
@@ -80,10 +80,6 @@ public class SystemBarPlugin extends CordovaPlugin {
@Override
public boolean execute(String action, JSONArray args, CallbackContext
callbackContext) throws JSONException {
- if(canEdgeToEdge) {
- return false;
- }
-
if ("setStatusBarVisible".equals(action)) {
boolean visible = args.getBoolean(0);
cordova.getActivity().runOnUiThread(() ->
setStatusBarVisible(visible));
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]