mirror of
https://github.com/tachiyomiorg/tachiyomi.git
synced 2024-11-11 18:10:48 +01:00
Show last update if date > 0
This commit is contained in:
parent
69f51b88bf
commit
f853610578
1 changed files with 5 additions and 1 deletions
|
@ -261,7 +261,11 @@ class MangaInfoController : NucleusController<MangaInfoPresenter>(),
|
||||||
}
|
}
|
||||||
|
|
||||||
fun setLastUpdateDate(date: Date) {
|
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)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue