프로필 이미지 변경
- 이미지 변경시 로컬에 저장된 프로필 이미지 URL도 변경 하도록 수정
This commit is contained in:
@@ -43,6 +43,7 @@ class ProfileUpdateActivity : BaseActivity<ActivityProfileUpdateBinding>(
|
|||||||
val fileUri = data?.data!!
|
val fileUri = data?.data!!
|
||||||
binding.ivProfile.background = null
|
binding.ivProfile.background = null
|
||||||
viewModel.updateProfileImage(fileUri) {
|
viewModel.updateProfileImage(fileUri) {
|
||||||
|
SharedPreferenceManager.profileImage = it
|
||||||
binding.ivProfile.load(it) {
|
binding.ivProfile.load(it) {
|
||||||
crossfade(true)
|
crossfade(true)
|
||||||
transformations(CircleCropTransformation())
|
transformations(CircleCropTransformation())
|
||||||
|
|||||||
Reference in New Issue
Block a user