Skip to content

Commit b2b1a76

Browse files
committed
Refactor: 루틴 삭제 시 BottomSheet 상태 초기화
- 루틴 삭제 시 해당 루틴의 상세정보를 보여주는 바텀시트가 올라와 있는 경우 내려가도록 상태 초기화
1 parent 473f74d commit b2b1a76

File tree

1 file changed

+4
-0
lines changed
  • presentation/src/main/java/com/threegap/bitnagil/presentation/home

1 file changed

+4
-0
lines changed

presentation/src/main/java/com/threegap/bitnagil/presentation/home/HomeViewModel.kt

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,8 @@ class HomeViewModel @Inject constructor(
124124
routines = RoutinesUiModel(routinesByDate = updatedRoutinesByDate),
125125
showDeleteConfirmDialog = false,
126126
deletingRoutine = null,
127+
routineDetailsBottomSheetVisible = false,
128+
selectedRoutine = null,
127129
)
128130
}
129131

@@ -184,6 +186,8 @@ class HomeViewModel @Inject constructor(
184186
routines = RoutinesUiModel(routinesByDate = updatedRoutinesByDate),
185187
showDeleteConfirmDialog = false,
186188
deletingRoutine = null,
189+
routineDetailsBottomSheetVisible = false,
190+
selectedRoutine = null,
187191
)
188192
}
189193

0 commit comments

Comments
 (0)