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.
This commit is contained in:
Manuel Beck
2026-07-18 13:38:09 +09:00
committed by GitHub
parent 80658ea401
commit 61ebdcdec9
@@ -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));