修改提交游戏单后我的游戏单页面没有刷新数据

This commit is contained in:
jack
2021-12-17 17:53:23 +08:00
parent 7f586a042b
commit fa5207855e
3 changed files with 10 additions and 1 deletions

View File

@ -49,4 +49,12 @@ class GamesCollectionEntity(
else -> -1
}
}
fun getTagIds(): String {
val sb = StringBuffer()
tags?.forEach {
sb.append(it.id)
}
return sb.toString()
}
}

View File

@ -48,6 +48,8 @@ class MyGameCollectionAdapter(
&& oldItem?.cover == newItem?.cover
&& oldItem?.display == newItem?.display
&& oldItem?.status == newItem?.status
&& oldItem?.count?.game == newItem?.count?.game
&& oldItem?.getTagIds() == newItem?.getTagIds()
}
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {

View File

@ -1,6 +1,5 @@
package com.gh.gamecenter.gamecollection.mine
import android.content.Intent
import android.os.Bundle
import android.view.MenuItem
import android.view.View