mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-02-17 04:20:38 +01: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() {
|
||||
val path = alternativePaths[radioGroup!!.checkedRadioButtonId]
|
||||
val path = if (alternativePaths.isEmpty()) selectedPaths[0] else alternativePaths[radioGroup!!.checkedRadioButtonId]
|
||||
activity.config.addExcludedFolder(path)
|
||||
callback.invoke()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user