mirror of
https://github.com/recloudstream/cloudstream.git
synced 2024-08-15 01:53:11 +00:00
small fix
This commit is contained in:
parent
15333123cd
commit
527a6388a9
1 changed files with 7 additions and 1 deletions
|
@ -648,6 +648,9 @@ class ResultFragmentTv : Fragment() {
|
||||||
.show()
|
.show()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Used to request focus the first time the episodes are loaded.
|
||||||
|
var hasLoadedEpisodesOnce = false
|
||||||
observeNullable(viewModel.episodes) { episodes ->
|
observeNullable(viewModel.episodes) { episodes ->
|
||||||
binding?.apply {
|
binding?.apply {
|
||||||
resultEpisodes.isVisible = episodes is Resource.Success
|
resultEpisodes.isVisible = episodes is Resource.Success
|
||||||
|
@ -675,7 +678,10 @@ class ResultFragmentTv : Fragment() {
|
||||||
)
|
)
|
||||||
return@setOnLongClickListener true
|
return@setOnLongClickListener true
|
||||||
}
|
}
|
||||||
focusPlayButton()
|
if (!hasLoadedEpisodesOnce) {
|
||||||
|
hasLoadedEpisodesOnce = true
|
||||||
|
focusPlayButton()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue