mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-17 04:10:45 +01:00
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() {
|
private fun exportDatabase() {
|
||||||
FilePickerDialog(this, pickFile = false) {
|
FilePickerDialog(this, pickFile = false) {
|
||||||
val source = getDatabasePath(DBHelper.DB_NAME)
|
val source = getDatabasePath(DBHelper.DB_NAME)
|
||||||
val destination = File(it, DBHelper.DB_NAME)
|
val destination = File(it, "calendar_${System.currentTimeMillis()}.db")
|
||||||
handleSAFDialog(destination) {
|
handleSAFDialog(destination) {
|
||||||
Thread({
|
Thread({
|
||||||
if (source.exists()) {
|
if (source.exists()) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user