Skip to content

Commit

Permalink
#121 [MOD] : enum class ordinal 적용
Browse files Browse the repository at this point in the history
  • Loading branch information
Eonji-sw committed Nov 26, 2024
1 parent 68fd94c commit 552cd30
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,10 @@ class NewsViewPagerAdapter(fragment: Fragment) : FragmentStateAdapter(fragment)

override fun createFragment(position: Int): Fragment {
return when (position) {
NewsTabType.MATCH.idx -> NewsMatchFragment()
NewsTabType.RANK.idx -> NewsRankFragment()
NewsTabType.NEWS.idx -> NewsNewsFragment()
NewsTabType.NOTICE.idx -> NewsNoticeFragment()
NewsTabType.MATCH.ordinal -> NewsMatchFragment()
NewsTabType.RANK.ordinal -> NewsRankFragment()
NewsTabType.NEWS.ordinal -> NewsNewsFragment()
NewsTabType.NOTICE.ordinal -> NewsNoticeFragment()
else -> NewsMatchFragment()
}
}
Expand Down

0 comments on commit 552cd30

Please sign in to comment.