From f8536105783cc59fbb2ad54a5832c58eee9a2bd3 Mon Sep 17 00:00:00 2001 From: inorichi Date: Thu, 5 Apr 2018 22:55:23 +0200 Subject: [PATCH] Show last update if date > 0 --- .../kanade/tachiyomi/ui/manga/info/MangaInfoController.kt | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt index 56218fde5..70b362611 100644 --- a/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt +++ b/app/src/main/java/eu/kanade/tachiyomi/ui/manga/info/MangaInfoController.kt @@ -261,7 +261,11 @@ class MangaInfoController : NucleusController(), } fun setLastUpdateDate(date: Date) { - manga_last_update?.text = DateFormat.getDateInstance(DateFormat.SHORT).format(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) + } } /**