Skip to content

Commit

Permalink
[MOD/#32] 아이템 개수 세는 것 일단 틀만 짜두기
Browse files Browse the repository at this point in the history
  • Loading branch information
0zlrlo committed Jul 5, 2023
1 parent 76350f6 commit 4ff1e34
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,11 @@ class LikeViewModel : ViewModel() {
_isEdit.value = _isEdit.value?.not()
}

fun getSelectedIdsCount() {
fun getSelectedIdsCount(): Int {
val selectedIdsList = _selectedIds.value ?: mutableListOf()
val selectedCount = selectedIdsList.size
_selectedCount.value = selectedCount
return selectedIdsList.size
}

fun updateSelected() {
Expand Down

0 comments on commit 4ff1e34

Please sign in to comment.