From b510d714b5e9a74372663059c994677041c8aaa8 Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Sat, 30 Sep 2017 01:18:28 +0200
Subject: [PATCH] Add tools context to activities

---
 app/src/main/res/layout/activity_main.xml    | 4 +---
 app/src/main/res/layout/content_chatlist.xml | 4 +++-
 app/src/main/res/layout/content_main.xml     | 4 +++-
 app/src/main/res/layout/content_nicklist.xml | 4 +++-
 4 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/app/src/main/res/layout/activity_main.xml b/app/src/main/res/layout/activity_main.xml
index c5aac8000..75511f596 100644
--- a/app/src/main/res/layout/activity_main.xml
+++ b/app/src/main/res/layout/activity_main.xml
@@ -1,11 +1,9 @@
 <android.support.v4.widget.DrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
-  xmlns:tools="http://schemas.android.com/tools"
   android:id="@+id/drawer_layout"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
-  android:fitsSystemWindows="true"
-  tools:openDrawer="start">
+  android:fitsSystemWindows="true">
 
   <LinearLayout xmlns:android="http://schemas.android.com/apk/res/android"
     xmlns:app="http://schemas.android.com/apk/res-auto"
diff --git a/app/src/main/res/layout/content_chatlist.xml b/app/src/main/res/layout/content_chatlist.xml
index 76715e8e3..7c7cba9cb 100644
--- a/app/src/main/res/layout/content_chatlist.xml
+++ b/app/src/main/res/layout/content_chatlist.xml
@@ -1,11 +1,13 @@
 <de.kuschku.quasseldroid_ng.util.ui.NavigationDrawerLayout xmlns:android="http://schemas.android.com/apk/res/android"
   xmlns:app="http://schemas.android.com/apk/res-auto"
+  xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:layout_gravity="start"
   android:background="?android:attr/windowBackground"
   android:fitsSystemWindows="true"
-  app:insetForeground="?attr/colorPrimaryDark">
+  app:insetForeground="?attr/colorPrimaryDark"
+  tools:showIn="@layout/activity_main">
 
   <LinearLayout
     android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/content_main.xml b/app/src/main/res/layout/content_main.xml
index 8151d2669..18b4eb99c 100644
--- a/app/src/main/res/layout/content_main.xml
+++ b/app/src/main/res/layout/content_main.xml
@@ -1,6 +1,8 @@
 <ScrollView xmlns:android="http://schemas.android.com/apk/res/android"
+  xmlns:tools="http://schemas.android.com/tools"
   android:layout_width="match_parent"
-  android:layout_height="match_parent">
+  android:layout_height="match_parent"
+  tools:showIn="@layout/activity_main">
 
   <LinearLayout
     android:layout_width="match_parent"
diff --git a/app/src/main/res/layout/content_nicklist.xml b/app/src/main/res/layout/content_nicklist.xml
index d056659f0..78c1b3ab1 100644
--- a/app/src/main/res/layout/content_nicklist.xml
+++ b/app/src/main/res/layout/content_nicklist.xml
@@ -1,8 +1,10 @@
 <de.kuschku.quasseldroid_ng.util.ui.DrawerRecyclerView xmlns:android="http://schemas.android.com/apk/res/android"
+  xmlns:tools="http://schemas.android.com/tools"
   android:id="@+id/nickList"
   android:layout_width="match_parent"
   android:layout_height="match_parent"
   android:layout_gravity="end"
   android:background="?android:attr/windowBackground"
   android:clipToPadding="false"
-  android:fitsSystemWindows="true" />
+  android:fitsSystemWindows="true"
+  tools:showIn="@layout/activity_main" />
-- 
GitLab