Skip to content

Commit

Permalink
fix: comment scrolling freezing
Browse files Browse the repository at this point in the history
  • Loading branch information
rebelonion committed Mar 29, 2024
1 parent ca482ea commit e34a20b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ class CommentsFragment : Fragment() {
super.onViewCreated(view, savedInstanceState)
activity = requireActivity() as MediaDetailsActivity

binding.commentsList.setBaseline(activity.navBar, activity.binding.commentInputLayout)
binding.commentsListContainer.setBaseline(activity.navBar, activity.binding.commentInputLayout)

//get the media id from the intent
val mediaId = arguments?.getInt("mediaId") ?: -1
Expand Down
1 change: 1 addition & 0 deletions app/src/main/res/layout/fragment_comments.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@
tools:visibility="gone"/>

<FrameLayout
android:id="@+id/commentsListContainer"
android:layout_width="match_parent"
android:layout_height="wrap_content">

Expand Down

2 comments on commit e34a20b

@rebelonion
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it does tho :)

@rebelonion
Copy link
Owner Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

setting the padding on commentsListContainer seems to work correctly. it's just a container for the RecyclerView

Please sign in to comment.