Fix bugs in #380 & #381 (#391)

Just a few minor bugs fixes introduced in recent PRs
This commit is contained in:
damontecres 2025-12-06 21:28:29 -05:00 committed by GitHub
parent 9e7742034a
commit e0d50baf15
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 7 additions and 4 deletions

View file

@ -62,12 +62,12 @@ class DatePlayedService
).content.items
.firstOrNull()
?.userData
?.lastPlayedDate
if (premiereDate != null && premiereDate.isAfter(result)) {
?.lastPlayedDate ?: LocalDateTime.MIN
if (premiereDate != null && result.isBefore(premiereDate)) {
premiereDate
} else {
result
} ?: LocalDateTime.MIN
}
} catch (ex: InvalidStatusException) {
Timber.w(
"Error fetching series=%s, item=%s: %s",

View file

@ -329,6 +329,7 @@ fun EpisodeDetailsContent(
},
modifier =
Modifier
.fillMaxWidth()
.padding(bottom = 16.dp)
.focusRequester(focusRequesters[HEADER_ROW]),
)

View file

@ -430,6 +430,7 @@ fun MovieDetailsContent(
},
modifier =
Modifier
.fillMaxWidth()
.padding(bottom = 16.dp)
.focusRequester(focusRequesters[HEADER_ROW]),
)

View file

@ -2,6 +2,7 @@ package com.github.damontecres.wholphin.ui.detail.series
import androidx.compose.foundation.layout.Arrangement
import androidx.compose.foundation.layout.Row
import androidx.compose.foundation.layout.fillMaxWidth
import androidx.compose.runtime.Composable
import androidx.compose.runtime.remember
import androidx.compose.ui.Alignment
@ -44,7 +45,7 @@ fun FocusedEpisodeFooter(
watchOnClick = watchOnClick,
favoriteOnClick = favoriteOnClick,
buttonOnFocusChanged = buttonOnFocusChanged,
modifier = Modifier,
modifier = Modifier.fillMaxWidth(),
)
}
}