From ee443ac8a8ac986b8d274d90104975d3c75f3b32 Mon Sep 17 00:00:00 2001 From: Emily Kager Date: Thu, 1 Aug 2019 12:56:24 -0700 Subject: [PATCH] [fenix] Closes https://github.com/mozilla-mobile/fenix/issues/4462 - Adjust layout params of select bookmark folder view --- .../bookmarks/selectfolder/SelectBookmarkFolderAdapter.kt | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/org/mozilla/fenix/library/bookmarks/selectfolder/SelectBookmarkFolderAdapter.kt b/app/src/main/java/org/mozilla/fenix/library/bookmarks/selectfolder/SelectBookmarkFolderAdapter.kt index 1b0bbf1302..21d9bb5329 100644 --- a/app/src/main/java/org/mozilla/fenix/library/bookmarks/selectfolder/SelectBookmarkFolderAdapter.kt +++ b/app/src/main/java/org/mozilla/fenix/library/bookmarks/selectfolder/SelectBookmarkFolderAdapter.kt @@ -26,7 +26,12 @@ class SelectBookmarkFolderAdapter(private val sharedViewModel: BookmarksSharedVi } override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): BookmarkFolderViewHolder { - val view = LibrarySiteItemView(parent.context) + val view = LibrarySiteItemView(parent.context).apply { + layoutParams = ViewGroup.LayoutParams( + ViewGroup.LayoutParams.MATCH_PARENT, + ViewGroup.LayoutParams.WRAP_CONTENT + ) + } return BookmarkFolderViewHolder(view) }