Skip to content

Commit c05c9e7

Browse files
committed
Fix activity fit on newer devices with notch
1 parent e69868a commit c05c9e7

File tree

8 files changed

+9
-3
lines changed

8 files changed

+9
-3
lines changed

app/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ android {
1010
minSdkVersion 23
1111
multiDexEnabled true
1212
targetSdkVersion 36
13-
versionCode 129
14-
versionName "9.1.7"
13+
versionCode 130
14+
versionName "9.1.8"
1515
testInstrumentationRunner 'androidx.test.runner.AndroidJUnitRunner'
1616
}
1717
buildTypes {

app/src/main/res/layout/activity_crop_image_activity.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
xmlns:tools="http://schemas.android.com/tools"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
8+
android:fitsSystemWindows="true"
89
tools:context=".activity.MainActivity">
910

1011
<com.google.android.material.appbar.AppBarLayout

app/src/main/res/layout/activity_main.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
android:id="@+id/drawer_layout"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
android:fitsSystemWindows="false">
7+
android:fitsSystemWindows="true">
88

99
<LinearLayout
1010
android:layout_width="match_parent"

app/src/main/res/layout/activity_photo_editor.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true"
78
android:orientation="vertical"
89
tools:context=".activity.ImageEditor">
910

app/src/main/res/layout/activity_preview.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6+
android:fitsSystemWindows="true"
67
tools:context=".activity.PreviewActivity">
78

89
<androidx.viewpager.widget.ViewPager

app/src/main/res/layout/activity_preview_images.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:tools="http://schemas.android.com/tools"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6+
android:fitsSystemWindows="true"
67
android:orientation="vertical"
78
tools:context=".activity.PreviewActivity">
89

app/src/main/res/layout/activity_rearrange_images.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:layout_width="match_parent"
55
android:layout_height="match_parent"
6+
android:fitsSystemWindows="true"
67
android:orientation="vertical">
78

89
<com.google.android.material.appbar.AppBarLayout

app/src/main/res/layout/activity_welcome.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
xmlns:tools="http://schemas.android.com/tools"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true"
78
tools:context=".activity.WelcomeActivity">
89

910
<RelativeLayout

0 commit comments

Comments
 (0)