mirror of
https://github.com/libre-tube/LibreTube.git
synced 2024-12-13 22:00:30 +05:30
Merge pull request #5456 from Bnyro/master
fix: can't open channel from player fragment
This commit is contained in:
commit
7149578624
@ -653,7 +653,7 @@ class PlayerFragment : Fragment(), OnlinePlayerOptions {
|
||||
if (!this::streams.isInitialized) return@setOnClickListener
|
||||
|
||||
val activity = view?.context as MainActivity
|
||||
activity.navController.navigate(NavDirections.openChannel(streams.uploaderUrl))
|
||||
NavigationHelper.navigateChannel(requireContext(), streams.uploaderUrl)
|
||||
activity.binding.mainMotionLayout.transitionToEnd()
|
||||
binding.playerMotionLayout.transitionToEnd()
|
||||
}
|
||||
|
@ -146,8 +146,7 @@ class PlaylistFragment : DynamicLayoutManagerFragment() {
|
||||
|
||||
binding.playlistInfo.text = getChannelAndVideoString(response, response.videos)
|
||||
binding.playlistInfo.setOnClickListener {
|
||||
(context as MainActivity).navController
|
||||
.navigate(NavDirections.openChannel(response.uploaderUrl))
|
||||
NavigationHelper.navigateChannel(requireContext(), response.uploaderUrl)
|
||||
}
|
||||
|
||||
binding.playlistDescription.text = response.description?.parseAsHtml()
|
||||
|
Loading…
Reference in New Issue
Block a user