File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
presentation/src/main/java/com/whyranoid/presentation/community Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ import android.os.Build
4
4
import android.os.Bundle
5
5
import android.view.View
6
6
import androidx.core.view.isVisible
7
- import androidx.fragment.app.viewModels
7
+ import androidx.fragment.app.activityViewModels
8
8
import androidx.lifecycle.lifecycleScope
9
9
import androidx.navigation.fragment.findNavController
10
10
import com.whyranoid.presentation.R
@@ -18,7 +18,7 @@ import kotlinx.coroutines.launch
18
18
internal class CommunityItemFragment :
19
19
BaseFragment <FragmentCommunityItemBinding >(R .layout.fragment_community_item) {
20
20
21
- private val viewModel: CommunityViewModel by viewModels ()
21
+ private val viewModel: CommunityViewModel by activityViewModels ()
22
22
23
23
private val category by lazy {
24
24
if (Build .VERSION .SDK_INT >= Build .VERSION_CODES .TIRAMISU ) {
@@ -86,7 +86,6 @@ internal class CommunityItemFragment :
86
86
}
87
87
}
88
88
89
- // TODO 카테고리 별 다른 아이템 처리
90
89
private fun setMyGroupAdapter () {
91
90
val myGroupAdapter = MyGroupAdapter { groupInfo ->
92
91
viewModel.onCategoryItemClicked(groupInfo)
You can’t perform that action at this time.
0 commit comments