Skip to content

Commit 3d7bf51

Browse files
committed
Target API 35: set android:fitsSystemWindows="true" to Activities.
1 parent 9b0d22f commit 3d7bf51

18 files changed

+38
-21
lines changed

vector/src/main/res/layout/activity.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:id="@+id/coordinatorLayout"
55
android:layout_width="match_parent"
6-
android:layout_height="match_parent">
6+
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true">
78

89
<androidx.constraintlayout.widget.ConstraintLayout
910
android:layout_width="match_parent"
@@ -37,4 +38,4 @@
3738

3839
</androidx.constraintlayout.widget.ConstraintLayout>
3940

40-
</androidx.coordinatorlayout.widget.CoordinatorLayout>
41+
</androidx.coordinatorlayout.widget.CoordinatorLayout>

vector/src/main/res/layout/activity_bug_report.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="wrap_content"
7+
android:fitsSystemWindows="true"
78
android:orientation="vertical">
89

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

vector/src/main/res/layout/activity_call.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
<?xml version="1.0" encoding="utf-8"?>
2-
<!-- tools:ignore is needed because lint thinks this can be replaced with a merge. Replacing this
1+
<?xml version="1.0" encoding="utf-8"?><!-- tools:ignore is needed because lint thinks this can be replaced with a merge. Replacing this
32
with a merge causes the fullscreen SurfaceView not to be centered. -->
43
<androidx.constraintlayout.widget.ConstraintLayout xmlns:android="http://schemas.android.com/apk/res/android"
54
xmlns:app="http://schemas.android.com/apk/res-auto"
@@ -8,6 +7,7 @@
87
android:layout_width="match_parent"
98
android:layout_height="match_parent"
109
android:background="@color/bg_call_screen_blur"
10+
android:fitsSystemWindows="true"
1111
tools:ignore="MergeRootFrame">
1212

1313
<ImageView

vector/src/main/res/layout/activity_call_transfer.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:id="@+id/vector_coordinator_layout"
55
android:layout_width="match_parent"
6-
android:layout_height="match_parent">
6+
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true">
78

89
<androidx.constraintlayout.widget.ConstraintLayout
910
android:layout_width="match_parent"
@@ -17,9 +18,9 @@
1718

1819
<com.google.android.material.appbar.MaterialToolbar
1920
android:id="@+id/callTransferToolbar"
20-
app:title="@string/call_transfer_title"
2121
android:layout_width="match_parent"
22-
android:layout_height="wrap_content" />
22+
android:layout_height="wrap_content"
23+
app:title="@string/call_transfer_title" />
2324

2425
<com.google.android.material.tabs.TabLayout
2526
android:id="@+id/callTransferTabLayout"

vector/src/main/res/layout/activity_emoji_reaction_picker.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
android:id="@+id/coordinatorLayout"
66
android:layout_width="match_parent"
77
android:layout_height="match_parent"
8+
android:fitsSystemWindows="true"
89
tools:context=".features.reactions.EmojiReactionPickerActivity">
910

1011
<androidx.fragment.app.FragmentContainerView

vector/src/main/res/layout/activity_filtered_rooms.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@
33
xmlns:app="http://schemas.android.com/apk/res-auto"
44
android:id="@+id/coordinatorLayout"
55
android:layout_width="match_parent"
6-
android:layout_height="match_parent">
6+
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true">
78

89
<androidx.constraintlayout.widget.ConstraintLayout
910
android:layout_width="match_parent"

vector/src/main/res/layout/activity_home.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
android:id="@+id/drawerLayout"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7+
android:fitsSystemWindows="true"
78
tools:openDrawer="start">
89

910
<androidx.coordinatorlayout.widget.CoordinatorLayout

vector/src/main/res/layout/activity_jitsi.xml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
android:id="@+id/jitsi_layout"
55
android:layout_width="match_parent"
66
android:layout_height="match_parent"
7-
android:background="@android:color/black">
7+
android:background="@android:color/black"
8+
android:fitsSystemWindows="true">
89

910
<!-- Note: A org.jitsi.meet.sdk.JitsiMeetView will be added here and so add tools:ignore="UselessParent" -->
1011

@@ -24,4 +25,4 @@
2425

2526
</LinearLayout>
2627

27-
</FrameLayout>
28+
</FrameLayout>

vector/src/main/res/layout/activity_location_sharing.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
33
android:layout_width="match_parent"
44
android:layout_height="match_parent"
5+
android:fitsSystemWindows="true"
56
android:orientation="vertical">
67

78
<com.google.android.material.appbar.AppBarLayout
@@ -21,4 +22,4 @@
2122
android:layout_width="match_parent"
2223
android:layout_height="match_parent" />
2324

24-
</LinearLayout>
25+
</LinearLayout>

vector/src/main/res/layout/activity_login.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/coordinatorLayout"
66
android:layout_width="match_parent"
7-
android:layout_height="match_parent">
7+
android:layout_height="match_parent"
8+
android:fitsSystemWindows="true">
89

910
<androidx.constraintlayout.widget.ConstraintLayout
1011
android:id="@+id/loginContainer"
@@ -48,4 +49,4 @@
4849

4950
</androidx.constraintlayout.widget.ConstraintLayout>
5051

51-
</androidx.coordinatorlayout.widget.CoordinatorLayout>
52+
</androidx.coordinatorlayout.widget.CoordinatorLayout>

0 commit comments

Comments
 (0)