Merge remote-tracking branch 'origin/feature-games_collection' into feature-games_collection

This commit is contained in:
lyr
2021-11-25 15:02:45 +08:00
2 changed files with 6 additions and 0 deletions

View File

@ -47,6 +47,7 @@ class MyGameCollectionAdapter(
&& oldItem?.intro == newItem?.intro
&& oldItem?.cover == newItem?.cover
&& oldItem?.display == newItem?.display
&& oldItem?.status == newItem?.status
}
override fun onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int) {

View File

@ -406,6 +406,11 @@ class GameCollectionEditActivity : ToolBarActivity() {
}
}
override fun onDestroy() {
super.onDestroy()
mChooseGamesViewModel.chooseGamesLiveData.postValue(arrayListOf())
}
companion object {