From 4dff537d21b868da40ac190b4ae196e814d9439d Mon Sep 17 00:00:00 2001 From: Harsh Shandilya Date: Fri, 29 May 2020 12:25:52 +0530 Subject: 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 --- ui/src/main/res/layout-sw600dp/main_activity.xml | 1 + 1 file changed, 1 insertion(+) (limited to 'ui/src/main/res/layout-sw600dp') diff --git a/ui/src/main/res/layout-sw600dp/main_activity.xml b/ui/src/main/res/layout-sw600dp/main_activity.xml index 00fa1c49..b5ce34a4 100644 --- a/ui/src/main/res/layout-sw600dp/main_activity.xml +++ b/ui/src/main/res/layout-sw600dp/main_activity.xml @@ -1,6 +1,7 @@ -- cgit v1.2.3