handle SAF dialog when exporting to sd card

This commit is contained in:
tibbi 2017-05-06 12:03:00 +02:00
parent a7d65e5132
commit 5dff7a7140
1 changed files with 21 additions and 19 deletions

View File

@ -279,6 +279,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
private fun exportEvents() {
FilePickerDialog(this, pickFile = false) {
val path = it
handleSAFDialog(File(path)) {
ExportEventsDialog(this, path) {
Thread({
val events = dbHelper.getEventsToExport(it)
@ -302,6 +303,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
}
}
}
}
private fun launchSettings() {
startActivity(Intent(applicationContext, SettingsActivity::class.java))