Skip to content

Commit 8f4fbda

Browse files
committed
[FIX/#184] 선택 모드에서 LongPress 이벤트가 동작하지 않도록 수정
1 parent 521a042 commit 8f4fbda

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

feature/home/src/main/java/com/yapp/alarm/component/AlarmListItem.kt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ internal fun AlarmListItem(
163163
color = OrbitTheme.colors.gray_800,
164164
),
165165
onLongClick = {
166+
if (selectable) return@combinedClickable
167+
166168
val minRequiredSpace = itemSize.height + with(density) { 42.dp.toPx() }
167169
val adjustedY = if (itemPosition.second + minRequiredSpace > screenHeightPx) {
168170
screenHeightPx - minRequiredSpace

0 commit comments

Comments
 (0)