File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed
presentation/src/main/java/com/whyranoid/presentation/community/group Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -29,13 +29,13 @@ internal class CreateGroupFragment :
29
29
30
30
setupMenu()
31
31
32
- repeatWhenUiStarted {
32
+ viewLifecycleOwner. repeatWhenUiStarted {
33
33
viewModel.eventFlow.collect { event ->
34
34
handleEvent(event)
35
35
}
36
36
}
37
37
38
- repeatWhenUiStarted {
38
+ viewLifecycleOwner. repeatWhenUiStarted {
39
39
viewModel.rules.collect {
40
40
println (" 테스트 $it " )
41
41
}
@@ -105,7 +105,7 @@ internal class CreateGroupFragment :
105
105
}
106
106
}
107
107
108
- repeatWhenUiStarted {
108
+ viewLifecycleOwner. repeatWhenUiStarted {
109
109
viewModel.isButtonEnable.collect { isEnable ->
110
110
if (isEnable) {
111
111
binding.topAppBar.menu.setGroupVisible(R .id.ready_to_create, true )
Original file line number Diff line number Diff line change @@ -66,7 +66,7 @@ internal class GroupDetailFragment :
66
66
}
67
67
68
68
private fun handleEvent () {
69
- repeatWhenUiStarted {
69
+ viewLifecycleOwner. repeatWhenUiStarted {
70
70
viewModel.eventFlow.collect { event ->
71
71
when (event) {
72
72
// TODO : 홍보 글 쓰러가기
@@ -105,7 +105,7 @@ internal class GroupDetailFragment :
105
105
val notificationAdapter = GroupNotificationAdapter (" hsjeon" )
106
106
107
107
binding.notificationRecyclerView.adapter = notificationAdapter
108
- repeatWhenUiStarted {
108
+ viewLifecycleOwner. repeatWhenUiStarted {
109
109
viewModel.mergedNotifications.collect { notifications ->
110
110
notificationAdapter.submitList(notifications)
111
111
}
You can’t perform that action at this time.
0 commit comments