From 5bafb565a2bbb09110a79092cf6b6f2d0a80727d Mon Sep 17 00:00:00 2001 From: lyr <15622190878@163.com> Date: Thu, 2 Dec 2021 17:12:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=85=89=E7=8E=AF=E5=8A=A9=E6=89=8BV5?= =?UTF-8?q?.5.0=E3=80=91=E6=B8=B8=E6=88=8F=E5=8D=95-=E4=B8=AA=E4=BA=BA?= =?UTF-8?q?=E4=B8=BB=E9=A1=B5=EF=BC=881201=E6=B5=8B=E8=AF=95=EF=BC=9A5?= =?UTF-8?q?=EF=BC=89https://git.ghzs.com/pm/halo-app-issues/-/issues/1591#?= =?UTF-8?q?note=5F126169?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/gh/gamecenter/collection/GamesCollectionAdapter.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/com/gh/gamecenter/collection/GamesCollectionAdapter.kt b/app/src/main/java/com/gh/gamecenter/collection/GamesCollectionAdapter.kt index 920c5add37..bdd8f7ebb9 100644 --- a/app/src/main/java/com/gh/gamecenter/collection/GamesCollectionAdapter.kt +++ b/app/src/main/java/com/gh/gamecenter/collection/GamesCollectionAdapter.kt @@ -233,7 +233,11 @@ class GamesCollectionAdapter( } private fun showOptionPopupWindow(view: View, entity: GamesCollectionEntity) { - val contentList = arrayListOf("编辑", "投稿", "删除") + val contentList = if (entity.display == "self_only") { + arrayListOf("编辑", "投稿", "删除") + } else { + arrayListOf("编辑", "删除") + } val inflater = LayoutInflater.from(mContext) val layout = inflater.inflate(R.layout.layout_popup_container, null)