add the timestamp to exported database name

This commit is contained in:
tibbi 2017-03-16 22:56:35 +01:00
parent 8e23443f79
commit e912442a71
1 changed files with 1 additions and 1 deletions

View File

@ -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()) {