From a66ed887ac136c5e33502cdc1c97bc0d9c6f8a1c Mon Sep 17 00:00:00 2001 From: Luna712 <142361265+Luna712@users.noreply.github.com> Date: Thu, 19 Oct 2023 21:15:40 -0600 Subject: [PATCH] Enable PreviewGenerator on TV layout --- .../lagradost/cloudstream3/ui/player/PreviewGenerator.kt | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/app/src/main/java/com/lagradost/cloudstream3/ui/player/PreviewGenerator.kt b/app/src/main/java/com/lagradost/cloudstream3/ui/player/PreviewGenerator.kt index 6414374b..bbdd8d09 100644 --- a/app/src/main/java/com/lagradost/cloudstream3/ui/player/PreviewGenerator.kt +++ b/app/src/main/java/com/lagradost/cloudstream3/ui/player/PreviewGenerator.kt @@ -9,7 +9,6 @@ import android.util.Log import androidx.annotation.WorkerThread import androidx.core.graphics.scale import com.lagradost.cloudstream3.mvvm.logError -import com.lagradost.cloudstream3.ui.settings.SettingsFragment import com.lagradost.cloudstream3.utils.Coroutines.ioSafe import com.lagradost.cloudstream3.utils.ExtractorLink import com.lagradost.cloudstream3.utils.ExtractorLinkType @@ -62,12 +61,7 @@ interface IPreviewGenerator { companion object { fun new(): IPreviewGenerator { - /** because TV has low ram + not show we disable this for now */ - return if (SettingsFragment.isTrueTvSettings()) { - empty() - } else { - PreviewGenerator() - } + return PreviewGenerator() } fun empty(): IPreviewGenerator {