diff --git a/feature/news/src/main/java/com/teamwable/news/NewsViewPagerAdapter.kt b/feature/news/src/main/java/com/teamwable/news/NewsViewPagerAdapter.kt index 4db51222..13151a81 100644 --- a/feature/news/src/main/java/com/teamwable/news/NewsViewPagerAdapter.kt +++ b/feature/news/src/main/java/com/teamwable/news/NewsViewPagerAdapter.kt @@ -3,16 +3,20 @@ package com.teamwable.news import androidx.fragment.app.Fragment import androidx.viewpager2.adapter.FragmentStateAdapter import com.teamwable.news.match.NewsMatchFragment +import com.teamwable.news.news.NewsNewsFragment +import com.teamwable.news.notice.NewsNoticeFragment import com.teamwable.news.rank.NewsRankFragment class NewsViewPagerAdapter(fragment: Fragment) : FragmentStateAdapter(fragment) { - override fun getItemCount(): Int = 2 + override fun getItemCount(): Int = 4 override fun createFragment(position: Int): Fragment { return when (position) { 0 -> NewsMatchFragment() 1 -> NewsRankFragment() + 2 -> NewsNewsFragment() + 3 -> NewsNoticeFragment() else -> NewsMatchFragment() } }