add the timestamp to exported database name
This commit is contained in:
parent
8e23443f79
commit
e912442a71
|
@ -245,7 +245,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||
private fun exportDatabase() {
|
||||
FilePickerDialog(this, pickFile = false) {
|
||||
val source = getDatabasePath(DBHelper.DB_NAME)
|
||||
val destination = File(it, DBHelper.DB_NAME)
|
||||
val destination = File(it, "calendar_${System.currentTimeMillis()}.db")
|
||||
handleSAFDialog(destination) {
|
||||
Thread({
|
||||
if (source.exists()) {
|
||||
|
|
Loading…
Reference in New Issue