From 1b838b473c6bdd81aa1217e27b3de2d71eb7f5b9 Mon Sep 17 00:00:00 2001 From: jack <1484288157@qq.com> Date: Thu, 25 Nov 2021 15:00:30 +0800 Subject: [PATCH] =?UTF-8?q?1.=E4=BF=AE=E6=94=B9=E6=88=91=E7=9A=84=E6=B8=B8?= =?UTF-8?q?=E6=88=8F=E5=8D=95=E9=A1=B5=E9=9D=A2=E5=88=B7=E6=96=B0=E9=97=AE?= =?UTF-8?q?=E9=A2=98=202.=E5=85=B3=E9=97=AD=E6=B8=B8=E6=88=8F=E5=8D=95?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E9=A1=B5=E9=9D=A2=E6=97=B6=E6=B8=85=E7=A9=BA?= =?UTF-8?q?=E9=80=89=E6=8B=A9=E7=9A=84=E6=B8=B8=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gamecollection/mine/MyGameCollectionAdapter.kt | 1 + .../gamecollection/publish/GameCollectionEditActivity.kt | 5 +++++ 2 files changed, 6 insertions(+) diff --git a/app/src/main/java/com/gh/gamecenter/gamecollection/mine/MyGameCollectionAdapter.kt b/app/src/main/java/com/gh/gamecenter/gamecollection/mine/MyGameCollectionAdapter.kt index a2af9647f8..3eab62f0f9 100644 --- a/app/src/main/java/com/gh/gamecenter/gamecollection/mine/MyGameCollectionAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/gamecollection/mine/MyGameCollectionAdapter.kt @@ -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) { diff --git a/app/src/main/java/com/gh/gamecenter/gamecollection/publish/GameCollectionEditActivity.kt b/app/src/main/java/com/gh/gamecenter/gamecollection/publish/GameCollectionEditActivity.kt index 6dd1d5fa42..900f3ada7a 100644 --- a/app/src/main/java/com/gh/gamecenter/gamecollection/publish/GameCollectionEditActivity.kt +++ b/app/src/main/java/com/gh/gamecenter/gamecollection/publish/GameCollectionEditActivity.kt @@ -406,6 +406,11 @@ class GameCollectionEditActivity : ToolBarActivity() { } } + override fun onDestroy() { + super.onDestroy() + mChooseGamesViewModel.chooseGamesLiveData.postValue(arrayListOf()) + } + companion object {