mini fix to text in popup

This commit is contained in:
reduplicated 2023-02-02 18:30:48 +01:00
parent a8bcf2dcb2
commit 7a1cfc2f2b
2 changed files with 2 additions and 16 deletions

View file

@ -63,10 +63,7 @@ import com.lagradost.cloudstream3.ui.APIRepository
import com.lagradost.cloudstream3.ui.WatchType import com.lagradost.cloudstream3.ui.WatchType
import com.lagradost.cloudstream3.ui.download.DOWNLOAD_NAVIGATE_TO import com.lagradost.cloudstream3.ui.download.DOWNLOAD_NAVIGATE_TO
import com.lagradost.cloudstream3.ui.home.HomeViewModel import com.lagradost.cloudstream3.ui.home.HomeViewModel
import com.lagradost.cloudstream3.ui.result.ResultViewModel2 import com.lagradost.cloudstream3.ui.result.*
import com.lagradost.cloudstream3.ui.result.START_ACTION_RESUME_LATEST
import com.lagradost.cloudstream3.ui.result.setImage
import com.lagradost.cloudstream3.ui.result.setText
import com.lagradost.cloudstream3.ui.search.SearchFragment import com.lagradost.cloudstream3.ui.search.SearchFragment
import com.lagradost.cloudstream3.ui.search.SearchResultBuilder import com.lagradost.cloudstream3.ui.search.SearchResultBuilder
import com.lagradost.cloudstream3.ui.settings.SettingsFragment.Companion.isEmulatorSettings import com.lagradost.cloudstream3.ui.settings.SettingsFragment.Companion.isEmulatorSettings
@ -797,7 +794,7 @@ class MainActivity : AppCompatActivity(), ColorPickerDialogListener {
resultview_preview_meta_duration.setText(d.durationText) resultview_preview_meta_duration.setText(d.durationText)
resultview_preview_meta_rating.setText(d.ratingText) resultview_preview_meta_rating.setText(d.ratingText)
resultview_preview_description?.setText(d.plotText) resultview_preview_description?.setTextHtml(d.plotText)
resultview_preview_poster?.setImage( resultview_preview_poster?.setImage(
d.posterImage ?: d.posterBackgroundImage d.posterImage ?: d.posterBackgroundImage
) )

View file

@ -250,17 +250,6 @@ object SingleSelectionHelper {
) )
} }
fun showBottomDialog(
items: List<String>,
selectedIndex: Int,
name: String,
showApply: Boolean,
dismissCallback: () -> Unit,
callback: (Int) -> Unit,
) {
}
/** Only for a low amount of items */ /** Only for a low amount of items */
fun Activity?.showBottomDialog( fun Activity?.showBottomDialog(
items: List<String>, items: List<String>,