added else to be Unknown instead of blank

This commit is contained in:
Carlos Escobedo 2018-01-25 06:26:10 -05:00
parent 431676acd1
commit 4aba3b4c37

View File

@ -250,6 +250,8 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
fun setChapterCount(count: Float) { fun setChapterCount(count: Float) {
if (count > 0f) { if (count > 0f) {
manga_chapters?.text = DecimalFormat("#.#").format(count) manga_chapters?.text = DecimalFormat("#.#").format(count)
} else {
manga_chapters?.text = resources!!.getString(R.string.unknown)
} }
} }