-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Feature/#92] 프로필 수정 구현 #95
base: develop
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
고생하셨습니다.
import androidx.core.widget.doAfterTextChanged | ||
import androidx.lifecycle.flowWithLifecycle | ||
import androidx.lifecycle.lifecycleScope | ||
import com.bumptech.glide.Glide |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Glide 뗄까...
binding.ivNicknameClear.setOnClickListener { | ||
viewModel.nickname.value = "" | ||
} | ||
|
||
binding.ivCameraClear.setOnClickListener { | ||
viewModel.cameraName.value = "" | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 함수로 빼보자
val intent = Intent(Intent.ACTION_GET_CONTENT) | ||
intent.type = "image/*" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
이거 사용합시다
setBackgroundColor( | ||
if (it) colorOf(R.color.fillin_red) else Color.parseColor("#474645") | ||
) | ||
setTextColor( | ||
if (it) colorOf(R.color.fillin_black) else Color.parseColor("#6F6F6F") | ||
) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Color.parseColor는 최대한 지양해보자!
imageUri?.let { | ||
if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.P) { | ||
viewModel.setImageBitmap(ImageDecoder.decodeBitmap(ImageDecoder.createSource(contentResolver, imageUri))) | ||
} else { | ||
viewModel.setImageBitmap(MediaStore.Images.Media.getBitmap(contentResolver, imageUri)) | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ContentUriRequestBody 사용하는 쪽으로 가보는건 어떨깝쇼
Related Issues
What Did You Do?