Show last update if date > 0

This commit is contained in:
inorichi 2018-04-05 22:55:23 +02:00
parent 69f51b88bf
commit f853610578

View File

@ -261,7 +261,11 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
}
fun setLastUpdateDate(date: Date) {
if (date.time != 0L) {
manga_last_update?.text = DateFormat.getDateInstance(DateFormat.SHORT).format(date)
} else {
manga_last_update?.text = resources?.getString(R.string.unknown)
}
}
/**