프로필 수정 페이지 - sns, 소개, 태그 수정 UI 크리에이터만 보이도록 수정
This commit is contained in:
parent
87e1156b02
commit
e391fcbb6e
|
@ -162,6 +162,16 @@ class ProfileUpdateActivity : BaseActivity<ActivityProfileUpdateBinding>(
|
|||
binding.etIntroduce.setText(it.introduce)
|
||||
|
||||
SharedPreferenceManager.nickname = it.nickname
|
||||
|
||||
if (SharedPreferenceManager.role == "CREATOR") {
|
||||
binding.llSns.visibility = View.VISIBLE
|
||||
binding.llIntroduce.visibility = View.VISIBLE
|
||||
binding.llSelectTagWrapper.visibility = View.VISIBLE
|
||||
} else {
|
||||
binding.llSns.visibility = View.GONE
|
||||
binding.llIntroduce.visibility = View.GONE
|
||||
binding.llSelectTagWrapper.visibility = View.GONE
|
||||
}
|
||||
}
|
||||
|
||||
viewModel.toastLiveData.observe(this) {
|
||||
|
|
|
@ -279,6 +279,7 @@
|
|||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_sns"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="13.3dp"
|
||||
|
@ -287,7 +288,8 @@
|
|||
android:background="@drawable/bg_round_corner_6_7_222222"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="13.3dp"
|
||||
android:paddingVertical="20dp">
|
||||
android:paddingVertical="20dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<LinearLayout
|
||||
android:layout_width="match_parent"
|
||||
|
@ -422,6 +424,7 @@
|
|||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_select_tag_wrapper"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="13.3dp"
|
||||
|
@ -429,7 +432,8 @@
|
|||
android:background="@drawable/bg_round_corner_6_7_222222"
|
||||
android:orientation="vertical"
|
||||
android:paddingHorizontal="13.3dp"
|
||||
android:paddingVertical="20dp">
|
||||
android:paddingVertical="20dp"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
@ -468,11 +472,13 @@
|
|||
</LinearLayout>
|
||||
|
||||
<LinearLayout
|
||||
android:id="@+id/ll_introduce"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:layout_marginHorizontal="13.3dp"
|
||||
android:layout_marginVertical="40dp"
|
||||
android:orientation="vertical">
|
||||
android:orientation="vertical"
|
||||
android:visibility="gone">
|
||||
|
||||
<TextView
|
||||
android:layout_width="wrap_content"
|
||||
|
|
Loading…
Reference in New Issue