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,79 +17,88 @@ ...@@ -17,79 +17,88 @@
with this program. If not, see <http://www.gnu.org/licenses/>. 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:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools" xmlns:tools="http://schemas.android.com/tools"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
android:gravity="bottom"> android:gravity="bottom"
android:orientation="vertical">
<LinearLayout <androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:orientation="vertical" android:gravity="bottom">
app:layout_anchor="@id/fragment_chatline"
app:layout_anchorGravity="top">
<Space <LinearLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/shadow_height" /> android:layout_height="wrap_content"
android:orientation="vertical"
app:layout_anchor="@id/fragment_chatline"
app:layout_anchorGravity="top">
<de.kuschku.quasseldroid.util.ui.view.ShadowView <Space
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="@dimen/shadow_height" android:layout_height="@dimen/shadow_height" />
android:gravity="bottom" />
</LinearLayout>
<androidx.coordinatorlayout.widget.CoordinatorLayout <de.kuschku.quasseldroid.util.ui.view.ShadowView
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="@dimen/shadow_height"
android:layout_marginBottom="?actionBarSize" android:gravity="bottom" />
android:orientation="vertical"> </LinearLayout>
<FrameLayout <androidx.coordinatorlayout.widget.CoordinatorLayout
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
app:layout_behavior="@string/appbar_scrolling_view_behavior"> android:layout_marginBottom="?actionBarSize"
android:orientation="vertical">
<fragment <FrameLayout
android:id="@+id/fragment_messages"
android:name="de.kuschku.quasseldroid.ui.chat.messages.MessageListFragment"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="match_parent" android:layout_height="match_parent"
tools:ignore="FragmentTagUsage" app:layout_behavior="@string/appbar_scrolling_view_behavior">
tools:layout="@layout/chat_messages" />
<de.kuschku.quasseldroid.util.ui.view.WarningBarView
<de.kuschku.quasseldroid.util.ui.view.WarningBarView android:id="@+id/connection_status"
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"
android:layout_width="match_parent"
android:layout_height="match_parent"
tools:ignore="FragmentTagUsage"
tools:layout="@layout/chat_messages" />
</FrameLayout>
<androidx.recyclerview.widget.RecyclerView
android:id="@+id/autocomplete_list"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="wrap_content"
app:icon="@drawable/ic_disconnected" android:background="?colorBackgroundCard"
app:mode="none" /> app:behavior_hideable="true"
</FrameLayout> app:behavior_peekHeight="92dp"
app:layout_behavior="@string/bottom_sheet_behavior"
<androidx.recyclerview.widget.RecyclerView tools:listitem="@layout/widget_nick" />
android:id="@+id/autocomplete_list"
<include
android:id="@+id/layout_toolbar"
layout="@layout/layout_toolbar" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
<fragment
android:id="@+id/fragment_chatline"
android:name="de.kuschku.quasseldroid.ui.chat.input.ChatlineFragment"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:background="?colorBackgroundCard" app:behavior_hideable="false"
app:behavior_hideable="true" app:behavior_peekHeight="?actionBarSize"
app:behavior_peekHeight="92dp" app:layout_behavior="@string/drag_intercept_bottom_sheet_behavior"
app:layout_behavior="@string/bottom_sheet_behavior" tools:ignore="FragmentTagUsage"
tools:listitem="@layout/widget_nick" /> tools:layout="@layout/chat_chatline" />
<include android:id="@+id/layout_toolbar" layout="@layout/layout_toolbar" />
</androidx.coordinatorlayout.widget.CoordinatorLayout> </androidx.coordinatorlayout.widget.CoordinatorLayout>
</LinearLayout>
<fragment
android:id="@+id/fragment_chatline"
android:name="de.kuschku.quasseldroid.ui.chat.input.ChatlineFragment"
android:layout_width="match_parent"
android:layout_height="match_parent"
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" />
</androidx.coordinatorlayout.widget.CoordinatorLayout>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment