We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
如题
The text was updated successfully, but these errors were encountered:
如下
class ConvAdapter : MultiTypeAdapter() { private val asyncListDiffer: AsyncListDiffer = AsyncListDiffer(this, object : DiffUtil.ItemCallback() { override fun areItemsTheSame(oldItem: Any, newItem: Any): Boolean { if (oldItem is ConvBean && newItem is ConvBean) return oldItem.peerUser.uid == newItem.peerUser.uid return false }
override fun areContentsTheSame(oldItem: Any, newItem: Any): Boolean { return if (oldItem is ConvBean && newItem is ConvBean) oldItem == newItem else if (oldItem::class == newItem::class) true else false } }) fun submitList(list: List<Any>) { items = list asyncListDiffer.submitList(list) }
}
Sorry, something went wrong.
No branches or pull requests
如题
The text was updated successfully, but these errors were encountered: