mirror of
https://github.com/FossifyOrg/Gallery.git
synced 2024-11-22 20:48:00 +01:00
properly check nomedia files at ViewPagerActivity
This commit is contained in:
parent
063406a471
commit
f4a445dba5
1 changed files with 1 additions and 1 deletions
|
@ -625,7 +625,7 @@ class ViewPagerActivity : SimpleActivity(), ViewPager.OnPageChangeListener, View
|
|||
|
||||
var parent = file.parentFile ?: return false
|
||||
while (true) {
|
||||
if (parent.isHidden || parent.list()?.contains(NOMEDIA) == true) {
|
||||
if (parent.isHidden || parent.list()?.any { it.startsWith(NOMEDIA) } == true) {
|
||||
return true
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue