Skip to content

Commit 55efc71

Browse files
committed
Fix layout for screens where it's merged with status bar
Should fix #1400
1 parent d13af7e commit 55efc71

File tree

6 files changed

+12
-6
lines changed

6 files changed

+12
-6
lines changed

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:layout_width="fill_parent"
66
android:layout_height="fill_parent"
77
android:orientation="vertical"
8-
tools:context="dev.ukanth.ufirewall.activity.CustomRulesActivity">
8+
tools:context="dev.ukanth.ufirewall.activity.CustomRulesActivity"
9+
android:fitsSystemWindows="true">
910

1011
<androidx.appcompat.widget.Toolbar
1112
android:id="@+id/custom_toolbar_rules"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@
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:orientation="vertical">
5+
android:orientation="vertical"
6+
android:fitsSystemWindows="true">
67

78
<androidx.appcompat.widget.Toolbar
89
android:layout_width="match_parent"

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

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

78
<androidx.appcompat.widget.Toolbar
89
android:id="@+id/custom_toolbar"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@
44
android:layout_width="fill_parent"
55
android:layout_height="fill_parent"
66
android:duplicateParentState="false"
7-
android:orientation="vertical">
7+
android:orientation="vertical"
8+
android:fitsSystemWindows="true">
89

910
<androidx.appcompat.widget.Toolbar
1011
android:id="@+id/help_toolbar"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
android:layout_height="fill_parent"
66
android:duplicateParentState="false"
77
android:background="?attr/itemBackground"
8-
android:orientation="vertical">
8+
android:orientation="vertical"
9+
android:fitsSystemWindows="true">
910

1011
<androidx.appcompat.widget.Toolbar
1112
android:id="@+id/rule_toolbar"

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

+2-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
xmlns:android="http://schemas.android.com/apk/res/android"
66
android:orientation="vertical"
77
android:background="?attr/itemBackground"
8-
android:duplicateParentState="false">
8+
android:duplicateParentState="false"
9+
android:fitsSystemWindows="true">
910

1011
<androidx.appcompat.widget.Toolbar
1112
android:id="@+id/rule_toolbar"

0 commit comments

Comments
 (0)