mirror of
https://github.com/SimpleMobileTools/Simple-Calendar.git
synced 2025-02-18 12:50:34 +01:00
handle SAF dialog when exporting to sd card
This commit is contained in:
parent
a7d65e5132
commit
5dff7a7140
@ -279,6 +279,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||||||
private fun exportEvents() {
|
private fun exportEvents() {
|
||||||
FilePickerDialog(this, pickFile = false) {
|
FilePickerDialog(this, pickFile = false) {
|
||||||
val path = it
|
val path = it
|
||||||
|
handleSAFDialog(File(path)) {
|
||||||
ExportEventsDialog(this, path) {
|
ExportEventsDialog(this, path) {
|
||||||
Thread({
|
Thread({
|
||||||
val events = dbHelper.getEventsToExport(it)
|
val events = dbHelper.getEventsToExport(it)
|
||||||
@ -302,6 +303,7 @@ class MainActivity : SimpleActivity(), NavigationListener {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
private fun launchSettings() {
|
private fun launchSettings() {
|
||||||
startActivity(Intent(applicationContext, SettingsActivity::class.java))
|
startActivity(Intent(applicationContext, SettingsActivity::class.java))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user