aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ui/src/main/res/layout
diff options
context:
space:
mode:
authorHarsh Shandilya <me@msfjarvis.dev>2020-05-29 12:25:52 +0530
committerHarsh Shandilya <me@msfjarvis.dev>2020-05-29 12:25:52 +0530
commit4dff537d21b868da40ac190b4ae196e814d9439d (patch)
treed19c21bd24f88e6e88820446d3b3ab36955777ea /ui/src/main/res/layout
parentbuild: bump to AGP 4.0.0 (diff)
downloadwireguard-android-4dff537d21b868da40ac190b4ae196e814d9439d.tar.xz
wireguard-android-4dff537d21b868da40ac190b4ae196e814d9439d.zip
ui: address new databinding requirements
Layouts in differing configurations must agree on their root tags, so we give both copies of main_activity the same root ID, and adjust the check for two-pane layout to simply test for nullability. This also changes the inset dispatch code to use ViewCompat and WindowInsetsCompat since they will adjust insets based on the SDK level allowing us to abstract away that concern. Signed-off-by: Harsh Shandilya <me@msfjarvis.dev>
Diffstat (limited to 'ui/src/main/res/layout')
-rw-r--r--ui/src/main/res/layout/main_activity.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/ui/src/main/res/layout/main_activity.xml b/ui/src/main/res/layout/main_activity.xml
index 89be4fe4..a970d8e2 100644
--- a/ui/src/main/res/layout/main_activity.xml
+++ b/ui/src/main/res/layout/main_activity.xml
@@ -1,7 +1,7 @@
<?xml version="1.0" encoding="utf-8"?>
<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:id="@+id/main_activity_container"
android:layout_width="match_parent"
android:layout_height="match_parent"
android:fitsSystemWindows="true"