add JustWatch attribution

This commit is contained in:
Owen LeJeune
2023-07-31 16:40:01 -04:00
parent a9b0a62bd8
commit 3d5a4f3d85
4 changed files with 22 additions and 1 deletions

View File

@@ -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)
)
}
}
}

View File

@@ -218,6 +218,7 @@ fun SearchScreen(
preferences.recentSearches.forEach {
Row(
modifier = Modifier
.fillMaxWidth()
.padding(vertical = 12.dp, horizontal = 16.dp)
.clickable {
searchValue.value = it

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

View File

@@ -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>