From 640073546349f9d07bd00a02bbfbce59f3dba258 Mon Sep 17 00:00:00 2001 From: tibbi Date: Sun, 11 Feb 2018 12:30:30 +0100 Subject: [PATCH] use a human readable default filename at exporting --- .../simplemobiletools/contacts/dialogs/ExportContactsDialog.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/ExportContactsDialog.kt b/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/ExportContactsDialog.kt index f19ce9f6..d59ada5d 100644 --- a/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/ExportContactsDialog.kt +++ b/app/src/main/kotlin/com/simplemobiletools/contacts/dialogs/ExportContactsDialog.kt @@ -19,7 +19,7 @@ class ExportContactsDialog(val activity: SimpleActivity, val path: String, priva init { val view = (activity.layoutInflater.inflate(R.layout.dialog_export_contacts, null) as ViewGroup).apply { export_contacts_folder.text = activity.humanizePath(path) - export_contacts_filename.setText("contacts_${System.currentTimeMillis() / 1000}") + export_contacts_filename.setText("contacts_${activity.getCurrentFormattedDateTime()}") ContactsHelper(activity).getContactSources { it.mapTo(contactSources, { it.copy() })