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
|
var parent = file.parentFile ?: return false
|
||||||
while (true) {
|
while (true) {
|
||||||
if (parent.isHidden || parent.list()?.contains(NOMEDIA) == true) {
|
if (parent.isHidden || parent.list()?.any { it.startsWith(NOMEDIA) } == true) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue