Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
26 changes: 26 additions & 0 deletions app/src/main/res/values-v35/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
Stopgap only. Raising targetSdk to 35 (commit a804357) made Android 15
force edge-to-edge, so the WebView is drawn underneath the status bar and
the system bar swallows touches in that band: Facebook's own header back
arrow and search icon stay visible but become untappable.

This attribute restores the pre-API-35 behaviour of giving the system bars
their own space. It is DEPRECATED and is only honoured up to targetSdk 35 -
it will be ignored in a future release, so this is not a long-term fix.

It lives in values-v35/ because it requires API 35 and minSdk is 26. On
API 26-34 edge-to-edge was never forced and the base theme is already
correct, so those versions keep the plain Theme.SlimBook.

TODO: replace with real inset handling (fitsSystemWindows on the root
FrameLayout, or ViewCompat.setOnApplyWindowInsetsListener applying
systemBars() insets), keeping statsBadge and messengerButton inside the
inset-safe area so they do not end up under the status bar instead.
Tracked in issue #20.
-->
<style name="Theme.SlimBook" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
</resources>
4 changes: 4 additions & 0 deletions app/src/main/res/values/themes.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>
<!--
NOTE: android:windowOptOutEdgeToEdgeEnforcement lives in values-v35/,
because it requires API 35 while minSdk is 26. See the comment there.
-->
<style name="Theme.SlimBook" parent="Theme.AppCompat.Light.NoActionBar">
<item name="android:windowFullscreen">false</item>
<item name="android:statusBarColor">@android:color/transparent</item>
Expand Down
Loading