mirror of
https://github.com/SimpleMobileTools/Simple-Gallery.git
synced 2025-04-05 22:21:11 +02:00
if a parent folder contains .nomedia, add it to included folders at unhiding
This commit is contained in:
parent
f93552d5c5
commit
5863180738
app
@ -61,7 +61,7 @@ android {
|
|||||||
}
|
}
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
implementation 'com.simplemobiletools:commons:5.15.15'
|
implementation 'com.simplemobiletools:commons:5.15.21'
|
||||||
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
implementation 'com.theartofdev.edmodo:android-image-cropper:2.8.0'
|
||||||
implementation 'androidx.multidex:multidex:2.0.1'
|
implementation 'androidx.multidex:multidex:2.0.1'
|
||||||
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
implementation 'it.sephiroth.android.exif:library:1.0.1'
|
||||||
|
@ -240,15 +240,23 @@ class DirectoryAdapter(activity: BaseSimpleActivity, var dirs: ArrayList<Directo
|
|||||||
} else {
|
} else {
|
||||||
activity.handleLockedFolderOpening(path) { success ->
|
activity.handleLockedFolderOpening(path) { success ->
|
||||||
if (success) {
|
if (success) {
|
||||||
activity.removeNoMedia(path) {
|
if (path.containsNoMedia()) {
|
||||||
if (activity.config.shouldShowHidden) {
|
activity.removeNoMedia(path) {
|
||||||
updateFolderNames()
|
if (activity.config.shouldShowHidden) {
|
||||||
} else {
|
updateFolderNames()
|
||||||
activity.runOnUiThread {
|
} else {
|
||||||
listener?.refreshItems()
|
activity.runOnUiThread {
|
||||||
finishActMode()
|
listener?.refreshItems()
|
||||||
|
finishActMode()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
config.addIncludedFolder(path)
|
||||||
|
activity.runOnUiThread {
|
||||||
|
listener?.refreshItems()
|
||||||
|
finishActMode()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user