diff options
Diffstat (limited to 'android/app/src')
| -rw-r--r-- | android/app/src/twa/AndroidManifest.xml | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/android/app/src/twa/AndroidManifest.xml b/android/app/src/twa/AndroidManifest.xml index 5e840ef..0a6c3bb 100644 --- a/android/app/src/twa/AndroidManifest.xml +++ b/android/app/src/twa/AndroidManifest.xml @@ -20,6 +20,16 @@ white. Light follows the page background, dark the PWA's theme_color, so the bar icons keep their contrast either way. The navigation bar is left to the browser (LauncherActivity). --> + <!-- Sticky immersive: the status and navigation bars are hidden, and a + swipe in from an edge shows them for a moment. The page then never + needs the browser's own full screen — whose "To exit full screen, + drag from the top…" notice Chrome shows every time a page enters + it, and a page can't turn off — to fill the screen with a clip. + (A Custom Tab's window is the browser's: the page can't switch + this on and off itself, so it's the whole app.) --> + <meta-data + android:name="android.support.customtabs.trusted.DISPLAY_MODE" + android:value="sticky-immersive" /> <meta-data android:name="android.support.customtabs.trusted.STATUS_BAR_COLOR" android:resource="@color/statusBarColor" /> |
