This is main activity that the adapter is for
This is second activity where intent in main activity is directed to
override fun onBindViewHolder(holder: ViewHolder, position: Int) {
val restaurant = restaurants[position]
holder.bind(restaurant)
holder.itemView.setOnClickListener{
model = restaurants.get(position)
试图将模型^^^从适配器传递到活动,以在活动中编辑模型对象。我已经在此适配器中使用了一种意图,它可以启动不同的活动。我只想将模型发送到其他第三项活动。