From adbb379625c324e96bc3a953a35687a8df601092 Mon Sep 17 00:00:00 2001 From: Mark Retallack Date: Thu, 15 Oct 2026 21:43:23 +0100 Subject: [PATCH 1/2] fix: restore system bar insets so FB header is tappable Raising targetSdk to 35 (a804357) made Android 15 force edge-to-edge, so the WebView was drawn underneath the status bar and the system bar swallowed touches in that band. Facebook's own header back arrow and search icon stayed visible but became untappable. Opt out of edge-to-edge enforcement to restore the pre-API-35 behaviour of giving the system bars their own space. This attribute is deprecated and is only honoured up to targetSdk 35, so it is a stopgap: the real fix is explicit inset handling (fitsSystemWindows on the root FrameLayout, or ViewCompat.setOnApplyWindowInsetsListener applying systemBars() insets) with statsBadge and messengerButton kept inside the inset-safe area. Verified on device (moto g52): back arrow and search icon are tappable again. --- app/src/main/res/values/themes.xml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index 79fc9f3..f8bdd0c 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -4,5 +4,22 @@ false @android:color/transparent @android:color/transparent + + true From 9d53c2d102d899e3593e38e03684b5ff7dce531e Mon Sep 17 00:00:00 2001 From: Mark Retallack Date: Thu, 15 Oct 2026 21:50:10 +0100 Subject: [PATCH 2/2] fix: move windowOptOutEdgeToEdgeEnforcement to values-v35 Lint failed with NewApi: the attribute requires API level 35 while minSdk is 26. Move it into values-v35/ so it only applies where edge-to-edge enforcement exists; API 26-34 never forced edge-to-edge and keep the base theme unchanged. Fixes the lint error introduced by the previous commit. --- app/src/main/res/values-v35/themes.xml | 26 ++++++++++++++++++++++++++ app/src/main/res/values/themes.xml | 21 ++++----------------- 2 files changed, 30 insertions(+), 17 deletions(-) create mode 100644 app/src/main/res/values-v35/themes.xml diff --git a/app/src/main/res/values-v35/themes.xml b/app/src/main/res/values-v35/themes.xml new file mode 100644 index 0000000..3aff9a3 --- /dev/null +++ b/app/src/main/res/values-v35/themes.xml @@ -0,0 +1,26 @@ + + + + + diff --git a/app/src/main/res/values/themes.xml b/app/src/main/res/values/themes.xml index f8bdd0c..b4ce018 100644 --- a/app/src/main/res/values/themes.xml +++ b/app/src/main/res/values/themes.xml @@ -1,25 +1,12 @@ +