Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -1101,6 +1101,7 @@ class PlayerFragment : Fragment(R.layout.fragment_player), OnlinePlayerOptions {
}

private fun toggleVideoInfoVisibility(show: Boolean){
binding.descriptionLayout.collapseDescription()
binding.descriptionLayout.isInvisible = !show
binding.relatedRecView.isInvisible = !show
binding.playerChannel.isInvisible = !show
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,16 @@ class DescriptionLayout(
}
}

/**
* Collapses the description, if it is currently expanded.
*/
fun collapseDescription() {
val isCollapsed = binding.descLinLayout.isGone
if (!isCollapsed) {
toggleDescription()
}
}

/**
* Set up the description text with video links and timestamps
*/
Expand Down
Loading