fix: unable to create new channel groups

This commit is contained in:
Bnyro 2025-01-22 16:51:07 +01:00
parent f764ef4fc3
commit c82f55b3c7

View File

@ -25,7 +25,7 @@ class ChannelGroupsSheet : ExpandedBottomSheet(R.layout.dialog_subscription_grou
override fun onViewCreated(view: View, savedInstanceState: Bundle?) { override fun onViewCreated(view: View, savedInstanceState: Bundle?) {
super.onViewCreated(view, savedInstanceState) super.onViewCreated(view, savedInstanceState)
val binding = DialogSubscriptionGroupsBinding.inflate(layoutInflater) val binding = DialogSubscriptionGroupsBinding.bind(view)
binding.groupsRV.layoutManager = LinearLayoutManager(context) binding.groupsRV.layoutManager = LinearLayoutManager(context)
val groups = channelGroupsModel.groups.value.orEmpty().toMutableList() val groups = channelGroupsModel.groups.value.orEmpty().toMutableList()
val adapter = SubscriptionGroupsAdapter(groups, channelGroupsModel, parentFragmentManager) val adapter = SubscriptionGroupsAdapter(groups, channelGroupsModel, parentFragmentManager)