File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
presentation/src/main/java/com/whyranoid/presentation/community Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -73,15 +73,15 @@ internal class CommunityItemFragment :
73
73
74
74
// TODO 카테고리 별 다른 아이템 처리
75
75
private fun setMyGroupAdapter () {
76
- val adapter = MyGroupAdapter { groupInfo ->
76
+ val myGroupAdapter = MyGroupAdapter { groupInfo ->
77
77
viewModel.onCategoryItemClicked(groupInfo)
78
78
}
79
- binding.rvCommunity.adapter = adapter
79
+ binding.rvCommunity.adapter = myGroupAdapter
80
80
81
81
viewLifecycleOwner.lifecycleScope.launch {
82
82
viewModel.getMyGroupListUseCase().collect { groupList ->
83
83
removeShimmer()
84
- adapter .submitList(groupList.sortedBy { it.name })
84
+ myGroupAdapter .submitList(groupList.sortedBy { it.name })
85
85
}
86
86
}
87
87
}
Original file line number Diff line number Diff line change @@ -21,10 +21,10 @@ class CommunityViewModel @Inject constructor(
21
21
get() = _eventFlow .asSharedFlow()
22
22
23
23
fun onCategoryItemClicked (groupInfo : GroupInfo ) {
24
- event (Event .CategoryItemClick (groupInfo))
24
+ emitEvent (Event .CategoryItemClick (groupInfo))
25
25
}
26
26
27
- private fun event (event : Event ) {
27
+ private fun emitEvent (event : Event ) {
28
28
viewModelScope.launch {
29
29
_eventFlow .emit(event)
30
30
}
You can’t perform that action at this time.
0 commit comments