diff --git a/app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/ui/CreatorChannelSortPopup.kt b/app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/ui/CreatorChannelSortPopup.kt index 045f82e4..bac128df 100644 --- a/app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/ui/CreatorChannelSortPopup.kt +++ b/app/src/main/java/kr/co/vividnext/sodalive/v2/creator/channel/ui/CreatorChannelSortPopup.kt @@ -19,6 +19,7 @@ import kr.co.vividnext.sodalive.v2.creator.channel.model.toSortOptionUiModel class CreatorChannelSortPopup( private val anchor: View, private val selectedSort: ContentSort, + private val sortOptions: List = ContentSort.entries, private val onSortSelected: (ContentSort) -> Unit ) { @@ -61,7 +62,7 @@ class CreatorChannelSortPopup( val sample = view.findViewById(R.id.tv_creator_channel_sort_option_sample) container.removeView(sample) - ContentSort.entries.map { it.toSortOptionUiModel(selectedSort) }.forEach { option -> + sortOptions.map { it.toSortOptionUiModel(selectedSort) }.forEach { option -> val row = TextView(anchor.context).apply { layoutParams = LinearLayout.LayoutParams( ViewGroup.LayoutParams.MATCH_PARENT,