mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-04-11 00:51:31 +02:00
fix a crash when excluding folder without parents
This commit is contained in:
parent
c6de3a9e85
commit
b94b803a40
@ -44,7 +44,7 @@ class ExcludeFolderDialog(val activity: SimpleActivity, val selectedPaths: List<
|
|||||||
}
|
}
|
||||||
|
|
||||||
private fun dialogConfirmed() {
|
private fun dialogConfirmed() {
|
||||||
val path = alternativePaths[radioGroup!!.checkedRadioButtonId]
|
val path = if (alternativePaths.isEmpty()) selectedPaths[0] else alternativePaths[radioGroup!!.checkedRadioButtonId]
|
||||||
activity.config.addExcludedFolder(path)
|
activity.config.addExcludedFolder(path)
|
||||||
callback.invoke()
|
callback.invoke()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user