diff --git a/app/src/main/java/com/github/libretube/ui/fragments/ChannelFragment.kt b/app/src/main/java/com/github/libretube/ui/fragments/ChannelFragment.kt index 83fe9bed2..e25937fcd 100644 --- a/app/src/main/java/com/github/libretube/ui/fragments/ChannelFragment.kt +++ b/app/src/main/java/com/github/libretube/ui/fragments/ChannelFragment.kt @@ -162,14 +162,6 @@ class ChannelFragment : DynamicLayoutManagerFragment() { binding.notificationBell ) - binding.channelSubscribe.setOnLongClickListener { - AddChannelToGroupSheet().apply { - arguments = bundleOf(IntentData.channelId to channelId) - }.show(childFragmentManager) - - true - } - binding.channelShare.setOnClickListener { val bundle = bundleOf( IntentData.id to channelId.toID(), @@ -181,6 +173,12 @@ class ChannelFragment : DynamicLayoutManagerFragment() { newShareDialog.show(childFragmentManager, ShareDialog::class.java.name) } + binding.addToGroup.setOnClickListener { + AddChannelToGroupSheet().apply { + arguments = bundleOf(IntentData.channelId to channelId) + }.show(childFragmentManager) + } + nextPages[0] = response.nextpage isLoading = false binding.channelRefresh.isRefreshing = false diff --git a/app/src/main/res/layout/fragment_channel.xml b/app/src/main/res/layout/fragment_channel.xml index 05e748c04..e58140540 100644 --- a/app/src/main/res/layout/fragment_channel.xml +++ b/app/src/main/res/layout/fragment_channel.xml @@ -81,36 +81,58 @@ - - - - + + + + + + + + + + + + + + + + app:tabMode="scrollable" /> @@ -135,8 +157,7 @@ android:id="@+id/pager" android:layout_width="match_parent" android:layout_height="match_parent" - app:layout_behavior="@string/appbar_scrolling_view_behavior" - /> + app:layout_behavior="@string/appbar_scrolling_view_behavior" />