mirror of
https://github.com/Kunzisoft/KeePassDX.git
synced 2025-12-04 15:49:33 +01:00
Remove modification date when not available
This commit is contained in:
@@ -60,8 +60,12 @@ class FileDatabaseInfo : Serializable {
|
|||||||
|
|
||||||
fun getModificationString(): String? {
|
fun getModificationString(): String? {
|
||||||
return documentFile?.lastModified()?.let {
|
return documentFile?.lastModified()?.let {
|
||||||
DateFormat.getDateTimeInstance()
|
if (it != 0L) {
|
||||||
.format(Date(it))
|
DateFormat.getDateTimeInstance()
|
||||||
|
.format(Date(it))
|
||||||
|
} else {
|
||||||
|
null
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user