aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/app/src/main/res
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-03-09 10:50:36 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-03-09 10:50:36 +0530
commit3c2fa15dc207fc6f5fcbc78c3077457424fe6322 (patch)
tree91b3355c776d23375924e66b7a7a4a3760787fad /app/src/main/res
parentMainActivity: Dispatch insets to all fragments (diff)
downloadwireguard-android-3c2fa15dc207fc6f5fcbc78c3077457424fe6322.tar.xz
wireguard-android-3c2fa15dc207fc6f5fcbc78c3077457424fe6322.zip
Fix tablet mode crashes and UI inconsistencies
Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'app/src/main/res')
-rw-r--r--app/src/main/res/layout-sw600dp/main_activity.xml42
1 files changed, 24 insertions, 18 deletions
diff --git a/app/src/main/res/layout-sw600dp/main_activity.xml b/app/src/main/res/layout-sw600dp/main_activity.xml
index bb3e56d7..5104df93 100644
--- a/app/src/main/res/layout-sw600dp/main_activity.xml
+++ b/app/src/main/res/layout-sw600dp/main_activity.xml
@@ -1,25 +1,31 @@
<?xml version="1.0" encoding="utf-8"?>
-<LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
+<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:tools="http://schemas.android.com/tools"
- android:id="@+id/master_detail_wrapper"
android:layout_width="match_parent"
android:layout_height="match_parent"
- android:baselineAligned="false"
- android:divider="?attr/dividerHorizontal"
- android:orientation="horizontal"
- android:showDividers="middle"
tools:context=".activity.MainActivity">
-
- <androidx.fragment.app.FragmentContainerView
- android:name="com.wireguard.android.fragment.TunnelListFragment"
- android:layout_width="0dp"
+ <LinearLayout
+ android:id="@+id/master_detail_wrapper"
+ android:layout_width="match_parent"
android:layout_height="match_parent"
- android:layout_weight="2"
- android:tag="LIST" />
+ android:baselineAligned="false"
+ android:divider="?attr/dividerHorizontal"
+ android:orientation="horizontal"
+ android:showDividers="middle">
- <androidx.fragment.app.FragmentContainerView
- android:id="@+id/detail_container"
- android:layout_width="0dp"
- android:layout_height="match_parent"
- android:layout_weight="3" />
-</LinearLayout>
+ <androidx.fragment.app.FragmentContainerView
+ android:id="@+id/list_fragment"
+ android:name="com.wireguard.android.fragment.TunnelListFragment"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="2"
+ android:tag="LIST" />
+
+ <androidx.fragment.app.FragmentContainerView
+ android:id="@+id/detail_container"
+ android:layout_width="0dp"
+ android:layout_height="match_parent"
+ android:layout_weight="3" />
+ </LinearLayout>
+
+</androidx.coordinatorlayout.widget.CoordinatorLayout>