diff options
| author | Adam Soltys <[email protected]> | 2026-09-06 21:10:39 -0700 |
|---|---|---|
| committer | Adam Soltys <[email protected]> | 2026-09-06 21:10:39 -0700 |
| commit | 050c944036c32200618f78f1924c81b8c881bb91 (patch) | |
| tree | 4c62fe25aa5ef4e89d8b57fd89c2e5d61f389378 /android | |
| parent | 3d9faca20b7375e949546ac6b701307d4f7795ac (diff) | |
| download | coinosv3-050c944036c32200618f78f1924c81b8c881bb91.tar.gz coinosv3-050c944036c32200618f78f1924c81b8c881bb91.zip | |
Android APK: fix the white status bar (TWA had no system-bar color set).
androidbrowserhelper defaults the TWA status/navigation bars to white when no color is declared — the PWA doesn't hit this because it uses the manifest theme_color. Added STATUS_BAR_COLOR / NAVIGATION_BAR_COLOR meta-data (light + dark variants) pointing at new color resources set to the PWA's theme_color #15171a, so the top bar matches the dark app chrome. Bumped to versionCode 6 / versionName 1.5 and rebuilt static/coinos.apk (meta-data verified present via aapt).
Co-Authored-By: Claude Opus 4.8 <[email protected]>
Claude-Session: https://claude.ai/code/session_01MGzU12QrAA4G6BYGzGVdXz
Diffstat (limited to 'android')
| -rw-r--r-- | android/app/build.gradle | 4 | ||||
| -rw-r--r-- | android/app/src/main/AndroidManifest.xml | 15 | ||||
| -rw-r--r-- | android/app/src/main/res/values/colors.xml | 4 |
3 files changed, 21 insertions, 2 deletions
diff --git a/android/app/build.gradle b/android/app/build.gradle index 2088144..2a9bfc8 100644 --- a/android/app/build.gradle +++ b/android/app/build.gradle @@ -11,8 +11,8 @@ android { applicationId 'io.coinos.app' minSdk 24 targetSdk 35 - versionCode 5 - versionName '1.4' + versionCode 6 + versionName '1.5' } signingConfigs { release { diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml index 4eb96a7..e2f4e16 100644 --- a/android/app/src/main/AndroidManifest.xml +++ b/android/app/src/main/AndroidManifest.xml @@ -21,6 +21,21 @@ <meta-data android:name="android.support.customtabs.trusted.DEFAULT_URL" android:value="https://v3.coinos.io/" /> + <!-- System-bar colors: without these the TWA status bar defaults to + white. Match the PWA's dark theme_color (#15171a). Light + dark + variants both dark so it's consistent whatever the system theme. --> + <meta-data + android:name="android.support.customtabs.trusted.STATUS_BAR_COLOR" + android:resource="@color/statusBarColor" /> + <meta-data + android:name="android.support.customtabs.trusted.STATUS_BAR_COLOR_DARK" + android:resource="@color/statusBarColor" /> + <meta-data + android:name="android.support.customtabs.trusted.NAVIGATION_BAR_COLOR" + android:resource="@color/navigationBarColor" /> + <meta-data + android:name="android.support.customtabs.trusted.NAVIGATION_BAR_COLOR_DARK" + android:resource="@color/navigationBarColor" /> <intent-filter> <action android:name="android.intent.action.MAIN" /> <category android:name="android.intent.category.LAUNCHER" /> diff --git a/android/app/src/main/res/values/colors.xml b/android/app/src/main/res/values/colors.xml index 99cea76..42e2db8 100644 --- a/android/app/src/main/res/values/colors.xml +++ b/android/app/src/main/res/values/colors.xml @@ -1,4 +1,8 @@ <?xml version="1.0" encoding="utf-8"?> <resources> <color name="ic_launcher_background">#FFFFFF</color> + <!-- TWA system-bar colors: match the PWA's theme_color (#15171a) so the + status bar isn't the androidbrowserhelper default white. --> + <color name="statusBarColor">#15171A</color> + <color name="navigationBarColor">#15171A</color> </resources> |
