2
0
mirror of https://github.com/fork-maintainers/iceraven-browser synced 2024-11-19 09:25:34 +00:00

[fenix] Closes https://github.com/mozilla-mobile/fenix/issues/4462 - Adjust layout params of select bookmark folder view

This commit is contained in:
Emily Kager 2019-08-01 12:56:24 -07:00 committed by Jeff Boek
parent e958f9fca9
commit ee443ac8a8

View File

@ -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)
}