mirror of
https://github.com/mihonapp/mihon.git
synced 2025-11-12 12:08:56 +01:00
Remove need for SQLDelight primitive adapters
This commit is contained in:
@@ -98,7 +98,7 @@ fun TrackInfoDialogHome(
|
||||
},
|
||||
onChaptersClick = { onChapterClick(item) },
|
||||
score = item.service.displayScore(item.track.toDbTrack())
|
||||
.takeIf { supportsScoring && item.track.score != 0F },
|
||||
.takeIf { supportsScoring && item.track.score != 0.0 },
|
||||
onScoreClick = { onScoreClick(item) }
|
||||
.takeIf { supportsScoring },
|
||||
startDate = remember(item.track.startDate) { dateFormat.format(item.track.startDate) }
|
||||
|
||||
@@ -8,6 +8,6 @@ private val formatter = DecimalFormat(
|
||||
DecimalFormatSymbols().apply { decimalSeparator = '.' },
|
||||
)
|
||||
|
||||
fun formatChapterNumber(chapterNumber: Float): String {
|
||||
fun formatChapterNumber(chapterNumber: Double): String {
|
||||
return formatter.format(chapterNumber)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user