From aa4fa3b35058067d9272f0b8b1a49b7a17ac532c Mon Sep 17 00:00:00 2001
From: Janne Koschinski <janne@kuschku.de>
Date: Thu, 13 Dec 2018 08:59:02 +0100
Subject: [PATCH] Fixes #162

---
 app/src/main/res/layout-land/layout_main.xml         | 4 ++--
 app/src/main/res/layout-sw600dp-land/layout_main.xml | 4 ++--
 app/src/main/res/layout/layout_main.xml              | 3 ++-
 3 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/app/src/main/res/layout-land/layout_main.xml b/app/src/main/res/layout-land/layout_main.xml
index 72cdad6a6..a25bb7be2 100644
--- a/app/src/main/res/layout-land/layout_main.xml
+++ b/app/src/main/res/layout-land/layout_main.xml
@@ -34,14 +34,14 @@
 
     <FrameLayout
       android:layout_width="match_parent"
-      android:layout_height="match_parent">
+      android:layout_height="match_parent"
+      app:layout_behavior="@string/appbar_scrolling_view_behavior">
 
       <fragment
         android:id="@+id/fragment_messages"
         android:name="de.kuschku.quasseldroid.ui.chat.messages.MessageListFragment"
         android:layout_width="match_parent"
         android:layout_height="match_parent"
-        app:layout_behavior="@string/appbar_scrolling_view_behavior"
         tools:layout="@layout/fragment_messages" />
 
       <include layout="@layout/widget_connection_status" />
diff --git a/app/src/main/res/layout-sw600dp-land/layout_main.xml b/app/src/main/res/layout-sw600dp-land/layout_main.xml
index 61fe90495..cf5d0c86b 100644
--- a/app/src/main/res/layout-sw600dp-land/layout_main.xml
+++ b/app/src/main/res/layout-sw600dp-land/layout_main.xml
@@ -40,14 +40,14 @@
 
       <FrameLayout
         android:layout_width="match_parent"
-        android:layout_height="match_parent">
+        android:layout_height="match_parent"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
 
         <fragment
           android:id="@+id/fragment_messages"
           android:name="de.kuschku.quasseldroid.ui.chat.messages.MessageListFragment"
           android:layout_width="match_parent"
           android:layout_height="match_parent"
-          app:layout_behavior="@string/appbar_scrolling_view_behavior"
           tools:layout="@layout/fragment_messages" />
 
         <include layout="@layout/widget_connection_status" />
diff --git a/app/src/main/res/layout/layout_main.xml b/app/src/main/res/layout/layout_main.xml
index 3149aea6d..9f37466ae 100644
--- a/app/src/main/res/layout/layout_main.xml
+++ b/app/src/main/res/layout/layout_main.xml
@@ -40,7 +40,8 @@
 
       <FrameLayout
         android:layout_width="match_parent"
-        android:layout_height="match_parent">
+        android:layout_height="match_parent"
+        app:layout_behavior="@string/appbar_scrolling_view_behavior">
 
         <fragment
           android:id="@+id/fragment_messages"
-- 
GitLab