forked from recloudstream/cloudstream
small fix
This commit is contained in:
parent
0606713fd5
commit
53b961050a
2 changed files with 3 additions and 5 deletions
|
@ -57,7 +57,6 @@ import com.lagradost.cloudstream3.utils.AppUtils.loadCache
|
||||||
import com.lagradost.cloudstream3.utils.AppUtils.openBrowser
|
import com.lagradost.cloudstream3.utils.AppUtils.openBrowser
|
||||||
import com.lagradost.cloudstream3.utils.Coroutines.ioWork
|
import com.lagradost.cloudstream3.utils.Coroutines.ioWork
|
||||||
import com.lagradost.cloudstream3.utils.Coroutines.main
|
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.DataStoreHelper.getViewPos
|
||||||
import com.lagradost.cloudstream3.utils.SingleSelectionHelper.showBottomDialog
|
import com.lagradost.cloudstream3.utils.SingleSelectionHelper.showBottomDialog
|
||||||
import com.lagradost.cloudstream3.utils.SingleSelectionHelper.showBottomDialogInstant
|
import com.lagradost.cloudstream3.utils.SingleSelectionHelper.showBottomDialogInstant
|
||||||
|
@ -746,7 +745,6 @@ class ResultFragment : ResultTrailerPlayer() {
|
||||||
result_resume_parent?.isVisible = true
|
result_resume_parent?.isVisible = true
|
||||||
val value = resume.value
|
val value = resume.value
|
||||||
value.progress?.let { progress ->
|
value.progress?.let { progress ->
|
||||||
//TODO FIX
|
|
||||||
result_resume_series_title?.apply {
|
result_resume_series_title?.apply {
|
||||||
isVisible = !value.isMovie
|
isVisible = !value.isMovie
|
||||||
text =
|
text =
|
||||||
|
@ -1202,7 +1200,7 @@ class ResultFragment : ResultTrailerPlayer() {
|
||||||
|
|
||||||
if (url != null) {
|
if (url != null) {
|
||||||
result_reload_connectionerror.setOnClickListener {
|
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 {
|
result_reload_connection_open_in_browser?.setOnClickListener {
|
||||||
|
@ -1237,7 +1235,7 @@ class ResultFragment : ResultTrailerPlayer() {
|
||||||
|
|
||||||
if (restart || !viewModel.hasLoaded()) {
|
if (restart || !viewModel.hasLoaded()) {
|
||||||
//viewModel.clear()
|
//viewModel.clear()
|
||||||
viewModel.load(activity, url, apiName, showFillers, dubStatus, start) //TODO FIX
|
viewModel.load(activity, url, apiName, showFillers, dubStatus, start)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -176,7 +176,7 @@ fun LoadResponse.toResultData(repo: APIRepository): ResultData {
|
||||||
tags = tags ?: emptyList(),
|
tags = tags ?: emptyList(),
|
||||||
comingSoon = comingSoon,
|
comingSoon = comingSoon,
|
||||||
actors = if (hasActorImages) actors else null,
|
actors = if (hasActorImages) actors else null,
|
||||||
actorsText = if (hasActorImages) null else txt(
|
actorsText = if (hasActorImages || actors.isNullOrEmpty()) null else txt(
|
||||||
R.string.cast_format,
|
R.string.cast_format,
|
||||||
actors?.joinToString { it.actor.name }),
|
actors?.joinToString { it.actor.name }),
|
||||||
plotText =
|
plotText =
|
||||||
|
|
Loading…
Reference in a new issue