mirror of
https://github.com/owenlejeune/TVTime.git
synced 2025-11-08 04:32:43 -05:00
add JustWatch attribution
This commit is contained in:
@@ -437,7 +437,9 @@ fun EpisodeItem(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.clickable {
|
||||
val codedId = seriesId.combineWith(episode.seasonNumber).combineWith(episode.episodeNumber)
|
||||
val codedId = seriesId
|
||||
.combineWith(episode.seasonNumber)
|
||||
.combineWith(episode.episodeNumber)
|
||||
appNavController.navigate(
|
||||
AppNavItem.DetailView.withArgs(MediaViewType.EPISODE, codedId)
|
||||
)
|
||||
@@ -605,6 +607,23 @@ fun WatchProvidersCard(
|
||||
) { value ->
|
||||
WatchProviderContainer(watchProviders = value!!, link = providers.link)
|
||||
}
|
||||
|
||||
Row(
|
||||
modifier = Modifier.padding(start = 12.dp, bottom = 12.dp),
|
||||
verticalAlignment = Alignment.CenterVertically,
|
||||
horizontalArrangement = Arrangement.spacedBy(8.dp)
|
||||
) {
|
||||
Text(
|
||||
text = stringResource(id = R.string.powered_by),
|
||||
fontSize = 12.sp
|
||||
)
|
||||
|
||||
Image(
|
||||
painter = painterResource(id = R.drawable.justwatch_logo_large),
|
||||
contentDescription = null,
|
||||
modifier = Modifier.height(14.dp)
|
||||
)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -218,6 +218,7 @@ fun SearchScreen(
|
||||
preferences.recentSearches.forEach {
|
||||
Row(
|
||||
modifier = Modifier
|
||||
.fillMaxWidth()
|
||||
.padding(vertical = 12.dp, horizontal = 16.dp)
|
||||
.clickable {
|
||||
searchValue.value = it
|
||||
|
||||
BIN
app/src/main/res/drawable/justwatch_logo_large.webp
Normal file
BIN
app/src/main/res/drawable/justwatch_logo_large.webp
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 8.0 KiB |
@@ -232,6 +232,7 @@
|
||||
<string name="app_info_label">App Info</string>
|
||||
<string name="changelog_label">Changelog</string>
|
||||
<string name="powered_by_tmdb">Powered by TMDB</string>
|
||||
<string name="powered_by">Powered by</string>
|
||||
<string name="watch_providers_title">Watch Providers</string>
|
||||
<string name="streaming_label">Streaming</string>
|
||||
<string name="rent_label">Rent</string>
|
||||
|
||||
Reference in New Issue
Block a user