Skip to content

Commit 6b3169b

Browse files
fix: content behind system bars in Android 15. fix menu background colors
1 parent 365e0c2 commit 6b3169b

File tree

7 files changed

+20
-6
lines changed

7 files changed

+20
-6
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<shape xmlns:android="http://schemas.android.com/apk/res/android">
3+
<solid android:color="?colorSurface" />
4+
<corners android:radius="@dimen/small_components_corner_size" />
5+
<padding
6+
android:bottom="@dimen/medium_components_corner_size"
7+
android:top="@dimen/medium_components_corner_size" />
8+
</shape>

library/src/main/res/layout/activity_fragments.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:id="@+id/activity_root_view"
66
android:layout_width="match_parent"
7-
android:layout_height="match_parent">
7+
android:layout_height="match_parent"
8+
android:fitsSystemWindows="true">
89

910
<com.google.android.material.appbar.AppBarLayout
1011
android:layout_width="match_parent"
@@ -30,4 +31,4 @@
3031
android:layout_height="match_parent"
3132
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
3233

33-
</androidx.coordinatorlayout.widget.CoordinatorLayout>
34+
</androidx.coordinatorlayout.widget.CoordinatorLayout>

library/src/main/res/layout/activity_fragments_bottom_navigation.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
android:layout_width="match_parent"
1111
android:layout_height="wrap_content"
1212
android:clipChildren="false"
13+
android:fitsSystemWindows="true"
1314
android:transitionName="appbar"
1415
tools:ignore="UnusedAttribute">
1516

library/src/main/res/layout/activity_muzei_settings.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:id="@+id/main"
66
android:layout_width="match_parent"
7-
android:layout_height="match_parent">
7+
android:layout_height="match_parent"
8+
android:fitsSystemWindows="true">
89

910
<com.google.android.material.appbar.AppBarLayout
1011
android:id="@+id/appbar"
@@ -106,4 +107,4 @@
106107

107108
</androidx.core.widget.NestedScrollView>
108109

109-
</androidx.coordinatorlayout.widget.CoordinatorLayout>
110+
</androidx.coordinatorlayout.widget.CoordinatorLayout>

library/src/main/res/layout/activity_recyclerview.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:id="@+id/activity_root_view"
66
android:layout_width="match_parent"
7-
android:layout_height="match_parent">
7+
android:layout_height="match_parent"
8+
android:fitsSystemWindows="true">
89

910
<com.google.android.material.appbar.AppBarLayout
1011
android:layout_width="match_parent"
@@ -30,4 +31,4 @@
3031
android:layout_height="match_parent"
3132
app:layout_behavior="@string/appbar_scrolling_view_behavior" />
3233

33-
</androidx.coordinatorlayout.widget.CoordinatorLayout>
34+
</androidx.coordinatorlayout.widget.CoordinatorLayout>

library/src/main/res/values/m3_styles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@
5050
<item name="android:forceDarkAllowed">true</item>
5151

5252
<item name="preferenceTheme">@style/Widget.Frames.PreferenceThemeOverlay.MaterialYou</item>
53+
<item name="popupMenuBackground">@drawable/menu_background</item>
5354
</style>
5455

5556
<style name="Frames.SplashScreen.Amoled.MaterialYou" parent="Frames.SplashScreen.MaterialYou" />

library/src/main/res/values/styles.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@
4242

4343
<item name="android:windowLayoutInDisplayCutoutMode">shortEdges</item>
4444
<item name="android:forceDarkAllowed">true</item>
45+
<item name="popupMenuBackground">@drawable/menu_background</item>
4546
</style>
4647

4748
<style name="Frames.SplashScreen.Amoled" parent="Frames.SplashScreen" />

0 commit comments

Comments
 (0)