mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 23:51:21 +02:00
Just a few minor bugs fixes introduced in recent PRs
This commit is contained in:
parent
9e7742034a
commit
e0d50baf15
4 changed files with 7 additions and 4 deletions
|
|
@ -62,12 +62,12 @@ class DatePlayedService
|
||||||
).content.items
|
).content.items
|
||||||
.firstOrNull()
|
.firstOrNull()
|
||||||
?.userData
|
?.userData
|
||||||
?.lastPlayedDate
|
?.lastPlayedDate ?: LocalDateTime.MIN
|
||||||
if (premiereDate != null && premiereDate.isAfter(result)) {
|
if (premiereDate != null && result.isBefore(premiereDate)) {
|
||||||
premiereDate
|
premiereDate
|
||||||
} else {
|
} else {
|
||||||
result
|
result
|
||||||
} ?: LocalDateTime.MIN
|
}
|
||||||
} catch (ex: InvalidStatusException) {
|
} catch (ex: InvalidStatusException) {
|
||||||
Timber.w(
|
Timber.w(
|
||||||
"Error fetching series=%s, item=%s: %s",
|
"Error fetching series=%s, item=%s: %s",
|
||||||
|
|
|
||||||
|
|
@ -329,6 +329,7 @@ fun EpisodeDetailsContent(
|
||||||
},
|
},
|
||||||
modifier =
|
modifier =
|
||||||
Modifier
|
Modifier
|
||||||
|
.fillMaxWidth()
|
||||||
.padding(bottom = 16.dp)
|
.padding(bottom = 16.dp)
|
||||||
.focusRequester(focusRequesters[HEADER_ROW]),
|
.focusRequester(focusRequesters[HEADER_ROW]),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -430,6 +430,7 @@ fun MovieDetailsContent(
|
||||||
},
|
},
|
||||||
modifier =
|
modifier =
|
||||||
Modifier
|
Modifier
|
||||||
|
.fillMaxWidth()
|
||||||
.padding(bottom = 16.dp)
|
.padding(bottom = 16.dp)
|
||||||
.focusRequester(focusRequesters[HEADER_ROW]),
|
.focusRequester(focusRequesters[HEADER_ROW]),
|
||||||
)
|
)
|
||||||
|
|
|
||||||
|
|
@ -2,6 +2,7 @@ package com.github.damontecres.wholphin.ui.detail.series
|
||||||
|
|
||||||
import androidx.compose.foundation.layout.Arrangement
|
import androidx.compose.foundation.layout.Arrangement
|
||||||
import androidx.compose.foundation.layout.Row
|
import androidx.compose.foundation.layout.Row
|
||||||
|
import androidx.compose.foundation.layout.fillMaxWidth
|
||||||
import androidx.compose.runtime.Composable
|
import androidx.compose.runtime.Composable
|
||||||
import androidx.compose.runtime.remember
|
import androidx.compose.runtime.remember
|
||||||
import androidx.compose.ui.Alignment
|
import androidx.compose.ui.Alignment
|
||||||
|
|
@ -44,7 +45,7 @@ fun FocusedEpisodeFooter(
|
||||||
watchOnClick = watchOnClick,
|
watchOnClick = watchOnClick,
|
||||||
favoriteOnClick = favoriteOnClick,
|
favoriteOnClick = favoriteOnClick,
|
||||||
buttonOnFocusChanged = buttonOnFocusChanged,
|
buttonOnFocusChanged = buttonOnFocusChanged,
|
||||||
modifier = Modifier,
|
modifier = Modifier.fillMaxWidth(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue