This is an automated email from the ASF dual-hosted git repository. GitToTheHub pushed a commit to branch pr-fix-SystemBarPlugin-remove-canEdgeToEdge-check-for-execute in repository https://gitbox.apache.org/repos/asf/cordova-android.git
commit 806f5a2705e577551a3faf3bf7debca5515ea9d3 Author: Manuel Beck <[email protected]> AuthorDate: Fri Jul 10 06:47:24 2026 +0200 fix(SystemBarPlugin): remove `canEdgeToEdge` check for `execute` method - 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]
