mirror of
https://github.com/libre-tube/LibreTube.git
synced 2025-01-06 01:20:29 +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
|
if (!this::streams.isInitialized) return@setOnClickListener
|
||||||
|
|
||||||
val activity = view?.context as MainActivity
|
val activity = view?.context as MainActivity
|
||||||
activity.navController.navigate(NavDirections.openChannel(streams.uploaderUrl))
|
NavigationHelper.navigateChannel(requireContext(), streams.uploaderUrl)
|
||||||
activity.binding.mainMotionLayout.transitionToEnd()
|
activity.binding.mainMotionLayout.transitionToEnd()
|
||||||
binding.playerMotionLayout.transitionToEnd()
|
binding.playerMotionLayout.transitionToEnd()
|
||||||
}
|
}
|
||||||
|
@ -146,8 +146,7 @@ class PlaylistFragment : DynamicLayoutManagerFragment() {
|
|||||||
|
|
||||||
binding.playlistInfo.text = getChannelAndVideoString(response, response.videos)
|
binding.playlistInfo.text = getChannelAndVideoString(response, response.videos)
|
||||||
binding.playlistInfo.setOnClickListener {
|
binding.playlistInfo.setOnClickListener {
|
||||||
(context as MainActivity).navController
|
NavigationHelper.navigateChannel(requireContext(), response.uploaderUrl)
|
||||||
.navigate(NavDirections.openChannel(response.uploaderUrl))
|
|
||||||
}
|
}
|
||||||
|
|
||||||
binding.playlistDescription.text = response.description?.parseAsHtml()
|
binding.playlistDescription.text = response.description?.parseAsHtml()
|
||||||
|
Loading…
Reference in New Issue
Block a user