Skip to content

Commit

Permalink
fix: 이미지뷰 빠르게 터치 시 갤러리 여러개 열어지는 이슈 수정 #20
Browse files Browse the repository at this point in the history
  • Loading branch information
easyhz committed Jul 20, 2024
1 parent 8e95702 commit c92766d
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ internal fun ImageView(
.align(Alignment.CenterHorizontally)
.clip(RoundedCornerShape(24.dp))
.background(Grey50)
.noRippleClickable { viewModel.postIntent(CreationIntent.ClickImageView) }
.noRippleClickable {
viewModel.postIntent(CreationIntent.ClickImageView)
}
) {
when (uiState.organizationImage) {
Uri.EMPTY -> {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ import com.easyhz.noffice.core.common.base.UiSideEffect
sealed class CreationSideEffect: UiSideEffect() {
data object ClearFocus: CreationSideEffect()
data object NavigateToGallery: CreationSideEffect()
data object NavigateToHome: CreationSideEffect()
data class NavigateToInvitation(val invitationUrl: String, val imageUrl: String): CreationSideEffect()
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ data class CreationState(
val organizationName: String,
val category: List<CategoryState>,
val organizationImage: Uri,
val isEnabledGallery: Boolean,
val endDate: LocalDate,
val promotionCode: String,
): UiState() {
Expand All @@ -28,6 +29,7 @@ data class CreationState(
organizationName = "",
category = Category.toState(),
organizationImage = Uri.EMPTY,
isEnabledGallery = true,
endDate = LocalDate.now(),
promotionCode = ""
)
Expand Down

0 comments on commit c92766d

Please sign in to comment.