修改图片预览页面点击查看帖子异常

This commit is contained in:
jack
2021-06-16 11:00:28 +08:00
parent 178395f531
commit 103078d63e

View File

@ -162,6 +162,9 @@ class ImageContainerView : LinearLayout {
} else {
if (mAnswerEntity!!.getPassVideos().isNullOrEmpty()) binding.root.tag as Int else (binding.root.tag as Int) - 1
}
if (mAnswerEntity?.communityId.isNullOrEmpty()) {
mAnswerEntity?.communityId = mAnswerEntity?.bbs?.id
}
val intent = ImageViewerActivity.getIntent(context, mAnswerEntity!!.images as ArrayList<String>, position, binding.root,
if (mAnswerEntity?.type == "community_article") mAnswerEntity else null, mEntrance)
context.startActivity(intent)