Skip to content

Commit

Permalink
Opt out of edge-to-edge
Browse files Browse the repository at this point in the history
Edge-to-edge is the default behavior in Android 15. It however breaks
the app currently.
  • Loading branch information
TSonono committed Jan 25, 2025
1 parent 386f7a6 commit 790a29a
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions app/src/main/res/values-v35/themes.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="utf-8"?>
<resources>

<!-- TODO: Remove once activities handle insets. -->
<style name="BaseThemeLight" parent="@android:style/Theme.Holo.Light.NoActionBar">
<item name="appSelectableItemBackground">?android:attr/selectableItemBackground</item>
<item name="android:actionMenuTextColor">@android:color/white</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>

<style name="BaseThemeDark" parent="@android:style/Theme.Holo.NoActionBar">
<item name="appSelectableItemBackground">?android:attr/selectableItemBackground</item>
<item name="android:windowOptOutEdgeToEdgeEnforcement">true</item>
</style>
</resources>

0 comments on commit 790a29a

Please sign in to comment.