properly check nomedia files at ViewPagerActivity
This commit is contained in:
parent
063406a471
commit
f4a445dba5
|
@ -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 New Issue