fixed android tv trailer bug

This commit is contained in:
LagradOst 2023-08-02 02:13:30 +02:00
parent 6ff4f4c1ce
commit b06f098447

View file

@ -195,7 +195,7 @@ class ResultFragmentTv : Fragment() {
} }
}) })
} }
this.animate().translationX(if (turnVisible) 0f else if(isRtl()) -100.0f else 100f).apply { this.animate().translationX(if (turnVisible) 0f else if (isRtl()) -100.0f else 100f).apply {
duration = 200 duration = 200
interpolator = DecelerateInterpolator() interpolator = DecelerateInterpolator()
} }
@ -205,7 +205,7 @@ class ResultFragmentTv : Fragment() {
binding?.apply { binding?.apply {
episodesShadow.fade(show) episodesShadow.fade(show)
episodeHolderTv.fade(show) episodeHolderTv.fade(show)
if(episodesShadow.isRtl()) { if (episodesShadow.isRtl()) {
episodesShadow.scaleX = -1.0f episodesShadow.scaleX = -1.0f
episodesShadow.scaleY = -1.0f episodesShadow.scaleY = -1.0f
} else { } else {
@ -297,8 +297,8 @@ class ResultFragmentTv : Fragment() {
resultSeasonSelection, resultSeasonSelection,
resultRangeSelection, resultRangeSelection,
resultDubSelection, resultDubSelection,
resultEpisodes,
resultPlayTrailer, resultPlayTrailer,
resultEpisodes
) )
for (requestView in views) { for (requestView in views) {
if (!requestView.isShown) continue if (!requestView.isShown) continue
@ -349,7 +349,7 @@ class ResultFragmentTv : Fragment() {
ArrayList(), ArrayList(),
resultRecommendationsList, resultRecommendationsList,
) { callback -> ) { callback ->
if(callback.action == SEARCH_ACTION_FOCUSED) if (callback.action == SEARCH_ACTION_FOCUSED)
toggleEpisodes(false) toggleEpisodes(false)
else else
SearchHelper.handleSearchClickCallback(callback) SearchHelper.handleSearchClickCallback(callback)