Fix reaction details bottom sheet scrolling.

This commit is contained in:
Alex Hart 2020-02-20 12:04:48 -04:00 committed by Greyson Parrelli
parent 8c23b17517
commit 739e38a047
2 changed files with 6 additions and 3 deletions

View File

@ -67,6 +67,7 @@ public final class ReactionsBottomSheetDialogFragment extends BottomSheetDialogF
recipientRecyclerView = view.findViewById(R.id.reactions_bottom_view_recipient_recycler); recipientRecyclerView = view.findViewById(R.id.reactions_bottom_view_recipient_recycler);
emojiRecyclerView = view.findViewById(R.id.reactions_bottom_view_emoji_recycler); emojiRecyclerView = view.findViewById(R.id.reactions_bottom_view_emoji_recycler);
emojiRecyclerView.setNestedScrollingEnabled(false);
messageId = getArguments().getLong(ARGS_MESSAGE_ID); messageId = getArguments().getLong(ARGS_MESSAGE_ID);
setUpRecipientsRecyclerView(); setUpRecipientsRecyclerView();

View File

@ -2,9 +2,10 @@
<LinearLayout 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:minHeight="340dp" android:id="@+id/reactions_bottom_view_parent"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="match_parent"
android:minHeight="340dp"
android:orientation="vertical"> android:orientation="vertical">
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
@ -20,8 +21,9 @@
<androidx.recyclerview.widget.RecyclerView <androidx.recyclerview.widget.RecyclerView
android:id="@+id/reactions_bottom_view_recipient_recycler" android:id="@+id/reactions_bottom_view_recipient_recycler"
android:layout_width="match_parent" android:layout_width="match_parent"
android:layout_height="wrap_content" android:layout_height="0dp"
android:layout_marginTop="4dp" android:layout_marginTop="4dp"
android:layout_weight="1"
android:orientation="vertical" android:orientation="vertical"
app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager" app:layoutManager="androidx.recyclerview.widget.LinearLayoutManager"
tools:listitem="@layout/reactions_bottom_sheet_dialog_fragment_recipient_item" /> tools:listitem="@layout/reactions_bottom_sheet_dialog_fragment_recipient_item" />