-
Notifications
You must be signed in to change notification settings - Fork 3
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
refactor: 유튜브 브랜딩 가이드에 따른 플레이리스트 추출 버튼 이미지 변경 #439
Conversation
@@ -20,7 +20,8 @@ sealed interface ScrapUiState { | |||
|
|||
data class Selection( | |||
override val onSelect: (position: Int) -> Unit, | |||
override val rooms: List<ScrappedRoomModel> | |||
override val rooms: List<ScrappedRoomModel>, | |||
val isAvailableExtraction: Boolean |
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.
isAvailableExtraction -> isExtractionAvailable
?
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.
반영하겠습니다~
@@ -82,6 +82,13 @@ class ScrapListActivity : AppCompatActivity() { | |||
SocialLogin.Google.getIntent(this) | |||
) | |||
|
|||
is ScrapUiState.Selection -> { | |||
binding.scrapIbExtractPlaylist.isEnabled = it.isAvailableExtraction |
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.
isEnabled는 XML에서 반영 가능하지 않을까요?
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.
UiState가 Selection 상태일때만 존재하는 값이라 Activity에서 수행했습니다~
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 isSelected: Boolean | ||
get() = _value.any { it.isSelected } | ||
|
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.
변수 이름이 조금 더 직관적이면 좋을 것 같아요. 예를 들면 isAnySelected 이런 식? 좋은 변수명인지는 모르겠네영ㅋㅋㅋ
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.
hasBeenSelected라는 변수명으로 수정했는데 더 좋은게 있을까요?
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.
hasSelected
는 어떤가용 ( 선택된 걸 가지고 있냐? 느낌)
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.
오 좋네요~ 수정했습니다~
isSelected -> hasBeenSelected로 수정했는데 흠.. 더 좋은게 생각이 안나네요 그리고 그리고 |
관련 이슈번호
작업 사항
기타 사항