feat(YT): moved back to watch section

This commit is contained in:
aayush262 2024-03-05 20:03:18 +05:30
parent ecbc7efebc
commit 4c4bbe3214
5 changed files with 32 additions and 29 deletions

View file

@ -75,14 +75,7 @@ class MediaInfoFragment : Fragment() {
if (media != null && !loaded) {
loaded = true
//Youtube
if (media.anime?.youtube != null && PrefManager.getVal(PrefName.ShowYtButton)) {
binding.animeSourceYT.visibility = View.VISIBLE
binding.animeSourceYT.setOnClickListener {
val intent = Intent(Intent.ACTION_VIEW, Uri.parse(media.anime.youtube))
requireContext().startActivity(intent)
}
}
binding.mediaInfoProgressBar.visibility = View.GONE
binding.mediaInfoContainer.visibility = View.VISIBLE
binding.mediaInfoName.text = "\t\t\t" + (media.name ?: media.nameRomaji)