do not check file existence at scoped storage settings exporting
This commit is contained in:
parent
c03a05eeae
commit
89519ab78c
|
@ -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'
|
||||
|
|
|
@ -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()
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue