Skip to content
Snippets Groups Projects
Verified Commit d6c5fd6a authored by Janne Mareike Koschinski's avatar Janne Mareike Koschinski
Browse files

Fixes crash on rotation

parent 76d6d225
No related branches found
No related tags found
No related merge requests found
......@@ -17,9 +17,15 @@
with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<androidx.coordinatorlayout.widget.CoordinatorLayout xmlns:android="http://schemas.android.com/apk/res/android"
<LinearLayout 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:gravity="bottom"
android:orientation="vertical">
<androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:gravity="bottom">
......@@ -52,6 +58,13 @@
android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior">
<de.kuschku.quasseldroid.util.ui.view.WarningBarView
android:id="@+id/connection_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_disconnected"
app:mode="none" />
<fragment
android:id="@+id/fragment_messages"
android:name="de.kuschku.quasseldroid.ui.chat.messages.MessageListFragment"
......@@ -59,13 +72,6 @@
android:layout_height="match_parent"
tools:ignore="FragmentTagUsage"
tools:layout="@layout/chat_messages" />
<de.kuschku.quasseldroid.util.ui.view.WarningBarView
android:id="@+id/connection_status"
android:layout_width="match_parent"
android:layout_height="wrap_content"
app:icon="@drawable/ic_disconnected"
app:mode="none" />
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
......@@ -78,7 +84,9 @@
app:layout_behavior="@string/bottom_sheet_behavior"
tools:listitem="@layout/widget_nick" />
<include android:id="@+id/layout_toolbar" layout="@layout/layout_toolbar" />
<include
android:id="@+id/layout_toolbar"
layout="@layout/layout_toolbar" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<fragment
......@@ -89,7 +97,8 @@
app:behavior_hideable="false"
app:behavior_peekHeight="?actionBarSize"
app:layout_behavior="@string/drag_intercept_bottom_sheet_behavior"
tools:layout="@layout/chat_chatline"
tools:ignore="FragmentTagUsage" />
tools:ignore="FragmentTagUsage"
tools:layout="@layout/chat_chatline" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
</LinearLayout>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment