|
@@ -52,11 +52,18 @@ class MangaUpdates(private val context: Context, id: Int) : TrackService(id) {
|
|
|
|
|
|
override fun getCompletionStatus(): Int = COMPLETE_LIST
|
|
|
|
|
|
- override fun getScoreList(): List<String> = (0..10).map(Int::toString)
|
|
|
+ private val _scoreList = (0..9).flatMap { i -> (0..9).map { j -> "$i.$j" } } + listOf("10.0")
|
|
|
|
|
|
- override fun displayScore(track: Track): String = track.score.toInt().toString()
|
|
|
+ override fun getScoreList(): List<String> = _scoreList
|
|
|
+
|
|
|
+ override fun indexToScore(index: Int): Float = _scoreList[index].toFloat()
|
|
|
+
|
|
|
+ override fun displayScore(track: Track): String = track.score.toString()
|
|
|
|
|
|
override suspend fun update(track: Track, didReadChapter: Boolean): Track {
|
|
|
+ if (track.status != COMPLETE_LIST && didReadChapter) {
|
|
|
+ track.status = READING_LIST
|
|
|
+ }
|
|
|
api.updateSeriesListItem(track)
|
|
|
return track
|
|
|
}
|