diff --git a/app/src/main/java/com/teamwss/websoso/ui/otherUserPage/OtherUserPageActivity.kt b/app/src/main/java/com/teamwss/websoso/ui/otherUserPage/OtherUserPageActivity.kt
index 1d533ac9b..df435521c 100644
--- a/app/src/main/java/com/teamwss/websoso/ui/otherUserPage/OtherUserPageActivity.kt
+++ b/app/src/main/java/com/teamwss/websoso/ui/otherUserPage/OtherUserPageActivity.kt
@@ -75,6 +75,16 @@ class OtherUserPageActivity :
otherUserPageViewModel.otherUserProfile.observe(this) { otherUserProfile ->
setUpMyProfileImage(otherUserProfile.avatarImage.orEmpty())
}
+
+ otherUserPageViewModel.otherUserProfile.observe(this) { profile ->
+ if (profile.isProfilePublic) {
+ binding.vpOtherUserPage.visibility = View.VISIBLE
+ binding.clOtherUserPageNoPublic.visibility = View.GONE
+ } else {
+ binding.vpOtherUserPage.visibility = View.GONE
+ binding.clOtherUserPageNoPublic.visibility = View.VISIBLE
+ }
+ }
}
private fun setUpMyProfileImage(otherUserProfileUrl: String) {
diff --git a/app/src/main/res/drawable-xhdpi/img_other_user_page_no_public.png b/app/src/main/res/drawable-xhdpi/img_other_user_page_no_public.png
new file mode 100644
index 000000000..73121f7c8
Binary files /dev/null and b/app/src/main/res/drawable-xhdpi/img_other_user_page_no_public.png differ
diff --git a/app/src/main/res/drawable-xxhdpi/img_other_user_page_no_public.png b/app/src/main/res/drawable-xxhdpi/img_other_user_page_no_public.png
new file mode 100644
index 000000000..f670cb97b
Binary files /dev/null and b/app/src/main/res/drawable-xxhdpi/img_other_user_page_no_public.png differ
diff --git a/app/src/main/res/drawable-xxxhdpi/img_other_user_page_no_public.png b/app/src/main/res/drawable-xxxhdpi/img_other_user_page_no_public.png
new file mode 100644
index 000000000..acb20c36c
Binary files /dev/null and b/app/src/main/res/drawable-xxxhdpi/img_other_user_page_no_public.png differ
diff --git a/app/src/main/res/layout/activity_other_user_page.xml b/app/src/main/res/layout/activity_other_user_page.xml
index 2701d58ed..758e274d2 100644
--- a/app/src/main/res/layout/activity_other_user_page.xml
+++ b/app/src/main/res/layout/activity_other_user_page.xml
@@ -181,6 +181,40 @@
android:layout_width="match_parent"
android:layout_height="match_parent" />
+
+
+
+
+
+
+
+
diff --git a/app/src/main/res/values/strings.xml b/app/src/main/res/values/strings.xml
index 23421de3b..4ae788d1c 100644
--- a/app/src/main/res/values/strings.xml
+++ b/app/src/main/res/values/strings.xml
@@ -341,6 +341,7 @@
서재
활동
차단하기
+ %1$s님의 프로필은\n비공개 상태에요
해당 유저를 차단할까요?
상대의 게시글, 댓글,\n프로필을 볼 수 없어요
차단