File tree Expand file tree Collapse file tree 1 file changed +9
-3
lines changed
presentation/src/main/java/com/whyranoid/presentation/community Expand file tree Collapse file tree 1 file changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -58,9 +58,15 @@ internal class CommunityItemFragment :
58
58
private fun handleEvent (event : Event ) {
59
59
when (event) {
60
60
is Event .GroupItemClick -> {
61
- val action =
62
- CommunityFragmentDirections .actionCommunityFragmentToGroupDetailFragment(event.groupInfo)
63
- findNavController().navigate(action)
61
+ // TODO : 뷰모델의 구조를 변경할 필요가 있어보임.
62
+ // 공통된 뷰모델을 사용하여 eventFlow가 3개가 collect중이라서 앱이 터지는 이슈 임시 해결
63
+ if (category == CommunityCategory .MY_GROUP ) {
64
+ val action =
65
+ CommunityFragmentDirections .actionCommunityFragmentToGroupDetailFragment(
66
+ event.groupInfo
67
+ )
68
+ findNavController().navigate(action)
69
+ }
64
70
}
65
71
is Event .GroupJoin -> {
66
72
if (event.isSuccess) {
You can’t perform that action at this time.
0 commit comments