프로필 수정 페이지 - sns, 소개, 태그 수정 UI 크리에이터만 보이도록 수정

This commit is contained in:
2023-11-20 17:56:52 +09:00
parent 87e1156b02
commit e391fcbb6e
2 changed files with 19 additions and 3 deletions

View File

@@ -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) {