Skip to content

Commit 2687613

Browse files
authored
Fix: Hide episode rating if rating < 0.1 to avoid "Rating: 0.0"
1 parent fbc8e62 commit 2687613

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

app/src/main/java/com/lagradost/cloudstream3/ui/result/EpisodeAdapter.kt

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,9 +259,10 @@ class EpisodeAdapter(
259259
}
260260
episodePoster.isVisible = posterVisible
261261

262-
if (card.score != null) {
262+
val rating10p = card.score?.toFloat(10)
263+
if (rating10p != null && rating10p > 0.1) {
263264
episodeRating.text = episodeRating.context?.getString(R.string.rated_format)
264-
?.format(card.score.toFloat(10)) // TODO Change rated_format to use card.score.toString()
265+
?.format(rating10p) // TODO Change rated_format to use card.score.toString()
265266
} else {
266267
episodeRating.text = ""
267268
}

0 commit comments

Comments
 (0)