feat(creator-channel): 정렬 팝업 옵션을 주입한다
This commit is contained in:
@@ -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> = ContentSort.entries,
|
||||
private val onSortSelected: (ContentSort) -> Unit
|
||||
) {
|
||||
|
||||
@@ -61,7 +62,7 @@ class CreatorChannelSortPopup(
|
||||
val sample = view.findViewById<TextView>(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,
|
||||
|
||||
Reference in New Issue
Block a user