Skip to content

Commit

Permalink
For mozilla-mobile#6791 - Inflate SavedLoginsListItemViewHolder layou…
Browse files Browse the repository at this point in the history
…t explicitly
  • Loading branch information
ekager committed Dec 2, 2019
1 parent 22879b5 commit adc2fcc
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ class SavedLoginsAdapter(
private val interactor: SavedLoginsInteractor
) : ListAdapter<SavedLoginsItem, SavedLoginsListItemViewHolder>(DiffCallback) {

override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SavedLoginsListItemViewHolder {
val view = LayoutInflater.from(parent.context).inflate(viewType, parent, false)
override fun onCreateViewHolder(
parent: ViewGroup,
viewType: Int
): SavedLoginsListItemViewHolder {
val view = LayoutInflater.from(parent.context)
.inflate(SavedLoginsListItemViewHolder.LAYOUT_ID, parent, false)
return SavedLoginsListItemViewHolder(view, interactor)
}

Expand Down

0 comments on commit adc2fcc

Please sign in to comment.