Skip to content

TagSpaces is an offline, open source, document manager with tagging support

fix: recommendation for Android statusbar

Ilian Sapundshiev770b270437c5
diff --git a/capacitor/ios/App/App.xcodeproj/project.pbxproj b/capacitor/ios/App/App.xcodeproj/project.pbxproj
index db6172c49..263869651 100644
--- a/capacitor/ios/App/App.xcodeproj/project.pbxproj
+++ b/capacitor/ios/App/App.xcodeproj/project.pbxproj
@@ -319,7 +319,7 @@
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 10313;
+ CURRENT_PROJECT_VERSION = 10318;
DEVELOPMENT_TEAM = DLK22E2679;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
@@ -327,7 +327,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 6.13.4;
+ MARKETING_VERSION = 6.13.5;
OTHER_SWIFT_FLAGS = "$(inherited) \"-D\" \"COCOAPODS\" \"-DDEBUG\"";
PRODUCT_BUNDLE_IDENTIFIER = org.tagspaces.mobileapp;
PRODUCT_NAME = TagSpaces;
@@ -345,7 +345,7 @@
CODE_SIGN_ENTITLEMENTS = App/App.entitlements;
CODE_SIGN_IDENTITY = "Apple Development";
CODE_SIGN_STYLE = Automatic;
- CURRENT_PROJECT_VERSION = 10313;
+ CURRENT_PROJECT_VERSION = 10318;
DEVELOPMENT_TEAM = DLK22E2679;
INFOPLIST_FILE = App/Info.plist;
IPHONEOS_DEPLOYMENT_TARGET = 15.0;
@@ -353,7 +353,7 @@
"$(inherited)",
"@executable_path/Frameworks",
);
- MARKETING_VERSION = 6.13.4;
+ MARKETING_VERSION = 6.13.5;
PRODUCT_BUNDLE_IDENTIFIER = org.tagspaces.mobileapp;
PRODUCT_NAME = TagSpaces;
PROVISIONING_PROFILE_SPECIFIER = "";
diff --git a/release/app/package-lock.json b/release/app/package-lock.json
index cd75a1332..135e2b899 100644
--- a/release/app/package-lock.json
+++ b/release/app/package-lock.json
@@ -1,12 +1,12 @@
{
"name": "tagspaces",
- "version": "6.13.4",
+ "version": "6.13.5",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "tagspaces",
- "version": "6.13.4",
+ "version": "6.13.5",
"hasInstallScript": true,
"license": "AGPL-3.0",
"dependencies": {
diff --git a/src/renderer/services/io-capacitor.ts b/src/renderer/services/io-capacitor.ts
index 21af6bfb6..a32446eeb 100644
--- a/src/renderer/services/io-capacitor.ts
+++ b/src/renderer/services/io-capacitor.ts
@@ -121,14 +121,24 @@ function normalizePath(path) {
// --- Lifecycle ---
-// Configure the status bar so the WebView does not render behind it. Re-asserting
-// setOverlaysWebView({overlay:false}) also forces the native side to re-inset and
-// resize the WebView to full height — used to recover from iOS leaving the
-// WebView ~status-bar-height short after exiting element fullscreen.
+// Configure the status bar so the WebView does not render behind it.
+//
+// setOverlaysWebView({overlay:false}) is iOS-only here: on iOS re-asserting it
+// forces the native side to re-inset and resize the WebView to full height —
+// used to recover from iOS leaving the WebView ~status-bar-height short after
+// exiting element fullscreen. On Android it is a no-op under the enforced
+// edge-to-edge of Android 15+ and internally calls the deprecated
+// setSystemUiVisibility / setStatusBarColor APIs (which trip Google Play's
+// "deprecated APIs for edge-to-edge" check); MainActivity.insetWebViewFromSystemBars()
+// already handles the insets natively there, so we skip it on Android.
+// setStyle() uses the non-deprecated WindowInsetsControllerCompat and stays on
+// both platforms to keep the status-bar icons light on our dark bar.
async function setupStatusBar() {
try {
const { StatusBar, Style } = require('@capacitor/status-bar');
- await StatusBar.setOverlaysWebView({ overlay: false });
+ if (AppConfig.isCapacitoriOS) {
+ await StatusBar.setOverlaysWebView({ overlay: false });
+ }
await StatusBar.setStyle({ style: Style.Dark });
} catch (e) {
console.warn('StatusBar setup failed:', e);