Skip to content
This repository has been archived by the owner on Jan 31, 2024. It is now read-only.

Commit

Permalink
refactor onCreateViewHolder
Browse files Browse the repository at this point in the history
  • Loading branch information
jiabaow committed Jun 7, 2022
1 parent d6abae3 commit e9e9634
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ class SongListAdapterForEndGame constructor(
* Create a RecycleView layout with the Song view as an item
*/
override fun onCreateViewHolder(parent: ViewGroup, viewType: Int): SongListForEndGameViewHolder {
val view = AdapterHelper().createViewForViewHolder(parent, R.layout.song_item_download_layout)
val layout = R.layout.song_item_download_layout
val view = AdapterHelper().createViewForViewHolder(parent, layout)
return SongListForEndGameViewHolder(view)
}

Expand Down

0 comments on commit e9e9634

Please sign in to comment.