move the export path remembering in the dialog itself

This commit is contained in:
tibbi
2020-03-17 16:39:57 +01:00
parent 77bc0a92b5
commit 9c622a30bd
2 changed files with 2 additions and 2 deletions

View File

@ -519,7 +519,6 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
private fun tryExportContacts() {
if (isQPlus()) {
ExportContactsDialog(this, config.lastExportPath, true) { file, ignoredContactSources ->
config.lastExportPath = file.absolutePath.getParentPath()
ignoredExportContactSources = ignoredContactSources
Intent(Intent.ACTION_CREATE_DOCUMENT).apply {
@ -534,7 +533,6 @@ class MainActivity : SimpleActivity(), RefreshContactsListener {
handlePermission(PERMISSION_WRITE_STORAGE) {
if (it) {
ExportContactsDialog(this, config.lastExportPath, false) { file, ignoredContactSources ->
config.lastExportPath = file.absolutePath.getParentPath()
getFileOutputStream(file.toFileDirItem(this), true) {
exportContactsTo(ignoredContactSources, it)
}