switched to null safe ?.

This commit is contained in:
Carlos Escobedo 2018-01-26 08:06:32 -05:00
parent 7d64fee22c
commit 97a9300d1b

View File

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