From 6065b353fda0a88867b6c561541b4eea87653418 Mon Sep 17 00:00:00 2001 From: klaus Date: Fri, 7 Mar 2025 14:42:36 +0900 Subject: [PATCH] =?UTF-8?q?=EB=9D=BC=EC=9D=B4=EB=B8=8C,=20=EC=BD=98?= =?UTF-8?q?=ED=85=90=EC=B8=A0,=20=EC=B1=84=EB=84=90=20=EA=B3=B5=EC=9C=A0?= =?UTF-8?q?=ED=95=98=EA=B8=B0=20-=20sns=20=EA=B3=B5=EC=9C=A0=EC=8B=9C=20?= =?UTF-8?q?=EB=B3=B4=EC=97=AC=EC=A4=84=20og=20data=20=EC=A0=9C=EA=B1=B0=20?= =?UTF-8?q?-=20shorturl=EC=9D=B4=20=EC=A0=81=EC=9A=A9=EB=90=98=EC=A7=80=20?= =?UTF-8?q?=EC=95=8A=EC=9D=80=20=EC=83=81=ED=83=9C=EC=97=90=EC=84=9C=20url?= =?UTF-8?q?=EC=9D=B4=20=EB=84=88=EB=AC=B4=20=EA=B8=B8=EA=B8=B0=20=EB=96=84?= =?UTF-8?q?=EB=AC=B8=EB=8D=B0=20=EC=9E=84=EC=8B=9C=20=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../audio_content/detail/AudioContentDetailActivity.kt | 8 ++------ .../audio_content/detail/AudioContentDetailViewModel.kt | 7 +------ .../sodalive/explorer/profile/UserProfileActivity.kt | 3 +-- .../sodalive/explorer/profile/UserProfileViewModel.kt | 6 +----- .../co/vividnext/sodalive/live/room/LiveRoomActivity.kt | 3 +-- .../co/vividnext/sodalive/live/room/LiveRoomViewModel.kt | 6 +----- .../sodalive/live/room/detail/LiveRoomDetailViewModel.kt | 4 +--- 7 files changed, 8 insertions(+), 29 deletions(-) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/detail/AudioContentDetailActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/detail/AudioContentDetailActivity.kt index 0c898e6..c2914cf 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/audio_content/detail/AudioContentDetailActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/audio_content/detail/AudioContentDetailActivity.kt @@ -777,16 +777,12 @@ class AudioContentDetailActivity : BaseActivity Unit ) { val params = mapOf( "af_dp" to "voiceon://", "deep_link_value" to "content", - "deep_link_sub5" to "$audioContentId", - "af_og_title" to contentTitle, - "af_og_description" to "지금 보이스온에서 이 콘텐츠 감상하기", - "af_og_image" to contentImage + "deep_link_sub5" to "$audioContentId" ) val shareUrl = Utils.createOneLinkUrl(params = params) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt index 11c001f..cf0d570 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileActivity.kt @@ -648,8 +648,7 @@ class UserProfileActivity : BaseActivity( layoutUserProfile.ivShare.setOnClickListener { viewModel.shareChannel( userId = creator.creatorId, - nickname = creator.nickname, - profileImage = creator.profileUrl + nickname = creator.nickname ) { val intent = Intent(Intent.ACTION_SEND) intent.type = "text/plain" diff --git a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileViewModel.kt b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileViewModel.kt index 1165642..d282eb9 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileViewModel.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/explorer/profile/UserProfileViewModel.kt @@ -268,16 +268,12 @@ class UserProfileViewModel( fun shareChannel( userId: Long, nickname: String, - profileImage: String, onSuccess: (String) -> Unit ) { val params = mapOf( "af_dp" to "voiceon://", "deep_link_value" to "channel", - "deep_link_sub5" to "$userId", - "af_og_title" to "보이스온", - "af_og_description" to "보이스온 ${nickname}님의 채널입니다.", - "af_og_image" to profileImage + "deep_link_sub5" to "$userId" ) val shareUrl = Utils.createOneLinkUrl(params = params) onSuccess("보이스온 ${nickname}님의 채널입니다.\n$shareUrl") diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomActivity.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomActivity.kt index 21eca09..2eb7093 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomActivity.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomActivity.kt @@ -1005,8 +1005,7 @@ class LiveRoomActivity : BaseActivity(ActivityLiveRoomB viewModel.shareRoomLink( response.roomId, response.isPrivateRoom, - response.password, - response.coverImageUrl + response.password ) { val intent = Intent(Intent.ACTION_SEND) intent.type = "text/plain" diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomViewModel.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomViewModel.kt index 9c382a6..88976d1 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomViewModel.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/room/LiveRoomViewModel.kt @@ -300,16 +300,12 @@ class LiveRoomViewModel( roomId: Long, isPrivateRoom: Boolean, password: String?, - coverImage: String, onSuccess: (String) -> Unit ) { val params = mapOf( "af_dp" to "voiceon://", "deep_link_value" to "live", - "deep_link_sub5" to "$roomId", - "af_og_title" to "보이스온", - "af_og_description" to "지금 보이스온에서 라이브 참여하기", - "af_og_image" to coverImage + "deep_link_sub5" to "$roomId" ) val shareUrl = Utils.createOneLinkUrl(params = params) diff --git a/app/src/main/java/kr/co/vividnext/sodalive/live/room/detail/LiveRoomDetailViewModel.kt b/app/src/main/java/kr/co/vividnext/sodalive/live/room/detail/LiveRoomDetailViewModel.kt index 1fdd484..8a916bb 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/live/room/detail/LiveRoomDetailViewModel.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/live/room/detail/LiveRoomDetailViewModel.kt @@ -67,9 +67,7 @@ class LiveRoomDetailViewModel(private val repository: LiveRepository) : BaseView val params = mapOf( "af_dp" to "voiceon://", "deep_link_value" to "live", - "deep_link_sub5" to "$roomId", - "af_og_title" to "보이스온", - "af_og_description" to "지금 보이스온에서 라이브 참여하기" + "deep_link_sub5" to "$roomId" ) val shareUrl = Utils.createOneLinkUrl(params = params)