do not check file existence at scoped storage settings exporting

This commit is contained in:
tibbi 2020-03-17 19:05:06 +01:00
parent c03a05eeae
commit 89519ab78c
3 changed files with 5 additions and 3 deletions

View File

@ -64,7 +64,7 @@ android {
}
dependencies {
implementation 'com.simplemobiletools:commons:5.23.2'
implementation 'com.simplemobiletools:commons:5.23.4'
implementation 'joda-time:joda-time:2.10.1'
implementation 'androidx.multidex:multidex:2.0.1'
implementation 'androidx.constraintlayout:constraintlayout:2.0.0-beta4'

View File

@ -784,8 +784,10 @@ class SettingsActivity : SimpleActivity() {
}
}
toast(if (configValues.size > 0) R.string.settings_imported_successfully else R.string.no_entries_for_importing)
runOnUiThread {
val msg = if (configValues.size > 0) R.string.settings_imported_successfully else R.string.no_entries_for_importing
toast(msg)
setupSettingItems()
updateWidgets()
}

View File

@ -64,7 +64,7 @@ class ExportEventsDialog(val activity: SimpleActivity, val path: String, val hid
filename.isEmpty() -> activity.toast(R.string.empty_name)
filename.isAValidFilename() -> {
val file = File(realPath, "$filename.ics")
if (file.exists()) {
if (!hidePath && file.exists()) {
activity.toast(R.string.name_taken)
return@setOnClickListener
}