avoid showing the Hide folder confirmation twice if initially hiding 2
This commit is contained in:
parent
80dff10e13
commit
d2afd2de94
|
@ -180,8 +180,8 @@ class DirectoryAdapter(val activity: SimpleActivity, val dirs: MutableList<Direc
|
||||||
if (config.wasHideFolderTooltipShown) {
|
if (config.wasHideFolderTooltipShown) {
|
||||||
hideFolder(path)
|
hideFolder(path)
|
||||||
} else {
|
} else {
|
||||||
|
config.wasHideFolderTooltipShown = true
|
||||||
ConfirmationDialog(activity, activity.getString(R.string.hide_folder_description)) {
|
ConfirmationDialog(activity, activity.getString(R.string.hide_folder_description)) {
|
||||||
config.wasHideFolderTooltipShown = true
|
|
||||||
hideFolder(path)
|
hideFolder(path)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue