fix: 【光环助手V5.11.0】同步正式相关问题汇总(0706反馈) https://git.shanqu.cc/pm/halo/halo-app-issues/-/issues/1958

This commit is contained in:
张玉久
2022-07-06 13:52:30 +08:00
parent 425fcf0554
commit db1da76ff6
2 changed files with 6 additions and 14 deletions

View File

@ -40,7 +40,8 @@ class VideoDescTopViewHolder(
binding.concernBtn.run {
goneIf(entity.user.id == UserManager.getInstance().userId)
text = if (entity.me.isFollower) "已关注" else "关注"
background = if (entity.me.isFollower) R.drawable.bg_shape_f5_radius_999.toDrawable() else R.drawable.button_round_primary_light.toDrawable()
background =
if (entity.me.isFollower) R.drawable.bg_shape_f5_radius_999.toDrawable() else R.drawable.button_round_primary_light.toDrawable()
setTextColor(if (entity.me.isFollower) R.color.text_subtitleDesc.toColor() else R.color.theme_font.toColor())
}
binding.titleTv.text = entity.title
@ -215,11 +216,7 @@ class VideoDescTopViewHolder(
private fun share(entity: ForumVideoEntity) {
val shareIcon = entity.poster
val shareUrl = if (isPublishEnv()) {
"https://m.ghzs666.com/video/${entity.id}"
} else {
"https://resource.ghzs.com/page/video_play/video/video.html?video=${entity.id}"
}
val shareUrl = binding.root.context.getString(R.string.share_community_video_url, entity.shortId)
ShareUtils.getInstance(binding.root.context)
.showShareWindowsCallback(binding.root.context as Activity,
(binding.root.context as Activity).window.decorView,
@ -229,9 +226,8 @@ class VideoDescTopViewHolder(
entity.des,
ShareUtils.ShareEntrance.video, entity.id, object : ShareUtils.ShareCallBack {
override fun onSuccess(label: String) {
if ("短信" == label || "复制链接" == label) mVideoDetailViewModel.shareVideoStatistics(
entity
)
if ("短信" == label || "复制链接" == label)
mVideoDetailViewModel.shareVideoStatistics(entity)
}
override fun onCancel() {

View File

@ -304,11 +304,7 @@ class DetailPlayerView @JvmOverloads constructor(context: Context, attrs: Attrib
mVideoEntity?.let {
val shareIcon = it.poster
val shareSummary = "@" + it.user.name + " 在光环助手发布了游戏小视频,快点开看看吧"
val shareUrl = if (isPublishEnv()) {
"https://m.ghzs666.com/video/${it.id}"
} else {
"https://resource.ghzs.com/page/video_play/video/video.html?video=${it.id}"
}
val shareUrl = context.getString(R.string.share_community_video_url, it.shortId)
ShareUtils.getInstance(context).showShareWindowsCallback(context as Activity,
this,
shareUrl,