From 806f5a2705e577551a3faf3bf7debca5515ea9d3 Mon Sep 17 00:00:00 2001 From: Manuel Beck Date: Fri, 10 Jul 2026 06:47:24 +0200 Subject: [PATCH] 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 c03721f02..ebcc87dae 100644 --- a/framework/src/org/apache/cordova/SystemBarPlugin.java +++ b/framework/src/org/apache/cordova/SystemBarPlugin.java @@ -80,10 +80,6 @@ public Object onMessage(String id, Object data) { @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));