small fix

This commit is contained in:
reduplicated 2022-08-04 16:03:13 +02:00
parent 0606713fd5
commit 53b961050a
2 changed files with 3 additions and 5 deletions

View file

@ -57,7 +57,6 @@ import com.lagradost.cloudstream3.utils.AppUtils.loadCache
import com.lagradost.cloudstream3.utils.AppUtils.openBrowser
import com.lagradost.cloudstream3.utils.Coroutines.ioWork
import com.lagradost.cloudstream3.utils.Coroutines.main
import com.lagradost.cloudstream3.utils.DataStoreHelper.getDub
import com.lagradost.cloudstream3.utils.DataStoreHelper.getViewPos
import com.lagradost.cloudstream3.utils.SingleSelectionHelper.showBottomDialog
import com.lagradost.cloudstream3.utils.SingleSelectionHelper.showBottomDialogInstant
@ -746,7 +745,6 @@ class ResultFragment : ResultTrailerPlayer() {
result_resume_parent?.isVisible = true
val value = resume.value
value.progress?.let { progress ->
//TODO FIX
result_resume_series_title?.apply {
isVisible = !value.isMovie
text =
@ -1202,7 +1200,7 @@ class ResultFragment : ResultTrailerPlayer() {
if (url != null) {
result_reload_connectionerror.setOnClickListener {
viewModel.load(activity, url, apiName, showFillers, dubStatus, start) //TODO FIX
viewModel.load(activity, url, apiName, showFillers, dubStatus, start)
}
result_reload_connection_open_in_browser?.setOnClickListener {
@ -1237,7 +1235,7 @@ class ResultFragment : ResultTrailerPlayer() {
if (restart || !viewModel.hasLoaded()) {
//viewModel.clear()
viewModel.load(activity, url, apiName, showFillers, dubStatus, start) //TODO FIX
viewModel.load(activity, url, apiName, showFillers, dubStatus, start)
}
}
}

View file

@ -176,7 +176,7 @@ fun LoadResponse.toResultData(repo: APIRepository): ResultData {
tags = tags ?: emptyList(),
comingSoon = comingSoon,
actors = if (hasActorImages) actors else null,
actorsText = if (hasActorImages) null else txt(
actorsText = if (hasActorImages || actors.isNullOrEmpty()) null else txt(
R.string.cast_format,
actors?.joinToString { it.actor.name }),
plotText =